@aws-sdk/client-mediastore-data 3.377.0 → 3.378.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.
@@ -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 { MediaStoreDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaStoreDataClient";
5
5
  import { GetObjectRequest, GetObjectResponse } from "../models/models_0";
6
6
  /**
@@ -19,7 +19,8 @@ export interface GetObjectCommandInput extends GetObjectRequest {
19
19
  *
20
20
  * The output of {@link GetObjectCommand}.
21
21
  */
22
- export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectResponse, "Body">, __MetadataBearer {
22
+ export interface GetObjectCommandOutput extends Omit<GetObjectResponse, "Body">, __MetadataBearer {
23
+ Body?: 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 { MediaStoreDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaStoreDataClient";
6
5
  import { PutObjectRequest, PutObjectResponse } from "../models/models_0";
7
6
  /**
8
7
  * @public
9
8
  */
10
9
  export { __MetadataBearer, $Command };
11
- export type PutObjectCommandInputType = Omit<PutObjectRequest, "Body"> & {
12
- /**
13
- * For *`PutObjectRequest["Body"]`*, see {@link PutObjectRequest.Body}.
14
- */
15
- Body: PutObjectRequest["Body"] | string | Uint8Array | Buffer;
16
- };
17
10
  /**
18
11
  * @public
19
12
  *
20
13
  * The input for {@link PutObjectCommand}.
21
14
  */
22
- export interface PutObjectCommandInput extends PutObjectCommandInputType {
15
+ export interface PutObjectCommandInput extends Omit<PutObjectRequest, "Body"> {
16
+ Body: StreamingBlobPayloadInputTypes;
23
17
  }
24
18
  /**
25
19
  * @public
@@ -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 { MediaStoreDataServiceException as __BaseException } from "./MediaStoreDataServiceException";
5
4
  /**
6
5
  * @public
@@ -131,7 +130,7 @@ export interface GetObjectResponse {
131
130
  /**
132
131
  * <p>The bytes of the object. </p>
133
132
  */
134
- Body?: Readable | ReadableStream | Blob;
133
+ Body?: StreamingBlobTypes;
135
134
  /**
136
135
  * <p>An optional <code>CacheControl</code> header that allows the caller to control the
137
136
  * object's cache behavior. Headers can be passed in as specified in the HTTP spec at <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9">https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9</a>.</p>
@@ -296,7 +295,7 @@ export interface PutObjectRequest {
296
295
  /**
297
296
  * <p>The bytes to be stored. </p>
298
297
  */
299
- Body: Readable | ReadableStream | Blob | undefined;
298
+ Body: StreamingBlobTypes | undefined;
300
299
  /**
301
300
  * <p>The path (including the file name) where the object is stored in the container.
302
301
  * Format: <folder name>/<folder name>/<file name></p>
@@ -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
  MediaStoreDataClientResolvedConfig,
@@ -16,8 +16,10 @@ import { GetObjectRequest, GetObjectResponse } from "../models/models_0";
16
16
  export { __MetadataBearer, $Command };
17
17
  export interface GetObjectCommandInput extends GetObjectRequest {}
18
18
  export interface GetObjectCommandOutput
19
- extends __WithSdkStreamMixin<GetObjectResponse, "Body">,
20
- __MetadataBearer {}
19
+ extends Pick<GetObjectResponse, Exclude<keyof GetObjectResponse, "Body">>,
20
+ __MetadataBearer {
21
+ Body?: StreamingBlobPayloadOutputTypes;
22
+ }
21
23
  export declare class GetObjectCommand extends $Command<
22
24
  GetObjectCommandInput,
23
25
  GetObjectCommandOutput,
@@ -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
  MediaStoreDataClientResolvedConfig,
@@ -13,13 +14,10 @@ import {
13
14
  } from "../MediaStoreDataClient";
14
15
  import { PutObjectRequest, PutObjectResponse } from "../models/models_0";
15
16
  export { __MetadataBearer, $Command };
16
- export type PutObjectCommandInputType = Pick<
17
- PutObjectRequest,
18
- Exclude<keyof PutObjectRequest, "Body">
19
- > & {
20
- Body: PutObjectRequest["Body"] | string | Uint8Array | Buffer;
21
- };
22
- export interface PutObjectCommandInput extends PutObjectCommandInputType {}
17
+ export interface PutObjectCommandInput
18
+ extends Pick<PutObjectRequest, Exclude<keyof PutObjectRequest, "Body">> {
19
+ Body: StreamingBlobPayloadInputTypes;
20
+ }
23
21
  export interface PutObjectCommandOutput
24
22
  extends PutObjectResponse,
25
23
  __MetadataBearer {}
@@ -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 { MediaStoreDataServiceException as __BaseException } from "./MediaStoreDataServiceException";
4
4
  export declare class ContainerNotFoundException extends __BaseException {
5
5
  readonly name: "ContainerNotFoundException";
@@ -44,7 +44,7 @@ export interface GetObjectRequest {
44
44
  Range?: string;
45
45
  }
46
46
  export interface GetObjectResponse {
47
- Body?: Readable | ReadableStream | Blob;
47
+ Body?: StreamingBlobTypes;
48
48
  CacheControl?: string;
49
49
  ContentRange?: string;
50
50
  ContentLength?: number;
@@ -97,7 +97,7 @@ export declare const UploadAvailability: {
97
97
  export type UploadAvailability =
98
98
  (typeof UploadAvailability)[keyof typeof UploadAvailability];
99
99
  export interface PutObjectRequest {
100
- Body: Readable | ReadableStream | Blob | undefined;
100
+ Body: StreamingBlobTypes | undefined;
101
101
  Path: string | undefined;
102
102
  ContentType?: string;
103
103
  CacheControl?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediastore-data",
3
3
  "description": "AWS SDK for JavaScript Mediastore Data Client for Node.js, Browser and React Native",
4
- "version": "3.377.0",
4
+ "version": "3.378.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",
@@ -23,44 +23,44 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "3.0.0",
25
25
  "@aws-crypto/sha256-js": "3.0.0",
26
- "@aws-sdk/client-sts": "3.377.0",
27
- "@aws-sdk/credential-provider-node": "3.370.0",
28
- "@aws-sdk/middleware-host-header": "3.370.0",
29
- "@aws-sdk/middleware-logger": "3.370.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.370.0",
31
- "@aws-sdk/middleware-signing": "3.370.0",
32
- "@aws-sdk/middleware-user-agent": "3.370.0",
33
- "@aws-sdk/types": "3.370.0",
34
- "@aws-sdk/util-endpoints": "3.370.0",
35
- "@aws-sdk/util-user-agent-browser": "3.370.0",
36
- "@aws-sdk/util-user-agent-node": "3.370.0",
37
- "@smithy/config-resolver": "^1.0.1",
38
- "@smithy/fetch-http-handler": "^1.0.1",
39
- "@smithy/hash-node": "^1.0.1",
40
- "@smithy/invalid-dependency": "^1.0.1",
41
- "@smithy/middleware-content-length": "^1.0.1",
42
- "@smithy/middleware-endpoint": "^1.0.2",
43
- "@smithy/middleware-retry": "^1.0.3",
44
- "@smithy/middleware-serde": "^1.0.1",
45
- "@smithy/middleware-stack": "^1.0.1",
46
- "@smithy/node-config-provider": "^1.0.1",
47
- "@smithy/node-http-handler": "^1.0.2",
48
- "@smithy/protocol-http": "^1.1.0",
49
- "@smithy/smithy-client": "^1.0.3",
50
- "@smithy/types": "^1.1.0",
51
- "@smithy/url-parser": "^1.0.1",
52
- "@smithy/util-base64": "^1.0.1",
53
- "@smithy/util-body-length-browser": "^1.0.1",
54
- "@smithy/util-body-length-node": "^1.0.1",
55
- "@smithy/util-defaults-mode-browser": "^1.0.1",
56
- "@smithy/util-defaults-mode-node": "^1.0.1",
57
- "@smithy/util-retry": "^1.0.3",
58
- "@smithy/util-stream": "^1.0.1",
59
- "@smithy/util-utf8": "^1.0.1",
26
+ "@aws-sdk/client-sts": "3.378.0",
27
+ "@aws-sdk/credential-provider-node": "3.378.0",
28
+ "@aws-sdk/middleware-host-header": "3.378.0",
29
+ "@aws-sdk/middleware-logger": "3.378.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.378.0",
31
+ "@aws-sdk/middleware-signing": "3.378.0",
32
+ "@aws-sdk/middleware-user-agent": "3.378.0",
33
+ "@aws-sdk/types": "3.378.0",
34
+ "@aws-sdk/util-endpoints": "3.378.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.378.0",
36
+ "@aws-sdk/util-user-agent-node": "3.378.0",
37
+ "@smithy/config-resolver": "^2.0.1",
38
+ "@smithy/fetch-http-handler": "^2.0.1",
39
+ "@smithy/hash-node": "^2.0.1",
40
+ "@smithy/invalid-dependency": "^2.0.1",
41
+ "@smithy/middleware-content-length": "^2.0.1",
42
+ "@smithy/middleware-endpoint": "^2.0.1",
43
+ "@smithy/middleware-retry": "^2.0.1",
44
+ "@smithy/middleware-serde": "^2.0.1",
45
+ "@smithy/middleware-stack": "^2.0.0",
46
+ "@smithy/node-config-provider": "^2.0.1",
47
+ "@smithy/node-http-handler": "^2.0.1",
48
+ "@smithy/protocol-http": "^2.0.1",
49
+ "@smithy/smithy-client": "^2.0.1",
50
+ "@smithy/types": "^2.0.2",
51
+ "@smithy/url-parser": "^2.0.1",
52
+ "@smithy/util-base64": "^2.0.0",
53
+ "@smithy/util-body-length-browser": "^2.0.0",
54
+ "@smithy/util-body-length-node": "^2.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^2.0.1",
56
+ "@smithy/util-defaults-mode-node": "^2.0.1",
57
+ "@smithy/util-retry": "^2.0.0",
58
+ "@smithy/util-stream": "^2.0.1",
59
+ "@smithy/util-utf8": "^2.0.0",
60
60
  "tslib": "^2.5.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@smithy/service-client-documentation-generator": "^1.0.1",
63
+ "@smithy/service-client-documentation-generator": "^2.0.0",
64
64
  "@tsconfig/node14": "1.0.3",
65
65
  "@types/chai": "^4.2.11",
66
66
  "@types/mocha": "^8.0.4",