@aws-sdk/types 3.110.0 → 3.160.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/eventStream.d.ts +19 -3
- package/dist-types/index.d.ts +2 -0
- package/dist-types/serde.d.ts +15 -0
- package/dist-types/token.d.ts +16 -0
- package/dist-types/ts3.4/endpoint.d.ts +22 -0
- package/dist-types/ts3.4/eventStream.d.ts +12 -3
- package/dist-types/ts3.4/index.d.ts +2 -0
- package/dist-types/ts3.4/serde.d.ts +8 -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.160.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.159.0...v3.160.0) (2022-08-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.159.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.158.0...v3.159.0) (2022-08-26)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* **types:** add types to sdk stream utility mixin ([#3779](https://github.com/aws/aws-sdk-js-v3/issues/3779)) ([f311cab](https://github.com/aws/aws-sdk-js-v3/commit/f311cab406a16274dc2487dfe55c36b45a5811f5))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
6
37
|
# [3.110.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.109.0...v3.110.0) (2022-06-14)
|
|
7
38
|
|
|
8
39
|
**Note:** Version bump only for package @aws-sdk/types
|
|
@@ -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
|
+
}
|
|
@@ -59,9 +59,25 @@ export interface Int64 {
|
|
|
59
59
|
export interface EventStreamSerdeContext {
|
|
60
60
|
eventStreamMarshaller: EventStreamMarshaller;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
/**
|
|
63
|
+
* A function which deserializes binary event stream message into modeled shape.
|
|
64
|
+
*/
|
|
65
|
+
export interface EventStreamMarshallerDeserFn<StreamType> {
|
|
66
|
+
<T>(body: StreamType, deserializer: (input: Record<string, Message>) => Promise<T>): AsyncIterable<T>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A function that serializes modeled shape into binary stream message.
|
|
70
|
+
*/
|
|
71
|
+
export interface EventStreamMarshallerSerFn<StreamType> {
|
|
72
|
+
<T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* An interface which provides functions for serializing and deserializing binary event stream
|
|
76
|
+
* to/from corresponsing modeled shape.
|
|
77
|
+
*/
|
|
78
|
+
export interface EventStreamMarshaller<StreamType = any> {
|
|
79
|
+
deserialize: EventStreamMarshallerDeserFn<StreamType>;
|
|
80
|
+
serialize: EventStreamMarshallerSerFn<StreamType>;
|
|
65
81
|
}
|
|
66
82
|
export interface EventStreamRequestSigner {
|
|
67
83
|
sign(request: HttpRequest): Promise<HttpRequest>;
|
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,3 +47,18 @@ export interface ResponseDeserializer<OutputType, ResponseType = any, Context =
|
|
|
47
47
|
*/
|
|
48
48
|
(output: ResponseType, context: Context): Promise<OutputType>;
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* The interface contains mix-in utility functions to transfer the runtime-specific
|
|
52
|
+
* stream implementation to specified format. Each stream can ONLY be transformed
|
|
53
|
+
* once.
|
|
54
|
+
*/
|
|
55
|
+
export interface SdkStreamMixin {
|
|
56
|
+
transformToByteArray: () => Promise<Uint8Array>;
|
|
57
|
+
transformToString: (encoding?: string) => Promise<string>;
|
|
58
|
+
transformToWebStream: () => ReadableStream;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The type describing a runtime-specific stream implementation with mix-in
|
|
62
|
+
* utility functions.
|
|
63
|
+
*/
|
|
64
|
+
export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
|
|
@@ -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
|
+
}
|
|
@@ -53,9 +53,18 @@ export interface Int64 {
|
|
|
53
53
|
export interface EventStreamSerdeContext {
|
|
54
54
|
eventStreamMarshaller: EventStreamMarshaller;
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
|
|
57
|
+
export interface EventStreamMarshallerDeserFn<StreamType> {
|
|
58
|
+
<T>(body: StreamType, deserializer: (input: Record<string, Message>) => Promise<T>): AsyncIterable<T>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface EventStreamMarshallerSerFn<StreamType> {
|
|
62
|
+
<T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface EventStreamMarshaller<StreamType = any> {
|
|
66
|
+
deserialize: EventStreamMarshallerDeserFn<StreamType>;
|
|
67
|
+
serialize: EventStreamMarshallerSerFn<StreamType>;
|
|
59
68
|
}
|
|
60
69
|
export interface EventStreamRequestSigner {
|
|
61
70
|
sign(request: HttpRequest): Promise<HttpRequest>;
|
|
@@ -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";
|
|
@@ -27,3 +27,11 @@ export interface ResponseDeserializer<OutputType, ResponseType = any, Context =
|
|
|
27
27
|
|
|
28
28
|
(output: ResponseType, context: Context): Promise<OutputType>;
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
export interface SdkStreamMixin {
|
|
32
|
+
transformToByteArray: () => Promise<Uint8Array>;
|
|
33
|
+
transformToString: (encoding?: string) => Promise<string>;
|
|
34
|
+
transformToWebStream: () => ReadableStream;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
|