@aws-sdk/client-codeartifact 3.282.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.
Files changed (43) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/Codeartifact.js +15 -0
  3. package/dist-cjs/commands/PublishPackageVersionCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoint/ruleset.js +3 -3
  6. package/dist-cjs/models/models_0.js +10 -1
  7. package/dist-cjs/pagination/ListDomainsPaginator.js +1 -8
  8. package/dist-cjs/pagination/ListPackageVersionAssetsPaginator.js +1 -8
  9. package/dist-cjs/pagination/ListPackageVersionsPaginator.js +1 -8
  10. package/dist-cjs/pagination/ListPackagesPaginator.js +1 -8
  11. package/dist-cjs/pagination/ListRepositoriesInDomainPaginator.js +1 -8
  12. package/dist-cjs/pagination/ListRepositoriesPaginator.js +1 -8
  13. package/dist-cjs/protocols/Aws_restJson1.js +106 -2
  14. package/dist-es/Codeartifact.js +15 -0
  15. package/dist-es/commands/PublishPackageVersionCommand.js +42 -0
  16. package/dist-es/commands/index.js +1 -0
  17. package/dist-es/endpoint/ruleset.js +3 -3
  18. package/dist-es/models/models_0.js +7 -0
  19. package/dist-es/pagination/ListDomainsPaginator.js +1 -8
  20. package/dist-es/pagination/ListPackageVersionAssetsPaginator.js +1 -8
  21. package/dist-es/pagination/ListPackageVersionsPaginator.js +1 -8
  22. package/dist-es/pagination/ListPackagesPaginator.js +1 -8
  23. package/dist-es/pagination/ListRepositoriesInDomainPaginator.js +1 -8
  24. package/dist-es/pagination/ListRepositoriesPaginator.js +1 -8
  25. package/dist-es/protocols/Aws_restJson1.js +102 -0
  26. package/dist-types/Codeartifact.d.ts +20 -1
  27. package/dist-types/CodeartifactClient.d.ts +11 -2
  28. package/dist-types/commands/DeletePackageVersionsCommand.d.ts +1 -1
  29. package/dist-types/commands/PublishPackageVersionCommand.d.ts +58 -0
  30. package/dist-types/commands/index.d.ts +1 -0
  31. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  32. package/dist-types/models/models_0.d.ts +194 -10
  33. package/dist-types/pagination/Interfaces.d.ts +1 -2
  34. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  35. package/dist-types/ts3.4/Codeartifact.d.ts +17 -0
  36. package/dist-types/ts3.4/CodeartifactClient.d.ts +6 -0
  37. package/dist-types/ts3.4/commands/PublishPackageVersionCommand.d.ts +52 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  39. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  40. package/dist-types/ts3.4/models/models_0.d.ts +29 -0
  41. package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  43. package/package.json +9 -9
@@ -117,6 +117,7 @@ export interface AssociateExternalConnectionRequest {
117
117
  externalConnection: string | undefined;
118
118
  }
119
119
  export declare enum PackageFormat {
120
+ GENERIC = "generic",
120
121
  MAVEN = "maven",
121
122
  NPM = "npm",
122
123
  NUGET = "nuget",
@@ -434,6 +435,11 @@ export interface CopyPackageVersionsRequest {
434
435
  * of those formats do not have a namespace.
435
436
  * </p>
436
437
  * </li>
438
+ * <li>
439
+ * <p>
440
+ * The namespace of a generic package is it’s <code>namespace</code>.
441
+ * </p>
442
+ * </li>
437
443
  * </ul>
438
444
  */
439
445
  namespace?: string;
@@ -957,6 +963,11 @@ export interface PackageSummary {
957
963
  * of those formats do not have a namespace.
958
964
  * </p>
959
965
  * </li>
966
+ * <li>
967
+ * <p>
968
+ * The namespace of a generic package is it’s <code>namespace</code>.
969
+ * </p>
970
+ * </li>
960
971
  * </ul>
961
972
  */
962
973
  namespace?: string;
@@ -1027,6 +1038,11 @@ export interface DeletePackageVersionsRequest {
1027
1038
  * of those formats do not have a namespace.
1028
1039
  * </p>
1029
1040
  * </li>
1041
+ * <li>
1042
+ * <p>
1043
+ * The namespace of a generic package is it’s <code>namespace</code>.
1044
+ * </p>
1045
+ * </li>
1030
1046
  * </ul>
1031
1047
  */
1032
1048
  namespace?: string;
@@ -1224,6 +1240,11 @@ export interface DescribePackageRequest {
1224
1240
  * of those formats do not have a namespace.
1225
1241
  * </p>
1226
1242
  * </li>
1243
+ * <li>
1244
+ * <p>
1245
+ * The namespace of a generic package is it’s <code>namespace</code>.
1246
+ * </p>
1247
+ * </li>
1227
1248
  * </ul>
1228
1249
  */
1229
1250
  namespace?: string;
@@ -1260,6 +1281,11 @@ export interface PackageDescription {
1260
1281
  * of those formats do not have a namespace.
1261
1282
  * </p>
1262
1283
  * </li>
1284
+ * <li>
1285
+ * <p>
1286
+ * The namespace of a generic package is it’s <code>namespace</code>.
1287
+ * </p>
1288
+ * </li>
1263
1289
  * </ul>
1264
1290
  */
1265
1291
  namespace?: string;
@@ -1323,6 +1349,11 @@ export interface DescribePackageVersionRequest {
1323
1349
  * of those formats do not have a namespace.
1324
1350
  * </p>
1325
1351
  * </li>
1352
+ * <li>
1353
+ * <p>
1354
+ * The namespace of a generic package is it’s <code>namespace</code>.
1355
+ * </p>
1356
+ * </li>
1326
1357
  * </ul>
1327
1358
  */
1328
1359
  namespace?: string;
@@ -1423,6 +1454,11 @@ export interface PackageVersionDescription {
1423
1454
  * of those formats do not have a namespace.
1424
1455
  * </p>
1425
1456
  * </li>
1457
+ * <li>
1458
+ * <p>
1459
+ * The namespace of a generic package is it’s <code>namespace</code>.
1460
+ * </p>
1461
+ * </li>
1426
1462
  * </ul>
1427
1463
  */
1428
1464
  namespace?: string;
@@ -1610,6 +1646,11 @@ export interface DisposePackageVersionsRequest {
1610
1646
  * of those formats do not have a namespace.
1611
1647
  * </p>
1612
1648
  * </li>
1649
+ * <li>
1650
+ * <p>
1651
+ * The namespace of a generic package is it’s <code>namespace</code>.
1652
+ * </p>
1653
+ * </li>
1613
1654
  * </ul>
1614
1655
  */
1615
1656
  namespace?: string;
@@ -1790,6 +1831,11 @@ export interface GetPackageVersionAssetRequest {
1790
1831
  * of those formats do not have a namespace.
1791
1832
  * </p>
1792
1833
  * </li>
1834
+ * <li>
1835
+ * <p>
1836
+ * The namespace of a generic package is it’s <code>namespace</code>.
1837
+ * </p>
1838
+ * </li>
1793
1839
  * </ul>
1794
1840
  */
1795
1841
  namespace?: string;
@@ -1866,10 +1912,6 @@ export interface GetPackageVersionReadmeRequest {
1866
1912
  * <p>
1867
1913
  * A format that specifies the type of the package version with the requested readme file.
1868
1914
  * </p>
1869
- * <note>
1870
- * <p>Although <code>maven</code> is
1871
- * listed as a valid value, CodeArtifact does not support displaying readme files for Maven packages.</p>
1872
- * </note>
1873
1915
  */
1874
1916
  format: PackageFormat | string | undefined;
1875
1917
  /**
@@ -2125,8 +2167,8 @@ export interface ListPackagesRequest {
2125
2167
  */
2126
2168
  format?: PackageFormat | string;
2127
2169
  /**
2128
- * <p>The namespace used to filter requested packages. Only packages with the provided namespace will be returned.
2129
- * The package component that specifies its namespace depends on its type. For example:</p>
2170
+ * <p>The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called <code>--namespace</code> and not <code>--namespace-prefix</code>, it has prefix-matching behavior.</p>
2171
+ * <p>Each package format uses namespace as follows:</p>
2130
2172
  * <ul>
2131
2173
  * <li>
2132
2174
  * <p>
@@ -2144,6 +2186,11 @@ export interface ListPackagesRequest {
2144
2186
  * of those formats do not have a namespace.
2145
2187
  * </p>
2146
2188
  * </li>
2189
+ * <li>
2190
+ * <p>
2191
+ * The namespace of a generic package is it’s <code>namespace</code>.
2192
+ * </p>
2193
+ * </li>
2147
2194
  * </ul>
2148
2195
  */
2149
2196
  namespace?: string;
@@ -2239,6 +2286,11 @@ export interface ListPackageVersionAssetsRequest {
2239
2286
  * of those formats do not have a namespace.
2240
2287
  * </p>
2241
2288
  * </li>
2289
+ * <li>
2290
+ * <p>
2291
+ * The namespace of a generic package is it’s <code>namespace</code>.
2292
+ * </p>
2293
+ * </li>
2242
2294
  * </ul>
2243
2295
  */
2244
2296
  namespace?: string;
@@ -2374,6 +2426,11 @@ export interface ListPackageVersionDependenciesRequest {
2374
2426
  * of those formats do not have a namespace.
2375
2427
  * </p>
2376
2428
  * </li>
2429
+ * <li>
2430
+ * <p>
2431
+ * The namespace of a generic package is it’s <code>namespace</code>.
2432
+ * </p>
2433
+ * </li>
2377
2434
  * </ul>
2378
2435
  */
2379
2436
  namespace?: string;
@@ -2432,9 +2489,26 @@ export interface PackageDependency {
2432
2489
  */
2433
2490
  package?: string;
2434
2491
  /**
2435
- * <p> The type of a package dependency. The possible values depend on the package type.
2436
- * Example types are <code>compile</code>, <code>runtime</code>, and <code>test</code> for Maven
2437
- * packages, and <code>dev</code>, <code>prod</code>, and <code>optional</code> for npm packages. </p>
2492
+ * <p> The type of a package dependency. The possible values depend on the package type.</p>
2493
+ * <ul>
2494
+ * <li>
2495
+ * <p>npm: <code>regular</code>, <code>dev</code>, <code>peer</code>, <code>optional</code>
2496
+ * </p>
2497
+ * </li>
2498
+ * <li>
2499
+ * <p>maven: <code>optional</code>, <code>parent</code>, <code>compile</code>, <code>runtime</code>, <code>test</code>, <code>system</code>, <code>provided</code>.</p>
2500
+ * <note>
2501
+ * <p>Note that <code>parent</code> is not a regular Maven dependency type; instead this is extracted from the <code><parent></code> element if one is defined in the package version's POM file.</p>
2502
+ * </note>
2503
+ * </li>
2504
+ * <li>
2505
+ * <p>nuget: The <code>dependencyType</code> field is never set for NuGet packages.</p>
2506
+ * </li>
2507
+ * <li>
2508
+ * <p>pypi: <code>Requires-Dist</code>
2509
+ * </p>
2510
+ * </li>
2511
+ * </ul>
2438
2512
  */
2439
2513
  dependencyType?: string;
2440
2514
  /**
@@ -2532,7 +2606,7 @@ export interface ListPackageVersionsRequest {
2532
2606
  repository: string | undefined;
2533
2607
  /**
2534
2608
  * <p>
2535
- * The format of the returned package versions.
2609
+ * The format of the package versions you want to list.
2536
2610
  * </p>
2537
2611
  */
2538
2612
  format: PackageFormat | string | undefined;
@@ -2556,6 +2630,11 @@ export interface ListPackageVersionsRequest {
2556
2630
  * of those formats do not have a namespace.
2557
2631
  * </p>
2558
2632
  * </li>
2633
+ * <li>
2634
+ * <p>
2635
+ * The namespace of a generic package is it’s <code>namespace</code>.
2636
+ * </p>
2637
+ * </li>
2559
2638
  * </ul>
2560
2639
  */
2561
2640
  namespace?: string;
@@ -2839,6 +2918,93 @@ export interface ListTagsForResourceResult {
2839
2918
  */
2840
2919
  tags?: Tag[];
2841
2920
  }
2921
+ export interface PublishPackageVersionRequest {
2922
+ /**
2923
+ * <p>The name of the domain that contains the repository that contains the package version to publish.</p>
2924
+ */
2925
+ domain: string | undefined;
2926
+ /**
2927
+ * <p>The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.</p>
2928
+ */
2929
+ domainOwner?: string;
2930
+ /**
2931
+ * <p>The name of the repository that the package version will be published to.</p>
2932
+ */
2933
+ repository: string | undefined;
2934
+ /**
2935
+ * <p>A format that specifies the type of the package version with the requested asset file.</p>
2936
+ */
2937
+ format: PackageFormat | string | undefined;
2938
+ /**
2939
+ * <p>The namespace of the package version to publish.</p>
2940
+ */
2941
+ namespace?: string;
2942
+ /**
2943
+ * <p>The name of the package version to publish.</p>
2944
+ */
2945
+ package: string | undefined;
2946
+ /**
2947
+ * <p>The package version to publish (for example, <code>3.5.2</code>).</p>
2948
+ */
2949
+ packageVersion: string | undefined;
2950
+ /**
2951
+ * <p>The content of the asset to publish.</p>
2952
+ */
2953
+ assetContent: Readable | ReadableStream | Blob | undefined;
2954
+ /**
2955
+ * <p>The name of the asset to publish. Asset names can include Unicode letters and numbers, and
2956
+ * the following special characters: <code>~ ! @ ^ & ( ) - ` _ + [ ] { } ; , .
2957
+ * `</code>
2958
+ * </p>
2959
+ */
2960
+ assetName: string | undefined;
2961
+ /**
2962
+ * <p>The SHA256 hash of the <code>assetContent</code> to publish. This value must be calculated
2963
+ * by the caller and provided with the
2964
+ * request.</p>
2965
+ * <p>This value is used as an integrity check to verify that the <code>assetContent</code> has
2966
+ * not changed after it was originally sent.</p>
2967
+ */
2968
+ assetSHA256: string | undefined;
2969
+ /**
2970
+ * <p>Specifies whether the package version should remain in the <code>unfinished</code>
2971
+ * state. If omitted, the package version status will be set to <code>Published</code> (see
2972
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status">Package version status</a> in the <i>CodeArtifact User Guide</i>).</p>
2973
+ * <p>Valid values: <code>unfinished</code>
2974
+ * </p>
2975
+ */
2976
+ unfinished?: boolean;
2977
+ }
2978
+ export interface PublishPackageVersionResult {
2979
+ /**
2980
+ * <p>The format of the package version.</p>
2981
+ */
2982
+ format?: PackageFormat | string;
2983
+ /**
2984
+ * <p>The namespace of the package version.</p>
2985
+ */
2986
+ namespace?: string;
2987
+ /**
2988
+ * <p>The name of the package.</p>
2989
+ */
2990
+ package?: string;
2991
+ /**
2992
+ * <p>The version of the package.</p>
2993
+ */
2994
+ version?: string;
2995
+ /**
2996
+ * <p>The revision of the package version.</p>
2997
+ */
2998
+ versionRevision?: string;
2999
+ /**
3000
+ * <p>A string that contains the status of the package version. For more information, see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status">Package version status</a> in the <i>CodeArtifact User Guide</i>.</p>
3001
+ */
3002
+ status?: PackageVersionStatus | string;
3003
+ /**
3004
+ * <p>An <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html">AssetSummary</a> for the published asset.</p>
3005
+ */
3006
+ asset?: AssetSummary;
3007
+ }
2842
3008
  export interface PutDomainPermissionsPolicyRequest {
2843
3009
  /**
2844
3010
  * <p>
@@ -2912,6 +3078,11 @@ export interface PutPackageOriginConfigurationRequest {
2912
3078
  * of those formats do not have a namespace.
2913
3079
  * </p>
2914
3080
  * </li>
3081
+ * <li>
3082
+ * <p>
3083
+ * The namespace of a generic package is it’s <code>namespace</code>.
3084
+ * </p>
3085
+ * </li>
2915
3086
  * </ul>
2916
3087
  */
2917
3088
  namespace?: string;
@@ -3045,6 +3216,11 @@ export interface UpdatePackageVersionsStatusRequest {
3045
3216
  * of those formats do not have a namespace.
3046
3217
  * </p>
3047
3218
  * </li>
3219
+ * <li>
3220
+ * <p>
3221
+ * The namespace of a generic package is it’s <code>namespace</code>.
3222
+ * </p>
3223
+ * </li>
3048
3224
  * </ul>
3049
3225
  */
3050
3226
  namespace?: string;
@@ -3463,6 +3639,14 @@ export declare const ListTagsForResourceRequestFilterSensitiveLog: (obj: ListTag
3463
3639
  * @internal
3464
3640
  */
3465
3641
  export declare const ListTagsForResourceResultFilterSensitiveLog: (obj: ListTagsForResourceResult) => any;
3642
+ /**
3643
+ * @internal
3644
+ */
3645
+ export declare const PublishPackageVersionRequestFilterSensitiveLog: (obj: PublishPackageVersionRequest) => any;
3646
+ /**
3647
+ * @internal
3648
+ */
3649
+ export declare const PublishPackageVersionResultFilterSensitiveLog: (obj: PublishPackageVersionResult) => any;
3466
3650
  /**
3467
3651
  * @internal
3468
3652
  */
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { Codeartifact } from "../Codeartifact";
3
2
  import { CodeartifactClient } from "../CodeartifactClient";
4
3
  export interface CodeartifactPaginationConfiguration extends PaginationConfiguration {
5
- client: Codeartifact | CodeartifactClient;
4
+ client: CodeartifactClient;
6
5
  }
@@ -30,6 +30,7 @@ import { ListPackageVersionsCommandInput, ListPackageVersionsCommandOutput } fro
30
30
  import { ListRepositoriesCommandInput, ListRepositoriesCommandOutput } from "../commands/ListRepositoriesCommand";
31
31
  import { ListRepositoriesInDomainCommandInput, ListRepositoriesInDomainCommandOutput } from "../commands/ListRepositoriesInDomainCommand";
32
32
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
33
+ import { PublishPackageVersionCommandInput, PublishPackageVersionCommandOutput } from "../commands/PublishPackageVersionCommand";
33
34
  import { PutDomainPermissionsPolicyCommandInput, PutDomainPermissionsPolicyCommandOutput } from "../commands/PutDomainPermissionsPolicyCommand";
34
35
  import { PutPackageOriginConfigurationCommandInput, PutPackageOriginConfigurationCommandOutput } from "../commands/PutPackageOriginConfigurationCommand";
35
36
  import { PutRepositoryPermissionsPolicyCommandInput, PutRepositoryPermissionsPolicyCommandOutput } from "../commands/PutRepositoryPermissionsPolicyCommand";
@@ -67,6 +68,7 @@ export declare const serializeAws_restJson1ListPackageVersionsCommand: (input: L
67
68
  export declare const serializeAws_restJson1ListRepositoriesCommand: (input: ListRepositoriesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
69
  export declare const serializeAws_restJson1ListRepositoriesInDomainCommand: (input: ListRepositoriesInDomainCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
69
70
  export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
+ export declare const serializeAws_restJson1PublishPackageVersionCommand: (input: PublishPackageVersionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
72
  export declare const serializeAws_restJson1PutDomainPermissionsPolicyCommand: (input: PutDomainPermissionsPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
73
  export declare const serializeAws_restJson1PutPackageOriginConfigurationCommand: (input: PutPackageOriginConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
74
  export declare const serializeAws_restJson1PutRepositoryPermissionsPolicyCommand: (input: PutRepositoryPermissionsPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -104,6 +106,7 @@ export declare const deserializeAws_restJson1ListPackageVersionsCommand: (output
104
106
  export declare const deserializeAws_restJson1ListRepositoriesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRepositoriesCommandOutput>;
105
107
  export declare const deserializeAws_restJson1ListRepositoriesInDomainCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRepositoriesInDomainCommandOutput>;
106
108
  export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
109
+ export declare const deserializeAws_restJson1PublishPackageVersionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PublishPackageVersionCommandOutput>;
107
110
  export declare const deserializeAws_restJson1PutDomainPermissionsPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutDomainPermissionsPolicyCommandOutput>;
108
111
  export declare const deserializeAws_restJson1PutPackageOriginConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutPackageOriginConfigurationCommandOutput>;
109
112
  export declare const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutRepositoryPermissionsPolicyCommandOutput>;
@@ -120,6 +120,10 @@ import {
120
120
  ListTagsForResourceCommandInput,
121
121
  ListTagsForResourceCommandOutput,
122
122
  } from "./commands/ListTagsForResourceCommand";
123
+ import {
124
+ PublishPackageVersionCommandInput,
125
+ PublishPackageVersionCommandOutput,
126
+ } from "./commands/PublishPackageVersionCommand";
123
127
  import {
124
128
  PutDomainPermissionsPolicyCommandInput,
125
129
  PutDomainPermissionsPolicyCommandOutput,
@@ -545,6 +549,19 @@ export declare class Codeartifact extends CodeartifactClient {
545
549
  options: __HttpHandlerOptions,
546
550
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
547
551
  ): void;
552
+ publishPackageVersion(
553
+ args: PublishPackageVersionCommandInput,
554
+ options?: __HttpHandlerOptions
555
+ ): Promise<PublishPackageVersionCommandOutput>;
556
+ publishPackageVersion(
557
+ args: PublishPackageVersionCommandInput,
558
+ cb: (err: any, data?: PublishPackageVersionCommandOutput) => void
559
+ ): void;
560
+ publishPackageVersion(
561
+ args: PublishPackageVersionCommandInput,
562
+ options: __HttpHandlerOptions,
563
+ cb: (err: any, data?: PublishPackageVersionCommandOutput) => void
564
+ ): void;
548
565
  putDomainPermissionsPolicy(
549
566
  args: PutDomainPermissionsPolicyCommandInput,
550
567
  options?: __HttpHandlerOptions
@@ -165,6 +165,10 @@ import {
165
165
  ListTagsForResourceCommandInput,
166
166
  ListTagsForResourceCommandOutput,
167
167
  } from "./commands/ListTagsForResourceCommand";
168
+ import {
169
+ PublishPackageVersionCommandInput,
170
+ PublishPackageVersionCommandOutput,
171
+ } from "./commands/PublishPackageVersionCommand";
168
172
  import {
169
173
  PutDomainPermissionsPolicyCommandInput,
170
174
  PutDomainPermissionsPolicyCommandOutput,
@@ -229,6 +233,7 @@ export declare type ServiceInputTypes =
229
233
  | ListRepositoriesCommandInput
230
234
  | ListRepositoriesInDomainCommandInput
231
235
  | ListTagsForResourceCommandInput
236
+ | PublishPackageVersionCommandInput
232
237
  | PutDomainPermissionsPolicyCommandInput
233
238
  | PutPackageOriginConfigurationCommandInput
234
239
  | PutRepositoryPermissionsPolicyCommandInput
@@ -267,6 +272,7 @@ export declare type ServiceOutputTypes =
267
272
  | ListRepositoriesCommandOutput
268
273
  | ListRepositoriesInDomainCommandOutput
269
274
  | ListTagsForResourceCommandOutput
275
+ | PublishPackageVersionCommandOutput
270
276
  | PutDomainPermissionsPolicyCommandOutput
271
277
  | PutPackageOriginConfigurationCommandOutput
272
278
  | PutRepositoryPermissionsPolicyCommandOutput
@@ -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: string;
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;
@@ -1,7 +1,6 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { Codeartifact } from "../Codeartifact";
3
2
  import { CodeartifactClient } from "../CodeartifactClient";
4
3
  export interface CodeartifactPaginationConfiguration
5
4
  extends PaginationConfiguration {
6
- client: Codeartifact | CodeartifactClient;
5
+ client: CodeartifactClient;
7
6
  }
@@ -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.282.0",
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,23 +20,23 @@
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.282.0",
24
- "@aws-sdk/config-resolver": "3.282.0",
25
- "@aws-sdk/credential-provider-node": "3.282.0",
23
+ "@aws-sdk/client-sts": "3.288.0",
24
+ "@aws-sdk/config-resolver": "3.287.0",
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.272.0",
32
+ "@aws-sdk/middleware-logger": "3.288.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-serde": "3.272.0",
36
36
  "@aws-sdk/middleware-signing": "3.282.0",
37
37
  "@aws-sdk/middleware-stack": "3.272.0",
38
38
  "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.272.0",
39
+ "@aws-sdk/node-config-provider": "3.287.0",
40
40
  "@aws-sdk/node-http-handler": "3.282.0",
41
41
  "@aws-sdk/protocol-http": "3.282.0",
42
42
  "@aws-sdk/smithy-client": "3.279.0",
@@ -46,13 +46,13 @@
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.282.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
50
  "@aws-sdk/util-endpoints": "3.272.0",
51
51
  "@aws-sdk/util-retry": "3.272.0",
52
52
  "@aws-sdk/util-stream-browser": "3.282.0",
53
53
  "@aws-sdk/util-stream-node": "3.282.0",
54
54
  "@aws-sdk/util-user-agent-browser": "3.282.0",
55
- "@aws-sdk/util-user-agent-node": "3.282.0",
55
+ "@aws-sdk/util-user-agent-node": "3.287.0",
56
56
  "@aws-sdk/util-utf8": "3.254.0",
57
57
  "tslib": "^2.3.1"
58
58
  },