@aws-sdk/types 3.78.0 → 3.127.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 +27 -0
- package/dist-types/eventStream.d.ts +20 -8
- package/dist-types/http.d.ts +2 -6
- package/dist-types/profile.d.ts +6 -5
- package/dist-types/serde.d.ts +15 -0
- package/dist-types/ts3.4/eventStream.d.ts +13 -8
- package/dist-types/ts3.4/http.d.ts +2 -6
- package/dist-types/ts3.4/profile.d.ts +4 -5
- package/dist-types/ts3.4/serde.d.ts +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.110.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.109.0...v3.110.0) (2022-06-14)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.109.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.108.1...v3.109.0) (2022-06-13)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -10,9 +10,7 @@ export interface Message {
|
|
|
10
10
|
headers: MessageHeaders;
|
|
11
11
|
body: Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
14
|
-
[name: string]: MessageHeaderValue;
|
|
15
|
-
}
|
|
13
|
+
export declare type MessageHeaders = Record<string, MessageHeaderValue>;
|
|
16
14
|
export interface BooleanHeaderValue {
|
|
17
15
|
type: "boolean";
|
|
18
16
|
value: boolean;
|
|
@@ -61,11 +59,25 @@ export interface Int64 {
|
|
|
61
59
|
export interface EventStreamSerdeContext {
|
|
62
60
|
eventStreamMarshaller: EventStreamMarshaller;
|
|
63
61
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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>;
|
|
69
81
|
}
|
|
70
82
|
export interface EventStreamRequestSigner {
|
|
71
83
|
sign(request: HttpRequest): Promise<HttpRequest>;
|
package/dist-types/http.d.ts
CHANGED
|
@@ -37,9 +37,7 @@ export interface Headers extends Map<string, string> {
|
|
|
37
37
|
* properties in favor of the other. The headers may or may not be combined, and
|
|
38
38
|
* the SDK will not deterministically select which header candidate to use.
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
}
|
|
40
|
+
export declare type HeaderBag = Record<string, string>;
|
|
43
41
|
/**
|
|
44
42
|
* Represents an HTTP message with headers and an optional static or streaming
|
|
45
43
|
* body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;
|
|
@@ -53,9 +51,7 @@ export interface HttpMessage {
|
|
|
53
51
|
* second being used when a parameter contains a list of values. Value can be set
|
|
54
52
|
* to null when query is not in key-value pairs shape
|
|
55
53
|
*/
|
|
56
|
-
export
|
|
57
|
-
[key: string]: string | Array<string> | null;
|
|
58
|
-
}
|
|
54
|
+
export declare type QueryParameterBag = Record<string, string | Array<string> | null>;
|
|
59
55
|
export interface Endpoint {
|
|
60
56
|
protocol: string;
|
|
61
57
|
hostname: string;
|
package/dist-types/profile.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export declare type IniSection = Record<string, string | undefined>;
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated: Please use IniSection
|
|
4
|
+
*/
|
|
5
|
+
export interface Profile extends IniSection {
|
|
6
6
|
}
|
|
7
|
+
export declare type ParsedIniData = Record<string, IniSection>;
|
|
7
8
|
export interface SharedConfigFiles {
|
|
8
9
|
credentialsFile: ParsedIniData;
|
|
9
10
|
configFile: ParsedIniData;
|
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;
|
|
@@ -6,9 +6,7 @@ export interface Message {
|
|
|
6
6
|
headers: MessageHeaders;
|
|
7
7
|
body: Uint8Array;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
[name: string]: MessageHeaderValue;
|
|
11
|
-
}
|
|
9
|
+
export declare type MessageHeaders = Record<string, MessageHeaderValue>;
|
|
12
10
|
export interface BooleanHeaderValue {
|
|
13
11
|
type: "boolean";
|
|
14
12
|
value: boolean;
|
|
@@ -55,11 +53,18 @@ export interface Int64 {
|
|
|
55
53
|
export interface EventStreamSerdeContext {
|
|
56
54
|
eventStreamMarshaller: EventStreamMarshaller;
|
|
57
55
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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>;
|
|
63
68
|
}
|
|
64
69
|
export interface EventStreamRequestSigner {
|
|
65
70
|
sign(request: HttpRequest): Promise<HttpRequest>;
|
|
@@ -7,18 +7,14 @@ export interface Headers extends Map<string, string> {
|
|
|
7
7
|
withoutHeader(headerName: string): Headers;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
}
|
|
10
|
+
export declare type HeaderBag = Record<string, string>;
|
|
13
11
|
|
|
14
12
|
export interface HttpMessage {
|
|
15
13
|
headers: HeaderBag;
|
|
16
14
|
body?: any;
|
|
17
15
|
}
|
|
18
16
|
|
|
19
|
-
export
|
|
20
|
-
[key: string]: string | Array<string> | null;
|
|
21
|
-
}
|
|
17
|
+
export declare type QueryParameterBag = Record<string, string | Array<string> | null>;
|
|
22
18
|
export interface Endpoint {
|
|
23
19
|
protocol: string;
|
|
24
20
|
hostname: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface ParsedIniData {
|
|
5
|
-
[key: string]: Profile;
|
|
1
|
+
export declare type IniSection = Record<string, string | undefined>;
|
|
2
|
+
|
|
3
|
+
export interface Profile extends IniSection {
|
|
6
4
|
}
|
|
5
|
+
export declare type ParsedIniData = Record<string, IniSection>;
|
|
7
6
|
export interface SharedConfigFiles {
|
|
8
7
|
credentialsFile: ParsedIniData;
|
|
9
8
|
configFile: ParsedIniData;
|
|
@@ -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;
|