@aws-sdk/types 3.171.0 → 3.183.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 +19 -0
- package/dist-types/auth.d.ts +11 -0
- package/dist-types/endpoint.d.ts +4 -1
- package/dist-types/middleware.d.ts +12 -0
- package/dist-types/ts3.4/auth.d.ts +2 -0
- package/dist-types/ts3.4/endpoint.d.ts +4 -1
- package/dist-types/ts3.4/middleware.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.178.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.177.0...v3.178.0) (2022-09-23)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.171.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.170.0...v3.171.0) (2022-09-14)
|
|
7
26
|
|
|
8
27
|
|
package/dist-types/auth.d.ts
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
* Authentication schemes represent a way that the service will authenticate the customer’s identity.
|
|
3
3
|
*/
|
|
4
4
|
export interface AuthScheme {
|
|
5
|
+
/**
|
|
6
|
+
* @example "v4" for SigV4
|
|
7
|
+
*/
|
|
5
8
|
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* @example "s3"
|
|
11
|
+
*/
|
|
12
|
+
signingName: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example "us-east-1"
|
|
15
|
+
*/
|
|
16
|
+
signingScope: string;
|
|
6
17
|
properties: Record<string, unknown>;
|
|
7
18
|
}
|
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,7 +46,9 @@ 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
|
}
|
|
51
54
|
export declare type EndpointParameters = {
|
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import { AuthScheme } from "./auth";
|
|
1
2
|
export interface EndpointPartition {
|
|
2
3
|
name: string;
|
|
3
4
|
dnsSuffix: string;
|
|
@@ -32,7 +33,9 @@ export declare type EndpointObjectProperty =
|
|
|
32
33
|
| EndpointObjectProperty[];
|
|
33
34
|
export interface EndpointV2 {
|
|
34
35
|
url: URL;
|
|
35
|
-
properties?:
|
|
36
|
+
properties?: {
|
|
37
|
+
authSchemes?: AuthScheme[];
|
|
38
|
+
} & Record<string, EndpointObjectProperty>;
|
|
36
39
|
headers?: Record<string, string[]>;
|
|
37
40
|
}
|
|
38
41
|
export declare type EndpointParameters = {
|
|
@@ -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> {
|
|
@@ -189,6 +190,7 @@ export interface MiddlewareStack<Input extends object, Output extends object>
|
|
|
189
190
|
concat<InputType extends Input, OutputType extends Output>(
|
|
190
191
|
from: MiddlewareStack<InputType, OutputType>
|
|
191
192
|
): MiddlewareStack<InputType, OutputType>;
|
|
193
|
+
identify(): string[];
|
|
192
194
|
resolve<InputType extends Input, OutputType extends Output>(
|
|
193
195
|
handler: DeserializeHandler<InputType, OutputType>,
|
|
194
196
|
context: HandlerExecutionContext
|
|
@@ -197,6 +199,7 @@ export interface MiddlewareStack<Input extends object, Output extends object>
|
|
|
197
199
|
export interface HandlerExecutionContext {
|
|
198
200
|
logger?: Logger;
|
|
199
201
|
userAgent?: UserAgent;
|
|
202
|
+
endpointV2?: EndpointV2;
|
|
200
203
|
[key: string]: any;
|
|
201
204
|
}
|
|
202
205
|
export interface Pluggable<Input extends object, Output extends object> {
|