@aws-sdk/types 3.170.0 → 3.178.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 +22 -0
- package/dist-cjs/auth.js +2 -0
- package/dist-cjs/index.js +1 -0
- package/dist-es/auth.js +1 -0
- package/dist-es/index.js +1 -0
- package/dist-types/auth.d.ts +18 -0
- package/dist-types/credentials.d.ts +7 -5
- package/dist-types/endpoint.d.ts +7 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-types/middleware.d.ts +12 -0
- package/dist-types/ts3.4/abort.d.ts +0 -4
- package/dist-types/ts3.4/auth.d.ts +6 -0
- package/dist-types/ts3.4/client.d.ts +0 -2
- package/dist-types/ts3.4/credentials.d.ts +4 -6
- package/dist-types/ts3.4/crypto.d.ts +0 -5
- package/dist-types/ts3.4/endpoint.d.ts +7 -5
- package/dist-types/ts3.4/eventStream.d.ts +0 -5
- package/dist-types/ts3.4/http.d.ts +0 -9
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/logger.d.ts +0 -2
- package/dist-types/ts3.4/middleware.d.ts +3 -22
- package/dist-types/ts3.4/pagination.d.ts +0 -3
- package/dist-types/ts3.4/profile.d.ts +0 -1
- package/dist-types/ts3.4/response.d.ts +0 -5
- package/dist-types/ts3.4/serde.d.ts +0 -5
- package/dist-types/ts3.4/shapes.d.ts +0 -8
- package/dist-types/ts3.4/signature.d.ts +0 -6
- package/dist-types/ts3.4/stream.d.ts +0 -1
- package/dist-types/ts3.4/token.d.ts +0 -2
- package/dist-types/ts3.4/util.d.ts +1 -15
- package/dist-types/ts3.4/waiter.d.ts +0 -5
- package/dist-types/util.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.178.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.177.0...v3.178.0) (2022-09-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **endpoint:** endpoints 2.0 existing package changes ([#3947](https://github.com/aws/aws-sdk-js-v3/issues/3947)) ([df99fc3](https://github.com/aws/aws-sdk-js-v3/commit/df99fc33a43982e1c59000721a535f6fe77a3c23))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.171.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.170.0...v3.171.0) (2022-09-14)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **endpoint:** util-endpoints and middleware-endpoint for endpoints 2.0 ([#3932](https://github.com/aws/aws-sdk-js-v3/issues/3932)) ([e81b7d0](https://github.com/aws/aws-sdk-js-v3/commit/e81b7d0920a74843a2a34857f41b0d6d93abc465))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @aws-sdk/types
|
package/dist-cjs/auth.js
ADDED
package/dist-cjs/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./abort"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./auth"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./client"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./command"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./credentials"), exports);
|
package/dist-es/auth.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication schemes represent a way that the service will authenticate the customer’s identity.
|
|
3
|
+
*/
|
|
4
|
+
export interface AuthScheme {
|
|
5
|
+
/**
|
|
6
|
+
* @example "v4" for SigV4
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* @example "s3"
|
|
11
|
+
*/
|
|
12
|
+
signingName: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example "us-east-1"
|
|
15
|
+
*/
|
|
16
|
+
signingScope: string;
|
|
17
|
+
properties: Record<string, unknown>;
|
|
18
|
+
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { Provider } from "./util";
|
|
2
|
+
export interface AwsCredentialIdentity {
|
|
3
|
+
/**
|
|
4
|
+
* A {Date} when the identity or credential will no longer be accepted.
|
|
5
|
+
*/
|
|
6
|
+
readonly expiration?: Date;
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* An object representing temporary or permanent AWS credentials.
|
|
4
10
|
*/
|
|
5
|
-
export interface Credentials {
|
|
11
|
+
export interface Credentials extends AwsCredentialIdentity {
|
|
6
12
|
/**
|
|
7
13
|
* AWS access key ID
|
|
8
14
|
*/
|
|
@@ -16,9 +22,5 @@ export interface Credentials {
|
|
|
16
22
|
* present for temporary credentials.
|
|
17
23
|
*/
|
|
18
24
|
readonly sessionToken?: string;
|
|
19
|
-
/**
|
|
20
|
-
* A {Date} when these credentials will no longer be accepted.
|
|
21
|
-
*/
|
|
22
|
-
readonly expiration?: Date;
|
|
23
25
|
}
|
|
24
26
|
export declare type CredentialProvider = Provider<Credentials>;
|
package/dist-types/endpoint.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AuthScheme } from "./auth";
|
|
1
2
|
export interface EndpointPartition {
|
|
2
3
|
name: string;
|
|
3
4
|
dnsSuffix: string;
|
|
@@ -45,6 +46,11 @@ export declare type EndpointObjectProperty = string | boolean | {
|
|
|
45
46
|
} | EndpointObjectProperty[];
|
|
46
47
|
export interface EndpointV2 {
|
|
47
48
|
url: URL;
|
|
48
|
-
properties?:
|
|
49
|
+
properties?: {
|
|
50
|
+
authSchemes?: AuthScheme[];
|
|
51
|
+
} & Record<string, EndpointObjectProperty>;
|
|
49
52
|
headers?: Record<string, string[]>;
|
|
50
53
|
}
|
|
54
|
+
export declare type EndpointParameters = {
|
|
55
|
+
[name: string]: undefined | string | boolean;
|
|
56
|
+
};
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EndpointV2 } from "./endpoint";
|
|
1
2
|
import { Logger } from "./logger";
|
|
2
3
|
import { UserAgent } from "./util";
|
|
3
4
|
export interface InitializeHandlerArguments<Input extends object> {
|
|
@@ -298,6 +299,12 @@ export interface MiddlewareStack<Input extends object, Output extends object> ex
|
|
|
298
299
|
* bindings and handler priorities and tags are preserved in the copy.
|
|
299
300
|
*/
|
|
300
301
|
concat<InputType extends Input, OutputType extends Output>(from: MiddlewareStack<InputType, OutputType>): MiddlewareStack<InputType, OutputType>;
|
|
302
|
+
/**
|
|
303
|
+
* Returns a list of the current order of middleware in the stack.
|
|
304
|
+
* This does not execute the middleware functions, nor does it
|
|
305
|
+
* provide a reference to the stack itself.
|
|
306
|
+
*/
|
|
307
|
+
identify(): string[];
|
|
301
308
|
/**
|
|
302
309
|
* Builds a single handler function from zero or more middleware classes and
|
|
303
310
|
* a core handler. The core handler is meant to send command objects to AWS
|
|
@@ -326,6 +333,11 @@ export interface HandlerExecutionContext {
|
|
|
326
333
|
* config in clients.
|
|
327
334
|
*/
|
|
328
335
|
userAgent?: UserAgent;
|
|
336
|
+
/**
|
|
337
|
+
* Resolved by the endpointMiddleware function of @aws-sdk/middleware-endpoint
|
|
338
|
+
* in the serialization stage.
|
|
339
|
+
*/
|
|
340
|
+
endpointV2?: EndpointV2;
|
|
329
341
|
[key: string]: any;
|
|
330
342
|
}
|
|
331
343
|
export interface Pluggable<Input extends object, Output extends object> {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
export interface AbortHandler {
|
|
2
2
|
(this: AbortSignal, ev: any): any;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
4
|
export interface AbortSignal {
|
|
6
5
|
readonly aborted: boolean;
|
|
7
|
-
|
|
8
6
|
onabort: AbortHandler | null;
|
|
9
7
|
}
|
|
10
|
-
|
|
11
8
|
export interface AbortController {
|
|
12
9
|
readonly signal: AbortSignal;
|
|
13
|
-
|
|
14
10
|
abort(): void;
|
|
15
11
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command } from "./command";
|
|
2
2
|
import { MiddlewareStack } from "./middleware";
|
|
3
3
|
import { MetadataBearer } from "./response";
|
|
4
|
-
|
|
5
4
|
interface InvokeFunction<
|
|
6
5
|
InputTypes extends object,
|
|
7
6
|
OutputTypes extends MetadataBearer,
|
|
@@ -40,7 +39,6 @@ interface InvokeFunction<
|
|
|
40
39
|
cb?: (err: any, data?: OutputType) => void
|
|
41
40
|
): Promise<OutputType> | void;
|
|
42
41
|
}
|
|
43
|
-
|
|
44
42
|
export interface Client<
|
|
45
43
|
Input extends object,
|
|
46
44
|
Output extends MetadataBearer,
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Provider } from "./util";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export interface AwsCredentialIdentity {
|
|
3
|
+
readonly expiration?: Date;
|
|
4
|
+
}
|
|
5
|
+
export interface Credentials extends AwsCredentialIdentity {
|
|
4
6
|
readonly accessKeyId: string;
|
|
5
|
-
|
|
6
7
|
readonly secretAccessKey: string;
|
|
7
|
-
|
|
8
8
|
readonly sessionToken?: string;
|
|
9
|
-
|
|
10
|
-
readonly expiration?: Date;
|
|
11
9
|
}
|
|
12
10
|
export declare type CredentialProvider = Provider<Credentials>;
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
export declare type SourceData = string | ArrayBuffer | ArrayBufferView;
|
|
2
|
-
|
|
3
2
|
export interface Hash {
|
|
4
3
|
update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
|
|
5
|
-
|
|
6
4
|
digest(): Promise<Uint8Array>;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
6
|
export interface HashConstructor {
|
|
10
7
|
new (secret?: SourceData): Hash;
|
|
11
8
|
}
|
|
12
|
-
|
|
13
9
|
export interface StreamHasher<StreamType = any> {
|
|
14
10
|
(hashCtor: HashConstructor, stream: StreamType): Promise<Uint8Array>;
|
|
15
11
|
}
|
|
16
|
-
|
|
17
12
|
export interface randomValues {
|
|
18
13
|
(byteLength: number): Promise<Uint8Array>;
|
|
19
14
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AuthScheme } from "./auth";
|
|
1
2
|
export interface EndpointPartition {
|
|
2
3
|
name: string;
|
|
3
4
|
dnsSuffix: string;
|
|
@@ -18,13 +19,9 @@ export declare enum EndpointURLScheme {
|
|
|
18
19
|
}
|
|
19
20
|
export interface EndpointURL {
|
|
20
21
|
scheme: EndpointURLScheme;
|
|
21
|
-
|
|
22
22
|
authority: string;
|
|
23
|
-
|
|
24
23
|
path: string;
|
|
25
|
-
|
|
26
24
|
normalizedPath: string;
|
|
27
|
-
|
|
28
25
|
isIp: boolean;
|
|
29
26
|
}
|
|
30
27
|
export declare type EndpointObjectProperty =
|
|
@@ -36,6 +33,11 @@ export declare type EndpointObjectProperty =
|
|
|
36
33
|
| EndpointObjectProperty[];
|
|
37
34
|
export interface EndpointV2 {
|
|
38
35
|
url: URL;
|
|
39
|
-
properties?:
|
|
36
|
+
properties?: {
|
|
37
|
+
authSchemes?: AuthScheme[];
|
|
38
|
+
} & Record<string, EndpointObjectProperty>;
|
|
40
39
|
headers?: Record<string, string[]>;
|
|
41
40
|
}
|
|
41
|
+
export declare type EndpointParameters = {
|
|
42
|
+
[name: string]: undefined | string | boolean;
|
|
43
|
+
};
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
HandlerExecutionContext,
|
|
7
7
|
} from "./middleware";
|
|
8
8
|
import { MetadataBearer } from "./response";
|
|
9
|
-
|
|
10
9
|
export interface Message {
|
|
11
10
|
headers: MessageHeaders;
|
|
12
11
|
body: Uint8Array;
|
|
@@ -63,22 +62,18 @@ export interface Int64 {
|
|
|
63
62
|
valueOf: () => number;
|
|
64
63
|
toString: () => string;
|
|
65
64
|
}
|
|
66
|
-
|
|
67
65
|
export interface EventStreamSerdeContext {
|
|
68
66
|
eventStreamMarshaller: EventStreamMarshaller;
|
|
69
67
|
}
|
|
70
|
-
|
|
71
68
|
export interface EventStreamMarshallerDeserFn<StreamType> {
|
|
72
69
|
<T>(
|
|
73
70
|
body: StreamType,
|
|
74
71
|
deserializer: (input: Record<string, Message>) => Promise<T>
|
|
75
72
|
): AsyncIterable<T>;
|
|
76
73
|
}
|
|
77
|
-
|
|
78
74
|
export interface EventStreamMarshallerSerFn<StreamType> {
|
|
79
75
|
<T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType;
|
|
80
76
|
}
|
|
81
|
-
|
|
82
77
|
export interface EventStreamMarshaller<StreamType = any> {
|
|
83
78
|
deserialize: EventStreamMarshallerDeserFn<StreamType>;
|
|
84
79
|
serialize: EventStreamMarshallerSerFn<StreamType>;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { AbortSignal } from "./abort";
|
|
2
|
-
|
|
3
2
|
export interface Headers extends Map<string, string> {
|
|
4
3
|
withHeader(headerName: string, headerValue: string): Headers;
|
|
5
|
-
|
|
6
4
|
withoutHeader(headerName: string): Headers;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
6
|
export declare type HeaderBag = Record<string, string>;
|
|
10
|
-
|
|
11
7
|
export interface HttpMessage {
|
|
12
8
|
headers: HeaderBag;
|
|
13
9
|
body?: any;
|
|
14
10
|
}
|
|
15
|
-
|
|
16
11
|
export declare type QueryParameterBag = Record<
|
|
17
12
|
string,
|
|
18
13
|
string | Array<string> | null
|
|
@@ -24,19 +19,15 @@ export interface Endpoint {
|
|
|
24
19
|
path: string;
|
|
25
20
|
query?: QueryParameterBag;
|
|
26
21
|
}
|
|
27
|
-
|
|
28
22
|
export interface HttpRequest extends HttpMessage, Endpoint {
|
|
29
23
|
method: string;
|
|
30
24
|
}
|
|
31
|
-
|
|
32
25
|
export interface HttpResponse extends HttpMessage {
|
|
33
26
|
statusCode: number;
|
|
34
27
|
}
|
|
35
|
-
|
|
36
28
|
export interface ResolvedHttpResponse extends HttpResponse {
|
|
37
29
|
body: string;
|
|
38
30
|
}
|
|
39
|
-
|
|
40
31
|
export interface HttpHandlerOptions {
|
|
41
32
|
abortSignal?: AbortSignal;
|
|
42
33
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EndpointV2 } from "./endpoint";
|
|
1
2
|
import { Logger } from "./logger";
|
|
2
3
|
import { UserAgent } from "./util";
|
|
3
4
|
export interface InitializeHandlerArguments<Input extends object> {
|
|
@@ -62,7 +63,6 @@ export interface DeserializeHandler<
|
|
|
62
63
|
DeserializeHandlerOutput<Output>
|
|
63
64
|
>;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
66
|
export interface InitializeMiddleware<
|
|
67
67
|
Input extends object,
|
|
68
68
|
Output extends object
|
|
@@ -72,7 +72,6 @@ export interface InitializeMiddleware<
|
|
|
72
72
|
context: HandlerExecutionContext
|
|
73
73
|
): InitializeHandler<Input, Output>;
|
|
74
74
|
}
|
|
75
|
-
|
|
76
75
|
export interface SerializeMiddleware<
|
|
77
76
|
Input extends object,
|
|
78
77
|
Output extends object
|
|
@@ -82,7 +81,6 @@ export interface SerializeMiddleware<
|
|
|
82
81
|
context: HandlerExecutionContext
|
|
83
82
|
): SerializeHandler<Input, Output>;
|
|
84
83
|
}
|
|
85
|
-
|
|
86
84
|
export interface FinalizeRequestMiddleware<
|
|
87
85
|
Input extends object,
|
|
88
86
|
Output extends object
|
|
@@ -116,7 +114,6 @@ export declare type MiddlewareType<
|
|
|
116
114
|
| BuildMiddleware<Input, Output>
|
|
117
115
|
| FinalizeRequestMiddleware<Input, Output>
|
|
118
116
|
| DeserializeMiddleware<Input, Output>;
|
|
119
|
-
|
|
120
117
|
export interface Terminalware {
|
|
121
118
|
<Input extends object, Output extends object>(
|
|
122
119
|
context: HandlerExecutionContext
|
|
@@ -131,11 +128,8 @@ export declare type Step =
|
|
|
131
128
|
export declare type Priority = "high" | "normal" | "low";
|
|
132
129
|
export interface HandlerOptions {
|
|
133
130
|
step?: Step;
|
|
134
|
-
|
|
135
131
|
tags?: Array<string>;
|
|
136
|
-
|
|
137
132
|
name?: string;
|
|
138
|
-
|
|
139
133
|
override?: boolean;
|
|
140
134
|
}
|
|
141
135
|
export interface AbsoluteLocation {
|
|
@@ -144,7 +138,6 @@ export interface AbsoluteLocation {
|
|
|
144
138
|
export declare type Relation = "before" | "after";
|
|
145
139
|
export interface RelativeLocation {
|
|
146
140
|
relation: Relation;
|
|
147
|
-
|
|
148
141
|
toMiddleware: string;
|
|
149
142
|
}
|
|
150
143
|
export declare type RelativeMiddlewareOptions = RelativeLocation &
|
|
@@ -164,61 +157,49 @@ export interface FinalizeRequestHandlerOptions extends HandlerOptions {
|
|
|
164
157
|
export interface DeserializeHandlerOptions extends HandlerOptions {
|
|
165
158
|
step: "deserialize";
|
|
166
159
|
}
|
|
167
|
-
|
|
168
160
|
export interface MiddlewareStack<Input extends object, Output extends object>
|
|
169
161
|
extends Pluggable<Input, Output> {
|
|
170
162
|
add(
|
|
171
163
|
middleware: InitializeMiddleware<Input, Output>,
|
|
172
164
|
options?: InitializeHandlerOptions & AbsoluteLocation
|
|
173
165
|
): void;
|
|
174
|
-
|
|
175
166
|
add(
|
|
176
167
|
middleware: SerializeMiddleware<Input, Output>,
|
|
177
168
|
options: SerializeHandlerOptions & AbsoluteLocation
|
|
178
169
|
): void;
|
|
179
|
-
|
|
180
170
|
add(
|
|
181
171
|
middleware: BuildMiddleware<Input, Output>,
|
|
182
172
|
options: BuildHandlerOptions & AbsoluteLocation
|
|
183
173
|
): void;
|
|
184
|
-
|
|
185
174
|
add(
|
|
186
175
|
middleware: FinalizeRequestMiddleware<Input, Output>,
|
|
187
176
|
options: FinalizeRequestHandlerOptions & AbsoluteLocation
|
|
188
177
|
): void;
|
|
189
|
-
|
|
190
178
|
add(
|
|
191
179
|
middleware: DeserializeMiddleware<Input, Output>,
|
|
192
180
|
options: DeserializeHandlerOptions & AbsoluteLocation
|
|
193
181
|
): void;
|
|
194
|
-
|
|
195
182
|
addRelativeTo(
|
|
196
183
|
middleware: MiddlewareType<Input, Output>,
|
|
197
184
|
options: RelativeMiddlewareOptions
|
|
198
185
|
): void;
|
|
199
|
-
|
|
200
186
|
use(pluggable: Pluggable<Input, Output>): void;
|
|
201
|
-
|
|
202
187
|
clone(): MiddlewareStack<Input, Output>;
|
|
203
|
-
|
|
204
188
|
remove(toRemove: MiddlewareType<Input, Output> | string): boolean;
|
|
205
|
-
|
|
206
189
|
removeByTag(toRemove: string): boolean;
|
|
207
|
-
|
|
208
190
|
concat<InputType extends Input, OutputType extends Output>(
|
|
209
191
|
from: MiddlewareStack<InputType, OutputType>
|
|
210
192
|
): MiddlewareStack<InputType, OutputType>;
|
|
211
|
-
|
|
193
|
+
identify(): string[];
|
|
212
194
|
resolve<InputType extends Input, OutputType extends Output>(
|
|
213
195
|
handler: DeserializeHandler<InputType, OutputType>,
|
|
214
196
|
context: HandlerExecutionContext
|
|
215
197
|
): InitializeHandler<InputType, OutputType>;
|
|
216
198
|
}
|
|
217
|
-
|
|
218
199
|
export interface HandlerExecutionContext {
|
|
219
200
|
logger?: Logger;
|
|
220
|
-
|
|
221
201
|
userAgent?: UserAgent;
|
|
202
|
+
endpointV2?: EndpointV2;
|
|
222
203
|
[key: string]: any;
|
|
223
204
|
}
|
|
224
205
|
export interface Pluggable<Input extends object, Output extends object> {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { Client } from "./client";
|
|
2
|
-
|
|
3
2
|
export declare type Paginator<T> = AsyncGenerator<T, T, unknown>;
|
|
4
|
-
|
|
5
3
|
export interface PaginationConfiguration {
|
|
6
4
|
client: Client<any, any, any>;
|
|
7
5
|
pageSize?: number;
|
|
8
6
|
startingToken?: any;
|
|
9
|
-
|
|
10
7
|
stopOnSameToken?: boolean;
|
|
11
8
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Endpoint } from "./http";
|
|
2
2
|
import { RequestHandler } from "./transfer";
|
|
3
3
|
import { Decoder, Encoder, Provider } from "./util";
|
|
4
|
-
|
|
5
4
|
export interface EndpointBearer {
|
|
6
5
|
endpoint: Provider<Endpoint>;
|
|
7
6
|
}
|
|
8
7
|
export interface StreamCollector {
|
|
9
8
|
(stream: any): Promise<Uint8Array>;
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
export interface SerdeContext extends EndpointBearer {
|
|
13
11
|
base64Encoder: Encoder;
|
|
14
12
|
base64Decoder: Decoder;
|
|
@@ -31,15 +29,12 @@ export interface ResponseDeserializer<
|
|
|
31
29
|
> {
|
|
32
30
|
(output: ResponseType, context: Context): Promise<OutputType>;
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
declare global {
|
|
36
33
|
export interface ReadableStream {}
|
|
37
34
|
}
|
|
38
|
-
|
|
39
35
|
export interface SdkStreamMixin {
|
|
40
36
|
transformToByteArray: () => Promise<Uint8Array>;
|
|
41
37
|
transformToString: (encoding?: string) => Promise<string>;
|
|
42
38
|
transformToWebStream: () => ReadableStream;
|
|
43
39
|
}
|
|
44
|
-
|
|
45
40
|
export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HttpResponse } from "./http";
|
|
2
2
|
import { MetadataBearer } from "./response";
|
|
3
|
-
|
|
4
3
|
export declare type DocumentType =
|
|
5
4
|
| null
|
|
6
5
|
| boolean
|
|
@@ -10,23 +9,16 @@ export declare type DocumentType =
|
|
|
10
9
|
| {
|
|
11
10
|
[prop: string]: DocumentType;
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
export interface RetryableTrait {
|
|
15
13
|
readonly throttling?: boolean;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
export interface SmithyException {
|
|
19
16
|
readonly name: string;
|
|
20
|
-
|
|
21
17
|
readonly $fault: "client" | "server";
|
|
22
|
-
|
|
23
18
|
readonly $service?: string;
|
|
24
|
-
|
|
25
19
|
readonly $retryable?: RetryableTrait;
|
|
26
|
-
|
|
27
20
|
readonly $response?: HttpResponse;
|
|
28
21
|
}
|
|
29
|
-
|
|
30
22
|
export declare type SdkError = Error &
|
|
31
23
|
Partial<SmithyException> &
|
|
32
24
|
Partial<MetadataBearer>;
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { HttpRequest } from "./http";
|
|
2
|
-
|
|
3
2
|
export declare type DateInput = number | string | Date;
|
|
4
3
|
export interface SigningArguments {
|
|
5
4
|
signingDate?: DateInput;
|
|
6
|
-
|
|
7
5
|
signingService?: string;
|
|
8
|
-
|
|
9
6
|
signingRegion?: string;
|
|
10
7
|
}
|
|
11
8
|
export interface RequestSigningArguments extends SigningArguments {
|
|
12
9
|
unsignableHeaders?: Set<string>;
|
|
13
|
-
|
|
14
10
|
signableHeaders?: Set<string>;
|
|
15
11
|
}
|
|
16
12
|
export interface RequestPresigningArguments extends RequestSigningArguments {
|
|
17
13
|
expiresIn?: number;
|
|
18
|
-
|
|
19
14
|
unhoistableHeaders?: Set<string>;
|
|
20
15
|
}
|
|
21
16
|
export interface EventSigningArguments extends SigningArguments {
|
|
@@ -27,7 +22,6 @@ export interface RequestPresigner {
|
|
|
27
22
|
options?: RequestPresigningArguments
|
|
28
23
|
): Promise<HttpRequest>;
|
|
29
24
|
}
|
|
30
|
-
|
|
31
25
|
export interface RequestSigner {
|
|
32
26
|
sign(
|
|
33
27
|
requestToSign: HttpRequest,
|
|
@@ -5,40 +5,31 @@ import {
|
|
|
5
5
|
FinalizeHandlerOutput,
|
|
6
6
|
} from "./middleware";
|
|
7
7
|
import { MetadataBearer } from "./response";
|
|
8
|
-
|
|
9
8
|
export interface Encoder {
|
|
10
9
|
(input: Uint8Array): string;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
export interface Decoder {
|
|
14
12
|
(input: string): Uint8Array;
|
|
15
13
|
}
|
|
16
|
-
|
|
17
14
|
export interface Provider<T> {
|
|
18
15
|
(): Promise<T>;
|
|
19
16
|
}
|
|
20
|
-
|
|
21
17
|
export interface MemoizedProvider<T> {
|
|
22
18
|
(options?: { forceRefresh?: boolean }): Promise<T>;
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
export interface BodyLengthCalculator {
|
|
26
21
|
(body: any): number | undefined;
|
|
27
22
|
}
|
|
28
|
-
|
|
29
23
|
export interface RetryStrategy {
|
|
30
24
|
mode?: string;
|
|
31
|
-
|
|
32
25
|
retry: <Input extends object, Output extends MetadataBearer>(
|
|
33
26
|
next: FinalizeHandler<Input, Output>,
|
|
34
27
|
args: FinalizeHandlerArguments<Input>
|
|
35
28
|
) => Promise<FinalizeHandlerOutput<Output>>;
|
|
36
29
|
}
|
|
37
|
-
|
|
38
30
|
export interface UrlParser {
|
|
39
|
-
(url: string): Endpoint;
|
|
31
|
+
(url: string | URL): Endpoint;
|
|
40
32
|
}
|
|
41
|
-
|
|
42
33
|
export interface RegionInfo {
|
|
43
34
|
hostname: string;
|
|
44
35
|
partition: string;
|
|
@@ -46,19 +37,14 @@ export interface RegionInfo {
|
|
|
46
37
|
signingService?: string;
|
|
47
38
|
signingRegion?: string;
|
|
48
39
|
}
|
|
49
|
-
|
|
50
40
|
export interface RegionInfoProviderOptions {
|
|
51
41
|
useDualstackEndpoint: boolean;
|
|
52
|
-
|
|
53
42
|
useFipsEndpoint: boolean;
|
|
54
43
|
}
|
|
55
|
-
|
|
56
44
|
export interface RegionInfoProvider {
|
|
57
45
|
(region: string, options?: RegionInfoProviderOptions): Promise<
|
|
58
46
|
RegionInfo | undefined
|
|
59
47
|
>;
|
|
60
48
|
}
|
|
61
|
-
|
|
62
49
|
export declare type UserAgentPair = [string, string];
|
|
63
|
-
|
|
64
50
|
export declare type UserAgent = UserAgentPair[];
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { AbortController } from "./abort";
|
|
2
2
|
export interface WaiterConfiguration<Client> {
|
|
3
3
|
client: Client;
|
|
4
|
-
|
|
5
4
|
maxWaitTime: number;
|
|
6
|
-
|
|
7
5
|
abortController?: AbortController;
|
|
8
|
-
|
|
9
6
|
abortSignal?: AbortController["signal"];
|
|
10
|
-
|
|
11
7
|
minDelay?: number;
|
|
12
|
-
|
|
13
8
|
maxDelay?: number;
|
|
14
9
|
}
|
package/dist-types/util.d.ts
CHANGED