@aws-sdk/client-codeartifact 3.377.0 → 3.379.1

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.
@@ -1,6 +1,6 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, WithSdkStreamMixin as __WithSdkStreamMixin } from "@smithy/types";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, StreamingBlobPayloadOutputTypes } from "@smithy/types";
4
4
  import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
5
5
  import { GetPackageVersionAssetRequest, GetPackageVersionAssetResult } from "../models/models_0";
6
6
  /**
@@ -19,7 +19,8 @@ export interface GetPackageVersionAssetCommandInput extends GetPackageVersionAss
19
19
  *
20
20
  * The output of {@link GetPackageVersionAssetCommand}.
21
21
  */
22
- export interface GetPackageVersionAssetCommandOutput extends __WithSdkStreamMixin<GetPackageVersionAssetResult, "asset">, __MetadataBearer {
22
+ export interface GetPackageVersionAssetCommandOutput extends Omit<GetPackageVersionAssetResult, "asset">, __MetadataBearer {
23
+ asset?: StreamingBlobPayloadOutputTypes;
23
24
  }
24
25
  /**
25
26
  * @public
@@ -1,25 +1,19 @@
1
- /// <reference types="node" />
2
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, StreamingBlobPayloadInputTypes } from "@smithy/types";
5
4
  import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
6
5
  import { PublishPackageVersionRequest, PublishPackageVersionResult } from "../models/models_0";
7
6
  /**
8
7
  * @public
9
8
  */
10
9
  export { __MetadataBearer, $Command };
11
- export type PublishPackageVersionCommandInputType = Omit<PublishPackageVersionRequest, "assetContent"> & {
12
- /**
13
- * For *`PublishPackageVersionRequest["assetContent"]`*, see {@link PublishPackageVersionRequest.assetContent}.
14
- */
15
- assetContent: PublishPackageVersionRequest["assetContent"] | string | Uint8Array | Buffer;
16
- };
17
10
  /**
18
11
  * @public
19
12
  *
20
13
  * The input for {@link PublishPackageVersionCommand}.
21
14
  */
22
- export interface PublishPackageVersionCommandInput extends PublishPackageVersionCommandInputType {
15
+ export interface PublishPackageVersionCommandInput extends Omit<PublishPackageVersionRequest, "assetContent"> {
16
+ assetContent: StreamingBlobPayloadInputTypes;
23
17
  }
24
18
  /**
25
19
  * @public
@@ -1,4 +1,7 @@
1
1
  import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
2
5
  export interface ClientInputEndpointParameters {
3
6
  region?: string | Provider<string>;
4
7
  useDualstackEndpoint?: boolean | Provider<boolean>;
@@ -278,6 +278,7 @@
278
278
  */
279
279
  export * from "./CodeartifactClient";
280
280
  export * from "./Codeartifact";
281
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
281
282
  export * from "./commands";
282
283
  export * from "./pagination";
283
284
  export * from "./models";
@@ -1,6 +1,5 @@
1
- /// <reference types="node" />
2
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
3
- import { Readable } from "stream";
2
+ import { StreamingBlobTypes } from "@smithy/types";
4
3
  import { CodeartifactServiceException as __BaseException } from "./CodeartifactServiceException";
5
4
  /**
6
5
  * @public
@@ -2086,7 +2085,7 @@ export interface GetPackageVersionAssetResult {
2086
2085
  /**
2087
2086
  * <p> The binary file, or asset, that is downloaded.</p>
2088
2087
  */
2089
- asset?: Readable | ReadableStream | Blob;
2088
+ asset?: StreamingBlobTypes;
2090
2089
  /**
2091
2090
  * <p>
2092
2091
  * The name of the asset that is downloaded.
@@ -3237,7 +3236,7 @@ export interface PublishPackageVersionRequest {
3237
3236
  /**
3238
3237
  * <p>The content of the asset to publish.</p>
3239
3238
  */
3240
- assetContent: Readable | ReadableStream | Blob | undefined;
3239
+ assetContent: StreamingBlobTypes | undefined;
3241
3240
  /**
3242
3241
  * <p>The name of the asset to publish. Asset names can include Unicode letters and numbers, and
3243
3242
  * the following special characters: <code>~ ! @ ^ & ( ) - ` _ + [ ] \{ \} ; , .
@@ -5,7 +5,7 @@ import {
5
5
  HttpHandlerOptions as __HttpHandlerOptions,
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
- WithSdkStreamMixin as __WithSdkStreamMixin,
8
+ StreamingBlobPayloadOutputTypes,
9
9
  } from "@smithy/types";
10
10
  import {
11
11
  CodeartifactClientResolvedConfig,
@@ -20,8 +20,13 @@ export { __MetadataBearer, $Command };
20
20
  export interface GetPackageVersionAssetCommandInput
21
21
  extends GetPackageVersionAssetRequest {}
22
22
  export interface GetPackageVersionAssetCommandOutput
23
- extends __WithSdkStreamMixin<GetPackageVersionAssetResult, "asset">,
24
- __MetadataBearer {}
23
+ extends Pick<
24
+ GetPackageVersionAssetResult,
25
+ Exclude<keyof GetPackageVersionAssetResult, "asset">
26
+ >,
27
+ __MetadataBearer {
28
+ asset?: StreamingBlobPayloadOutputTypes;
29
+ }
25
30
  export declare class GetPackageVersionAssetCommand extends $Command<
26
31
  GetPackageVersionAssetCommandInput,
27
32
  GetPackageVersionAssetCommandOutput,
@@ -5,6 +5,7 @@ import {
5
5
  HttpHandlerOptions as __HttpHandlerOptions,
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
+ StreamingBlobPayloadInputTypes,
8
9
  } from "@smithy/types";
9
10
  import {
10
11
  CodeartifactClientResolvedConfig,
@@ -16,18 +17,13 @@ import {
16
17
  PublishPackageVersionResult,
17
18
  } from "../models/models_0";
18
19
  export { __MetadataBearer, $Command };
19
- export type PublishPackageVersionCommandInputType = Pick<
20
- PublishPackageVersionRequest,
21
- Exclude<keyof PublishPackageVersionRequest, "assetContent">
22
- > & {
23
- assetContent:
24
- | PublishPackageVersionRequest["assetContent"]
25
- | string
26
- | Uint8Array
27
- | Buffer;
28
- };
29
20
  export interface PublishPackageVersionCommandInput
30
- extends PublishPackageVersionCommandInputType {}
21
+ extends Pick<
22
+ PublishPackageVersionRequest,
23
+ Exclude<keyof PublishPackageVersionRequest, "assetContent">
24
+ > {
25
+ assetContent: StreamingBlobPayloadInputTypes;
26
+ }
31
27
  export interface PublishPackageVersionCommandOutput
32
28
  extends PublishPackageVersionResult,
33
29
  __MetadataBearer {}
@@ -1,5 +1,6 @@
1
1
  export * from "./CodeartifactClient";
2
2
  export * from "./Codeartifact";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
3
4
  export * from "./commands";
4
5
  export * from "./pagination";
5
6
  export * from "./models";
@@ -1,5 +1,5 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { Readable } from "stream";
2
+ import { StreamingBlobTypes } from "@smithy/types";
3
3
  import { CodeartifactServiceException as __BaseException } from "./CodeartifactServiceException";
4
4
  export declare class AccessDeniedException extends __BaseException {
5
5
  readonly name: "AccessDeniedException";
@@ -428,7 +428,7 @@ export interface GetPackageVersionAssetRequest {
428
428
  packageVersionRevision?: string;
429
429
  }
430
430
  export interface GetPackageVersionAssetResult {
431
- asset?: Readable | ReadableStream | Blob;
431
+ asset?: StreamingBlobTypes;
432
432
  assetName?: string;
433
433
  packageVersion?: string;
434
434
  packageVersionRevision?: string;
@@ -620,7 +620,7 @@ export interface PublishPackageVersionRequest {
620
620
  namespace?: string;
621
621
  package: string | undefined;
622
622
  packageVersion: string | undefined;
623
- assetContent: Readable | ReadableStream | Blob | undefined;
623
+ assetContent: StreamingBlobTypes | undefined;
624
624
  assetName: string | undefined;
625
625
  assetSHA256: string | undefined;
626
626
  unfinished?: boolean;
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.377.0",
4
+ "version": "3.379.1",
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.377.0",
25
- "@aws-sdk/credential-provider-node": "3.370.0",
26
- "@aws-sdk/middleware-host-header": "3.370.0",
27
- "@aws-sdk/middleware-logger": "3.370.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.370.0",
29
- "@aws-sdk/middleware-signing": "3.370.0",
30
- "@aws-sdk/middleware-user-agent": "3.370.0",
31
- "@aws-sdk/types": "3.370.0",
32
- "@aws-sdk/util-endpoints": "3.370.0",
33
- "@aws-sdk/util-user-agent-browser": "3.370.0",
34
- "@aws-sdk/util-user-agent-node": "3.370.0",
35
- "@smithy/config-resolver": "^1.0.1",
36
- "@smithy/fetch-http-handler": "^1.0.1",
37
- "@smithy/hash-node": "^1.0.1",
38
- "@smithy/invalid-dependency": "^1.0.1",
39
- "@smithy/middleware-content-length": "^1.0.1",
40
- "@smithy/middleware-endpoint": "^1.0.2",
41
- "@smithy/middleware-retry": "^1.0.3",
42
- "@smithy/middleware-serde": "^1.0.1",
43
- "@smithy/middleware-stack": "^1.0.1",
44
- "@smithy/node-config-provider": "^1.0.1",
45
- "@smithy/node-http-handler": "^1.0.2",
46
- "@smithy/protocol-http": "^1.1.0",
47
- "@smithy/smithy-client": "^1.0.3",
48
- "@smithy/types": "^1.1.0",
49
- "@smithy/url-parser": "^1.0.1",
50
- "@smithy/util-base64": "^1.0.1",
51
- "@smithy/util-body-length-browser": "^1.0.1",
52
- "@smithy/util-body-length-node": "^1.0.1",
53
- "@smithy/util-defaults-mode-browser": "^1.0.1",
54
- "@smithy/util-defaults-mode-node": "^1.0.1",
55
- "@smithy/util-retry": "^1.0.3",
56
- "@smithy/util-stream": "^1.0.1",
57
- "@smithy/util-utf8": "^1.0.1",
24
+ "@aws-sdk/client-sts": "3.379.1",
25
+ "@aws-sdk/credential-provider-node": "3.379.1",
26
+ "@aws-sdk/middleware-host-header": "3.379.1",
27
+ "@aws-sdk/middleware-logger": "3.378.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.378.0",
29
+ "@aws-sdk/middleware-signing": "3.379.1",
30
+ "@aws-sdk/middleware-user-agent": "3.379.1",
31
+ "@aws-sdk/types": "3.378.0",
32
+ "@aws-sdk/util-endpoints": "3.378.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.378.0",
34
+ "@aws-sdk/util-user-agent-node": "3.378.0",
35
+ "@smithy/config-resolver": "^2.0.1",
36
+ "@smithy/fetch-http-handler": "^2.0.1",
37
+ "@smithy/hash-node": "^2.0.1",
38
+ "@smithy/invalid-dependency": "^2.0.1",
39
+ "@smithy/middleware-content-length": "^2.0.1",
40
+ "@smithy/middleware-endpoint": "^2.0.1",
41
+ "@smithy/middleware-retry": "^2.0.1",
42
+ "@smithy/middleware-serde": "^2.0.1",
43
+ "@smithy/middleware-stack": "^2.0.0",
44
+ "@smithy/node-config-provider": "^2.0.1",
45
+ "@smithy/node-http-handler": "^2.0.1",
46
+ "@smithy/protocol-http": "^2.0.1",
47
+ "@smithy/smithy-client": "^2.0.1",
48
+ "@smithy/types": "^2.0.2",
49
+ "@smithy/url-parser": "^2.0.1",
50
+ "@smithy/util-base64": "^2.0.0",
51
+ "@smithy/util-body-length-browser": "^2.0.0",
52
+ "@smithy/util-body-length-node": "^2.0.0",
53
+ "@smithy/util-defaults-mode-browser": "^2.0.1",
54
+ "@smithy/util-defaults-mode-node": "^2.0.1",
55
+ "@smithy/util-retry": "^2.0.0",
56
+ "@smithy/util-stream": "^2.0.1",
57
+ "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@smithy/service-client-documentation-generator": "^1.0.1",
61
+ "@smithy/service-client-documentation-generator": "^2.0.0",
62
62
  "@tsconfig/node14": "1.0.3",
63
63
  "@types/node": "^14.14.31",
64
64
  "concurrently": "7.0.0",