@aws-sdk/middleware-sdk-s3 3.972.62 → 3.972.64

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 (36) hide show
  1. package/dist-types/ts3.4/submodules/s3/NodeUseArnRegionConfigOptions.d.ts +1 -3
  2. package/dist-types/ts3.4/submodules/s3/index.browser.d.ts +1 -4
  3. package/dist-types/ts3.4/submodules/s3/index.d.ts +1 -4
  4. package/dist-types/ts3.4/submodules/s3/middleware-bucket-endpoint/bucketEndpointMiddleware.d.ts +3 -7
  5. package/dist-types/ts3.4/submodules/s3/middleware-bucket-endpoint/bucketHostname.d.ts +1 -1
  6. package/dist-types/ts3.4/submodules/s3/middleware-bucket-endpoint/bucketHostnameUtils.d.ts +9 -12
  7. package/dist-types/ts3.4/submodules/s3/middleware-bucket-endpoint/configurations.d.ts +1 -1
  8. package/dist-types/ts3.4/submodules/s3/middleware-check-content-length-header/check-content-length-header.d.ts +3 -12
  9. package/dist-types/ts3.4/submodules/s3/middleware-expect-continue/middleware-expect-continue.d.ts +2 -2
  10. package/dist-types/ts3.4/submodules/s3/middleware-location-constraint/configuration.d.ts +1 -1
  11. package/dist-types/ts3.4/submodules/s3/middleware-location-constraint/middleware-location-constraint.d.ts +3 -7
  12. package/dist-types/ts3.4/submodules/s3/middleware-region-redirect/bucket-endpoint-middleware.d.ts +1 -1
  13. package/dist-types/ts3.4/submodules/s3/middleware-region-redirect/region-redirect-endpoint-middleware.d.ts +1 -1
  14. package/dist-types/ts3.4/submodules/s3/middleware-region-redirect/region-redirect-middleware.d.ts +3 -8
  15. package/dist-types/ts3.4/submodules/s3/middleware-s3-configuration/s3Configuration.d.ts +1 -1
  16. package/dist-types/ts3.4/submodules/s3/middleware-s3-expires/s3-expires-middleware.d.ts +3 -7
  17. package/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -4
  18. package/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +1 -5
  19. package/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -5
  20. package/dist-types/ts3.4/submodules/s3/middleware-s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +3 -6
  21. package/dist-types/ts3.4/submodules/s3/middleware-s3-express/functions/s3ExpressMiddleware.d.ts +2 -4
  22. package/dist-types/ts3.4/submodules/s3/middleware-s3-express/functions/signS3Express.d.ts +3 -6
  23. package/dist-types/ts3.4/submodules/s3/middleware-s3-express/interfaces/S3ExpressIdentityProvider.d.ts +1 -1
  24. package/dist-types/ts3.4/submodules/s3/middleware-ssec/middleware-ssec.d.ts +3 -7
  25. package/dist-types/ts3.4/submodules/s3/middleware-throw-200-exceptions/throw-200-exceptions.d.ts +2 -2
  26. package/dist-types/ts3.4/submodules/s3/middleware-validate-bucket-name/validate-bucket-name.d.ts +2 -6
  27. package/dist-types/ts3.4/submodules/s3/protocol/S3RestXmlProtocol.d.ts +1 -1
  28. package/dist-types/ts3.4/submodules/s3-control/configurations.d.ts +1 -1
  29. package/dist-types/ts3.4/submodules/s3-control/index.d.ts +1 -4
  30. package/dist-types/ts3.4/submodules/s3-control/middleware-host-prefix-deduplication/hostPrefixDeduplicationMiddleware.d.ts +3 -12
  31. package/dist-types/ts3.4/submodules/s3-control/middleware-process-arnables/getOutpostEndpoint.d.ts +1 -5
  32. package/dist-types/ts3.4/submodules/s3-control/middleware-process-arnables/getProcessArnablesPlugin.d.ts +1 -1
  33. package/dist-types/ts3.4/submodules/s3-control/middleware-process-arnables/parse-outpost-arnables.d.ts +1 -1
  34. package/dist-types/ts3.4/submodules/s3-control/middleware-process-arnables/update-arnables-request.d.ts +2 -6
  35. package/dist-types/ts3.4/submodules/s3-control/middleware-redirect-from-postid/redirect-from-postid.d.ts +3 -8
  36. package/package.json +62 -59
@@ -1,6 +1,4 @@
1
1
  import { LoadedConfigSelectors } from "@smithy/core/config";
2
2
  export declare const NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
3
3
  export declare const NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
4
- export declare const NODE_USE_ARN_REGION_CONFIG_OPTIONS: LoadedConfigSelectors<
5
- boolean | undefined
6
- >;
4
+ export declare const NODE_USE_ARN_REGION_CONFIG_OPTIONS: LoadedConfigSelectors<boolean | undefined>;
@@ -13,10 +13,7 @@ export {
13
13
  getRegionRedirectMiddlewarePlugin,
14
14
  } from "./middleware-region-redirect/region-redirect-middleware";
15
15
  export { PreviouslyResolved } from "./middleware-region-redirect/region-redirect-middleware";
16
- export {
17
- S3InputConfig,
18
- S3ResolvedConfig,
19
- } from "./middleware-s3-configuration/s3Configuration";
16
+ export { S3InputConfig, S3ResolvedConfig } from "./middleware-s3-configuration/s3Configuration";
20
17
  export { resolveS3Config } from "./middleware-s3-configuration/s3Configuration";
21
18
  export {
22
19
  s3ExpiresMiddleware,
@@ -13,10 +13,7 @@ export {
13
13
  getRegionRedirectMiddlewarePlugin,
14
14
  } from "./middleware-region-redirect/region-redirect-middleware";
15
15
  export { PreviouslyResolved } from "./middleware-region-redirect/region-redirect-middleware";
16
- export {
17
- S3InputConfig,
18
- S3ResolvedConfig,
19
- } from "./middleware-s3-configuration/s3Configuration";
16
+ export { S3InputConfig, S3ResolvedConfig } from "./middleware-s3-configuration/s3Configuration";
20
17
  export { resolveS3Config } from "./middleware-s3-configuration/s3Configuration";
21
18
  export {
22
19
  s3ExpiresMiddleware,
@@ -1,13 +1,9 @@
1
- import {
2
- BuildMiddleware,
3
- Pluggable,
4
- RelativeMiddlewareOptions,
5
- } from "@smithy/types";
1
+ import { BuildMiddleware, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
6
2
  import { BucketEndpointResolvedConfig } from "./configurations";
7
3
  export declare const bucketEndpointMiddleware: (
8
- options: BucketEndpointResolvedConfig
4
+ options: BucketEndpointResolvedConfig,
9
5
  ) => BuildMiddleware<any, any>;
10
6
  export declare const bucketEndpointMiddlewareOptions: RelativeMiddlewareOptions;
11
7
  export declare const getBucketEndpointPlugin: (
12
- options: BucketEndpointResolvedConfig
8
+ options: BucketEndpointResolvedConfig,
13
9
  ) => Pluggable<any, any>;
@@ -6,5 +6,5 @@ export interface BucketHostname {
6
6
  signingService?: string;
7
7
  }
8
8
  export declare const bucketHostname: (
9
- options: BucketHostnameParams | ArnHostnameParams
9
+ options: BucketHostnameParams | ArnHostnameParams,
10
10
  ) => BucketHostname;
@@ -15,11 +15,10 @@ export interface BucketHostnameParams {
15
15
  pathStyleEndpoint?: boolean;
16
16
  tlsCompatible?: boolean;
17
17
  }
18
- export interface ArnHostnameParams
19
- extends Pick<
20
- BucketHostnameParams,
21
- Exclude<keyof BucketHostnameParams, "bucketName">
22
- > {
18
+ export interface ArnHostnameParams extends Pick<
19
+ BucketHostnameParams,
20
+ Exclude<keyof BucketHostnameParams, "bucketName">
21
+ > {
23
22
  bucketName: ARN;
24
23
  clientSigningRegion?: string;
25
24
  clientPartition?: string;
@@ -27,13 +26,11 @@ export interface ArnHostnameParams
27
26
  disableMultiregionAccessPoints?: boolean;
28
27
  }
29
28
  export declare const isBucketNameOptions: (
30
- options: BucketHostnameParams | ArnHostnameParams
29
+ options: BucketHostnameParams | ArnHostnameParams,
31
30
  ) => options is BucketHostnameParams;
32
31
  export declare const isDnsCompatibleBucketName: (bucketName: string) => boolean;
33
32
  export declare const getSuffix: (hostname: string) => [string, string];
34
- export declare const getSuffixForArnEndpoint: (
35
- hostname: string
36
- ) => [string, string];
33
+ export declare const getSuffixForArnEndpoint: (hostname: string) => [string, string];
37
34
  export declare const validateArnEndpointOptions: (options: {
38
35
  accelerateEndpoint?: boolean;
39
36
  tlsCompatible?: boolean;
@@ -46,7 +43,7 @@ export declare const validatePartition: (
46
43
  partition: string,
47
44
  options: {
48
45
  clientPartition: string;
49
- }
46
+ },
50
47
  ) => void;
51
48
  export declare const validateRegion: (
52
49
  region: string,
@@ -56,7 +53,7 @@ export declare const validateRegion: (
56
53
  clientRegion: string;
57
54
  clientSigningRegion: string;
58
55
  useFipsEndpoint: boolean;
59
- }
56
+ },
60
57
  ) => void;
61
58
  export declare const validateRegionalClient: (region: string) => void;
62
59
  export declare const validateAccountId: (accountId: string) => void;
@@ -64,7 +61,7 @@ export declare const validateDNSHostLabel: (
64
61
  label: string,
65
62
  options?: {
66
63
  tlsCompatible?: boolean;
67
- }
64
+ },
68
65
  ) => void;
69
66
  export declare const validateCustomEndpoint: (options: {
70
67
  isCustomEndpoint?: boolean;
@@ -26,6 +26,6 @@ export interface BucketEndpointResolvedConfig {
26
26
  disableMultiregionAccessPoints: Provider<boolean>;
27
27
  }
28
28
  export declare function resolveBucketEndpointConfig<T>(
29
- input: T & PreviouslyResolved & BucketEndpointInputConfig
29
+ input: T & PreviouslyResolved & BucketEndpointInputConfig,
30
30
  ): T & BucketEndpointResolvedConfig;
31
31
  export {};
@@ -1,13 +1,4 @@
1
- import {
2
- FinalizeRequestHandlerOptions,
3
- FinalizeRequestMiddleware,
4
- Pluggable,
5
- } from "@smithy/types";
6
- export declare function checkContentLengthHeader(): FinalizeRequestMiddleware<
7
- any,
8
- any
9
- >;
1
+ import { FinalizeRequestHandlerOptions, FinalizeRequestMiddleware, Pluggable } from "@smithy/types";
2
+ export declare function checkContentLengthHeader(): FinalizeRequestMiddleware<any, any>;
10
3
  export declare const checkContentLengthHeaderMiddlewareOptions: FinalizeRequestHandlerOptions;
11
- export declare const getCheckContentLengthHeaderPlugin: (
12
- unused: any
13
- ) => Pluggable<any, any>;
4
+ export declare const getCheckContentLengthHeaderPlugin: (unused: any) => Pluggable<any, any>;
@@ -13,10 +13,10 @@ interface PreviouslyResolved {
13
13
  expectContinueHeader?: boolean | number;
14
14
  }
15
15
  export declare function addExpectContinueMiddleware(
16
- options: PreviouslyResolved
16
+ options: PreviouslyResolved,
17
17
  ): BuildMiddleware<any, any>;
18
18
  export declare const addExpectContinueMiddlewareOptions: BuildHandlerOptions;
19
19
  export declare const getAddExpectContinuePlugin: (
20
- options: PreviouslyResolved
20
+ options: PreviouslyResolved,
21
21
  ) => Pluggable<any, any>;
22
22
  export {};
@@ -7,6 +7,6 @@ export interface LocationConstraintResolvedConfig {
7
7
  region: Provider<string>;
8
8
  }
9
9
  export declare function resolveLocationConstraintConfig<T>(
10
- input: T & LocationConstraintInputConfig & PreviouslyResolved
10
+ input: T & LocationConstraintInputConfig & PreviouslyResolved,
11
11
  ): T & LocationConstraintResolvedConfig;
12
12
  export {};
@@ -1,13 +1,9 @@
1
- import {
2
- InitializeHandlerOptions,
3
- InitializeMiddleware,
4
- Pluggable,
5
- } from "@smithy/types";
1
+ import { InitializeHandlerOptions, InitializeMiddleware, Pluggable } from "@smithy/types";
6
2
  import { LocationConstraintResolvedConfig } from "./configuration";
7
3
  export declare function locationConstraintMiddleware(
8
- options: LocationConstraintResolvedConfig
4
+ options: LocationConstraintResolvedConfig,
9
5
  ): InitializeMiddleware<any, any>;
10
6
  export declare const locationConstraintMiddlewareOptions: InitializeHandlerOptions;
11
7
  export declare const getLocationConstraintPlugin: (
12
- config: LocationConstraintResolvedConfig
8
+ config: LocationConstraintResolvedConfig,
13
9
  ) => Pluggable<any, any>;
@@ -3,7 +3,7 @@ interface PreviouslyResolved {
3
3
  bucketEndpoint?: boolean;
4
4
  }
5
5
  export declare function bucketEndpointMiddleware(
6
- options: PreviouslyResolved
6
+ options: PreviouslyResolved,
7
7
  ): SerializeMiddleware<any, any>;
8
8
  export declare const bucketEndpointMiddlewareOptions: RelativeMiddlewareOptions;
9
9
  export {};
@@ -1,6 +1,6 @@
1
1
  import { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
2
2
  import { PreviouslyResolved } from "./region-redirect-middleware";
3
3
  export declare const regionRedirectEndpointMiddleware: (
4
- config: PreviouslyResolved
4
+ config: PreviouslyResolved,
5
5
  ) => SerializeMiddleware<any, any>;
6
6
  export declare const regionRedirectEndpointMiddlewareOptions: RelativeMiddlewareOptions;
@@ -1,17 +1,12 @@
1
- import {
2
- InitializeHandlerOptions,
3
- InitializeMiddleware,
4
- Pluggable,
5
- Provider,
6
- } from "@smithy/types";
1
+ import { InitializeHandlerOptions, InitializeMiddleware, Pluggable, Provider } from "@smithy/types";
7
2
  export interface PreviouslyResolved {
8
3
  region: Provider<string>;
9
4
  followRegionRedirects: boolean;
10
5
  }
11
6
  export declare function regionRedirectMiddleware(
12
- clientConfig: PreviouslyResolved
7
+ clientConfig: PreviouslyResolved,
13
8
  ): InitializeMiddleware<any, any>;
14
9
  export declare const regionRedirectMiddlewareOptions: InitializeHandlerOptions;
15
10
  export declare const getRegionRedirectMiddlewarePlugin: (
16
- clientConfig: PreviouslyResolved
11
+ clientConfig: PreviouslyResolved,
17
12
  ) => Pluggable<any, any>;
@@ -28,6 +28,6 @@ export declare const resolveS3Config: <T>(
28
28
  session,
29
29
  }: {
30
30
  session: [() => PlaceholderS3Client, PlaceholderCreateSessionCommandCtor];
31
- }
31
+ },
32
32
  ) => T & S3ResolvedConfig;
33
33
  export {};
@@ -1,14 +1,10 @@
1
- import {
2
- DeserializeMiddleware,
3
- Pluggable,
4
- RelativeMiddlewareOptions,
5
- } from "@smithy/types";
1
+ import { DeserializeMiddleware, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
6
2
  interface PreviouslyResolved {}
7
3
  export declare const s3ExpiresMiddleware: (
8
- config: PreviouslyResolved
4
+ config: PreviouslyResolved,
9
5
  ) => DeserializeMiddleware<any, any>;
10
6
  export declare const s3ExpiresMiddlewareOptions: RelativeMiddlewareOptions;
11
7
  export declare const getS3ExpiresMiddlewarePlugin: (
12
- clientConfig: PreviouslyResolved
8
+ clientConfig: PreviouslyResolved,
13
9
  ) => Pluggable<any, any>;
14
10
  export {};
@@ -5,10 +5,7 @@ export declare class S3ExpressIdentityCache {
5
5
  static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS: number;
6
6
  constructor(data?: Record<string, S3ExpressIdentityCacheEntry>);
7
7
  get(key: string): undefined | S3ExpressIdentityCacheEntry;
8
- set(
9
- key: string,
10
- entry: S3ExpressIdentityCacheEntry
11
- ): S3ExpressIdentityCacheEntry;
8
+ set(key: string, entry: S3ExpressIdentityCacheEntry): S3ExpressIdentityCacheEntry;
12
9
  delete(key: string): void;
13
10
  purgeExpired(): Promise<void>;
14
11
  }
@@ -3,10 +3,6 @@ export declare class S3ExpressIdentityCacheEntry {
3
3
  private _identity;
4
4
  isRefreshing: boolean;
5
5
  accessed: number;
6
- constructor(
7
- _identity: Promise<S3ExpressIdentity>,
8
- isRefreshing?: boolean,
9
- accessed?: number
10
- );
6
+ constructor(_identity: Promise<S3ExpressIdentity>, isRefreshing?: boolean, accessed?: number);
11
7
  readonly identity: Promise<S3ExpressIdentity>;
12
8
  }
@@ -8,9 +8,7 @@ type Credentials = {
8
8
  SessionToken: string | undefined;
9
9
  Expiration: Date | undefined;
10
10
  };
11
- export declare class S3ExpressIdentityProviderImpl
12
- implements S3ExpressIdentityProvider
13
- {
11
+ export declare class S3ExpressIdentityProviderImpl implements S3ExpressIdentityProvider {
14
12
  private createSessionFn;
15
13
  private cache;
16
14
  static REFRESH_WINDOW_MS: number;
@@ -18,13 +16,13 @@ export declare class S3ExpressIdentityProviderImpl
18
16
  createSessionFn: (key: string) => Promise<{
19
17
  Credentials: Credentials;
20
18
  }>,
21
- cache?: S3ExpressIdentityCache
19
+ cache?: S3ExpressIdentityCache,
22
20
  );
23
21
  getS3ExpressIdentity(
24
22
  awsIdentity: AwsCredentialIdentity,
25
23
  identityProperties: {
26
24
  Bucket: string;
27
- } & Record<string, string>
25
+ } & Record<string, string>,
28
26
  ): Promise<S3ExpressIdentity>;
29
27
  private getIdentity;
30
28
  }
@@ -17,7 +17,7 @@ interface PreviouslyResolved {
17
17
  signWithCredentials(
18
18
  req: IHttpRequest,
19
19
  identity: AwsCredentialIdentity,
20
- opts?: Partial<SigningProperties>
20
+ opts?: Partial<SigningProperties>,
21
21
  ): Promise<IHttpRequest>;
22
22
  }
23
23
  >;
@@ -28,11 +28,8 @@ export declare const s3ExpressHttpSigningMiddlewareOptions: import("@smithy/type
28
28
  import("@smithy/types").HandlerOptions,
29
29
  Exclude<keyof import("@smithy/types").HandlerOptions, "step">
30
30
  >;
31
- export declare const s3ExpressHttpSigningMiddleware: <
32
- Input extends object,
33
- Output extends object
34
- >(
35
- config: PreviouslyResolved
31
+ export declare const s3ExpressHttpSigningMiddleware: <Input extends object, Output extends object>(
32
+ config: PreviouslyResolved,
36
33
  ) => FinalizeRequestMiddleware<any, any>;
37
34
  export declare const getS3ExpressHttpSigningPlugin: (config: {
38
35
  signer: (authScheme?: AuthScheme | undefined) => Promise<RequestSigner>;
@@ -19,9 +19,7 @@ export interface S3ExpressResolvedConfig {
19
19
  credentials: MemoizedProvider<AwsCredentialIdentity>;
20
20
  }
21
21
  export declare const s3ExpressMiddleware: (
22
- options: S3ExpressResolvedConfig
22
+ options: S3ExpressResolvedConfig,
23
23
  ) => BuildMiddleware<any, any>;
24
24
  export declare const s3ExpressMiddlewareOptions: BuildHandlerOptions;
25
- export declare const getS3ExpressPlugin: (
26
- options: S3ExpressResolvedConfig
27
- ) => Pluggable<any, any>;
25
+ export declare const getS3ExpressPlugin: (options: S3ExpressResolvedConfig) => Pluggable<any, any>;
@@ -1,7 +1,4 @@
1
- import {
2
- AwsCredentialIdentity,
3
- HttpRequest as IHttpRequest,
4
- } from "@smithy/types";
1
+ import { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
5
2
  import { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
6
3
  export declare const signS3Express: (
7
4
  s3ExpressIdentity: S3ExpressIdentity,
@@ -15,7 +12,7 @@ export declare const signS3Express: (
15
12
  signWithCredentials(
16
13
  req: IHttpRequest,
17
14
  identity: AwsCredentialIdentity,
18
- opts?: Partial<typeof signingOptions>
15
+ opts?: Partial<typeof signingOptions>,
19
16
  ): Promise<IHttpRequest>;
20
- }
17
+ },
21
18
  ) => Promise<IHttpRequest>;
@@ -3,6 +3,6 @@ import { S3ExpressIdentity } from "./S3ExpressIdentity";
3
3
  export interface S3ExpressIdentityProvider {
4
4
  getS3ExpressIdentity(
5
5
  awsIdentity: AwsCredentialIdentity,
6
- identityProperties: Record<string, string>
6
+ identityProperties: Record<string, string>,
7
7
  ): Promise<S3ExpressIdentity>;
8
8
  }
@@ -13,15 +13,11 @@ interface PreviouslyResolved {
13
13
  utf8Decoder: Decoder;
14
14
  base64Decoder: Decoder;
15
15
  }
16
- export declare function ssecMiddleware(
17
- options: PreviouslyResolved
18
- ): InitializeMiddleware<any, any>;
16
+ export declare function ssecMiddleware(options: PreviouslyResolved): InitializeMiddleware<any, any>;
19
17
  export declare const ssecMiddlewareOptions: InitializeHandlerOptions;
20
- export declare const getSsecPlugin: (
21
- config: PreviouslyResolved
22
- ) => Pluggable<any, any>;
18
+ export declare const getSsecPlugin: (config: PreviouslyResolved) => Pluggable<any, any>;
23
19
  export declare function isValidBase64EncodedSSECustomerKey(
24
20
  str: string,
25
- options: PreviouslyResolved
21
+ options: PreviouslyResolved,
26
22
  ): boolean;
27
23
  export {};
@@ -10,10 +10,10 @@ type PreviouslyResolved = {
10
10
  utf8Encoder: Encoder;
11
11
  };
12
12
  export declare const throw200ExceptionsMiddleware: (
13
- config: PreviouslyResolved
13
+ config: PreviouslyResolved,
14
14
  ) => DeserializeMiddleware<any, any>;
15
15
  export declare const throw200ExceptionsMiddlewareOptions: RelativeMiddlewareOptions;
16
16
  export declare const getThrow200ExceptionsPlugin: (
17
- config: PreviouslyResolved
17
+ config: PreviouslyResolved,
18
18
  ) => Pluggable<any, any>;
19
19
  export {};
@@ -1,13 +1,9 @@
1
- import {
2
- InitializeHandlerOptions,
3
- InitializeMiddleware,
4
- Pluggable,
5
- } from "@smithy/types";
1
+ import { InitializeHandlerOptions, InitializeMiddleware, Pluggable } from "@smithy/types";
6
2
  import { S3ResolvedConfig } from "../middleware-s3-configuration/s3Configuration";
7
3
  export declare function validateBucketNameMiddleware({
8
4
  bucketEndpoint,
9
5
  }: S3ResolvedConfig): InitializeMiddleware<any, any>;
10
6
  export declare const validateBucketNameMiddlewareOptions: InitializeHandlerOptions;
11
7
  export declare const getValidateBucketNamePlugin: (
12
- options: S3ResolvedConfig
8
+ options: S3ResolvedConfig,
13
9
  ) => Pluggable<any, any>;
@@ -10,6 +10,6 @@ export declare class S3RestXmlProtocol extends AwsRestXmlProtocol {
10
10
  serializeRequest<Input extends object>(
11
11
  operationSchema: OperationSchema,
12
12
  input: Input,
13
- context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
13
+ context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
14
14
  ): Promise<HttpRequest>;
15
15
  }
@@ -19,5 +19,5 @@ export interface S3ControlResolvedConfig {
19
19
  regionInfoProvider?: RegionInfoProvider;
20
20
  }
21
21
  export declare function resolveS3ControlConfig<T>(
22
- input: T & PreviouslyResolved & S3ControlInputConfig
22
+ input: T & PreviouslyResolved & S3ControlInputConfig,
23
23
  ): T & S3ControlResolvedConfig;
@@ -1,7 +1,4 @@
1
- export {
2
- S3ControlInputConfig,
3
- S3ControlResolvedConfig,
4
- } from "./configurations";
1
+ export { S3ControlInputConfig, S3ControlResolvedConfig } from "./configurations";
5
2
  export { resolveS3ControlConfig } from "./configurations";
6
3
  export { getProcessArnablesPlugin } from "./middleware-process-arnables/getProcessArnablesPlugin";
7
4
  export {
@@ -1,13 +1,4 @@
1
- import {
2
- Pluggable,
3
- RelativeMiddlewareOptions,
4
- SerializeMiddleware,
5
- } from "@smithy/types";
6
- export declare const hostPrefixDeduplicationMiddleware: () => SerializeMiddleware<
7
- any,
8
- any
9
- >;
1
+ import { Pluggable, RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
2
+ export declare const hostPrefixDeduplicationMiddleware: () => SerializeMiddleware<any, any>;
10
3
  export declare const hostPrefixDeduplicationMiddlewareOptions: RelativeMiddlewareOptions;
11
- export declare const getHostPrefixDeduplicationPlugin: <T>(
12
- config: T
13
- ) => Pluggable<any, any>;
4
+ export declare const getHostPrefixDeduplicationPlugin: <T>(config: T) => Pluggable<any, any>;
@@ -5,9 +5,5 @@ export interface GetOutpostEndpointOptions {
5
5
  }
6
6
  export declare const getOutpostEndpoint: (
7
7
  hostname: string,
8
- {
9
- isCustomEndpoint,
10
- regionOverride,
11
- useFipsEndpoint,
12
- }: GetOutpostEndpointOptions
8
+ { isCustomEndpoint, regionOverride, useFipsEndpoint }: GetOutpostEndpointOptions,
13
9
  ) => string;
@@ -1,5 +1,5 @@
1
1
  import { Pluggable } from "@smithy/types";
2
2
  import { S3ControlResolvedConfig } from "../configurations";
3
3
  export declare const getProcessArnablesPlugin: (
4
- options: S3ControlResolvedConfig
4
+ options: S3ControlResolvedConfig,
5
5
  ) => Pluggable<any, any>;
@@ -6,7 +6,7 @@ type ArnableInput = {
6
6
  AccountId?: string;
7
7
  };
8
8
  export declare const parseOutpostArnablesMiddleaware: (
9
- options: S3ControlResolvedConfig
9
+ options: S3ControlResolvedConfig,
10
10
  ) => SerializeMiddleware<ArnableInput, any>;
11
11
  export declare const parseOutpostArnablesMiddleawareOptions: RelativeMiddlewareOptions;
12
12
  export {};
@@ -1,13 +1,9 @@
1
- import {
2
- Provider,
3
- RelativeMiddlewareOptions,
4
- SerializeMiddleware,
5
- } from "@smithy/types";
1
+ import { Provider, RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
6
2
  export interface UpdateArnablesRequestMiddlewareConfig {
7
3
  isCustomEndpoint?: boolean;
8
4
  useFipsEndpoint: Provider<boolean>;
9
5
  }
10
6
  export declare const updateArnablesRequestMiddleware: (
11
- config: UpdateArnablesRequestMiddlewareConfig
7
+ config: UpdateArnablesRequestMiddlewareConfig,
12
8
  ) => SerializeMiddleware<any, any>;
13
9
  export declare const updateArnablesRequestMiddlewareOptions: RelativeMiddlewareOptions;
@@ -1,9 +1,4 @@
1
- import {
2
- BuildHandlerOptions,
3
- BuildMiddleware,
4
- Pluggable,
5
- Provider,
6
- } from "@smithy/types";
1
+ import { BuildHandlerOptions, BuildMiddleware, Pluggable, Provider } from "@smithy/types";
7
2
  import { S3ControlResolvedConfig } from "../configurations";
8
3
  type InputType = {
9
4
  OutpostId?: string;
@@ -13,10 +8,10 @@ export interface RedirectFromPostIdMiddlewareConfig {
13
8
  useFipsEndpoint: Provider<boolean>;
14
9
  }
15
10
  export declare const redirectFromPostIdMiddleware: (
16
- config: RedirectFromPostIdMiddlewareConfig
11
+ config: RedirectFromPostIdMiddlewareConfig,
17
12
  ) => BuildMiddleware<InputType, any>;
18
13
  export declare const redirectFromPostIdMiddlewareOptions: BuildHandlerOptions;
19
14
  export declare const getRedirectFromPostIdPlugin: (
20
- options: S3ControlResolvedConfig
15
+ options: S3ControlResolvedConfig,
21
16
  ) => Pluggable<any, any>;
22
17
  export {};
package/package.json CHANGED
@@ -1,28 +1,48 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.972.62",
4
- "scripts": {
5
- "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
- "build:cjs": "node ../../scripts/compilation/inline",
7
- "build:es": "premove dist-es && tsc -p tsconfig.es.json",
8
- "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
- "build:types": "premove dist-types && tsc -p tsconfig.types.json",
10
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "premove dist-cjs dist-es dist-types",
12
- "extract:docs": "api-extractor run --local",
13
- "lint": "node ../../scripts/validation/submodules-linter.js",
14
- "prebuild": "yarn lint",
15
- "test": "yarn g:vitest run",
16
- "test:watch": "yarn g:vitest watch",
17
- "test:integration": "yarn g:vitest run -c vitest.config.integ.mts && yarn test:types",
18
- "test:integration:watch": "yarn test:types && yarn g:vitest watch -c vitest.config.integ.mts",
19
- "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
20
- "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts --mode development",
21
- "test:types": "tsc -p tsconfig.test.json"
3
+ "version": "3.972.64",
4
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-s3",
5
+ "license": "Apache-2.0",
6
+ "author": {
7
+ "name": "AWS SDK for JavaScript Team",
8
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
22
9
  },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
13
+ "directory": "packages-internal/middleware-sdk-s3"
14
+ },
15
+ "files": [
16
+ "./s3-control.d.ts",
17
+ "./s3-control.js",
18
+ "./s3.d.ts",
19
+ "./s3.js",
20
+ "dist-*/**"
21
+ ],
22
+ "sideEffects": false,
23
23
  "main": "./dist-cjs/index.js",
24
24
  "module": "./dist-es/index.js",
25
+ "browser": {
26
+ "./dist-es/submodules/s3/index": "./dist-es/submodules/s3/index.browser",
27
+ "./dist-es/submodules/s3/index.js": "./dist-es/submodules/s3/index.browser.js",
28
+ "./dist-es/submodules/s3/to-stream/toStream": "./dist-es/submodules/s3/to-stream/toStream.browser"
29
+ },
25
30
  "types": "./dist-types/index.d.ts",
31
+ "typesVersions": {
32
+ "<4.5": {
33
+ "dist-types/*": [
34
+ "dist-types/ts3.4/*"
35
+ ],
36
+ "*": [
37
+ "dist-types/ts3.4/submodules/*/index.d.ts"
38
+ ]
39
+ }
40
+ },
41
+ "react-native": {
42
+ "./dist-es/submodules/s3/index": "./dist-es/submodules/s3/index.browser",
43
+ "./dist-es/submodules/s3/to-stream/toStream": "./dist-es/submodules/s3/to-stream/toStream.browser",
44
+ "./dist-es/submodules/s3/index.js": "./dist-es/submodules/s3/index.browser.js"
45
+ },
26
46
  "exports": {
27
47
  ".": {
28
48
  "types": "./dist-types/index.d.ts",
@@ -54,18 +74,31 @@
54
74
  "require": "./dist-cjs/submodules/s3-control/index.js"
55
75
  }
56
76
  },
57
- "sideEffects": false,
58
- "author": {
59
- "name": "AWS SDK for JavaScript Team",
60
- "url": "https://aws.amazon.com/sdk-for-javascript/"
77
+ "scripts": {
78
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
79
+ "build:cjs": "node ../../scripts/compilation/inline",
80
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
81
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
82
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
83
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
84
+ "clean": "premove dist-cjs dist-es dist-types",
85
+ "extract:docs": "api-extractor run --local",
86
+ "lint": "node ../../scripts/validation/submodules-linter.js",
87
+ "prebuild": "yarn lint",
88
+ "test": "yarn g:vitest run",
89
+ "test:watch": "yarn g:vitest watch",
90
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.mts && yarn test:types",
91
+ "test:integration:watch": "yarn test:types && yarn g:vitest watch -c vitest.config.integ.mts",
92
+ "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
93
+ "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts --mode development",
94
+ "test:types": "tsc -p tsconfig.test.json"
61
95
  },
62
- "license": "Apache-2.0",
63
96
  "dependencies": {
64
- "@aws-sdk/core": "^3.975.1",
65
- "@aws-sdk/signature-v4-multi-region": "^3.996.39",
66
- "@aws-sdk/types": "^3.974.0",
67
- "@smithy/core": "^3.29.2",
68
- "@smithy/types": "^4.16.0",
97
+ "@aws-sdk/core": "^3.975.3",
98
+ "@aws-sdk/signature-v4-multi-region": "^3.996.41",
99
+ "@aws-sdk/types": "^3.974.2",
100
+ "@smithy/core": "^3.29.4",
101
+ "@smithy/types": "^4.16.1",
69
102
  "tslib": "^2.6.2"
70
103
  },
71
104
  "devDependencies": {
@@ -77,35 +110,5 @@
77
110
  },
78
111
  "engines": {
79
112
  "node": ">=20.0.0"
80
- },
81
- "typesVersions": {
82
- "<4.5": {
83
- "dist-types/*": [
84
- "dist-types/ts3.4/*"
85
- ]
86
- }
87
- },
88
- "files": [
89
- "./s3-control.d.ts",
90
- "./s3-control.js",
91
- "./s3.d.ts",
92
- "./s3.js",
93
- "dist-*/**"
94
- ],
95
- "browser": {
96
- "./dist-es/submodules/s3/index": "./dist-es/submodules/s3/index.browser",
97
- "./dist-es/submodules/s3/index.js": "./dist-es/submodules/s3/index.browser.js",
98
- "./dist-es/submodules/s3/to-stream/toStream": "./dist-es/submodules/s3/to-stream/toStream.browser"
99
- },
100
- "react-native": {
101
- "./dist-es/submodules/s3/index": "./dist-es/submodules/s3/index.browser",
102
- "./dist-es/submodules/s3/to-stream/toStream": "./dist-es/submodules/s3/to-stream/toStream.browser",
103
- "./dist-es/submodules/s3/index.js": "./dist-es/submodules/s3/index.browser.js"
104
- },
105
- "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-s3",
106
- "repository": {
107
- "type": "git",
108
- "url": "https://github.com/aws/aws-sdk-js-v3.git",
109
- "directory": "packages-internal/middleware-sdk-s3"
110
113
  }
111
114
  }