@aws-sdk/types 3.347.0 → 3.369.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.
Files changed (89) hide show
  1. package/dist-cjs/auth.js +2 -5
  2. package/dist-cjs/connection.js +2 -0
  3. package/dist-cjs/endpoint.js +2 -5
  4. package/dist-cjs/index.js +1 -0
  5. package/dist-cjs/transfer.js +2 -6
  6. package/dist-es/auth.js +1 -5
  7. package/dist-es/connection.js +1 -0
  8. package/dist-es/endpoint.js +1 -5
  9. package/dist-es/index.js +1 -0
  10. package/dist-es/transfer.js +1 -6
  11. package/dist-types/abort.d.ts +1 -49
  12. package/dist-types/auth.d.ts +1 -55
  13. package/dist-types/blob/blob-types.d.ts +22 -0
  14. package/dist-types/blob/runtime-blob-types.browser.d.ts +6 -0
  15. package/dist-types/blob/runtime-blob-types.node.d.ts +9 -0
  16. package/dist-types/checksum.d.ts +1 -63
  17. package/dist-types/client.d.ts +1 -25
  18. package/dist-types/command.d.ts +1 -10
  19. package/dist-types/connection.d.ts +1 -0
  20. package/dist-types/crypto.d.ts +1 -60
  21. package/dist-types/encode.d.ts +1 -19
  22. package/dist-types/endpoint.d.ts +1 -77
  23. package/dist-types/eventStream.d.ts +1 -108
  24. package/dist-types/http.d.ts +2 -87
  25. package/dist-types/identity/AwsCredentialIdentity.d.ts +1 -23
  26. package/dist-types/identity/Identity.d.ts +1 -15
  27. package/dist-types/index.d.ts +1 -0
  28. package/dist-types/logger.d.ts +2 -13
  29. package/dist-types/middleware.d.ts +1 -475
  30. package/dist-types/pagination.d.ts +1 -26
  31. package/dist-types/profile.d.ts +1 -22
  32. package/dist-types/response.d.ts +1 -40
  33. package/dist-types/retry.d.ts +1 -128
  34. package/dist-types/serde.d.ts +1 -104
  35. package/dist-types/shapes.d.ts +1 -72
  36. package/dist-types/signature.d.ts +1 -150
  37. package/dist-types/stream.d.ts +1 -22
  38. package/dist-types/transfer.d.ts +1 -33
  39. package/dist-types/ts3.4/abort.d.ts +1 -11
  40. package/dist-types/ts3.4/auth.d.ts +5 -17
  41. package/dist-types/ts3.4/blob/blob-types.d.ts +7 -0
  42. package/dist-types/ts3.4/blob/runtime-blob-types.browser.d.ts +1 -0
  43. package/dist-types/ts3.4/blob/runtime-blob-types.node.d.ts +2 -0
  44. package/dist-types/ts3.4/checksum.d.ts +1 -12
  45. package/dist-types/ts3.4/client.d.ts +1 -52
  46. package/dist-types/ts3.4/command.d.ts +1 -17
  47. package/dist-types/ts3.4/connection.d.ts +6 -0
  48. package/dist-types/ts3.4/crypto.d.ts +7 -14
  49. package/dist-types/ts3.4/encode.d.ts +6 -19
  50. package/dist-types/ts3.4/endpoint.d.ts +9 -43
  51. package/dist-types/ts3.4/eventStream.d.ts +24 -77
  52. package/dist-types/ts3.4/http.d.ts +10 -26
  53. package/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +4 -8
  54. package/dist-types/ts3.4/identity/Identity.d.ts +1 -6
  55. package/dist-types/ts3.4/index.d.ts +1 -0
  56. package/dist-types/ts3.4/logger.d.ts +2 -7
  57. package/dist-types/ts3.4/middleware.d.ts +40 -211
  58. package/dist-types/ts3.4/pagination.d.ts +1 -8
  59. package/dist-types/ts3.4/profile.d.ts +6 -7
  60. package/dist-types/ts3.4/response.d.ts +1 -11
  61. package/dist-types/ts3.4/retry.d.ts +12 -43
  62. package/dist-types/ts3.4/serde.d.ts +12 -46
  63. package/dist-types/ts3.4/shapes.d.ts +6 -24
  64. package/dist-types/ts3.4/signature.d.ts +15 -59
  65. package/dist-types/ts3.4/stream.d.ts +4 -16
  66. package/dist-types/ts3.4/transfer.d.ts +7 -26
  67. package/dist-types/ts3.4/uri.d.ts +1 -11
  68. package/dist-types/ts3.4/util.d.ts +14 -50
  69. package/dist-types/ts3.4/waiter.d.ts +1 -9
  70. package/dist-types/uri.d.ts +1 -17
  71. package/dist-types/util.d.ts +1 -155
  72. package/dist-types/waiter.d.ts +1 -35
  73. package/package.json +8 -1
  74. package/dist-cjs/connection/index.js +0 -6
  75. package/dist-es/connection/index.js +0 -3
  76. package/dist-types/connection/config.d.ts +0 -7
  77. package/dist-types/connection/index.d.ts +0 -3
  78. package/dist-types/connection/manager.d.ts +0 -28
  79. package/dist-types/connection/pool.d.ts +0 -24
  80. package/dist-types/ts3.4/connection/config.d.ts +0 -3
  81. package/dist-types/ts3.4/connection/index.d.ts +0 -3
  82. package/dist-types/ts3.4/connection/manager.d.ts +0 -14
  83. package/dist-types/ts3.4/connection/pool.d.ts +0 -9
  84. /package/dist-cjs/{connection/config.js → blob/blob-types.js} +0 -0
  85. /package/dist-cjs/{connection/manager.js → blob/runtime-blob-types.browser.js} +0 -0
  86. /package/dist-cjs/{connection/pool.js → blob/runtime-blob-types.node.js} +0 -0
  87. /package/dist-es/{connection/config.js → blob/blob-types.js} +0 -0
  88. /package/dist-es/{connection/manager.js → blob/runtime-blob-types.browser.js} +0 -0
  89. /package/dist-es/{connection/pool.js → blob/runtime-blob-types.node.js} +0 -0
@@ -1,43 +1,12 @@
1
- export type RetryErrorType =
2
- | "TRANSIENT"
3
- | "THROTTLING"
4
- | "SERVER_ERROR"
5
- | "CLIENT_ERROR";
6
- export interface RetryErrorInfo {
7
- errorType: RetryErrorType;
8
- retryAfterHint?: Date;
9
- }
10
- export interface RetryBackoffStrategy {
11
- computeNextBackoffDelay(retryAttempt: number): number;
12
- }
13
- export interface StandardRetryBackoffStrategy extends RetryBackoffStrategy {
14
- setDelayBase(delayBase: number): void;
15
- }
16
- export interface RetryStrategyOptions {
17
- backoffStrategy: RetryBackoffStrategy;
18
- maxRetriesBase: number;
19
- }
20
- export interface RetryToken {
21
- getRetryCount(): number;
22
- getRetryDelay(): number;
23
- }
24
- export interface StandardRetryToken extends RetryToken {
25
- getRetryCost(): number | undefined;
26
- }
27
- export interface RetryStrategyV2 {
28
- acquireInitialRetryToken(retryTokenScope: string): Promise<RetryToken>;
29
- refreshRetryTokenForRetry(
30
- tokenToRenew: RetryToken,
31
- errorInfo: RetryErrorInfo
32
- ): Promise<RetryToken>;
33
- recordSuccess(token: RetryToken): void;
34
- }
35
- export type ExponentialBackoffJitterType =
36
- | "DEFAULT"
37
- | "NONE"
38
- | "FULL"
39
- | "DECORRELATED";
40
- export interface ExponentialBackoffStrategyOptions {
41
- jitterType: ExponentialBackoffJitterType;
42
- backoffScaleValue?: number;
43
- }
1
+ export {
2
+ ExponentialBackoffJitterType,
3
+ ExponentialBackoffStrategyOptions,
4
+ RetryBackoffStrategy,
5
+ RetryErrorInfo,
6
+ RetryErrorType,
7
+ RetryStrategyOptions,
8
+ RetryStrategyV2,
9
+ RetryToken,
10
+ StandardRetryBackoffStrategy,
11
+ StandardRetryToken,
12
+ } from "@smithy/types";
@@ -1,50 +1,16 @@
1
- import { Endpoint } from "./http";
2
- import { RequestHandler } from "./transfer";
3
- import { Decoder, Encoder, Provider } from "./util";
4
- export interface EndpointBearer {
5
- endpoint: Provider<Endpoint>;
6
- }
7
- export interface StreamCollector {
8
- (stream: any): Promise<Uint8Array>;
9
- }
10
- export interface SerdeContext extends EndpointBearer {
11
- base64Encoder: Encoder;
12
- base64Decoder: Decoder;
13
- utf8Encoder: Encoder;
14
- utf8Decoder: Decoder;
15
- streamCollector: StreamCollector;
16
- requestHandler: RequestHandler<any, any>;
17
- disableHostPrefix: boolean;
18
- }
19
- export interface RequestSerializer<
20
- Request,
21
- Context extends EndpointBearer = any
22
- > {
23
- (input: any, context: Context): Promise<Request>;
24
- }
25
- export interface ResponseDeserializer<
26
- OutputType,
27
- ResponseType = any,
28
- Context = any
29
- > {
30
- (output: ResponseType, context: Context): Promise<OutputType>;
31
- }
1
+ export {
2
+ EndpointBearer,
3
+ StreamCollector,
4
+ SerdeContext,
5
+ ResponseDeserializer,
6
+ RequestSerializer,
7
+ SdkStreamMixin,
8
+ SdkStream,
9
+ WithSdkStreamMixin,
10
+ SdkStreamMixinInjector,
11
+ SdkStreamSerdeContext,
12
+ } from "@smithy/types";
32
13
  declare global {
33
14
  export interface ReadableStream {}
34
15
  export interface Blob {}
35
16
  }
36
- export interface SdkStreamMixin {
37
- transformToByteArray: () => Promise<Uint8Array>;
38
- transformToString: (encoding?: string) => Promise<string>;
39
- transformToWebStream: () => ReadableStream;
40
- }
41
- export type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
42
- export type WithSdkStreamMixin<T, StreamKey extends keyof T> = {
43
- [key in keyof T]: key extends StreamKey ? SdkStream<T[StreamKey]> : T[key];
44
- };
45
- export interface SdkStreamMixinInjector {
46
- (stream: unknown): SdkStreamMixin;
47
- }
48
- export interface SdkStreamSerdeContext {
49
- sdkStreamMixin: SdkStreamMixinInjector;
50
- }
@@ -1,24 +1,6 @@
1
- import { HttpResponse } from "./http";
2
- import { MetadataBearer } from "./response";
3
- export type DocumentType =
4
- | null
5
- | boolean
6
- | number
7
- | string
8
- | DocumentType[]
9
- | {
10
- [prop: string]: DocumentType;
11
- };
12
- export interface RetryableTrait {
13
- readonly throttling?: boolean;
14
- }
15
- export interface SmithyException {
16
- readonly name: string;
17
- readonly $fault: "client" | "server";
18
- readonly $service?: string;
19
- readonly $retryable?: RetryableTrait;
20
- readonly $response?: HttpResponse;
21
- }
22
- export type SdkError = Error &
23
- Partial<SmithyException> &
24
- Partial<MetadataBearer>;
1
+ export {
2
+ DocumentType,
3
+ RetryableTrait,
4
+ SmithyException,
5
+ SdkError,
6
+ } from "@smithy/types";
@@ -1,59 +1,15 @@
1
- import { Message } from "./eventStream";
2
- import { HttpRequest } from "./http";
3
- export type DateInput = number | string | Date;
4
- export interface SigningArguments {
5
- signingDate?: DateInput;
6
- signingService?: string;
7
- signingRegion?: string;
8
- }
9
- export interface RequestSigningArguments extends SigningArguments {
10
- unsignableHeaders?: Set<string>;
11
- signableHeaders?: Set<string>;
12
- }
13
- export interface RequestPresigningArguments extends RequestSigningArguments {
14
- expiresIn?: number;
15
- unhoistableHeaders?: Set<string>;
16
- }
17
- export interface EventSigningArguments extends SigningArguments {
18
- priorSignature: string;
19
- }
20
- export interface RequestPresigner {
21
- presign(
22
- requestToSign: HttpRequest,
23
- options?: RequestPresigningArguments
24
- ): Promise<HttpRequest>;
25
- }
26
- export interface RequestSigner {
27
- sign(
28
- requestToSign: HttpRequest,
29
- options?: RequestSigningArguments
30
- ): Promise<HttpRequest>;
31
- }
32
- export interface StringSigner {
33
- sign(stringToSign: string, options?: SigningArguments): Promise<string>;
34
- }
35
- export interface FormattedEvent {
36
- headers: Uint8Array;
37
- payload: Uint8Array;
38
- }
39
- export interface EventSigner {
40
- sign(event: FormattedEvent, options: EventSigningArguments): Promise<string>;
41
- }
42
- export interface SignableMessage {
43
- message: Message;
44
- priorSignature: string;
45
- }
46
- export interface SignedMessage {
47
- message: Message;
48
- signature: string;
49
- }
50
- export interface MessageSigner {
51
- signMessage(
52
- message: SignableMessage,
53
- args: SigningArguments
54
- ): Promise<SignedMessage>;
55
- sign(
56
- event: SignableMessage,
57
- options: SigningArguments
58
- ): Promise<SignedMessage>;
59
- }
1
+ export {
2
+ DateInput,
3
+ EventSigner,
4
+ EventSigningArguments,
5
+ FormattedEvent,
6
+ MessageSigner,
7
+ RequestSigningArguments,
8
+ RequestPresigner,
9
+ RequestPresigningArguments,
10
+ RequestSigner,
11
+ SignableMessage,
12
+ SignedMessage,
13
+ SigningArguments,
14
+ StringSigner,
15
+ } from "@smithy/types";
@@ -1,16 +1,4 @@
1
- import { ChecksumConstructor } from "./checksum";
2
- import { HashConstructor, StreamHasher } from "./crypto";
3
- import { BodyLengthCalculator, Encoder } from "./util";
4
- export interface GetAwsChunkedEncodingStreamOptions {
5
- base64Encoder?: Encoder;
6
- bodyLengthChecker: BodyLengthCalculator;
7
- checksumAlgorithmFn?: ChecksumConstructor | HashConstructor;
8
- checksumLocationName?: string;
9
- streamHasher?: StreamHasher;
10
- }
11
- export interface GetAwsChunkedEncodingStream<StreamType = any> {
12
- (
13
- readableStream: StreamType,
14
- options: GetAwsChunkedEncodingStreamOptions
15
- ): StreamType;
16
- }
1
+ export {
2
+ GetAwsChunkedEncodingStream,
3
+ GetAwsChunkedEncodingStreamOptions,
4
+ } from "@smithy/types";
@@ -1,26 +1,7 @@
1
- export type RequestHandlerOutput<ResponseType> = {
2
- response: ResponseType;
3
- };
4
- export interface RequestHandler<
5
- RequestType,
6
- ResponseType,
7
- HandlerOptions = {}
8
- > {
9
- metadata?: RequestHandlerMetadata;
10
- destroy?: () => void;
11
- handle: (
12
- request: RequestType,
13
- handlerOptions?: HandlerOptions
14
- ) => Promise<RequestHandlerOutput<ResponseType>>;
15
- }
16
- export interface RequestHandlerMetadata {
17
- handlerProtocol: RequestHandlerProtocol | string;
18
- }
19
- export declare enum RequestHandlerProtocol {
20
- HTTP_0_9 = "http/0.9",
21
- HTTP_1_0 = "http/1.0",
22
- TDS_8_0 = "tds/8.0",
23
- }
24
- export interface RequestContext {
25
- destination: URL;
26
- }
1
+ export {
2
+ RequestContext,
3
+ RequestHandler,
4
+ RequestHandlerMetadata,
5
+ RequestHandlerOutput,
6
+ RequestHandlerProtocol,
7
+ } from "@smithy/types";
@@ -1,11 +1 @@
1
- import { QueryParameterBag } from "./http";
2
- export type URI = {
3
- protocol: string;
4
- hostname: string;
5
- port?: number;
6
- path: string;
7
- query?: QueryParameterBag;
8
- username?: string;
9
- password?: string;
10
- fragment?: string;
11
- };
1
+ export { URI } from "@smithy/types";
@@ -1,50 +1,14 @@
1
- import { Endpoint } from "./http";
2
- import {
3
- FinalizeHandler,
4
- FinalizeHandlerArguments,
5
- FinalizeHandlerOutput,
6
- } from "./middleware";
7
- import { MetadataBearer } from "./response";
8
- export interface Encoder {
9
- (input: Uint8Array): string;
10
- }
11
- export interface Decoder {
12
- (input: string): Uint8Array;
13
- }
14
- export interface Provider<T> {
15
- (): Promise<T>;
16
- }
17
- export interface MemoizedProvider<T> {
18
- (options?: { forceRefresh?: boolean }): Promise<T>;
19
- }
20
- export interface BodyLengthCalculator {
21
- (body: any): number | undefined;
22
- }
23
- export interface RetryStrategy {
24
- mode?: string;
25
- retry: <Input extends object, Output extends MetadataBearer>(
26
- next: FinalizeHandler<Input, Output>,
27
- args: FinalizeHandlerArguments<Input>
28
- ) => Promise<FinalizeHandlerOutput<Output>>;
29
- }
30
- export interface UrlParser {
31
- (url: string | URL): Endpoint;
32
- }
33
- export interface RegionInfo {
34
- hostname: string;
35
- partition: string;
36
- path?: string;
37
- signingService?: string;
38
- signingRegion?: string;
39
- }
40
- export interface RegionInfoProviderOptions {
41
- useDualstackEndpoint: boolean;
42
- useFipsEndpoint: boolean;
43
- }
44
- export interface RegionInfoProvider {
45
- (region: string, options?: RegionInfoProviderOptions): Promise<
46
- RegionInfo | undefined
47
- >;
48
- }
49
- export type UserAgentPair = [string, string];
50
- export type UserAgent = UserAgentPair[];
1
+ export {
2
+ Encoder,
3
+ Decoder,
4
+ Provider,
5
+ UserAgentPair,
6
+ UserAgent,
7
+ UrlParser,
8
+ MemoizedProvider,
9
+ BodyLengthCalculator,
10
+ RegionInfo,
11
+ RegionInfoProviderOptions,
12
+ RegionInfoProvider,
13
+ RetryStrategy,
14
+ } from "@smithy/types";
@@ -1,9 +1 @@
1
- import { AbortController } from "./abort";
2
- export interface WaiterConfiguration<Client> {
3
- client: Client;
4
- maxWaitTime: number;
5
- abortController?: AbortController;
6
- abortSignal?: AbortController["signal"];
7
- minDelay?: number;
8
- maxDelay?: number;
9
- }
1
+ export { WaiterConfiguration } from "@smithy/types";
@@ -1,17 +1 @@
1
- import { QueryParameterBag } from "./http";
2
- /**
3
- * @internal
4
- *
5
- * Represents the components parts of a Uniform Resource Identifier used to
6
- * construct the target location of a Request.
7
- */
8
- export type URI = {
9
- protocol: string;
10
- hostname: string;
11
- port?: number;
12
- path: string;
13
- query?: QueryParameterBag;
14
- username?: string;
15
- password?: string;
16
- fragment?: string;
17
- };
1
+ export { URI } from "@smithy/types";
@@ -1,155 +1 @@
1
- import { Endpoint } from "./http";
2
- import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput } from "./middleware";
3
- import { MetadataBearer } from "./response";
4
- /**
5
- * @public
6
- *
7
- * A function that, given a TypedArray of bytes, can produce a string
8
- * representation thereof.
9
- *
10
- * @example An encoder function that converts bytes to hexadecimal
11
- * representation would return `'deadbeef'` when given
12
- * `new Uint8Array([0xde, 0xad, 0xbe, 0xef])`.
13
- */
14
- export interface Encoder {
15
- (input: Uint8Array): string;
16
- }
17
- /**
18
- * @public
19
- *
20
- * A function that, given a string, can derive the bytes represented by that
21
- * string.
22
- *
23
- * @example A decoder function that converts bytes to hexadecimal
24
- * representation would return `new Uint8Array([0xde, 0xad, 0xbe, 0xef])` when
25
- * given the string `'deadbeef'`.
26
- */
27
- export interface Decoder {
28
- (input: string): Uint8Array;
29
- }
30
- /**
31
- * @public
32
- *
33
- * A function that, when invoked, returns a promise that will be fulfilled with
34
- * a value of type T.
35
- *
36
- * @example A function that reads credentials from shared SDK configuration
37
- * files, assuming roles and collecting MFA tokens as necessary.
38
- */
39
- export interface Provider<T> {
40
- (): Promise<T>;
41
- }
42
- /**
43
- * @public
44
- *
45
- * A function that, when invoked, returns a promise that will be fulfilled with
46
- * a value of type T. It memoizes the result from the previous invocation
47
- * instead of calling the underlying resources every time.
48
- *
49
- * You can force the provider to refresh the memoized value by invoke the
50
- * function with optional parameter hash with `forceRefresh` boolean key and
51
- * value `true`.
52
- *
53
- * @example A function that reads credentials from IMDS service that could
54
- * return expired credentials. The SDK will keep using the expired credentials
55
- * until an unretryable service error requiring a force refresh of the
56
- * credentials.
57
- */
58
- export interface MemoizedProvider<T> {
59
- (options?: {
60
- forceRefresh?: boolean;
61
- }): Promise<T>;
62
- }
63
- /**
64
- * @public
65
- *
66
- * A function that, given a request body, determines the
67
- * length of the body. This is used to determine the Content-Length
68
- * that should be sent with a request.
69
- *
70
- * @example A function that reads a file stream and calculates
71
- * the size of the file.
72
- */
73
- export interface BodyLengthCalculator {
74
- (body: any): number | undefined;
75
- }
76
- /**
77
- * @public
78
- *
79
- * Interface that specifies the retry behavior
80
- */
81
- export interface RetryStrategy {
82
- /**
83
- * The retry mode describing how the retry strategy control the traffic flow.
84
- */
85
- mode?: string;
86
- /**
87
- * the retry behavior the will invoke the next handler and handle the retry accordingly.
88
- * This function should also update the $metadata from the response accordingly.
89
- * @see {@link ResponseMetadata}
90
- */
91
- retry: <Input extends object, Output extends MetadataBearer>(next: FinalizeHandler<Input, Output>, args: FinalizeHandlerArguments<Input>) => Promise<FinalizeHandlerOutput<Output>>;
92
- }
93
- /**
94
- * @public
95
- *
96
- * Parses a URL in string form into an Endpoint object.
97
- */
98
- export interface UrlParser {
99
- (url: string | URL): Endpoint;
100
- }
101
- /**
102
- * @public
103
- *
104
- * Object containing regionalization information of
105
- * AWS services.
106
- */
107
- export interface RegionInfo {
108
- hostname: string;
109
- partition: string;
110
- path?: string;
111
- signingService?: string;
112
- signingRegion?: string;
113
- }
114
- /**
115
- * @public
116
- *
117
- * Options to pass when calling {@link RegionInfoProvider}
118
- */
119
- export interface RegionInfoProviderOptions {
120
- /**
121
- * Enables IPv6/IPv4 dualstack endpoint.
122
- * @defaultValue false
123
- */
124
- useDualstackEndpoint: boolean;
125
- /**
126
- * Enables FIPS compatible endpoints.
127
- * @defaultValue false
128
- */
129
- useFipsEndpoint: boolean;
130
- }
131
- /**
132
- * @public
133
- *
134
- * Function returns designated service's regionalization
135
- * information from given region. Each service client
136
- * comes with its regionalization provider. it serves
137
- * to provide the default values of related configurations
138
- */
139
- export interface RegionInfoProvider {
140
- (region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
141
- }
142
- /**
143
- * @public
144
- *
145
- * A tuple that represents an API name and optional version
146
- * of a library built using the AWS SDK.
147
- */
148
- export type UserAgentPair = [name: string, version?: string];
149
- /**
150
- * @public
151
- *
152
- * User agent data that to be put into the request's user
153
- * agent.
154
- */
155
- export type UserAgent = UserAgentPair[];
1
+ export { Encoder, Decoder, Provider, UserAgentPair, UserAgent, UrlParser, MemoizedProvider, BodyLengthCalculator, RegionInfo, RegionInfoProviderOptions, RegionInfoProvider, RetryStrategy, } from "@smithy/types";
@@ -1,35 +1 @@
1
- import { AbortController } from "./abort";
2
- /**
3
- * @public
4
- */
5
- export interface WaiterConfiguration<Client> {
6
- /**
7
- * Required service client
8
- */
9
- client: Client;
10
- /**
11
- * The amount of time in seconds a user is willing to wait for a waiter to complete.
12
- */
13
- maxWaitTime: number;
14
- /**
15
- * @deprecated Use abortSignal
16
- * Abort controller. Used for ending the waiter early.
17
- */
18
- abortController?: AbortController;
19
- /**
20
- * Abort Signal. Used for ending the waiter early.
21
- */
22
- abortSignal?: AbortController["signal"];
23
- /**
24
- * The minimum amount of time to delay between retries in seconds. This is the
25
- * floor of the exponential backoff. This value defaults to service default
26
- * if not specified. This value MUST be less than or equal to maxDelay and greater than 0.
27
- */
28
- minDelay?: number;
29
- /**
30
- * The maximum amount of time to delay between retries in seconds. This is the
31
- * ceiling of the exponential backoff. This value defaults to service default
32
- * if not specified. If specified, this value MUST be greater than or equal to 1.
33
- */
34
- maxDelay?: number;
35
- }
1
+ export { WaiterConfiguration } from "@smithy/types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.347.0",
3
+ "version": "3.369.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -41,6 +41,7 @@
41
41
  "directory": "packages/types"
42
42
  },
43
43
  "dependencies": {
44
+ "@smithy/types": "1.1.0",
44
45
  "tslib": "^2.5.0"
45
46
  },
46
47
  "devDependencies": {
@@ -53,5 +54,11 @@
53
54
  },
54
55
  "typedoc": {
55
56
  "entryPoint": "src/index.ts"
57
+ },
58
+ "browser": {
59
+ "./dist-es/blob/runtime-blob-types.node": "./dist-es/blob/runtime-blob-types.browser"
60
+ },
61
+ "react-native": {
62
+ "./dist-es/blob/runtime-blob-types.node": "./dist-es/blob/runtime-blob-types.browser"
56
63
  }
57
64
  }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./config"), exports);
5
- tslib_1.__exportStar(require("./manager"), exports);
6
- tslib_1.__exportStar(require("./pool"), exports);
@@ -1,3 +0,0 @@
1
- export * from "./config";
2
- export * from "./manager";
3
- export * from "./pool";
@@ -1,7 +0,0 @@
1
- export interface ConnectConfiguration {
2
- /**
3
- * The maximum time in milliseconds that the connection phase of a request
4
- * may take before the connection attempt is abandoned.
5
- */
6
- requestTimeout?: number;
7
- }
@@ -1,3 +0,0 @@
1
- export * from "./config";
2
- export * from "./manager";
3
- export * from "./pool";
@@ -1,28 +0,0 @@
1
- import { RequestContext } from "../transfer";
2
- import { ConnectConfiguration } from "./config";
3
- export interface ConnectionManagerConfiguration {
4
- /**
5
- * Maximum number of allowed concurrent requests per connection.
6
- */
7
- maxConcurrency?: number;
8
- /**
9
- * Disables concurrent requests per connection.
10
- */
11
- disableConcurrency?: boolean;
12
- }
13
- export interface ConnectionManager<T> {
14
- /**
15
- * Retrieves a connection from the connection pool if available,
16
- * otherwise establish a new connection
17
- */
18
- lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): T;
19
- /**
20
- * Releases the connection back to the pool making it potentially
21
- * re-usable by other requests.
22
- */
23
- release(requestContext: RequestContext, connection: T): void;
24
- /**
25
- * Destroys the connection manager. All connections will be closed.
26
- */
27
- destroy(): void;
28
- }