@aws-sdk/types
Advanced tools
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export {}; |
| /** | ||
| * Authentication schemes represent a way that the service will authenticate the customer’s identity. | ||
| */ | ||
| export interface AuthScheme { | ||
| name: string; | ||
| properties: Record<string, unknown>; | ||
| } |
| export interface AuthScheme { | ||
| name: string; | ||
| properties: Record<string, unknown>; | ||
| } |
@@ -5,2 +5,3 @@ "use strict"; | ||
| tslib_1.__exportStar(require("./abort"), exports); | ||
| tslib_1.__exportStar(require("./auth"), exports); | ||
| tslib_1.__exportStar(require("./client"), exports); | ||
@@ -7,0 +8,0 @@ tslib_1.__exportStar(require("./command"), exports); |
+1
-0
| export * from "./abort"; | ||
| export * from "./auth"; | ||
| export * from "./client"; | ||
@@ -3,0 +4,0 @@ export * from "./command"; |
| import { Provider } from "./util"; | ||
| export interface AwsCredentialIdentity { | ||
| /** | ||
| * A {Date} when the identity or credential will no longer be accepted. | ||
| */ | ||
| readonly expiration?: Date; | ||
| } | ||
| /** | ||
| * An object representing temporary or permanent AWS credentials. | ||
| */ | ||
| export interface Credentials { | ||
| export interface Credentials extends AwsCredentialIdentity { | ||
| /** | ||
@@ -19,7 +25,3 @@ * AWS access key ID | ||
| readonly sessionToken?: string; | ||
| /** | ||
| * A {Date} when these credentials will no longer be accepted. | ||
| */ | ||
| readonly expiration?: Date; | ||
| } | ||
| export declare type CredentialProvider = Provider<Credentials>; |
@@ -51,1 +51,4 @@ export interface EndpointPartition { | ||
| } | ||
| export declare type EndpointParameters = { | ||
| [name: string]: undefined | string | boolean; | ||
| }; |
| export * from "./abort"; | ||
| export * from "./auth"; | ||
| export * from "./client"; | ||
@@ -3,0 +4,0 @@ export * from "./command"; |
| export interface AbortHandler { | ||
| (this: AbortSignal, ev: any): any; | ||
| } | ||
| export interface AbortSignal { | ||
| readonly aborted: boolean; | ||
| onabort: AbortHandler | null; | ||
| } | ||
| export interface AbortController { | ||
| readonly signal: AbortSignal; | ||
| abort(): void; | ||
| } |
| import { Command } from "./command"; | ||
| import { MiddlewareStack } from "./middleware"; | ||
| import { MetadataBearer } from "./response"; | ||
| interface InvokeFunction< | ||
@@ -43,3 +42,2 @@ InputTypes extends object, | ||
| } | ||
| export interface Client< | ||
@@ -46,0 +44,0 @@ Input extends object, |
| import { Provider } from "./util"; | ||
| export interface Credentials { | ||
| export interface AwsCredentialIdentity { | ||
| readonly expiration?: Date; | ||
| } | ||
| export interface Credentials extends AwsCredentialIdentity { | ||
| readonly accessKeyId: string; | ||
| readonly secretAccessKey: string; | ||
| readonly sessionToken?: string; | ||
| readonly expiration?: Date; | ||
| } | ||
| export declare type CredentialProvider = Provider<Credentials>; |
| export declare type SourceData = string | ArrayBuffer | ArrayBufferView; | ||
| export interface Hash { | ||
| update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void; | ||
| digest(): Promise<Uint8Array>; | ||
| } | ||
| export interface HashConstructor { | ||
| new (secret?: SourceData): Hash; | ||
| } | ||
| export interface StreamHasher<StreamType = any> { | ||
| (hashCtor: HashConstructor, stream: StreamType): Promise<Uint8Array>; | ||
| } | ||
| export interface randomValues { | ||
| (byteLength: number): Promise<Uint8Array>; | ||
| } |
@@ -21,9 +21,5 @@ export interface EndpointPartition { | ||
| scheme: EndpointURLScheme; | ||
| authority: string; | ||
| path: string; | ||
| normalizedPath: string; | ||
| isIp: boolean; | ||
@@ -43,1 +39,4 @@ } | ||
| } | ||
| export declare type EndpointParameters = { | ||
| [name: string]: undefined | string | boolean; | ||
| }; |
@@ -9,3 +9,2 @@ import { HttpRequest } from "./http"; | ||
| import { MetadataBearer } from "./response"; | ||
| export interface Message { | ||
@@ -67,7 +66,5 @@ headers: MessageHeaders; | ||
| } | ||
| export interface EventStreamSerdeContext { | ||
| eventStreamMarshaller: EventStreamMarshaller; | ||
| } | ||
| export interface EventStreamMarshallerDeserFn<StreamType> { | ||
@@ -79,7 +76,5 @@ <T>( | ||
| } | ||
| export interface EventStreamMarshallerSerFn<StreamType> { | ||
| <T>(input: AsyncIterable<T>, serializer: (event: T) => Message): StreamType; | ||
| } | ||
| export interface EventStreamMarshaller<StreamType = any> { | ||
@@ -86,0 +81,0 @@ deserialize: EventStreamMarshallerDeserFn<StreamType>; |
| import { AbortSignal } from "./abort"; | ||
| export interface Headers extends Map<string, string> { | ||
| withHeader(headerName: string, headerValue: string): Headers; | ||
| withoutHeader(headerName: string): Headers; | ||
| } | ||
| export declare type HeaderBag = Record<string, string>; | ||
| export interface HttpMessage { | ||
@@ -15,3 +11,2 @@ headers: HeaderBag; | ||
| } | ||
| export declare type QueryParameterBag = Record< | ||
@@ -28,17 +23,13 @@ string, | ||
| } | ||
| export interface HttpRequest extends HttpMessage, Endpoint { | ||
| method: string; | ||
| } | ||
| export interface HttpResponse extends HttpMessage { | ||
| statusCode: number; | ||
| } | ||
| export interface ResolvedHttpResponse extends HttpResponse { | ||
| body: string; | ||
| } | ||
| export interface HttpHandlerOptions { | ||
| abortSignal?: AbortSignal; | ||
| } |
| export * from "./abort"; | ||
| export * from "./auth"; | ||
| export * from "./client"; | ||
@@ -3,0 +4,0 @@ export * from "./command"; |
@@ -8,3 +8,2 @@ export declare type LogLevel = | ||
| | "off"; | ||
| export interface LoggerOptions { | ||
@@ -14,3 +13,2 @@ logger?: Logger; | ||
| } | ||
| export interface Logger { | ||
@@ -17,0 +15,0 @@ debug(...content: any[]): void; |
@@ -65,3 +65,2 @@ import { Logger } from "./logger"; | ||
| } | ||
| export interface InitializeMiddleware< | ||
@@ -76,3 +75,2 @@ Input extends object, | ||
| } | ||
| export interface SerializeMiddleware< | ||
@@ -87,3 +85,2 @@ Input extends object, | ||
| } | ||
| export interface FinalizeRequestMiddleware< | ||
@@ -122,3 +119,2 @@ Input extends object, | ||
| | DeserializeMiddleware<Input, Output>; | ||
| export interface Terminalware { | ||
@@ -138,7 +134,4 @@ <Input extends object, Output extends object>( | ||
| step?: Step; | ||
| tags?: Array<string>; | ||
| name?: string; | ||
| override?: boolean; | ||
@@ -152,3 +145,2 @@ } | ||
| relation: Relation; | ||
| toMiddleware: string; | ||
@@ -173,3 +165,2 @@ } | ||
| } | ||
| export interface MiddlewareStack<Input extends object, Output extends object> | ||
@@ -181,3 +172,2 @@ extends Pluggable<Input, Output> { | ||
| ): void; | ||
| add( | ||
@@ -187,3 +177,2 @@ middleware: SerializeMiddleware<Input, Output>, | ||
| ): void; | ||
| add( | ||
@@ -193,3 +182,2 @@ middleware: BuildMiddleware<Input, Output>, | ||
| ): void; | ||
| add( | ||
@@ -199,3 +187,2 @@ middleware: FinalizeRequestMiddleware<Input, Output>, | ||
| ): void; | ||
| add( | ||
@@ -205,3 +192,2 @@ middleware: DeserializeMiddleware<Input, Output>, | ||
| ): void; | ||
| addRelativeTo( | ||
@@ -211,15 +197,9 @@ middleware: MiddlewareType<Input, Output>, | ||
| ): void; | ||
| use(pluggable: Pluggable<Input, Output>): void; | ||
| clone(): MiddlewareStack<Input, Output>; | ||
| remove(toRemove: MiddlewareType<Input, Output> | string): boolean; | ||
| removeByTag(toRemove: string): boolean; | ||
| concat<InputType extends Input, OutputType extends Output>( | ||
| from: MiddlewareStack<InputType, OutputType> | ||
| ): MiddlewareStack<InputType, OutputType>; | ||
| resolve<InputType extends Input, OutputType extends Output>( | ||
@@ -230,6 +210,4 @@ handler: DeserializeHandler<InputType, OutputType>, | ||
| } | ||
| export interface HandlerExecutionContext { | ||
| logger?: Logger; | ||
| userAgent?: UserAgent; | ||
@@ -236,0 +214,0 @@ [key: string]: any; |
| import { Client } from "./client"; | ||
| export declare type Paginator<T> = AsyncGenerator<T, T, unknown>; | ||
| export interface PaginationConfiguration { | ||
@@ -9,4 +7,3 @@ client: Client<any, any, any>; | ||
| startingToken?: any; | ||
| stopOnSameToken?: boolean; | ||
| } |
| export declare type IniSection = Record<string, string | undefined>; | ||
| export interface Profile extends IniSection {} | ||
@@ -4,0 +3,0 @@ export declare type ParsedIniData = Record<string, IniSection>; |
| export interface ResponseMetadata { | ||
| httpStatusCode?: number; | ||
| requestId?: string; | ||
| extendedRequestId?: string; | ||
| cfId?: string; | ||
| attempts?: number; | ||
| totalRetryDelay?: number; | ||
@@ -13,0 +8,0 @@ } |
| import { Endpoint } from "./http"; | ||
| import { RequestHandler } from "./transfer"; | ||
| import { Decoder, Encoder, Provider } from "./util"; | ||
| export interface EndpointBearer { | ||
@@ -11,3 +10,2 @@ endpoint: Provider<Endpoint>; | ||
| } | ||
| export interface SerdeContext extends EndpointBearer { | ||
@@ -35,7 +33,5 @@ base64Encoder: Encoder; | ||
| } | ||
| declare global { | ||
| export interface ReadableStream {} | ||
| } | ||
| export interface SdkStreamMixin { | ||
@@ -46,3 +42,2 @@ transformToByteArray: () => Promise<Uint8Array>; | ||
| } | ||
| export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin; |
| import { HttpResponse } from "./http"; | ||
| import { MetadataBearer } from "./response"; | ||
| export declare type DocumentType = | ||
@@ -13,21 +12,14 @@ | null | ||
| }; | ||
| export interface RetryableTrait { | ||
| readonly throttling?: boolean; | ||
| } | ||
| export interface SmithyException { | ||
| readonly name: string; | ||
| readonly $fault: "client" | "server"; | ||
| readonly $service?: string; | ||
| readonly $retryable?: RetryableTrait; | ||
| readonly $response?: HttpResponse; | ||
| } | ||
| export declare type SdkError = Error & | ||
| Partial<SmithyException> & | ||
| Partial<MetadataBearer>; |
| import { HttpRequest } from "./http"; | ||
| export declare type DateInput = number | string | Date; | ||
| export interface SigningArguments { | ||
| signingDate?: DateInput; | ||
| signingService?: string; | ||
| signingRegion?: string; | ||
@@ -13,3 +10,2 @@ } | ||
| unsignableHeaders?: Set<string>; | ||
| signableHeaders?: Set<string>; | ||
@@ -19,3 +15,2 @@ } | ||
| expiresIn?: number; | ||
| unhoistableHeaders?: Set<string>; | ||
@@ -32,3 +27,2 @@ } | ||
| } | ||
| export interface RequestSigner { | ||
@@ -35,0 +29,0 @@ sign( |
@@ -10,3 +10,2 @@ import { HashConstructor, StreamHasher } from "./crypto"; | ||
| } | ||
| export interface GetAwsChunkedEncodingStream<StreamType = any> { | ||
@@ -13,0 +12,0 @@ ( |
| import { Provider } from "./util"; | ||
| export interface Token { | ||
| readonly token: string; | ||
| readonly expiration?: Date; | ||
| } | ||
| export declare type TokenProvider = Provider<Token>; |
@@ -8,26 +8,19 @@ import { Endpoint } from "./http"; | ||
| import { MetadataBearer } from "./response"; | ||
| export interface Encoder { | ||
| (input: Uint8Array): string; | ||
| } | ||
| export interface Decoder { | ||
| (input: string): Uint8Array; | ||
| } | ||
| export interface Provider<T> { | ||
| (): Promise<T>; | ||
| } | ||
| export interface MemoizedProvider<T> { | ||
| (options?: { forceRefresh?: boolean }): Promise<T>; | ||
| } | ||
| export interface BodyLengthCalculator { | ||
| (body: any): number | undefined; | ||
| } | ||
| export interface RetryStrategy { | ||
| mode?: string; | ||
| retry: <Input extends object, Output extends MetadataBearer>( | ||
@@ -38,7 +31,5 @@ next: FinalizeHandler<Input, Output>, | ||
| } | ||
| export interface UrlParser { | ||
| (url: string): Endpoint; | ||
| (url: string | URL): Endpoint; | ||
| } | ||
| export interface RegionInfo { | ||
@@ -51,9 +42,6 @@ hostname: string; | ||
| } | ||
| export interface RegionInfoProviderOptions { | ||
| useDualstackEndpoint: boolean; | ||
| useFipsEndpoint: boolean; | ||
| } | ||
| export interface RegionInfoProvider { | ||
@@ -64,5 +52,3 @@ (region: string, options?: RegionInfoProviderOptions): Promise< | ||
| } | ||
| export declare type UserAgentPair = [string, string]; | ||
| export declare type UserAgent = UserAgentPair[]; |
| import { AbortController } from "./abort"; | ||
| export interface WaiterConfiguration<Client> { | ||
| client: Client; | ||
| maxWaitTime: number; | ||
| abortController?: AbortController; | ||
| abortSignal?: AbortController["signal"]; | ||
| minDelay?: number; | ||
| maxDelay?: number; | ||
| } |
@@ -85,3 +85,3 @@ import { Endpoint } from "./http"; | ||
| export interface UrlParser { | ||
| (url: string): Endpoint; | ||
| (url: string | URL): Endpoint; | ||
| } | ||
@@ -88,0 +88,0 @@ /** |
+1
-1
| { | ||
| "name": "@aws-sdk/types", | ||
| "version": "3.170.0", | ||
| "version": "3.171.0", | ||
| "main": "./dist-cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist-es/index.js", |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
171921
0.64%96
4.35%2156
1.32%