@aws-sdk/types 3.36.0 → 3.46.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 CHANGED
@@ -3,6 +3,46 @@
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **middleware-signing:** correct clock skew from error response ([#3133](https://github.com/aws/aws-sdk-js-v3/issues/3133)) ([7a207a9](https://github.com/aws/aws-sdk-js-v3/commit/7a207a9d3173631f62f8b90ee1fbd7f68342133a))
12
+
13
+
14
+ ### Features
15
+
16
+ * **packages:** end support for Node.js 10.x ([#3141](https://github.com/aws/aws-sdk-js-v3/issues/3141)) ([1a62865](https://github.com/aws/aws-sdk-js-v3/commit/1a6286513f7cdb556708845c512861c5f92eb883))
17
+
18
+
19
+
20
+
21
+
22
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/types
25
+
26
+
27
+
28
+
29
+
30
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
31
+
32
+ **Note:** Version bump only for package @aws-sdk/types
33
+
34
+
35
+
36
+
37
+
38
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
39
+
40
+ **Note:** Version bump only for package @aws-sdk/types
41
+
42
+
43
+
44
+
45
+
6
46
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
47
 
8
48
 
package/dist-cjs/index.js CHANGED
@@ -9,10 +9,10 @@ tslib_1.__exportStar(require("./crypto"), exports);
9
9
  tslib_1.__exportStar(require("./eventStream"), exports);
10
10
  tslib_1.__exportStar(require("./http"), exports);
11
11
  tslib_1.__exportStar(require("./logger"), exports);
12
- tslib_1.__exportStar(require("./pagination"), exports);
13
- tslib_1.__exportStar(require("./serde"), exports);
14
12
  tslib_1.__exportStar(require("./middleware"), exports);
13
+ tslib_1.__exportStar(require("./pagination"), exports);
15
14
  tslib_1.__exportStar(require("./response"), exports);
15
+ tslib_1.__exportStar(require("./serde"), exports);
16
16
  tslib_1.__exportStar(require("./shapes"), exports);
17
17
  tslib_1.__exportStar(require("./signature"), exports);
18
18
  tslib_1.__exportStar(require("./transfer"), exports);
package/dist-es/index.js CHANGED
@@ -6,10 +6,10 @@ export * from "./crypto";
6
6
  export * from "./eventStream";
7
7
  export * from "./http";
8
8
  export * from "./logger";
9
- export * from "./pagination";
10
- export * from "./serde";
11
9
  export * from "./middleware";
10
+ export * from "./pagination";
12
11
  export * from "./response";
12
+ export * from "./serde";
13
13
  export * from "./shapes";
14
14
  export * from "./signature";
15
15
  export * from "./transfer";
@@ -6,10 +6,10 @@ export * from "./crypto";
6
6
  export * from "./eventStream";
7
7
  export * from "./http";
8
8
  export * from "./logger";
9
- export * from "./pagination";
10
- export * from "./serde";
11
9
  export * from "./middleware";
10
+ export * from "./pagination";
12
11
  export * from "./response";
12
+ export * from "./serde";
13
13
  export * from "./shapes";
14
14
  export * from "./signature";
15
15
  export * from "./transfer";
@@ -1,3 +1,4 @@
1
+ import { HttpResponse } from "./http";
1
2
  import { MetadataBearer } from "./response";
2
3
  /**
3
4
  * A document type represents an untyped JSON-like value.
@@ -41,5 +42,9 @@ export interface SmithyException {
41
42
  * Indicates that an error MAY be retried by the client.
42
43
  */
43
44
  readonly $retryable?: RetryableTrait;
45
+ /**
46
+ * Reference to low-level HTTP response object.
47
+ */
48
+ readonly $response?: HttpResponse;
44
49
  }
45
50
  export declare type SdkError = Error & Partial<SmithyException> & Partial<MetadataBearer>;
@@ -1,42 +1,17 @@
1
1
  export interface AbortHandler {
2
2
  (this: AbortSignal, ev: any): any;
3
3
  }
4
- /**
5
- * Holders of an AbortSignal object may query if the associated operation has
6
- * been aborted and register an onabort handler.
7
- *
8
- * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
9
- */
4
+
10
5
  export interface AbortSignal {
11
- /**
12
- * Whether the action represented by this signal has been cancelled.
13
- */
6
+
14
7
  readonly aborted: boolean;
15
- /**
16
- * A function to be invoked when the action represented by this signal has
17
- * been cancelled.
18
- */
8
+
19
9
  onabort: AbortHandler | null;
20
10
  }
21
- /**
22
- * The AWS SDK uses a Controller/Signal model to allow for cooperative
23
- * cancellation of asynchronous operations. When initiating such an operation,
24
- * the caller can create an AbortController and then provide linked signal to
25
- * subtasks. This allows a single source to communicate to multiple consumers
26
- * that an action has been aborted without dictating how that cancellation
27
- * should be handled.
28
- *
29
- * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortController
30
- */
11
+
31
12
  export interface AbortController {
32
- /**
33
- * An object that reports whether the action associated with this
34
- * {AbortController} has been cancelled.
35
- */
13
+
36
14
  readonly signal: AbortSignal;
37
- /**
38
- * Declares the operation associated with this AbortController to have been
39
- * cancelled.
40
- */
15
+
41
16
  abort(): void;
42
17
  }
@@ -1,19 +1,13 @@
1
1
  import { Command } from "./command";
2
2
  import { MiddlewareStack } from "./middleware";
3
3
  import { MetadataBearer } from "./response";
4
- /**
5
- * function definition for different overrides of client's 'send' function.
6
- */
4
+
7
5
  interface InvokeFunction<InputTypes extends object, OutputTypes extends MetadataBearer, ResolvedClientConfiguration> {
8
6
  <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options?: any): Promise<OutputType>;
9
7
  <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options: any, cb: (err: any, data?: OutputType) => void): void;
10
8
  <InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ResolvedClientConfiguration>, options?: any, cb?: (err: any, data?: OutputType) => void): Promise<OutputType> | void;
11
9
  }
12
- /**
13
- * A general interface for service clients, idempotent to browser or node clients
14
- * This type corresponds to SmithyClient(https://github.com/aws/aws-sdk-js-v3/blob/main/packages/smithy-client/src/client.ts).
15
- * It's provided for using without importing the SmithyClient class.
16
- */
10
+
17
11
  export interface Client<Input extends object, Output extends MetadataBearer, ResolvedClientConfiguration> {
18
12
  readonly config: ResolvedClientConfiguration;
19
13
  middlewareStack: MiddlewareStack<Input, Output>;
@@ -1,24 +1,13 @@
1
1
  import { Provider } from "./util";
2
- /**
3
- * An object representing temporary or permanent AWS credentials.
4
- */
2
+
5
3
  export interface Credentials {
6
- /**
7
- * AWS access key ID
8
- */
4
+
9
5
  readonly accessKeyId: string;
10
- /**
11
- * AWS secret access key
12
- */
6
+
13
7
  readonly secretAccessKey: string;
14
- /**
15
- * A security or session token to use with these credentials. Usually
16
- * present for temporary credentials.
17
- */
8
+
18
9
  readonly sessionToken?: string;
19
- /**
20
- * A {Date} when these credentials will no longer be accepted.
21
- */
10
+
22
11
  readonly expiration?: Date;
23
12
  }
24
13
  export declare type CredentialProvider = Provider<Credentials>;
@@ -1,45 +1,20 @@
1
1
  export declare type SourceData = string | ArrayBuffer | ArrayBufferView;
2
- /**
3
- * An object that provides a hash of data provided in chunks to `update`. The
4
- * hash may be performed incrementally as chunks are received or all at once
5
- * when the hash is finalized, depending on the underlying implementation.
6
- */
2
+
7
3
  export interface Hash {
8
- /**
9
- * Adds a chunk of data to the hash. If a buffer is provided, the `encoding`
10
- * argument will be ignored. If a string is provided without a specified
11
- * encoding, implementations must assume UTF-8 encoding.
12
- *
13
- * Not all encodings are supported on all platforms, though all must support
14
- * UTF-8.
15
- */
4
+
16
5
  update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
17
- /**
18
- * Finalizes the hash and provides a promise that will be fulfilled with the
19
- * raw bytes of the calculated hash.
20
- */
6
+
21
7
  digest(): Promise<Uint8Array>;
22
8
  }
23
- /**
24
- * A constructor for a hash that may be used to calculate an HMAC. Implementing
25
- * classes should not directly hold the provided key in memory beyond the
26
- * lexical scope of the constructor.
27
- */
9
+
28
10
  export interface HashConstructor {
29
11
  new (secret?: SourceData): Hash;
30
12
  }
31
- /**
32
- * A function that calculates the hash of a data stream. Determining the hash
33
- * will consume the stream, so only replayable streams should be provided to an
34
- * implementation of this interface.
35
- */
13
+
36
14
  export interface StreamHasher<StreamType = any> {
37
15
  (hashCtor: HashConstructor, stream: StreamType): Promise<Uint8Array>;
38
16
  }
39
- /**
40
- * A function that returns a promise fulfilled with bytes from a
41
- * cryptographically secure pseudorandom number generator.
42
- */
17
+
43
18
  export interface randomValues {
44
19
  (byteLength: number): Promise<Uint8Array>;
45
20
  }
@@ -1,11 +1,7 @@
1
1
  import { HttpRequest } from "./http";
2
2
  import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, HandlerExecutionContext } from "./middleware";
3
3
  import { MetadataBearer } from "./response";
4
- /**
5
- * An event stream message. The headers and body properties will always be
6
- * defined, with empty headers represented as an object with no keys and an
7
- * empty body represented as a zero-length Uint8Array.
8
- */
4
+
9
5
  export interface Message {
10
6
  headers: MessageHeaders;
11
7
  body: Uint8Array;
@@ -55,9 +51,7 @@ export interface Int64 {
55
51
  valueOf: () => number;
56
52
  toString: () => string;
57
53
  }
58
- /**
59
- * Util functions for serializing or deserializing event stream
60
- */
54
+
61
55
  export interface EventStreamSerdeContext {
62
56
  eventStreamMarshaller: EventStreamMarshaller;
63
57
  }
@@ -1,58 +1,21 @@
1
1
  import { AbortSignal } from "./abort";
2
- /**
3
- * A collection of key/value pairs with case-insensitive keys.
4
- */
2
+
5
3
  export interface Headers extends Map<string, string> {
6
- /**
7
- * Returns a new instance of Headers with the specified header set to the
8
- * provided value. Does not modify the original Headers instance.
9
- *
10
- * @param headerName The name of the header to add or overwrite
11
- * @param headerValue The value to which the header should be set
12
- */
4
+
13
5
  withHeader(headerName: string, headerValue: string): Headers;
14
- /**
15
- * Returns a new instance of Headers without the specified header. Does not
16
- * modify the original Headers instance.
17
- *
18
- * @param headerName The name of the header to remove
19
- */
6
+
20
7
  withoutHeader(headerName: string): Headers;
21
8
  }
22
- /**
23
- * A mapping of header names to string values. Multiple values for the same
24
- * header should be represented as a single string with values separated by
25
- * `, `.
26
- *
27
- * Keys should be considered case insensitive, even if this is not enforced by a
28
- * particular implementation. For example, given the following HeaderBag, where
29
- * keys differ only in case:
30
- *
31
- * {
32
- * 'x-amz-date': '2000-01-01T00:00:00Z',
33
- * 'X-Amz-Date': '2001-01-01T00:00:00Z'
34
- * }
35
- *
36
- * The SDK may at any point during processing remove one of the object
37
- * properties in favor of the other. The headers may or may not be combined, and
38
- * the SDK will not deterministically select which header candidate to use.
39
- */
9
+
40
10
  export interface HeaderBag {
41
11
  [key: string]: string;
42
12
  }
43
- /**
44
- * Represents an HTTP message with headers and an optional static or streaming
45
- * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;
46
- */
13
+
47
14
  export interface HttpMessage {
48
15
  headers: HeaderBag;
49
16
  body?: any;
50
17
  }
51
- /**
52
- * A mapping of query parameter names to strings or arrays of strings, with the
53
- * second being used when a parameter contains a list of values. Value can be set
54
- * to null when query is not in key-value pairs shape
55
- */
18
+
56
19
  export interface QueryParameterBag {
57
20
  [key: string]: string | Array<string> | null;
58
21
  }
@@ -63,30 +26,19 @@ export interface Endpoint {
63
26
  path: string;
64
27
  query?: QueryParameterBag;
65
28
  }
66
- /**
67
- * Interface an HTTP request class. Contains
68
- * addressing information in addition to standard message properties.
69
- */
29
+
70
30
  export interface HttpRequest extends HttpMessage, Endpoint {
71
31
  method: string;
72
32
  }
73
- /**
74
- * Represents an HTTP message as received in reply to a request. Contains a
75
- * numeric status code in addition to standard message properties.
76
- */
33
+
77
34
  export interface HttpResponse extends HttpMessage {
78
35
  statusCode: number;
79
36
  }
80
- /**
81
- * Represents HTTP message whose body has been resolved to a string. This is
82
- * used in parsing http message.
83
- */
37
+
84
38
  export interface ResolvedHttpResponse extends HttpResponse {
85
39
  body: string;
86
40
  }
87
- /**
88
- * Represents the options that may be passed to an Http Handler.
89
- */
41
+
90
42
  export interface HttpHandlerOptions {
91
43
  abortSignal?: AbortSignal;
92
44
  }
@@ -6,10 +6,10 @@ export * from "./crypto";
6
6
  export * from "./eventStream";
7
7
  export * from "./http";
8
8
  export * from "./logger";
9
- export * from "./pagination";
10
- export * from "./serde";
11
9
  export * from "./middleware";
10
+ export * from "./pagination";
12
11
  export * from "./response";
12
+ export * from "./serde";
13
13
  export * from "./shapes";
14
14
  export * from "./signature";
15
15
  export * from "./transfer";
@@ -1,23 +1,11 @@
1
- /**
2
- * A list of logger's log level. These levels are sorted in
3
- * order of increasing severity. Each log level includes itself and all
4
- * the levels behind itself.
5
- *
6
- * @example new Logger({logLevel: 'warn'}) will print all the warn and error
7
- * message.
8
- */
1
+
9
2
  export declare type LogLevel = "all" | "log" | "info" | "warn" | "error" | "off";
10
- /**
11
- * An object consumed by Logger constructor to initiate a logger object.
12
- */
3
+
13
4
  export interface LoggerOptions {
14
5
  logger?: Logger;
15
6
  logLevel?: LogLevel;
16
7
  }
17
- /**
18
- * Represents a logger object that is available in HandlerExecutionContext
19
- * throughout the middleware stack.
20
- */
8
+
21
9
  export interface Logger {
22
10
  debug(content: object): void;
23
11
  info(content: object): void;
@@ -1,24 +1,14 @@
1
1
  import { Logger } from "./logger";
2
2
  import { UserAgent } from "./util";
3
3
  export interface InitializeHandlerArguments<Input extends object> {
4
- /**
5
- * User input to a command. Reflects the userland representation of the
6
- * union of data types the command can effectively handle.
7
- */
4
+
8
5
  input: Input;
9
6
  }
10
7
  export interface InitializeHandlerOutput<Output extends object> extends DeserializeHandlerOutput<Output> {
11
8
  output: Output;
12
9
  }
13
10
  export interface SerializeHandlerArguments<Input extends object> extends InitializeHandlerArguments<Input> {
14
- /**
15
- * The user input serialized as a request object. The request object is unknown,
16
- * so you cannot modify it directly. When work with request, you need to guard its
17
- * type to e.g. HttpRequest with 'instanceof' operand
18
- *
19
- * During the build phase of the execution of a middleware stack, a built
20
- * request may or may not be available.
21
- */
11
+
22
12
  request?: unknown;
23
13
  }
24
14
  export interface SerializeHandlerOutput<Output extends object> extends InitializeHandlerOutput<Output> {
@@ -28,9 +18,7 @@ export interface BuildHandlerArguments<Input extends object> extends FinalizeHan
28
18
  export interface BuildHandlerOutput<Output extends object> extends InitializeHandlerOutput<Output> {
29
19
  }
30
20
  export interface FinalizeHandlerArguments<Input extends object> extends SerializeHandlerArguments<Input> {
31
- /**
32
- * The user input serialized as a request.
33
- */
21
+
34
22
  request: unknown;
35
23
  }
36
24
  export interface FinalizeHandlerOutput<Output extends object> extends InitializeHandlerOutput<Output> {
@@ -38,43 +26,21 @@ export interface FinalizeHandlerOutput<Output extends object> extends Initialize
38
26
  export interface DeserializeHandlerArguments<Input extends object> extends FinalizeHandlerArguments<Input> {
39
27
  }
40
28
  export interface DeserializeHandlerOutput<Output extends object> {
41
- /**
42
- * The raw response object from runtime is deserialized to structured output object.
43
- * The response object is unknown so you cannot modify it directly. When work with
44
- * response, you need to guard its type to e.g. HttpResponse with 'instanceof' operand.
45
- *
46
- * During the deserialize phase of the execution of a middleware stack, a deserialized
47
- * response may or may not be available
48
- */
29
+
49
30
  response: unknown;
50
31
  output?: Output;
51
32
  }
52
33
  export interface InitializeHandler<Input extends object, Output extends object> {
53
- /**
54
- * Asynchronously converts an input object into an output object.
55
- *
56
- * @param args An object containing a input to the command as well as any
57
- * associated or previously generated execution artifacts.
58
- */
34
+
59
35
  (args: InitializeHandlerArguments<Input>): Promise<InitializeHandlerOutput<Output>>;
60
36
  }
61
37
  export declare type Handler<Input extends object, Output extends object> = InitializeHandler<Input, Output>;
62
38
  export interface SerializeHandler<Input extends object, Output extends object> {
63
- /**
64
- * Asynchronously converts an input object into an output object.
65
- *
66
- * @param args An object containing a input to the command as well as any
67
- * associated or previously generated execution artifacts.
68
- */
39
+
69
40
  (args: SerializeHandlerArguments<Input>): Promise<SerializeHandlerOutput<Output>>;
70
41
  }
71
42
  export interface FinalizeHandler<Input extends object, Output extends object> {
72
- /**
73
- * Asynchronously converts an input object into an output object.
74
- *
75
- * @param args An object containing a input to the command as well as any
76
- * associated or previously generated execution artifacts.
77
- */
43
+
78
44
  (args: FinalizeHandlerArguments<Input>): Promise<FinalizeHandlerOutput<Output>>;
79
45
  }
80
46
  export interface BuildHandler<Input extends object, Output extends object> {
@@ -83,43 +49,19 @@ export interface BuildHandler<Input extends object, Output extends object> {
83
49
  export interface DeserializeHandler<Input extends object, Output extends object> {
84
50
  (args: DeserializeHandlerArguments<Input>): Promise<DeserializeHandlerOutput<Output>>;
85
51
  }
86
- /**
87
- * A factory function that creates functions implementing the {Handler}
88
- * interface.
89
- */
52
+
90
53
  export interface InitializeMiddleware<Input extends object, Output extends object> {
91
- /**
92
- * @param next The handler to invoke after this middleware has operated on
93
- * the user input and before this middleware operates on the output.
94
- *
95
- * @param context Invariant data and functions for use by the handler.
96
- */
54
+
97
55
  (next: InitializeHandler<Input, Output>, context: HandlerExecutionContext): InitializeHandler<Input, Output>;
98
56
  }
99
- /**
100
- * A factory function that creates functions implementing the {BuildHandler}
101
- * interface.
102
- */
57
+
103
58
  export interface SerializeMiddleware<Input extends object, Output extends object> {
104
- /**
105
- * @param next The handler to invoke after this middleware has operated on
106
- * the user input and before this middleware operates on the output.
107
- *
108
- * @param context Invariant data and functions for use by the handler.
109
- */
59
+
110
60
  (next: SerializeHandler<Input, Output>, context: HandlerExecutionContext): SerializeHandler<Input, Output>;
111
61
  }
112
- /**
113
- * A factory function that creates functions implementing the {FinalizeHandler}
114
- * interface.
115
- */
62
+
116
63
  export interface FinalizeRequestMiddleware<Input extends object, Output extends object> {
117
- /**
118
- * @param next The handler to invoke after this middleware has operated on
119
- * the user input and before this middleware operates on the output.
120
- *
121
- * @param context Invariant data and functions for use by the handler.
122
- */
64
+
123
65
  (next: FinalizeHandler<Input, Output>, context: HandlerExecutionContext): FinalizeHandler<Input, Output>;
124
66
  }
125
67
  export interface BuildMiddleware<Input extends object, Output extends object> {
@@ -129,80 +71,31 @@ export interface DeserializeMiddleware<Input extends object, Output extends obje
129
71
  (next: DeserializeHandler<Input, Output>, context: HandlerExecutionContext): DeserializeHandler<Input, Output>;
130
72
  }
131
73
  export declare type MiddlewareType<Input extends object, Output extends object> = InitializeMiddleware<Input, Output> | SerializeMiddleware<Input, Output> | BuildMiddleware<Input, Output> | FinalizeRequestMiddleware<Input, Output> | DeserializeMiddleware<Input, Output>;
132
- /**
133
- * A factory function that creates the terminal handler atop which a middleware
134
- * stack sits.
135
- */
74
+
136
75
  export interface Terminalware {
137
76
  <Input extends object, Output extends object>(context: HandlerExecutionContext): DeserializeHandler<Input, Output>;
138
77
  }
139
78
  export declare type Step = "initialize" | "serialize" | "build" | "finalizeRequest" | "deserialize";
140
79
  export declare type Priority = "high" | "normal" | "low";
141
80
  export interface HandlerOptions {
142
- /**
143
- * Handlers are ordered using a "step" that describes the stage of command
144
- * execution at which the handler will be executed. The available steps are:
145
- *
146
- * - initialize: The input is being prepared. Examples of typical
147
- * initialization tasks include injecting default options computing
148
- * derived parameters.
149
- * - serialize: The input is complete and ready to be serialized. Examples
150
- * of typical serialization tasks include input validation and building
151
- * an HTTP request from user input.
152
- * - build: The input has been serialized into an HTTP request, but that
153
- * request may require further modification. Any request alterations
154
- * will be applied to all retries. Examples of typical build tasks
155
- * include injecting HTTP headers that describe a stable aspect of the
156
- * request, such as `Content-Length` or a body checksum.
157
- * - finalizeRequest: The request is being prepared to be sent over the wire. The
158
- * request in this stage should already be semantically complete and
159
- * should therefore only be altered as match the recipient's
160
- * expectations. Examples of typical finalization tasks include request
161
- * signing and injecting hop-by-hop headers.
162
- * - deserialize: The response has arrived, the middleware here will deserialize
163
- * the raw response object to structured response
164
- *
165
- * Unlike initialization and build handlers, which are executed once
166
- * per operation execution, finalization and deserialize handlers will be
167
- * executed foreach HTTP request sent.
168
- *
169
- * @default 'initialize'
170
- */
81
+
171
82
  step?: Step;
172
- /**
173
- * A list of strings to any that identify the general purpose or important
174
- * characteristics of a given handler.
175
- */
83
+
176
84
  tags?: Array<string>;
177
- /**
178
- * A unique name to refer to a middleware
179
- */
85
+
180
86
  name?: string;
181
- /**
182
- * A flag to override the existing middleware with the same name. Without
183
- * setting it, adding middleware with duplicated name will throw an exception.
184
- * @internal
185
- */
87
+
186
88
  override?: boolean;
187
89
  }
188
90
  export interface AbsoluteLocation {
189
- /**
190
- * By default middleware will be added to individual step in un-guaranteed order.
191
- * In the case that
192
- *
193
- * @default 'normal'
194
- */
91
+
195
92
  priority?: Priority;
196
93
  }
197
94
  export declare type Relation = "before" | "after";
198
95
  export interface RelativeLocation {
199
- /**
200
- * Specify the relation to be before or after a know middleware.
201
- */
96
+
202
97
  relation: Relation;
203
- /**
204
- * A known middleware name to indicate inserting middleware's location.
205
- */
98
+
206
99
  toMiddleware: string;
207
100
  }
208
101
  export declare type RelativeMiddlewareOptions = RelativeLocation & Pick<HandlerOptions, Exclude<keyof HandlerOptions, "step">>;
@@ -221,118 +114,42 @@ export interface FinalizeRequestHandlerOptions extends HandlerOptions {
221
114
  export interface DeserializeHandlerOptions extends HandlerOptions {
222
115
  step: "deserialize";
223
116
  }
224
- /**
225
- * A stack storing middleware. It can be resolved into a handler. It supports 2
226
- * approaches for adding middleware:
227
- * 1. Adding middleware to specific step with `add()`. The order of middleware
228
- * added into same step is determined by order of adding them. If one middleware
229
- * needs to be executed at the front of the step or at the end of step, set
230
- * `priority` options to `high` or `low`.
231
- * 2. Adding middleware to location relative to known middleware with `addRelativeTo()`.
232
- * This is useful when given middleware must be executed before or after specific
233
- * middleware(`toMiddleware`). You can add a middleware relatively to another
234
- * middleware which also added relatively. But eventually, this relative middleware
235
- * chain **must** be 'anchored' by a middleware that added using `add()` API
236
- * with absolute `step` and `priority`. This mothod will throw if specified
237
- * `toMiddleware` is not found.
238
- */
117
+
239
118
  export interface MiddlewareStack<Input extends object, Output extends object> extends Pluggable<Input, Output> {
240
- /**
241
- * Add middleware to the stack to be executed during the "initialize" step,
242
- * optionally specifying a priority, tags and name
243
- */
119
+
244
120
  add(middleware: InitializeMiddleware<Input, Output>, options?: InitializeHandlerOptions & AbsoluteLocation): void;
245
- /**
246
- * Add middleware to the stack to be executed during the "serialize" step,
247
- * optionally specifying a priority, tags and name
248
- */
121
+
249
122
  add(middleware: SerializeMiddleware<Input, Output>, options: SerializeHandlerOptions & AbsoluteLocation): void;
250
- /**
251
- * Add middleware to the stack to be executed during the "build" step,
252
- * optionally specifying a priority, tags and name
253
- */
123
+
254
124
  add(middleware: BuildMiddleware<Input, Output>, options: BuildHandlerOptions & AbsoluteLocation): void;
255
- /**
256
- * Add middleware to the stack to be executed during the "finalizeRequest" step,
257
- * optionally specifying a priority, tags and name
258
- */
125
+
259
126
  add(middleware: FinalizeRequestMiddleware<Input, Output>, options: FinalizeRequestHandlerOptions & AbsoluteLocation): void;
260
- /**
261
- * Add middleware to the stack to be executed during the "deserialize" step,
262
- * optionally specifying a priority, tags and name
263
- */
127
+
264
128
  add(middleware: DeserializeMiddleware<Input, Output>, options: DeserializeHandlerOptions & AbsoluteLocation): void;
265
- /**
266
- * Add middleware to a stack position before or after a known middleware,optionally
267
- * specifying name and tags.
268
- */
129
+
269
130
  addRelativeTo(middleware: MiddlewareType<Input, Output>, options: RelativeMiddlewareOptions): void;
270
- /**
271
- * Apply a customization function to mutate the middleware stack, often
272
- * used for customizations that requires mutating multiple middleware.
273
- */
131
+
274
132
  use(pluggable: Pluggable<Input, Output>): void;
275
- /**
276
- * Create a shallow clone of this stack. Step bindings and handler priorities
277
- * and tags are preserved in the copy.
278
- */
133
+
279
134
  clone(): MiddlewareStack<Input, Output>;
280
- /**
281
- * Removes middleware from the stack.
282
- *
283
- * If a string is provided, it will be treated as middleware name. If a middleware
284
- * is inserted with the given name, it will be removed.
285
- *
286
- * If a middleware class is provided, all usages thereof will be removed.
287
- */
135
+
288
136
  remove(toRemove: MiddlewareType<Input, Output> | string): boolean;
289
- /**
290
- * Removes middleware that contains given tag
291
- *
292
- * Multiple middleware will potentially be removed
293
- */
137
+
294
138
  removeByTag(toRemove: string): boolean;
295
- /**
296
- * Create a stack containing the middlewares in this stack as well as the
297
- * middlewares in the `from` stack. Neither source is modified, and step
298
- * bindings and handler priorities and tags are preserved in the copy.
299
- */
139
+
300
140
  concat<InputType extends Input, OutputType extends Output>(from: MiddlewareStack<InputType, OutputType>): MiddlewareStack<InputType, OutputType>;
301
- /**
302
- * Builds a single handler function from zero or more middleware classes and
303
- * a core handler. The core handler is meant to send command objects to AWS
304
- * services and return promises that will resolve with the operation result
305
- * or be rejected with an error.
306
- *
307
- * When a composed handler is invoked, the arguments will pass through all
308
- * middleware in a defined order, and the return from the innermost handler
309
- * will pass through all middleware in the reverse of that order.
310
- */
141
+
311
142
  resolve<InputType extends Input, OutputType extends Output>(handler: DeserializeHandler<InputType, OutputType>, context: HandlerExecutionContext): InitializeHandler<InputType, OutputType>;
312
143
  }
313
- /**
314
- * Data and helper objects that are not expected to change from one execution of
315
- * a composed handler to another.
316
- */
144
+
317
145
  export interface HandlerExecutionContext {
318
- /**
319
- * A logger that may be invoked by any handler during execution of an
320
- * operation.
321
- */
146
+
322
147
  logger?: Logger;
323
- /**
324
- * Additional user agent that inferred by middleware. It can be used to save
325
- * the internal user agent sections without overriding the `customUserAgent`
326
- * config in clients.
327
- */
148
+
328
149
  userAgent?: UserAgent;
329
150
  [key: string]: any;
330
151
  }
331
152
  export interface Pluggable<Input extends object, Output extends object> {
332
- /**
333
- * A function that mutate the passed in middleware stack. Functions implementing
334
- * this interface can add, remove, modify existing middleware stack from clients
335
- * or commands
336
- */
153
+
337
154
  applyToStack: (stack: MiddlewareStack<Input, Output>) => void;
338
155
  }
@@ -1,12 +1,7 @@
1
1
  import { Client } from "./client";
2
- /**
3
- * Expected type definition of a paginator.
4
- */
2
+
5
3
  export declare type Paginator<T> = AsyncGenerator<T, T, unknown>;
6
- /**
7
- * Expected paginator configuration passed to an operation. Services will extend
8
- * this interface definition and may type client further.
9
- */
4
+
10
5
  export interface PaginationConfiguration {
11
6
  client: Client<any, any, any>;
12
7
  pageSize?: number;
@@ -1,34 +1,18 @@
1
1
  export interface ResponseMetadata {
2
- /**
3
- * The status code of the last HTTP response received for this operation.
4
- */
2
+
5
3
  httpStatusCode?: number;
6
- /**
7
- * A unique identifier for the last request sent for this operation. Often
8
- * requested by AWS service teams to aid in debugging.
9
- */
4
+
10
5
  requestId?: string;
11
- /**
12
- * A secondary identifier for the last request sent. Used for debugging.
13
- */
6
+
14
7
  extendedRequestId?: string;
15
- /**
16
- * A tertiary identifier for the last request sent. Used for debugging.
17
- */
8
+
18
9
  cfId?: string;
19
- /**
20
- * The number of times this operation was attempted.
21
- */
10
+
22
11
  attempts?: number;
23
- /**
24
- * The total amount of time (in milliseconds) that was spent waiting between
25
- * retry attempts.
26
- */
12
+
27
13
  totalRetryDelay?: number;
28
14
  }
29
15
  export interface MetadataBearer {
30
- /**
31
- * Metadata pertaining to this request.
32
- */
16
+
33
17
  $metadata: ResponseMetadata;
34
18
  }
@@ -1,23 +1,15 @@
1
1
  import { Endpoint } from "./http";
2
2
  import { RequestHandler } from "./transfer";
3
3
  import { Decoder, Encoder, Provider } from "./util";
4
- /**
5
- * Interface for object requires an Endpoint set.
6
- */
4
+
7
5
  export interface EndpointBearer {
8
6
  endpoint: Provider<Endpoint>;
9
7
  }
10
8
  export interface StreamCollector {
11
- /**
12
- * A function that converts a stream into an array of bytes.
13
- *
14
- * @param stream The low-level native stream from browser or Nodejs runtime
15
- */
9
+
16
10
  (stream: any): Promise<Uint8Array>;
17
11
  }
18
- /**
19
- * Request and Response serde util functions and settings for AWS services
20
- */
12
+
21
13
  export interface SerdeContext extends EndpointBearer {
22
14
  base64Encoder: Encoder;
23
15
  base64Decoder: Decoder;
@@ -28,22 +20,10 @@ export interface SerdeContext extends EndpointBearer {
28
20
  disableHostPrefix: boolean;
29
21
  }
30
22
  export interface RequestSerializer<Request, Context extends EndpointBearer = any> {
31
- /**
32
- * Converts the provided `input` into a request object
33
- *
34
- * @param input The user input to serialize.
35
- *
36
- * @param context Context containing runtime-specific util functions.
37
- */
23
+
38
24
  (input: any, context: Context): Promise<Request>;
39
25
  }
40
26
  export interface ResponseDeserializer<OutputType, ResponseType = any, Context = any> {
41
- /**
42
- * Converts the output of an operation into JavaScript types.
43
- *
44
- * @param output The HTTP response received from the service
45
- *
46
- * @param context context containing runtime-specific util functions.
47
- */
27
+
48
28
  (output: ResponseType, context: Context): Promise<OutputType>;
49
29
  }
@@ -1,45 +1,25 @@
1
+ import { HttpResponse } from "./http";
1
2
  import { MetadataBearer } from "./response";
2
- /**
3
- * A document type represents an untyped JSON-like value.
4
- *
5
- * Not all protocols support document types, and the serialization format of a
6
- * document type is protocol specific. All JSON protocols SHOULD support
7
- * document types and they SHOULD serialize document types inline as normal
8
- * JSON values.
9
- */
3
+
10
4
  export declare type DocumentType = null | boolean | number | string | DocumentType[] | {
11
5
  [prop: string]: DocumentType;
12
6
  };
13
- /**
14
- * A structure shape with the error trait.
15
- * https://awslabs.github.io/smithy/spec/core.html#retryable-trait
16
- */
7
+
17
8
  export interface RetryableTrait {
18
- /**
19
- * Indicates that the error is a retryable throttling error.
20
- */
9
+
21
10
  readonly throttling?: boolean;
22
11
  }
23
- /**
24
- * Type that is implemented by all Smithy shapes marked with the
25
- * error trait.
26
- */
12
+
27
13
  export interface SmithyException {
28
- /**
29
- * The shape ID name of the exception.
30
- */
14
+
31
15
  readonly name: string;
32
- /**
33
- * Whether the client or server are at fault.
34
- */
16
+
35
17
  readonly $fault: "client" | "server";
36
- /**
37
- * The service that encountered the exception.
38
- */
18
+
39
19
  readonly $service?: string;
40
- /**
41
- * Indicates that an error MAY be retried by the client.
42
- */
20
+
43
21
  readonly $retryable?: RetryableTrait;
22
+
23
+ readonly $response?: HttpResponse;
44
24
  }
45
25
  export declare type SdkError = Error & Partial<SmithyException> & Partial<MetadataBearer>;
@@ -1,91 +1,40 @@
1
1
  import { HttpRequest } from "./http";
2
- /**
3
- * A {Date} object, a unix (epoch) timestamp in seconds, or a string that can be
4
- * understood by the JavaScript {Date} constructor.
5
- */
2
+
6
3
  export declare type DateInput = number | string | Date;
7
4
  export interface SigningArguments {
8
- /**
9
- * The date and time to be used as signature metadata. This value should be
10
- * a Date object, a unix (epoch) timestamp, or a string that can be
11
- * understood by the JavaScript `Date` constructor.If not supplied, the
12
- * value returned by `new Date()` will be used.
13
- */
5
+
14
6
  signingDate?: DateInput;
15
- /**
16
- * The service signing name. It will override the service name of the signer
17
- * in current invocation
18
- */
7
+
19
8
  signingService?: string;
20
- /**
21
- * The region name to sign the request. It will override the signing region of the
22
- * signer in current invocation
23
- */
9
+
24
10
  signingRegion?: string;
25
11
  }
26
12
  export interface RequestSigningArguments extends SigningArguments {
27
- /**
28
- * A set of strings whose members represents headers that cannot be signed.
29
- * All headers in the provided request will have their names converted to
30
- * lower case and then checked for existence in the unsignableHeaders set.
31
- */
13
+
32
14
  unsignableHeaders?: Set<string>;
33
- /**
34
- * A set of strings whose members represents headers that should be signed.
35
- * Any values passed here will override those provided via unsignableHeaders,
36
- * allowing them to be signed.
37
- *
38
- * All headers in the provided request will have their names converted to
39
- * lower case before signing.
40
- */
15
+
41
16
  signableHeaders?: Set<string>;
42
17
  }
43
18
  export interface RequestPresigningArguments extends RequestSigningArguments {
44
- /**
45
- * The number of seconds before the presigned URL expires
46
- */
19
+
47
20
  expiresIn?: number;
48
- /**
49
- * A set of strings whose representing headers that should not be hoisted
50
- * to presigned request's query string. If not supplied, the presigner
51
- * moves all the AWS-specific headers (starting with `x-amz-`) to the request
52
- * query string. If supplied, these headers remain in the presigned request's
53
- * header.
54
- * All headers in the provided request will have their names converted to
55
- * lower case and then checked for existence in the unhoistableHeaders set.
56
- */
21
+
57
22
  unhoistableHeaders?: Set<string>;
58
23
  }
59
24
  export interface EventSigningArguments extends SigningArguments {
60
25
  priorSignature: string;
61
26
  }
62
27
  export interface RequestPresigner {
63
- /**
64
- * Signs a request for future use.
65
- *
66
- * The request will be valid until either the provided `expiration` time has
67
- * passed or the underlying credentials have expired.
68
- *
69
- * @param requestToSign The request that should be signed.
70
- * @param options Additional signing options.
71
- */
28
+
72
29
  presign(requestToSign: HttpRequest, options?: RequestPresigningArguments): Promise<HttpRequest>;
73
30
  }
74
- /**
75
- * An object that signs request objects with AWS credentials using one of the
76
- * AWS authentication protocols.
77
- */
31
+
78
32
  export interface RequestSigner {
79
- /**
80
- * Sign the provided request for immediate dispatch.
81
- */
33
+
82
34
  sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise<HttpRequest>;
83
35
  }
84
36
  export interface StringSigner {
85
- /**
86
- * Sign the provided `stringToSign` for use outside of the context of
87
- * request signing. Typical uses include signed policy generation.
88
- */
37
+
89
38
  sign(stringToSign: string, options?: SigningArguments): Promise<string>;
90
39
  }
91
40
  export interface FormattedEvent {
@@ -93,8 +42,6 @@ export interface FormattedEvent {
93
42
  payload: Uint8Array;
94
43
  }
95
44
  export interface EventSigner {
96
- /**
97
- * Sign the individual event of the event stream.
98
- */
45
+
99
46
  sign(event: FormattedEvent, options: EventSigningArguments): Promise<string>;
100
47
  }
@@ -2,11 +2,7 @@ export declare type RequestHandlerOutput<ResponseType> = {
2
2
  response: ResponseType;
3
3
  };
4
4
  export interface RequestHandler<RequestType, ResponseType, HandlerOptions = {}> {
5
- /**
6
- * metadata contains information of a handler. For example
7
- * 'h2' refers this handler is for handling HTTP/2 requests,
8
- * whereas 'h1' refers handling HTTP1 requests
9
- */
5
+
10
6
  metadata?: RequestHandlerMetadata;
11
7
  destroy?: () => void;
12
8
  handle: (request: RequestType, handlerOptions?: HandlerOptions) => Promise<RequestHandlerOutput<ResponseType>>;
@@ -1,74 +1,34 @@
1
1
  import { Endpoint } from "./http";
2
2
  import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput } from "./middleware";
3
3
  import { MetadataBearer } from "./response";
4
- /**
5
- * A function that, given a TypedArray of bytes, can produce a string
6
- * representation thereof.
7
- *
8
- * @example An encoder function that converts bytes to hexadecimal
9
- * representation would return `'deadbeef'` when given `new
10
- * Uint8Array([0xde, 0xad, 0xbe, 0xef])`.
11
- */
4
+
12
5
  export interface Encoder {
13
6
  (input: Uint8Array): string;
14
7
  }
15
- /**
16
- * A function that, given a string, can derive the bytes represented by that
17
- * string.
18
- *
19
- * @example A decoder function that converts bytes to hexadecimal
20
- * representation would return `new Uint8Array([0xde, 0xad, 0xbe, 0xef])` when
21
- * given the string `'deadbeef'`.
22
- */
8
+
23
9
  export interface Decoder {
24
10
  (input: string): Uint8Array;
25
11
  }
26
- /**
27
- * A function that, when invoked, returns a promise that will be fulfilled with
28
- * a value of type T.
29
- *
30
- * @example A function that reads credentials from shared SDK configuration
31
- * files, assuming roles and collecting MFA tokens as necessary.
32
- */
12
+
33
13
  export interface Provider<T> {
34
14
  (): Promise<T>;
35
15
  }
36
- /**
37
- * A function that, given a request body, determines the
38
- * length of the body. This is used to determine the Content-Length
39
- * that should be sent with a request.
40
- *
41
- * @example A function that reads a file stream and calculates
42
- * the size of the file.
43
- */
16
+
44
17
  export interface BodyLengthCalculator {
45
18
  (body: any): number | undefined;
46
19
  }
47
- /**
48
- * Interface that specifies the retry behavior
49
- */
20
+
50
21
  export interface RetryStrategy {
51
- /**
52
- * The retry mode describing how the retry strategy control the traffic flow.
53
- */
22
+
54
23
  mode?: string;
55
- /**
56
- * the retry behavior the will invoke the next handler and handle the retry accordingly.
57
- * This function should also update the $metadata from the response accordingly.
58
- * @see {@link ResponseMetadata}
59
- */
24
+
60
25
  retry: <Input extends object, Output extends MetadataBearer>(next: FinalizeHandler<Input, Output>, args: FinalizeHandlerArguments<Input>) => Promise<FinalizeHandlerOutput<Output>>;
61
26
  }
62
- /**
63
- * Parses a URL in string form into an Endpoint object.
64
- */
27
+
65
28
  export interface UrlParser {
66
29
  (url: string): Endpoint;
67
30
  }
68
- /**
69
- * Object containing regionalization information of
70
- * AWS services.
71
- */
31
+
72
32
  export interface RegionInfo {
73
33
  hostname: string;
74
34
  partition: string;
@@ -76,25 +36,21 @@ export interface RegionInfo {
76
36
  signingService?: string;
77
37
  signingRegion?: string;
78
38
  }
79
- /**
80
- * Function returns designated service's regionalization
81
- * information from given region. Each service client
82
- * comes with its regionalization provider. it serves
83
- * to provide the default values of related configurations
84
- */
39
+
40
+ export interface RegionInfoProviderOptions {
41
+
42
+ useDualstackEndpoint: boolean;
43
+
44
+ useFipsEndpoint: boolean;
45
+ }
46
+
85
47
  export interface RegionInfoProvider {
86
- (region: string, options?: any): Promise<RegionInfo | undefined>;
48
+ (region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
87
49
  }
88
- /**
89
- * A tuple that represents an API name and optional version
90
- * of a library built using the AWS SDK.
91
- */
50
+
92
51
  export declare type UserAgentPair = [
93
- /*name*/ string,
94
- /*version*/ string
52
+ string,
53
+ string
95
54
  ];
96
- /**
97
- * User agent data that to be put into the request's user
98
- * agent.
99
- */
55
+
100
56
  export declare type UserAgent = UserAgentPair[];
@@ -1,32 +1,15 @@
1
1
  import { AbortController } from "./abort";
2
2
  export interface WaiterConfiguration<Client> {
3
- /**
4
- * Required service client
5
- */
3
+
6
4
  client: Client;
7
- /**
8
- * The amount of time in seconds a user is willing to wait for a waiter to complete.
9
- */
5
+
10
6
  maxWaitTime: number;
11
- /**
12
- * @deprecated Use abortSignal
13
- * Abort controller. Used for ending the waiter early.
14
- */
7
+
15
8
  abortController?: AbortController;
16
- /**
17
- * Abort Signal. Used for ending the waiter early.
18
- */
9
+
19
10
  abortSignal?: AbortController["signal"];
20
- /**
21
- * The minimum amount of time to delay between retries in seconds. This is the
22
- * floor of the exponential backoff. This value defaults to service default
23
- * if not specified. This value MUST be less than or equal to maxDelay and greater than 0.
24
- */
11
+
25
12
  minDelay?: number;
26
- /**
27
- * The maximum amount of time to delay between retries in seconds. This is the
28
- * ceiling of the exponential backoff. This value defaults to service default
29
- * if not specified. If specified, this value MUST be greater than or equal to 1.
30
- */
13
+
31
14
  maxDelay?: number;
32
15
  }
@@ -76,6 +76,21 @@ export interface RegionInfo {
76
76
  signingService?: string;
77
77
  signingRegion?: string;
78
78
  }
79
+ /**
80
+ * Options to pass when calling {@link RegionInfoProvider}
81
+ */
82
+ export interface RegionInfoProviderOptions {
83
+ /**
84
+ * Enables IPv6/IPv4 dualstack endpoint.
85
+ * @default false
86
+ */
87
+ useDualstackEndpoint: boolean;
88
+ /**
89
+ * Enables FIPS compatible endpoints.
90
+ * @default false
91
+ */
92
+ useFipsEndpoint: boolean;
93
+ }
79
94
  /**
80
95
  * Function returns designated service's regionalization
81
96
  * information from given region. Each service client
@@ -83,7 +98,7 @@ export interface RegionInfo {
83
98
  * to provide the default values of related configurations
84
99
  */
85
100
  export interface RegionInfoProvider {
86
- (region: string, options?: any): Promise<RegionInfo | undefined>;
101
+ (region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
87
102
  }
88
103
  /**
89
104
  * A tuple that represents an API name and optional version
package/package.json CHANGED
@@ -1,19 +1,16 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.36.0",
3
+ "version": "3.46.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
7
7
  "description": "Types for the AWS SDK",
8
- "devDependencies": {
9
- "typescript": "~4.3.5"
10
- },
11
8
  "scripts": {
12
9
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
13
10
  "build:cjs": "tsc -p tsconfig.cjs.json",
14
11
  "build:es": "tsc -p tsconfig.es.json",
15
12
  "build:types": "tsc -p tsconfig.types.json",
16
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
13
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
17
14
  "test": "exit 0"
18
15
  },
19
16
  "author": {
@@ -22,7 +19,7 @@
22
19
  },
23
20
  "license": "Apache-2.0",
24
21
  "engines": {
25
- "node": ">= 10.0.0"
22
+ "node": ">= 12.0.0"
26
23
  },
27
24
  "typesVersions": {
28
25
  "<4.0": {