@aws-sdk/types 3.127.0 → 3.162.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/CHANGELOG.md +31 -0
- package/dist-cjs/endpoint.js +8 -0
- package/dist-cjs/index.js +2 -0
- package/dist-cjs/token.js +2 -0
- package/dist-es/endpoint.js +5 -0
- package/dist-es/index.js +2 -0
- package/dist-es/token.js +1 -0
- package/dist-types/endpoint.d.ts +31 -0
- package/dist-types/index.d.ts +2 -0
- package/dist-types/serde.d.ts +13 -0
- package/dist-types/token.d.ts +16 -0
- package/dist-types/ts3.4/endpoint.d.ts +22 -0
- package/dist-types/ts3.4/index.d.ts +2 -0
- package/dist-types/ts3.4/serde.d.ts +5 -0
- package/dist-types/ts3.4/token.d.ts +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,37 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **types:** declare ReadableStream type without requiring dom ([#3889](https://github.com/aws/aws-sdk-js-v3/issues/3889)) ([061b5f5](https://github.com/aws/aws-sdk-js-v3/commit/061b5f5812278930207b5c50c0c9f61a26a987ad))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.160.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.159.0...v3.160.0) (2022-08-29)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.159.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.158.0...v3.159.0) (2022-08-26)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **token-providers:** add token based authentication ([#3883](https://github.com/aws/aws-sdk-js-v3/issues/3883)) ([9f31345](https://github.com/aws/aws-sdk-js-v3/commit/9f313451a31b9bc317c277d6ab86e1d328066ad8))
|
|
31
|
+
* **util-endpoints:** add ruleSet standard library ([#3880](https://github.com/aws/aws-sdk-js-v3/issues/3880)) ([4ffc67b](https://github.com/aws/aws-sdk-js-v3/commit/4ffc67b6f9c8349f93ccf91b9b3aa17d6a22b06e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
6
37
|
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
38
|
|
|
8
39
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EndpointURLScheme = void 0;
|
|
4
|
+
var EndpointURLScheme;
|
|
5
|
+
(function (EndpointURLScheme) {
|
|
6
|
+
EndpointURLScheme["HTTP"] = "http";
|
|
7
|
+
EndpointURLScheme["HTTPS"] = "https";
|
|
8
|
+
})(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {}));
|
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./client"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./command"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./credentials"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./crypto"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./endpoint"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./eventStream"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./http"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./logger"), exports);
|
|
@@ -17,6 +18,7 @@ tslib_1.__exportStar(require("./serde"), exports);
|
|
|
17
18
|
tslib_1.__exportStar(require("./shapes"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./signature"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./stream"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./token"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./transfer"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./util"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./waiter"), exports);
|
package/dist-es/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./client";
|
|
|
3
3
|
export * from "./command";
|
|
4
4
|
export * from "./credentials";
|
|
5
5
|
export * from "./crypto";
|
|
6
|
+
export * from "./endpoint";
|
|
6
7
|
export * from "./eventStream";
|
|
7
8
|
export * from "./http";
|
|
8
9
|
export * from "./logger";
|
|
@@ -14,6 +15,7 @@ export * from "./serde";
|
|
|
14
15
|
export * from "./shapes";
|
|
15
16
|
export * from "./signature";
|
|
16
17
|
export * from "./stream";
|
|
18
|
+
export * from "./token";
|
|
17
19
|
export * from "./transfer";
|
|
18
20
|
export * from "./util";
|
|
19
21
|
export * from "./waiter";
|
package/dist-es/token.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum EndpointURLScheme {
|
|
2
|
+
HTTP = "http",
|
|
3
|
+
HTTPS = "https"
|
|
4
|
+
}
|
|
5
|
+
export interface EndpointURL {
|
|
6
|
+
/**
|
|
7
|
+
* The URL scheme such as http or https.
|
|
8
|
+
*/
|
|
9
|
+
scheme: EndpointURLScheme;
|
|
10
|
+
/**
|
|
11
|
+
* The authority is the host and optional port component of the URL.
|
|
12
|
+
*/
|
|
13
|
+
authority: string;
|
|
14
|
+
/**
|
|
15
|
+
* The parsed path segment of the URL.
|
|
16
|
+
* This value is as-is as provided by the user.
|
|
17
|
+
*/
|
|
18
|
+
path: string;
|
|
19
|
+
/**
|
|
20
|
+
* A boolean indicating whether the authority is an IP address.
|
|
21
|
+
*/
|
|
22
|
+
isIp: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare type EndpointObjectProperty = string | boolean | {
|
|
25
|
+
[key: string]: EndpointObjectProperty;
|
|
26
|
+
} | EndpointObjectProperty[];
|
|
27
|
+
export interface EndpointV2 {
|
|
28
|
+
url: URL;
|
|
29
|
+
properties?: Record<string, EndpointObjectProperty>;
|
|
30
|
+
headers?: Record<string, string[]>;
|
|
31
|
+
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./client";
|
|
|
3
3
|
export * from "./command";
|
|
4
4
|
export * from "./credentials";
|
|
5
5
|
export * from "./crypto";
|
|
6
|
+
export * from "./endpoint";
|
|
6
7
|
export * from "./eventStream";
|
|
7
8
|
export * from "./http";
|
|
8
9
|
export * from "./logger";
|
|
@@ -14,6 +15,7 @@ export * from "./serde";
|
|
|
14
15
|
export * from "./shapes";
|
|
15
16
|
export * from "./signature";
|
|
16
17
|
export * from "./stream";
|
|
18
|
+
export * from "./token";
|
|
17
19
|
export * from "./transfer";
|
|
18
20
|
export * from "./util";
|
|
19
21
|
export * from "./waiter";
|
package/dist-types/serde.d.ts
CHANGED
|
@@ -47,6 +47,19 @@ export interface ResponseDeserializer<OutputType, ResponseType = any, Context =
|
|
|
47
47
|
*/
|
|
48
48
|
(output: ResponseType, context: Context): Promise<OutputType>;
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Declare ReadableStream in case dom.d.ts is not added to the tsconfig lib causing
|
|
52
|
+
* ReadableStream interface is not defined. For developers with dom.d.ts added,
|
|
53
|
+
* the ReadableStream interface will be merged correctly.
|
|
54
|
+
*
|
|
55
|
+
* This is also required for any clients with streaming interface where ReadableStream
|
|
56
|
+
* type is also referred. The type is only declared here once since this @aws-sdk/types
|
|
57
|
+
* is depended by all @aws-sdk packages.
|
|
58
|
+
*/
|
|
59
|
+
declare global {
|
|
60
|
+
export interface ReadableStream {
|
|
61
|
+
}
|
|
62
|
+
}
|
|
50
63
|
/**
|
|
51
64
|
* The interface contains mix-in utility functions to transfer the runtime-specific
|
|
52
65
|
* stream implementation to specified format. Each stream can ONLY be transformed
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Provider } from "./util";
|
|
2
|
+
/**
|
|
3
|
+
* An object representing temporary or permanent AWS token.
|
|
4
|
+
*/
|
|
5
|
+
export interface Token {
|
|
6
|
+
/**
|
|
7
|
+
*The literal token string
|
|
8
|
+
*/
|
|
9
|
+
readonly token: string;
|
|
10
|
+
/**
|
|
11
|
+
* A {Date} when these token will no longer be accepted.
|
|
12
|
+
* When expiration is not defined, the token is assumed to be permanent.
|
|
13
|
+
*/
|
|
14
|
+
readonly expiration?: Date;
|
|
15
|
+
}
|
|
16
|
+
export declare type TokenProvider = Provider<Token>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum EndpointURLScheme {
|
|
2
|
+
HTTP = "http",
|
|
3
|
+
HTTPS = "https"
|
|
4
|
+
}
|
|
5
|
+
export interface EndpointURL {
|
|
6
|
+
|
|
7
|
+
scheme: EndpointURLScheme;
|
|
8
|
+
|
|
9
|
+
authority: string;
|
|
10
|
+
|
|
11
|
+
path: string;
|
|
12
|
+
|
|
13
|
+
isIp: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare type EndpointObjectProperty = string | boolean | {
|
|
16
|
+
[key: string]: EndpointObjectProperty;
|
|
17
|
+
} | EndpointObjectProperty[];
|
|
18
|
+
export interface EndpointV2 {
|
|
19
|
+
url: URL;
|
|
20
|
+
properties?: Record<string, EndpointObjectProperty>;
|
|
21
|
+
headers?: Record<string, string[]>;
|
|
22
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./client";
|
|
|
3
3
|
export * from "./command";
|
|
4
4
|
export * from "./credentials";
|
|
5
5
|
export * from "./crypto";
|
|
6
|
+
export * from "./endpoint";
|
|
6
7
|
export * from "./eventStream";
|
|
7
8
|
export * from "./http";
|
|
8
9
|
export * from "./logger";
|
|
@@ -14,6 +15,7 @@ export * from "./serde";
|
|
|
14
15
|
export * from "./shapes";
|
|
15
16
|
export * from "./signature";
|
|
16
17
|
export * from "./stream";
|
|
18
|
+
export * from "./token";
|
|
17
19
|
export * from "./transfer";
|
|
18
20
|
export * from "./util";
|
|
19
21
|
export * from "./waiter";
|
|
@@ -28,6 +28,11 @@ export interface ResponseDeserializer<OutputType, ResponseType = any, Context =
|
|
|
28
28
|
(output: ResponseType, context: Context): Promise<OutputType>;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
declare global {
|
|
32
|
+
export interface ReadableStream {
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
31
36
|
export interface SdkStreamMixin {
|
|
32
37
|
transformToByteArray: () => Promise<Uint8Array>;
|
|
33
38
|
transformToString: (encoding?: string) => Promise<string>;
|