@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,52 +1 @@
1
- import { Command } from "./command";
2
- import { MiddlewareStack } from "./middleware";
3
- import { MetadataBearer } from "./response";
4
- interface InvokeFunction<
5
- InputTypes extends object,
6
- OutputTypes extends MetadataBearer,
7
- ResolvedClientConfiguration
8
- > {
9
- <InputType extends InputTypes, OutputType extends OutputTypes>(
10
- command: Command<
11
- InputTypes,
12
- InputType,
13
- OutputTypes,
14
- OutputType,
15
- ResolvedClientConfiguration
16
- >,
17
- options?: any
18
- ): Promise<OutputType>;
19
- <InputType extends InputTypes, OutputType extends OutputTypes>(
20
- command: Command<
21
- InputTypes,
22
- InputType,
23
- OutputTypes,
24
- OutputType,
25
- ResolvedClientConfiguration
26
- >,
27
- options: any,
28
- cb: (err: any, data?: OutputType) => void
29
- ): void;
30
- <InputType extends InputTypes, OutputType extends OutputTypes>(
31
- command: Command<
32
- InputTypes,
33
- InputType,
34
- OutputTypes,
35
- OutputType,
36
- ResolvedClientConfiguration
37
- >,
38
- options?: any,
39
- cb?: (err: any, data?: OutputType) => void
40
- ): Promise<OutputType> | void;
41
- }
42
- export interface Client<
43
- Input extends object,
44
- Output extends MetadataBearer,
45
- ResolvedClientConfiguration
46
- > {
47
- readonly config: ResolvedClientConfiguration;
48
- middlewareStack: MiddlewareStack<Input, Output>;
49
- send: InvokeFunction<Input, Output, ResolvedClientConfiguration>;
50
- destroy: () => void;
51
- }
52
- export {};
1
+ export { Client } from "@smithy/types";
@@ -1,17 +1 @@
1
- import { Handler, MiddlewareStack } from "./middleware";
2
- import { MetadataBearer } from "./response";
3
- export interface Command<
4
- ClientInput extends object,
5
- InputType extends ClientInput,
6
- ClientOutput extends MetadataBearer,
7
- OutputType extends ClientOutput,
8
- ResolvedConfiguration
9
- > {
10
- readonly input: InputType;
11
- readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
12
- resolveMiddleware(
13
- stack: MiddlewareStack<ClientInput, ClientOutput>,
14
- configuration: ResolvedConfiguration,
15
- options: any
16
- ): Handler<InputType, OutputType>;
17
- }
1
+ export { Command } from "@smithy/types";
@@ -0,0 +1,6 @@
1
+ export {
2
+ ConnectConfiguration,
3
+ ConnectionManager,
4
+ ConnectionManagerConfiguration,
5
+ ConnectionPool,
6
+ } from "@smithy/types";
@@ -1,14 +1,7 @@
1
- export type SourceData = string | ArrayBuffer | ArrayBufferView;
2
- export interface Hash {
3
- update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
4
- digest(): Promise<Uint8Array>;
5
- }
6
- export interface HashConstructor {
7
- new (secret?: SourceData): Hash;
8
- }
9
- export interface StreamHasher<StreamType = any> {
10
- (hashCtor: HashConstructor, stream: StreamType): Promise<Uint8Array>;
11
- }
12
- export interface randomValues {
13
- (byteLength: number): Promise<Uint8Array>;
14
- }
1
+ export {
2
+ Hash,
3
+ HashConstructor,
4
+ StreamHasher,
5
+ randomValues,
6
+ SourceData,
7
+ } from "@smithy/types";
@@ -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,5 +1,6 @@
1
1
  export * from "./abort";
2
2
  export * from "./auth";
3
+ export * from "./blob/blob-types";
3
4
  export * from "./checksum";
4
5
  export * from "./client";
5
6
  export * from "./command";
@@ -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
  }