@aws-sdk/types 3.357.0 → 3.370.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 (77) hide show
  1. package/dist-cjs/auth.js +2 -5
  2. package/dist-cjs/endpoint.js +2 -5
  3. package/dist-cjs/transfer.js +2 -6
  4. package/dist-es/auth.js +1 -5
  5. package/dist-es/endpoint.js +1 -5
  6. package/dist-es/transfer.js +1 -6
  7. package/dist-types/abort.d.ts +1 -49
  8. package/dist-types/auth.d.ts +1 -55
  9. package/dist-types/checksum.d.ts +1 -63
  10. package/dist-types/client.d.ts +1 -25
  11. package/dist-types/command.d.ts +1 -10
  12. package/dist-types/connection.d.ts +1 -0
  13. package/dist-types/crypto.d.ts +1 -60
  14. package/dist-types/encode.d.ts +1 -19
  15. package/dist-types/endpoint.d.ts +1 -77
  16. package/dist-types/eventStream.d.ts +1 -108
  17. package/dist-types/http.d.ts +2 -87
  18. package/dist-types/identity/AwsCredentialIdentity.d.ts +1 -23
  19. package/dist-types/identity/Identity.d.ts +1 -15
  20. package/dist-types/logger.d.ts +2 -13
  21. package/dist-types/middleware.d.ts +1 -475
  22. package/dist-types/pagination.d.ts +1 -26
  23. package/dist-types/profile.d.ts +1 -22
  24. package/dist-types/response.d.ts +1 -40
  25. package/dist-types/retry.d.ts +1 -128
  26. package/dist-types/serde.d.ts +1 -104
  27. package/dist-types/shapes.d.ts +1 -72
  28. package/dist-types/signature.d.ts +1 -150
  29. package/dist-types/stream.d.ts +1 -22
  30. package/dist-types/transfer.d.ts +1 -33
  31. package/dist-types/ts3.4/abort.d.ts +1 -11
  32. package/dist-types/ts3.4/auth.d.ts +5 -17
  33. package/dist-types/ts3.4/checksum.d.ts +1 -12
  34. package/dist-types/ts3.4/client.d.ts +1 -52
  35. package/dist-types/ts3.4/command.d.ts +1 -17
  36. package/dist-types/ts3.4/connection.d.ts +6 -0
  37. package/dist-types/ts3.4/crypto.d.ts +7 -14
  38. package/dist-types/ts3.4/encode.d.ts +6 -19
  39. package/dist-types/ts3.4/endpoint.d.ts +9 -43
  40. package/dist-types/ts3.4/eventStream.d.ts +24 -77
  41. package/dist-types/ts3.4/http.d.ts +10 -26
  42. package/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +4 -8
  43. package/dist-types/ts3.4/identity/Identity.d.ts +1 -6
  44. package/dist-types/ts3.4/logger.d.ts +2 -7
  45. package/dist-types/ts3.4/middleware.d.ts +40 -211
  46. package/dist-types/ts3.4/pagination.d.ts +1 -8
  47. package/dist-types/ts3.4/profile.d.ts +6 -7
  48. package/dist-types/ts3.4/response.d.ts +1 -11
  49. package/dist-types/ts3.4/retry.d.ts +12 -43
  50. package/dist-types/ts3.4/serde.d.ts +12 -46
  51. package/dist-types/ts3.4/shapes.d.ts +6 -24
  52. package/dist-types/ts3.4/signature.d.ts +15 -59
  53. package/dist-types/ts3.4/stream.d.ts +4 -16
  54. package/dist-types/ts3.4/transfer.d.ts +7 -26
  55. package/dist-types/ts3.4/uri.d.ts +1 -11
  56. package/dist-types/ts3.4/util.d.ts +14 -50
  57. package/dist-types/ts3.4/waiter.d.ts +1 -9
  58. package/dist-types/uri.d.ts +1 -17
  59. package/dist-types/util.d.ts +1 -155
  60. package/dist-types/waiter.d.ts +1 -35
  61. package/package.json +2 -1
  62. package/dist-cjs/connection/index.js +0 -6
  63. package/dist-cjs/connection/manager.js +0 -2
  64. package/dist-cjs/connection/pool.js +0 -2
  65. package/dist-es/connection/index.js +0 -3
  66. package/dist-es/connection/manager.js +0 -1
  67. package/dist-es/connection/pool.js +0 -1
  68. package/dist-types/connection/config.d.ts +0 -7
  69. package/dist-types/connection/index.d.ts +0 -3
  70. package/dist-types/connection/manager.d.ts +0 -28
  71. package/dist-types/connection/pool.d.ts +0 -24
  72. package/dist-types/ts3.4/connection/config.d.ts +0 -3
  73. package/dist-types/ts3.4/connection/index.d.ts +0 -3
  74. package/dist-types/ts3.4/connection/manager.d.ts +0 -14
  75. package/dist-types/ts3.4/connection/pool.d.ts +0 -9
  76. /package/dist-cjs/{connection/config.js → connection.js} +0 -0
  77. /package/dist-es/{connection/config.js → connection.js} +0 -0
@@ -1,19 +1,6 @@
1
- import { Message } from "./eventStream";
2
- export interface MessageEncoder {
3
- encode(message: Message): Uint8Array;
4
- }
5
- export interface MessageDecoder {
6
- decode(message: ArrayBufferView): Message;
7
- feed(message: ArrayBufferView): void;
8
- endOfStream(): void;
9
- getMessage(): AvailableMessage;
10
- getAvailableMessages(): AvailableMessages;
11
- }
12
- export interface AvailableMessage {
13
- getMessage(): Message | undefined;
14
- isEndOfStream(): boolean;
15
- }
16
- export interface AvailableMessages {
17
- getMessages(): Message[];
18
- isEndOfStream(): boolean;
19
- }
1
+ export {
2
+ MessageDecoder,
3
+ MessageEncoder,
4
+ AvailableMessage,
5
+ AvailableMessages,
6
+ } from "@smithy/types";
@@ -1,43 +1,9 @@
1
- import { AuthScheme } from "./auth";
2
- export interface EndpointPartition {
3
- name: string;
4
- dnsSuffix: string;
5
- dualStackDnsSuffix: string;
6
- supportsFIPS: boolean;
7
- supportsDualStack: boolean;
8
- }
9
- export interface EndpointARN {
10
- partition: string;
11
- service: string;
12
- region: string;
13
- accountId: string;
14
- resourceId: Array<string>;
15
- }
16
- export declare enum EndpointURLScheme {
17
- HTTP = "http",
18
- HTTPS = "https",
19
- }
20
- export interface EndpointURL {
21
- scheme: EndpointURLScheme;
22
- authority: string;
23
- path: string;
24
- normalizedPath: string;
25
- isIp: boolean;
26
- }
27
- export type EndpointObjectProperty =
28
- | string
29
- | boolean
30
- | {
31
- [key: string]: EndpointObjectProperty;
32
- }
33
- | EndpointObjectProperty[];
34
- export interface EndpointV2 {
35
- url: URL;
36
- properties?: {
37
- authSchemes?: AuthScheme[];
38
- } & Record<string, EndpointObjectProperty>;
39
- headers?: Record<string, string[]>;
40
- }
41
- export type EndpointParameters = {
42
- [name: string]: undefined | string | boolean;
43
- };
1
+ export {
2
+ EndpointARN,
3
+ EndpointPartition,
4
+ EndpointURLScheme,
5
+ EndpointURL,
6
+ EndpointObjectProperty,
7
+ EndpointV2,
8
+ EndpointParameters,
9
+ } from "@smithy/types";
@@ -1,77 +1,24 @@
1
- import { HttpRequest } from "./http";
2
- import {
3
- FinalizeHandler,
4
- FinalizeHandlerArguments,
5
- FinalizeHandlerOutput,
6
- HandlerExecutionContext,
7
- } from "./middleware";
8
- import { MetadataBearer } from "./response";
9
- export interface Message {
10
- headers: MessageHeaders;
11
- body: Uint8Array;
12
- }
13
- export type MessageHeaders = Record<string, MessageHeaderValue>;
14
- type HeaderValue<K extends string, V> = {
15
- type: K;
16
- value: V;
17
- };
18
- export type BooleanHeaderValue = HeaderValue<"boolean", boolean>;
19
- export type ByteHeaderValue = HeaderValue<"byte", number>;
20
- export type ShortHeaderValue = HeaderValue<"short", number>;
21
- export type IntegerHeaderValue = HeaderValue<"integer", number>;
22
- export type LongHeaderValue = HeaderValue<"long", Int64>;
23
- export type BinaryHeaderValue = HeaderValue<"binary", Uint8Array>;
24
- export type StringHeaderValue = HeaderValue<"string", string>;
25
- export type TimestampHeaderValue = HeaderValue<"timestamp", Date>;
26
- export type UuidHeaderValue = HeaderValue<"uuid", string>;
27
- export type MessageHeaderValue =
28
- | BooleanHeaderValue
29
- | ByteHeaderValue
30
- | ShortHeaderValue
31
- | IntegerHeaderValue
32
- | LongHeaderValue
33
- | BinaryHeaderValue
34
- | StringHeaderValue
35
- | TimestampHeaderValue
36
- | UuidHeaderValue;
37
- export interface Int64 {
38
- readonly bytes: Uint8Array;
39
- valueOf: () => number;
40
- toString: () => string;
41
- }
42
- export interface EventStreamSerdeContext {
43
- eventStreamMarshaller: EventStreamMarshaller;
44
- }
45
- export interface EventStreamMarshallerDeserFn<StreamType> {
46
- <T>(
47
- body: StreamType,
48
- deserializer: (input: Record<string, Message>) => Promise<T>
49
- ): AsyncIterable<T>;
50
- }
51
- export interface EventStreamMarshallerSerFn<StreamType> {
52
- <T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType;
53
- }
54
- export interface EventStreamMarshaller<StreamType = any> {
55
- deserialize: EventStreamMarshallerDeserFn<StreamType>;
56
- serialize: EventStreamMarshallerSerFn<StreamType>;
57
- }
58
- export interface EventStreamRequestSigner {
59
- sign(request: HttpRequest): Promise<HttpRequest>;
60
- }
61
- export interface EventStreamPayloadHandler {
62
- handle: <Input extends object, Output extends MetadataBearer>(
63
- next: FinalizeHandler<Input, Output>,
64
- args: FinalizeHandlerArguments<Input>,
65
- context?: HandlerExecutionContext
66
- ) => Promise<FinalizeHandlerOutput<Output>>;
67
- }
68
- export interface EventStreamPayloadHandlerProvider {
69
- (options: any): EventStreamPayloadHandler;
70
- }
71
- export interface EventStreamSerdeProvider {
72
- (options: any): EventStreamMarshaller;
73
- }
74
- export interface EventStreamSignerProvider {
75
- (options: any): EventStreamRequestSigner;
76
- }
77
- export {};
1
+ export {
2
+ Message,
3
+ MessageHeaders,
4
+ BooleanHeaderValue,
5
+ ByteHeaderValue,
6
+ ShortHeaderValue,
7
+ IntegerHeaderValue,
8
+ LongHeaderValue,
9
+ BinaryHeaderValue,
10
+ StringHeaderValue,
11
+ TimestampHeaderValue,
12
+ UuidHeaderValue,
13
+ MessageHeaderValue,
14
+ Int64,
15
+ EventStreamSerdeContext,
16
+ EventStreamMarshaller,
17
+ EventStreamMarshallerDeserFn,
18
+ EventStreamMarshallerSerFn,
19
+ EventStreamPayloadHandler,
20
+ EventStreamPayloadHandlerProvider,
21
+ EventStreamRequestSigner,
22
+ EventStreamSerdeProvider,
23
+ EventStreamSignerProvider,
24
+ } from "@smithy/types";
@@ -1,33 +1,17 @@
1
- import { AbortSignal } from "./abort";
2
- import { URI } from "./uri";
1
+ import { HttpResponse } from "@smithy/types";
2
+ export {
3
+ Endpoint,
4
+ HeaderBag,
5
+ HttpHandlerOptions,
6
+ HttpMessage,
7
+ HttpRequest,
8
+ HttpResponse,
9
+ QueryParameterBag,
10
+ } from "@smithy/types";
3
11
  export interface Headers extends Map<string, string> {
4
12
  withHeader(headerName: string, headerValue: string): Headers;
5
13
  withoutHeader(headerName: string): Headers;
6
14
  }
7
- export type HeaderBag = Record<string, string>;
8
- export interface HttpMessage {
9
- headers: HeaderBag;
10
- body?: any;
11
- }
12
- export type QueryParameterBag = Record<string, string | Array<string> | null>;
13
- export interface Endpoint {
14
- protocol: string;
15
- hostname: string;
16
- port?: number;
17
- path: string;
18
- query?: QueryParameterBag;
19
- }
20
- export interface HttpRequest extends HttpMessage, URI {
21
- method: string;
22
- }
23
- export interface HttpResponse extends HttpMessage {
24
- statusCode: number;
25
- reason?: string;
26
- }
27
15
  export interface ResolvedHttpResponse extends HttpResponse {
28
16
  body: string;
29
17
  }
30
- export interface HttpHandlerOptions {
31
- abortSignal?: AbortSignal;
32
- requestTimeout?: number;
33
- }
@@ -1,8 +1,4 @@
1
- import { Identity, IdentityProvider } from "./Identity";
2
- export interface AwsCredentialIdentity extends Identity {
3
- readonly accessKeyId: string;
4
- readonly secretAccessKey: string;
5
- readonly sessionToken?: string;
6
- }
7
- export type AwsCredentialIdentityProvider =
8
- IdentityProvider<AwsCredentialIdentity>;
1
+ export {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ } from "@smithy/types";
@@ -1,6 +1 @@
1
- export interface Identity {
2
- readonly expiration?: Date;
3
- }
4
- export interface IdentityProvider<IdentityT extends Identity> {
5
- (identityProperties?: Record<string, any>): Promise<IdentityT>;
6
- }
1
+ export { Identity, IdentityProvider } from "@smithy/types";
@@ -1,3 +1,5 @@
1
+ import { Logger } from "@smithy/types";
2
+ export { Logger } from "@smithy/types";
1
3
  export type LogLevel =
2
4
  | "all"
3
5
  | "trace"
@@ -11,10 +13,3 @@ export interface LoggerOptions {
11
13
  logger?: Logger;
12
14
  logLevel?: LogLevel;
13
15
  }
14
- export interface Logger {
15
- trace?: (...content: any[]) => void;
16
- debug: (...content: any[]) => void;
17
- info: (...content: any[]) => void;
18
- warn: (...content: any[]) => void;
19
- error: (...content: any[]) => void;
20
- }
@@ -1,211 +1,40 @@
1
- import { AuthScheme, HttpAuthDefinition } from "./auth";
2
- import { EndpointV2 } from "./endpoint";
3
- import { Logger } from "./logger";
4
- import { UserAgent } from "./util";
5
- export interface InitializeHandlerArguments<Input extends object> {
6
- input: Input;
7
- }
8
- export interface InitializeHandlerOutput<Output extends object>
9
- extends DeserializeHandlerOutput<Output> {
10
- output: Output;
11
- }
12
- export interface SerializeHandlerArguments<Input extends object>
13
- extends InitializeHandlerArguments<Input> {
14
- request?: unknown;
15
- }
16
- export interface SerializeHandlerOutput<Output extends object>
17
- extends InitializeHandlerOutput<Output> {}
18
- export interface BuildHandlerArguments<Input extends object>
19
- extends FinalizeHandlerArguments<Input> {}
20
- export interface BuildHandlerOutput<Output extends object>
21
- extends InitializeHandlerOutput<Output> {}
22
- export interface FinalizeHandlerArguments<Input extends object>
23
- extends SerializeHandlerArguments<Input> {
24
- request: unknown;
25
- }
26
- export interface FinalizeHandlerOutput<Output extends object>
27
- extends InitializeHandlerOutput<Output> {}
28
- export interface DeserializeHandlerArguments<Input extends object>
29
- extends FinalizeHandlerArguments<Input> {}
30
- export interface DeserializeHandlerOutput<Output extends object> {
31
- response: unknown;
32
- output?: Output;
33
- }
34
- export interface InitializeHandler<
35
- Input extends object,
36
- Output extends object
37
- > {
38
- (args: InitializeHandlerArguments<Input>): Promise<
39
- InitializeHandlerOutput<Output>
40
- >;
41
- }
42
- export type Handler<
43
- Input extends object,
44
- Output extends object
45
- > = InitializeHandler<Input, Output>;
46
- export interface SerializeHandler<Input extends object, Output extends object> {
47
- (args: SerializeHandlerArguments<Input>): Promise<
48
- SerializeHandlerOutput<Output>
49
- >;
50
- }
51
- export interface FinalizeHandler<Input extends object, Output extends object> {
52
- (args: FinalizeHandlerArguments<Input>): Promise<
53
- FinalizeHandlerOutput<Output>
54
- >;
55
- }
56
- export interface BuildHandler<Input extends object, Output extends object> {
57
- (args: BuildHandlerArguments<Input>): Promise<BuildHandlerOutput<Output>>;
58
- }
59
- export interface DeserializeHandler<
60
- Input extends object,
61
- Output extends object
62
- > {
63
- (args: DeserializeHandlerArguments<Input>): Promise<
64
- DeserializeHandlerOutput<Output>
65
- >;
66
- }
67
- export interface InitializeMiddleware<
68
- Input extends object,
69
- Output extends object
70
- > {
71
- (
72
- next: InitializeHandler<Input, Output>,
73
- context: HandlerExecutionContext
74
- ): InitializeHandler<Input, Output>;
75
- }
76
- export interface SerializeMiddleware<
77
- Input extends object,
78
- Output extends object
79
- > {
80
- (
81
- next: SerializeHandler<Input, Output>,
82
- context: HandlerExecutionContext
83
- ): SerializeHandler<Input, Output>;
84
- }
85
- export interface FinalizeRequestMiddleware<
86
- Input extends object,
87
- Output extends object
88
- > {
89
- (
90
- next: FinalizeHandler<Input, Output>,
91
- context: HandlerExecutionContext
92
- ): FinalizeHandler<Input, Output>;
93
- }
94
- export interface BuildMiddleware<Input extends object, Output extends object> {
95
- (
96
- next: BuildHandler<Input, Output>,
97
- context: HandlerExecutionContext
98
- ): BuildHandler<Input, Output>;
99
- }
100
- export interface DeserializeMiddleware<
101
- Input extends object,
102
- Output extends object
103
- > {
104
- (
105
- next: DeserializeHandler<Input, Output>,
106
- context: HandlerExecutionContext
107
- ): DeserializeHandler<Input, Output>;
108
- }
109
- export type MiddlewareType<Input extends object, Output extends object> =
110
- | InitializeMiddleware<Input, Output>
111
- | SerializeMiddleware<Input, Output>
112
- | BuildMiddleware<Input, Output>
113
- | FinalizeRequestMiddleware<Input, Output>
114
- | DeserializeMiddleware<Input, Output>;
115
- export interface Terminalware {
116
- <Input extends object, Output extends object>(
117
- context: HandlerExecutionContext
118
- ): DeserializeHandler<Input, Output>;
119
- }
120
- export type Step =
121
- | "initialize"
122
- | "serialize"
123
- | "build"
124
- | "finalizeRequest"
125
- | "deserialize";
126
- export type Priority = "high" | "normal" | "low";
127
- export interface HandlerOptions {
128
- step?: Step;
129
- tags?: Array<string>;
130
- name?: string;
131
- override?: boolean;
132
- }
133
- export interface AbsoluteLocation {
134
- priority?: Priority;
135
- }
136
- export type Relation = "before" | "after";
137
- export interface RelativeLocation {
138
- relation: Relation;
139
- toMiddleware: string;
140
- }
141
- export type RelativeMiddlewareOptions = RelativeLocation &
142
- Pick<HandlerOptions, Exclude<keyof HandlerOptions, "step">>;
143
- export interface InitializeHandlerOptions extends HandlerOptions {
144
- step?: "initialize";
145
- }
146
- export interface SerializeHandlerOptions extends HandlerOptions {
147
- step: "serialize";
148
- }
149
- export interface BuildHandlerOptions extends HandlerOptions {
150
- step: "build";
151
- }
152
- export interface FinalizeRequestHandlerOptions extends HandlerOptions {
153
- step: "finalizeRequest";
154
- }
155
- export interface DeserializeHandlerOptions extends HandlerOptions {
156
- step: "deserialize";
157
- }
158
- export interface MiddlewareStack<Input extends object, Output extends object>
159
- extends Pluggable<Input, Output> {
160
- add(
161
- middleware: InitializeMiddleware<Input, Output>,
162
- options?: InitializeHandlerOptions & AbsoluteLocation
163
- ): void;
164
- add(
165
- middleware: SerializeMiddleware<Input, Output>,
166
- options: SerializeHandlerOptions & AbsoluteLocation
167
- ): void;
168
- add(
169
- middleware: BuildMiddleware<Input, Output>,
170
- options: BuildHandlerOptions & AbsoluteLocation
171
- ): void;
172
- add(
173
- middleware: FinalizeRequestMiddleware<Input, Output>,
174
- options: FinalizeRequestHandlerOptions & AbsoluteLocation
175
- ): void;
176
- add(
177
- middleware: DeserializeMiddleware<Input, Output>,
178
- options: DeserializeHandlerOptions & AbsoluteLocation
179
- ): void;
180
- addRelativeTo(
181
- middleware: MiddlewareType<Input, Output>,
182
- options: RelativeMiddlewareOptions
183
- ): void;
184
- use(pluggable: Pluggable<Input, Output>): void;
185
- clone(): MiddlewareStack<Input, Output>;
186
- remove(toRemove: MiddlewareType<Input, Output> | string): boolean;
187
- removeByTag(toRemove: string): boolean;
188
- concat<InputType extends Input, OutputType extends Output>(
189
- from: MiddlewareStack<InputType, OutputType>
190
- ): MiddlewareStack<InputType, OutputType>;
191
- identify(): string[];
192
- resolve<InputType extends Input, OutputType extends Output>(
193
- handler: DeserializeHandler<InputType, OutputType>,
194
- context: HandlerExecutionContext
195
- ): InitializeHandler<InputType, OutputType>;
196
- }
197
- export interface HandlerExecutionContext {
198
- logger?: Logger;
199
- userAgent?: UserAgent;
200
- endpointV2?: EndpointV2;
201
- authSchemes?: AuthScheme[];
202
- currentAuthConfig?: HttpAuthDefinition;
203
- dynamoDbDocumentClientOptions?: Partial<{
204
- overrideInputFilterSensitiveLog(...args: any[]): string | void;
205
- overrideOutputFilterSensitiveLog(...args: any[]): string | void;
206
- }>;
207
- [key: string]: any;
208
- }
209
- export interface Pluggable<Input extends object, Output extends object> {
210
- applyToStack: (stack: MiddlewareStack<Input, Output>) => void;
211
- }
1
+ export {
2
+ AbsoluteLocation,
3
+ BuildHandler,
4
+ BuildHandlerArguments,
5
+ BuildHandlerOptions,
6
+ BuildHandlerOutput,
7
+ BuildMiddleware,
8
+ DeserializeHandler,
9
+ DeserializeHandlerArguments,
10
+ DeserializeHandlerOptions,
11
+ DeserializeHandlerOutput,
12
+ DeserializeMiddleware,
13
+ FinalizeHandler,
14
+ FinalizeHandlerArguments,
15
+ FinalizeHandlerOutput,
16
+ FinalizeRequestHandlerOptions,
17
+ FinalizeRequestMiddleware,
18
+ Handler,
19
+ HandlerExecutionContext,
20
+ HandlerOptions,
21
+ InitializeHandler,
22
+ InitializeHandlerArguments,
23
+ InitializeHandlerOptions,
24
+ InitializeHandlerOutput,
25
+ InitializeMiddleware,
26
+ MiddlewareStack,
27
+ MiddlewareType,
28
+ Pluggable,
29
+ Priority,
30
+ Relation,
31
+ RelativeLocation,
32
+ RelativeMiddlewareOptions,
33
+ SerializeHandler,
34
+ SerializeHandlerArguments,
35
+ SerializeHandlerOptions,
36
+ SerializeHandlerOutput,
37
+ SerializeMiddleware,
38
+ Step,
39
+ Terminalware,
40
+ } from "@smithy/types";
@@ -1,8 +1 @@
1
- import { Client } from "./client";
2
- export type Paginator<T> = AsyncGenerator<T, T, unknown>;
3
- export interface PaginationConfiguration {
4
- client: Client<any, any, any>;
5
- pageSize?: number;
6
- startingToken?: any;
7
- stopOnSameToken?: boolean;
8
- }
1
+ export { PaginationConfiguration, Paginator } from "@smithy/types";
@@ -1,7 +1,6 @@
1
- export type IniSection = Record<string, string | undefined>;
2
- export interface Profile extends IniSection {}
3
- export type ParsedIniData = Record<string, IniSection>;
4
- export interface SharedConfigFiles {
5
- credentialsFile: ParsedIniData;
6
- configFile: ParsedIniData;
7
- }
1
+ export {
2
+ IniSection,
3
+ Profile,
4
+ ParsedIniData,
5
+ SharedConfigFiles,
6
+ } from "@smithy/types";
@@ -1,14 +1,4 @@
1
- export interface ResponseMetadata {
2
- httpStatusCode?: number;
3
- requestId?: string;
4
- extendedRequestId?: string;
5
- cfId?: string;
6
- attempts?: number;
7
- totalRetryDelay?: number;
8
- }
9
- export interface MetadataBearer {
10
- $metadata: ResponseMetadata;
11
- }
1
+ export { MetadataBearer, ResponseMetadata } from "@smithy/types";
12
2
  export interface Response {
13
3
  body: any;
14
4
  }
@@ -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
- }