@aws-sdk/types 3.342.0 → 3.357.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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist-cjs/index.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./abort"), exports);
5
5
  tslib_1.__exportStar(require("./auth"), exports);
6
+ tslib_1.__exportStar(require("./blob/blob-types"), exports);
6
7
  tslib_1.__exportStar(require("./checksum"), exports);
7
8
  tslib_1.__exportStar(require("./client"), exports);
8
9
  tslib_1.__exportStar(require("./command"), exports);
@@ -28,5 +29,6 @@ tslib_1.__exportStar(require("./signature"), exports);
28
29
  tslib_1.__exportStar(require("./stream"), exports);
29
30
  tslib_1.__exportStar(require("./token"), exports);
30
31
  tslib_1.__exportStar(require("./transfer"), exports);
32
+ tslib_1.__exportStar(require("./uri"), exports);
31
33
  tslib_1.__exportStar(require("./util"), exports);
32
34
  tslib_1.__exportStar(require("./waiter"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./abort";
2
2
  export * from "./auth";
3
+ export * from "./blob/blob-types";
3
4
  export * from "./checksum";
4
5
  export * from "./client";
5
6
  export * from "./command";
@@ -25,5 +26,6 @@ export * from "./signature";
25
26
  export * from "./stream";
26
27
  export * from "./token";
27
28
  export * from "./transfer";
29
+ export * from "./uri";
28
30
  export * from "./util";
29
31
  export * from "./waiter";
package/dist-es/uri.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import { RuntimeBlobTypes } from "./runtime-blob-types.node";
2
+ /**
3
+ * @public
4
+ *
5
+ * A union of types that can be used as inputs for the service model
6
+ * "blob" type when it represents the request's entire payload or body.
7
+ *
8
+ * For example, in Lambda::invoke, the payload is modeled as a blob type
9
+ * and this union applies to it.
10
+ * In contrast, in Lambda::createFunction the Zip file option is a blob type,
11
+ * but is not the (entire) payload and this union does not apply.
12
+ *
13
+ * Note: not all types are signable by the standard SignatureV4 signer when
14
+ * used as the request body. For example, in Node.js a Readable stream
15
+ * is not signable by the default signer.
16
+ * They are included in the union because it may work in some cases,
17
+ * but the expected types are primarily string and Uint8Array.
18
+ *
19
+ * Additional details may be found in the internal
20
+ * function "getPayloadHash" in the SignatureV4 module.
21
+ */
22
+ export type BlobTypes = string | ArrayBuffer | ArrayBufferView | Uint8Array | RuntimeBlobTypes;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @public
3
+ *
4
+ * Additional blob types for the browser environment.
5
+ */
6
+ export type RuntimeBlobTypes = Blob | ReadableStream;
@@ -0,0 +1,9 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { Readable } from "stream";
4
+ /**
5
+ * @public
6
+ *
7
+ * Additional blob types for the Node.js environment.
8
+ */
9
+ export type RuntimeBlobTypes = Readable | Buffer;
@@ -1,4 +1,5 @@
1
1
  import { AbortSignal } from "./abort";
2
+ import { URI } from "./uri";
2
3
  /**
3
4
  * @public
4
5
  *
@@ -80,7 +81,7 @@ export interface Endpoint {
80
81
  * Interface an HTTP request class. Contains
81
82
  * addressing information in addition to standard message properties.
82
83
  */
83
- export interface HttpRequest extends HttpMessage, Endpoint {
84
+ export interface HttpRequest extends HttpMessage, URI {
84
85
  method: string;
85
86
  }
86
87
  /**
@@ -91,6 +92,7 @@ export interface HttpRequest extends HttpMessage, Endpoint {
91
92
  */
92
93
  export interface HttpResponse extends HttpMessage {
93
94
  statusCode: number;
95
+ reason?: string;
94
96
  }
95
97
  /**
96
98
  * @public
@@ -1,5 +1,6 @@
1
1
  export * from "./abort";
2
2
  export * from "./auth";
3
+ export * from "./blob/blob-types";
3
4
  export * from "./checksum";
4
5
  export * from "./client";
5
6
  export * from "./command";
@@ -25,5 +26,6 @@ export * from "./signature";
25
26
  export * from "./stream";
26
27
  export * from "./token";
27
28
  export * from "./transfer";
29
+ export * from "./uri";
28
30
  export * from "./util";
29
31
  export * from "./waiter";
@@ -0,0 +1,7 @@
1
+ import { RuntimeBlobTypes } from "./runtime-blob-types.node";
2
+ export type BlobTypes =
3
+ | string
4
+ | ArrayBuffer
5
+ | ArrayBufferView
6
+ | Uint8Array
7
+ | RuntimeBlobTypes;
@@ -0,0 +1 @@
1
+ export type RuntimeBlobTypes = Blob | ReadableStream;
@@ -0,0 +1,2 @@
1
+ import { Readable } from "stream";
2
+ export type RuntimeBlobTypes = Readable | Buffer;
@@ -1,4 +1,5 @@
1
1
  import { AbortSignal } from "./abort";
2
+ import { URI } from "./uri";
2
3
  export interface Headers extends Map<string, string> {
3
4
  withHeader(headerName: string, headerValue: string): Headers;
4
5
  withoutHeader(headerName: string): Headers;
@@ -16,11 +17,12 @@ export interface Endpoint {
16
17
  path: string;
17
18
  query?: QueryParameterBag;
18
19
  }
19
- export interface HttpRequest extends HttpMessage, Endpoint {
20
+ export interface HttpRequest extends HttpMessage, URI {
20
21
  method: string;
21
22
  }
22
23
  export interface HttpResponse extends HttpMessage {
23
24
  statusCode: number;
25
+ reason?: string;
24
26
  }
25
27
  export interface ResolvedHttpResponse extends HttpResponse {
26
28
  body: string;
@@ -1,5 +1,6 @@
1
1
  export * from "./abort";
2
2
  export * from "./auth";
3
+ export * from "./blob/blob-types";
3
4
  export * from "./checksum";
4
5
  export * from "./client";
5
6
  export * from "./command";
@@ -25,5 +26,6 @@ export * from "./signature";
25
26
  export * from "./stream";
26
27
  export * from "./token";
27
28
  export * from "./transfer";
29
+ export * from "./uri";
28
30
  export * from "./util";
29
31
  export * from "./waiter";
@@ -0,0 +1,11 @@
1
+ import { QueryParameterBag } from "./http";
2
+ export type URI = {
3
+ protocol: string;
4
+ hostname: string;
5
+ port?: number;
6
+ path: string;
7
+ query?: QueryParameterBag;
8
+ username?: string;
9
+ password?: string;
10
+ fragment?: string;
11
+ };
@@ -0,0 +1,17 @@
1
+ import { QueryParameterBag } from "./http";
2
+ /**
3
+ * @internal
4
+ *
5
+ * Represents the components parts of a Uniform Resource Identifier used to
6
+ * construct the target location of a Request.
7
+ */
8
+ export type URI = {
9
+ protocol: string;
10
+ hostname: string;
11
+ port?: number;
12
+ path: string;
13
+ query?: QueryParameterBag;
14
+ username?: string;
15
+ password?: string;
16
+ fragment?: string;
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.342.0",
3
+ "version": "3.357.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -53,5 +53,11 @@
53
53
  },
54
54
  "typedoc": {
55
55
  "entryPoint": "src/index.ts"
56
+ },
57
+ "browser": {
58
+ "./dist-es/blob/runtime-blob-types.node": "./dist-es/blob/runtime-blob-types.browser"
59
+ },
60
+ "react-native": {
61
+ "./dist-es/blob/runtime-blob-types.node": "./dist-es/blob/runtime-blob-types.browser"
56
62
  }
57
63
  }