@aws-sdk/client-s3 3.1075.0 → 3.1077.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 (60) hide show
  1. package/dist-cjs/index.js +5187 -18
  2. package/dist-es/S3Client.js +1 -1
  3. package/dist-es/commands/CreateBucketMetadataConfigurationCommand.js +1 -1
  4. package/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +1 -1
  5. package/dist-es/commands/DeleteObjectsCommand.js +1 -1
  6. package/dist-es/commands/GetObjectAnnotationCommand.js +1 -1
  7. package/dist-es/commands/GetObjectCommand.js +1 -1
  8. package/dist-es/commands/PutBucketAbacCommand.js +1 -1
  9. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +1 -1
  10. package/dist-es/commands/PutBucketAclCommand.js +1 -1
  11. package/dist-es/commands/PutBucketCorsCommand.js +1 -1
  12. package/dist-es/commands/PutBucketEncryptionCommand.js +1 -1
  13. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +1 -1
  14. package/dist-es/commands/PutBucketLoggingCommand.js +1 -1
  15. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +1 -1
  16. package/dist-es/commands/PutBucketPolicyCommand.js +1 -1
  17. package/dist-es/commands/PutBucketReplicationCommand.js +1 -1
  18. package/dist-es/commands/PutBucketRequestPaymentCommand.js +1 -1
  19. package/dist-es/commands/PutBucketTaggingCommand.js +1 -1
  20. package/dist-es/commands/PutBucketVersioningCommand.js +1 -1
  21. package/dist-es/commands/PutBucketWebsiteCommand.js +1 -1
  22. package/dist-es/commands/PutObjectAclCommand.js +1 -1
  23. package/dist-es/commands/PutObjectAnnotationCommand.js +1 -1
  24. package/dist-es/commands/PutObjectCommand.js +1 -1
  25. package/dist-es/commands/PutObjectLegalHoldCommand.js +1 -1
  26. package/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -1
  27. package/dist-es/commands/PutObjectRetentionCommand.js +1 -1
  28. package/dist-es/commands/PutObjectTaggingCommand.js +1 -1
  29. package/dist-es/commands/PutPublicAccessBlockCommand.js +1 -1
  30. package/dist-es/commands/RestoreObjectCommand.js +1 -1
  31. package/dist-es/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.js +1 -1
  32. package/dist-es/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.js +1 -1
  33. package/dist-es/commands/UpdateBucketMetadataJournalTableConfigurationCommand.js +1 -1
  34. package/dist-es/commands/UpdateObjectEncryptionCommand.js +1 -1
  35. package/dist-es/commands/UploadPartCommand.js +1 -1
  36. package/dist-es/runtimeConfig.browser.js +1 -6
  37. package/dist-es/runtimeConfig.js +2 -5
  38. package/dist-es/runtimeConfig.native.js +0 -2
  39. package/dist-es/runtimeConfig.shared.js +5 -0
  40. package/dist-types/S3Client.d.ts +1 -1
  41. package/dist-types/runtimeConfig.browser.d.ts +6 -6
  42. package/dist-types/runtimeConfig.d.ts +47 -48
  43. package/dist-types/runtimeConfig.native.d.ts +4 -4
  44. package/dist-types/runtimeConfig.shared.d.ts +3 -0
  45. package/dist-types/ts3.4/S3Client.d.ts +4 -4
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -8
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +70 -74
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +12 -6
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -0
  50. package/package.json +13 -16
  51. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -122
  52. package/dist-cjs/endpoint/bdd.js +0 -758
  53. package/dist-cjs/endpoint/endpointResolver.js +0 -29
  54. package/dist-cjs/models/S3ServiceException.js +0 -8
  55. package/dist-cjs/models/errors.js +0 -257
  56. package/dist-cjs/runtimeConfig.browser.js +0 -39
  57. package/dist-cjs/runtimeConfig.js +0 -58
  58. package/dist-cjs/runtimeConfig.native.js +0 -12
  59. package/dist-cjs/runtimeConfig.shared.js +0 -50
  60. package/dist-cjs/schemas/schemas_0.js +0 -3789
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
18
18
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
19
19
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
20
20
  logger: import("@smithy/types").Logger;
21
+ md5: import("@smithy/types").HashConstructor;
21
22
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof S3RestXmlProtocol;
22
23
  protocolSettings: {
23
24
  [setting: string]: unknown;
@@ -25,6 +26,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
25
26
  };
26
27
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
27
28
  serviceId: string;
29
+ sha1: import("@smithy/types").HashConstructor;
30
+ sha256: import("@smithy/types").HashConstructor;
28
31
  signerConstructor: typeof SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
29
32
  signingEscapePath: boolean;
30
33
  urlParser: import("@smithy/types").UrlParser;
@@ -1,13 +1,13 @@
1
+ import {
2
+ FlexibleChecksumsInputConfig,
3
+ FlexibleChecksumsResolvedConfig,
4
+ } from "@aws-sdk/checksums/flexible-checksums";
1
5
  import {
2
6
  HostHeaderInputConfig,
3
7
  HostHeaderResolvedConfig,
4
8
  UserAgentInputConfig,
5
9
  UserAgentResolvedConfig,
6
10
  } from "@aws-sdk/core/client";
7
- import {
8
- FlexibleChecksumsInputConfig,
9
- FlexibleChecksumsResolvedConfig,
10
- } from "@aws-sdk/middleware-flexible-checksums";
11
11
  import { S3InputConfig, S3ResolvedConfig } from "@aws-sdk/middleware-sdk-s3/s3";
12
12
  import { GetAwsChunkedEncodingStream } from "@aws-sdk/types";
13
13
  import {
@@ -16,15 +16,18 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
16
16
  ) => Promise<import("@smithy/types").UserAgent>;
17
17
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
18
18
  maxAttempts: number | import("@smithy/types").Provider<number>;
19
- md5: import("@smithy/types").HashConstructor;
20
19
  region: string | import("@smithy/types").Provider<any>;
21
20
  requestHandler:
22
21
  | import("@smithy/core/protocols").HttpHandler<any>
23
22
  | RequestHandler;
24
23
  retryMode: string | import("@smithy/types").Provider<string>;
25
- sha1: import("@smithy/types").HashConstructor;
26
- sha256: import("@smithy/types").HashConstructor;
27
- streamCollector: import("@smithy/types").StreamCollector;
24
+ streamCollector: (
25
+ stream:
26
+ | import("stream").Readable
27
+ | import("stream/web").ReadableStream
28
+ | ReadableStream
29
+ | Blob
30
+ ) => Promise<Uint8Array>;
28
31
  streamHasher:
29
32
  | import("@smithy/types").StreamHasher<import("stream").Readable>
30
33
  | import("@smithy/types").StreamHasher<Blob>;
@@ -42,6 +45,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
42
45
  [setting: string]: unknown;
43
46
  };
44
47
  apiVersion: string;
48
+ sha256: import("@smithy/types").HashConstructor;
45
49
  urlParser: import("@smithy/types").UrlParser;
46
50
  base64Decoder: import("@smithy/types").Decoder;
47
51
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -50,6 +54,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
50
54
  disableHostPrefix: boolean;
51
55
  serviceId: string;
52
56
  profile?: string;
57
+ md5: import("@smithy/types").HashConstructor;
58
+ sha1: import("@smithy/types").HashConstructor;
53
59
  getAwsChunkedEncodingStream:
54
60
  | import("@smithy/types").GetAwsChunkedEncodingStream<any>
55
61
  | typeof import("@smithy/core/serde").getAwsChunkedEncodingStream;
@@ -67,14 +73,14 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
67
73
  | undefined
68
74
  | import("@smithy/types").Provider<string | undefined>;
69
75
  requestChecksumCalculation?:
70
- | import("@aws-sdk/checksums").RequestChecksumCalculation
76
+ | import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
71
77
  | import("@smithy/types").Provider<
72
- import("@aws-sdk/checksums").RequestChecksumCalculation
78
+ import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
73
79
  >;
74
80
  responseChecksumValidation?:
75
- | import("@aws-sdk/checksums").ResponseChecksumValidation
81
+ | import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
76
82
  | import("@smithy/types").Provider<
77
- import("@aws-sdk/checksums").ResponseChecksumValidation
83
+ import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
78
84
  >;
79
85
  requestStreamBufferSize?: number | false;
80
86
  checksumAlgorithms?: {
@@ -1,62 +1,57 @@
1
- import {
2
- ChecksumConstructor as __ChecksumConstructor,
3
- HashConstructor as __HashConstructor,
4
- } from "@aws-sdk/types";
5
1
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
6
2
  import { S3ClientConfig } from "./S3Client";
7
3
  export declare const getRuntimeConfig: (config: S3ClientConfig) => {
8
4
  runtime: string;
9
- defaultsMode: import("@aws-sdk/types").Provider<
5
+ defaultsMode: import("@smithy/types").Provider<
10
6
  import("@smithy/core/client").ResolvedDefaultsMode
11
7
  >;
12
- authSchemePreference: string[] | import("@aws-sdk/types").Provider<string[]>;
13
- bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
8
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
10
  credentialDefaultProvider:
15
- | ((input: any) => import("@aws-sdk/types").AwsCredentialIdentityProvider)
11
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
16
12
  | ((
17
13
  init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit
18
14
  ) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
19
15
  defaultUserAgentProvider: (
20
16
  config?: import("@aws-sdk/core/client").PreviouslyResolved
21
- ) => Promise<import("@aws-sdk/types").UserAgent>;
17
+ ) => Promise<import("@smithy/types").UserAgent>;
22
18
  disableS3ExpressSessionAuth:
23
19
  | boolean
24
- | import("@aws-sdk/types").Provider<boolean | undefined>;
25
- eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
26
- maxAttempts: number | import("@aws-sdk/types").Provider<number>;
27
- md5: __HashConstructor;
28
- region: string | import("@aws-sdk/types").Provider<string>;
20
+ | import("@smithy/types").Provider<boolean | undefined>;
21
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
22
+ maxAttempts: number | import("@smithy/types").Provider<number>;
23
+ region: string | import("@smithy/types").Provider<string>;
29
24
  requestChecksumCalculation:
30
- | import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation
31
- | import("@aws-sdk/types").Provider<
32
- import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation
25
+ | import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
26
+ | import("@smithy/types").Provider<
27
+ import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
33
28
  >;
34
29
  requestHandler:
35
30
  | RequestHandler
36
31
  | import("@smithy/core/protocols").HttpHandler<any>;
37
32
  responseChecksumValidation:
38
- | import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation
39
- | import("@aws-sdk/types").Provider<
40
- import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation
33
+ | import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
34
+ | import("@smithy/types").Provider<
35
+ import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
41
36
  >;
42
- retryMode: string | import("@aws-sdk/types").Provider<string>;
43
- sha1: __HashConstructor;
44
- sha256: __HashConstructor;
37
+ retryMode: string | import("@smithy/types").Provider<string>;
45
38
  sigv4aSigningRegionSet:
46
39
  | string[]
47
- | import("@aws-sdk/types").Provider<string[] | undefined>;
48
- streamCollector: import("@aws-sdk/types").StreamCollector;
40
+ | import("@smithy/types").Provider<string[] | undefined>;
41
+ streamCollector: (
42
+ stream:
43
+ | import("stream").Readable
44
+ | import("stream/web").ReadableStream
45
+ | ReadableStream
46
+ | Blob
47
+ ) => Promise<Uint8Array>;
49
48
  streamHasher:
50
- | import("@aws-sdk/types").StreamHasher<import("stream").Readable>
51
- | import("@aws-sdk/types").StreamHasher<Blob>;
52
- useArnRegion:
53
- | boolean
54
- | import("@aws-sdk/types").Provider<boolean | undefined>;
55
- useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
56
- useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
57
- userAgentAppId:
58
- | string
59
- | import("@aws-sdk/types").Provider<string | undefined>;
49
+ | import("@smithy/types").StreamHasher<import("stream").Readable>
50
+ | import("@smithy/types").StreamHasher<Blob>;
51
+ useArnRegion: boolean | import("@smithy/types").Provider<boolean | undefined>;
52
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
53
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
54
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
60
55
  cacheMiddleware?: boolean | undefined;
61
56
  protocol:
62
57
  | import("@smithy/types").ClientProtocol<any, any>
@@ -67,72 +62,73 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
67
62
  [setting: string]: unknown;
68
63
  };
69
64
  apiVersion: string;
70
- urlParser: import("@aws-sdk/types").UrlParser;
71
- base64Decoder: import("@aws-sdk/types").Decoder;
65
+ sha256: import("@smithy/types").HashConstructor;
66
+ urlParser: import("@smithy/types").UrlParser;
67
+ base64Decoder: import("@smithy/types").Decoder;
72
68
  base64Encoder: (_input: Uint8Array | string) => string;
73
- utf8Decoder: import("@aws-sdk/types").Decoder;
69
+ utf8Decoder: import("@smithy/types").Decoder;
74
70
  utf8Encoder: (input: Uint8Array | string) => string;
75
71
  disableHostPrefix: boolean;
76
72
  serviceId: string;
77
73
  profile?: string;
74
+ md5: import("@smithy/types").HashConstructor;
75
+ sha1: import("@smithy/types").HashConstructor;
78
76
  getAwsChunkedEncodingStream:
79
- | import("@aws-sdk/types").GetAwsChunkedEncodingStream<any>
77
+ | import("@smithy/types").GetAwsChunkedEncodingStream<any>
80
78
  | typeof import("@smithy/core/serde").getAwsChunkedEncodingStream;
81
- logger: import("@aws-sdk/types").Logger;
79
+ logger: import("@smithy/types").Logger;
82
80
  extensions: import("./runtimeExtensions").RuntimeExtension[];
83
81
  signingEscapePath: boolean;
84
- sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
85
- customUserAgent?: string | import("@aws-sdk/types").UserAgent;
82
+ sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
83
+ customUserAgent?: string | import("@smithy/types").UserAgent;
86
84
  requestStreamBufferSize?: number | false;
87
85
  checksumAlgorithms?: {
88
- CRC32?: __ChecksumConstructor;
89
- CRC32C?: __ChecksumConstructor;
90
- CRC64NVME?: __ChecksumConstructor;
91
- SHA1?: __ChecksumConstructor;
92
- SHA256?: __ChecksumConstructor;
86
+ CRC32?: import("@smithy/types").ChecksumConstructor;
87
+ CRC32C?: import("@smithy/types").ChecksumConstructor;
88
+ CRC64NVME?: import("@smithy/types").ChecksumConstructor;
89
+ SHA1?: import("@smithy/types").ChecksumConstructor;
90
+ SHA256?: import("@smithy/types").ChecksumConstructor;
93
91
  } & {
94
- [algorithmId: string]: __ChecksumConstructor;
92
+ [algorithmId: string]: import("@smithy/types").ChecksumConstructor;
95
93
  };
96
94
  retryStrategy?:
97
- | import("@aws-sdk/types").RetryStrategy
98
- | import("@aws-sdk/types").RetryStrategyV2;
95
+ | import("@smithy/types").RetryStrategy
96
+ | import("@smithy/types").RetryStrategyV2;
99
97
  endpoint?:
100
98
  | ((
101
99
  | string
102
- | import("@aws-sdk/types").Endpoint
103
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
104
- | import("@aws-sdk/types").EndpointV2
105
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
100
+ | import("@smithy/types").Endpoint
101
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
102
+ | import("@smithy/types").EndpointV2
103
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
106
104
  ) &
107
105
  (
108
106
  | string
109
- | import("@aws-sdk/types").Provider<string>
110
- | import("@aws-sdk/types").Endpoint
111
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
112
- | import("@aws-sdk/types").EndpointV2
113
- | import("@aws-sdk/types").Provider<
114
- import("@aws-sdk/types").EndpointV2
115
- >
107
+ | import("@smithy/types").Provider<string>
108
+ | import("@smithy/types").Endpoint
109
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
110
+ | import("@smithy/types").EndpointV2
111
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
116
112
  ))
117
113
  | undefined;
118
114
  endpointProvider: (
119
115
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
120
116
  context?: {
121
- logger?: import("@aws-sdk/types").Logger;
117
+ logger?: import("@smithy/types").Logger;
122
118
  }
123
- ) => import("@aws-sdk/types").EndpointV2;
119
+ ) => import("@smithy/types").EndpointV2;
124
120
  tls?: boolean;
125
121
  serviceConfiguredEndpoint?: never;
126
122
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
127
123
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
128
124
  credentials?:
129
- | import("@aws-sdk/types").AwsCredentialIdentity
130
- | import("@aws-sdk/types").AwsCredentialIdentityProvider;
125
+ | import("@smithy/types").AwsCredentialIdentity
126
+ | import("@smithy/types").AwsCredentialIdentityProvider;
131
127
  signer?:
132
- | import("@aws-sdk/types").RequestSigner
128
+ | import("@smithy/types").RequestSigner
133
129
  | ((
134
- authScheme?: import("@aws-sdk/types").AuthScheme
135
- ) => Promise<import("@aws-sdk/types").RequestSigner>);
130
+ authScheme?: import("@smithy/types").AuthScheme
131
+ ) => Promise<import("@smithy/types").RequestSigner>);
136
132
  systemClockOffset?: number;
137
133
  signingRegion?: string;
138
134
  signerConstructor:
@@ -140,18 +136,18 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
140
136
  | (new (
141
137
  options: import("@smithy/signature-v4").SignatureV4Init &
142
138
  import("@smithy/signature-v4").SignatureV4CryptoInit
143
- ) => import("@aws-sdk/types").RequestSigner);
139
+ ) => import("@smithy/types").RequestSigner);
144
140
  forcePathStyle?:
145
141
  | (boolean &
146
- (boolean | import("@aws-sdk/types").Provider<boolean | undefined>))
142
+ (boolean | import("@smithy/types").Provider<boolean | undefined>))
147
143
  | undefined;
148
144
  useAccelerateEndpoint?:
149
145
  | (boolean &
150
- (boolean | import("@aws-sdk/types").Provider<boolean | undefined>))
146
+ (boolean | import("@smithy/types").Provider<boolean | undefined>))
151
147
  | undefined;
152
148
  disableMultiregionAccessPoints?:
153
149
  | (boolean &
154
- (boolean | import("@aws-sdk/types").Provider<boolean | undefined>))
150
+ (boolean | import("@smithy/types").Provider<boolean | undefined>))
155
151
  | undefined;
156
152
  followRegionRedirects?: boolean;
157
153
  s3ExpressIdentityProvider?: import("@aws-sdk/middleware-sdk-s3/s3").S3ExpressIdentityProvider;
@@ -161,10 +157,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
161
157
  disableS3ExpressSessionAuth?:
162
158
  | boolean
163
159
  | undefined
164
- | import("@aws-sdk/types").Provider<boolean | undefined>;
160
+ | import("@smithy/types").Provider<boolean | undefined>;
165
161
  };
166
162
  useGlobalEndpoint?:
167
163
  | boolean
168
164
  | undefined
169
- | import("@aws-sdk/types").Provider<boolean | undefined>;
165
+ | import("@smithy/types").Provider<boolean | undefined>;
170
166
  };
@@ -1,7 +1,6 @@
1
1
  import { S3ClientConfig } from "./S3Client";
2
2
  export declare const getRuntimeConfig: (config: S3ClientConfig) => {
3
3
  runtime: string;
4
- sha256: import("@smithy/types").HashConstructor;
5
4
  requestHandler:
6
5
  | import("@smithy/types").NodeHttpHandlerOptions
7
6
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -18,9 +17,16 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
18
17
  [setting: string]: unknown;
19
18
  };
20
19
  apiVersion: string;
20
+ sha256: import("@smithy/types").HashConstructor;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
- streamCollector: import("@smithy/types").StreamCollector;
23
+ streamCollector: (
24
+ stream:
25
+ | import("stream").Readable
26
+ | import("stream/web").ReadableStream
27
+ | ReadableStream
28
+ | Blob
29
+ ) => Promise<Uint8Array>;
24
30
  base64Decoder: import("@smithy/types").Decoder;
25
31
  base64Encoder: (_input: Uint8Array | string) => string;
26
32
  utf8Decoder: import("@smithy/types").Decoder;
@@ -71,14 +77,14 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
71
77
  | undefined
72
78
  | import("@smithy/types").Provider<string | undefined>;
73
79
  requestChecksumCalculation?:
74
- | import("@aws-sdk/checksums").RequestChecksumCalculation
80
+ | import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
75
81
  | import("@smithy/types").Provider<
76
- import("@aws-sdk/checksums").RequestChecksumCalculation
82
+ import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
77
83
  >;
78
84
  responseChecksumValidation?:
79
- | import("@aws-sdk/checksums").ResponseChecksumValidation
85
+ | import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
80
86
  | import("@smithy/types").Provider<
81
- import("@aws-sdk/checksums").ResponseChecksumValidation
87
+ import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
82
88
  >;
83
89
  requestStreamBufferSize?: number | false;
84
90
  checksumAlgorithms?: {
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
20
20
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
21
21
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
22
22
  logger: import("@smithy/types").Logger;
23
+ md5: import("@smithy/types").HashConstructor;
23
24
  protocol:
24
25
  | import("@smithy/types").ClientProtocol<any, any>
25
26
  | import("@smithy/types").ClientProtocolCtor<any, any>
@@ -30,6 +31,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
30
31
  };
31
32
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
32
33
  serviceId: string;
34
+ sha1: import("@smithy/types").HashConstructor;
35
+ sha256: import("@smithy/types").HashConstructor;
33
36
  signerConstructor:
34
37
  | typeof SignatureV4MultiRegion
35
38
  | (new (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.1075.0",
4
+ "version": "3.1077.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -27,24 +27,21 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@aws-crypto/sha1-browser": "5.2.0",
31
- "@aws-crypto/sha256-browser": "5.2.0",
32
- "@aws-crypto/sha256-js": "5.2.0",
33
- "@aws-sdk/core": "^3.974.23",
34
- "@aws-sdk/credential-provider-node": "^3.972.58",
35
- "@aws-sdk/middleware-flexible-checksums": "^3.974.33",
36
- "@aws-sdk/middleware-sdk-s3": "^3.972.54",
37
- "@aws-sdk/signature-v4-multi-region": "^3.996.35",
38
- "@aws-sdk/types": "^3.973.13",
39
- "@smithy/core": "^3.24.6",
40
- "@smithy/fetch-http-handler": "^5.4.6",
41
- "@smithy/node-http-handler": "^4.7.6",
42
- "@smithy/types": "^4.14.3",
30
+ "@aws-sdk/checksums": "^3.1000.10",
31
+ "@aws-sdk/core": "^3.974.25",
32
+ "@aws-sdk/credential-provider-node": "^3.972.60",
33
+ "@aws-sdk/middleware-sdk-s3": "^3.972.56",
34
+ "@aws-sdk/signature-v4-multi-region": "^3.996.37",
35
+ "@aws-sdk/types": "^3.973.14",
36
+ "@smithy/core": "^3.28.0",
37
+ "@smithy/fetch-http-handler": "^5.6.1",
38
+ "@smithy/node-http-handler": "^4.9.1",
39
+ "@smithy/types": "^4.15.0",
43
40
  "tslib": "^2.6.2"
44
41
  },
45
42
  "devDependencies": {
46
- "@aws-sdk/signature-v4-crt": "3.1075.0",
47
- "@smithy/snapshot-testing": "^2.1.7",
43
+ "@aws-sdk/signature-v4-crt": "3.1077.0",
44
+ "@smithy/snapshot-testing": "^2.2.4",
48
45
  "@tsconfig/node20": "20.1.8",
49
46
  "@types/node": "^20.14.8",
50
47
  "concurrently": "7.0.0",
@@ -1,122 +0,0 @@
1
- const { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
3
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
4
- const { resolveParams } = require("@smithy/core/endpoints");
5
- const { defaultEndpointResolver } = require("../endpoint/endpointResolver");
6
- const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
7
- if (!input) {
8
- throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
9
- }
10
- const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
11
- const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
12
- ?.getEndpointParameterInstructions;
13
- if (!instructionsFn) {
14
- throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
15
- }
16
- const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
17
- return Object.assign(defaultParameters, endpointParameters);
18
- };
19
- const _defaultS3HttpAuthSchemeParametersProvider = async (config, context, input) => {
20
- return {
21
- operation: getSmithyContext(context).operation,
22
- region: await normalizeProvider(config.region)() || (() => {
23
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
24
- })(),
25
- };
26
- };
27
- exports.defaultS3HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider);
28
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
29
- return {
30
- schemeId: "aws.auth#sigv4",
31
- signingProperties: {
32
- name: "s3",
33
- region: authParameters.region,
34
- },
35
- propertiesExtractor: (config, context) => ({
36
- signingProperties: {
37
- config,
38
- context,
39
- },
40
- }),
41
- };
42
- }
43
- function createAwsAuthSigv4aHttpAuthOption(authParameters) {
44
- return {
45
- schemeId: "aws.auth#sigv4a",
46
- signingProperties: {
47
- name: "s3",
48
- region: authParameters.region,
49
- },
50
- propertiesExtractor: (config, context) => ({
51
- signingProperties: {
52
- config,
53
- context,
54
- },
55
- }),
56
- };
57
- }
58
- const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
59
- const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
60
- const endpoint = defaultEndpointResolver(authParameters);
61
- const authSchemes = endpoint.properties?.authSchemes;
62
- if (!authSchemes) {
63
- return defaultHttpAuthSchemeResolver(authParameters);
64
- }
65
- const options = [];
66
- for (const scheme of authSchemes) {
67
- const { name: resolvedName, properties = {}, ...rest } = scheme;
68
- const name = resolvedName.toLowerCase();
69
- if (resolvedName !== name) {
70
- console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
71
- }
72
- let schemeId;
73
- if (name === "sigv4a") {
74
- schemeId = "aws.auth#sigv4a";
75
- const sigv4Present = authSchemes.find((s) => {
76
- const name = s.name.toLowerCase();
77
- return name !== "sigv4a" && name.startsWith("sigv4");
78
- });
79
- if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
80
- continue;
81
- }
82
- }
83
- else if (name.startsWith("sigv4")) {
84
- schemeId = "aws.auth#sigv4";
85
- }
86
- else {
87
- throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
88
- }
89
- const createOption = createHttpAuthOptionFunctions[schemeId];
90
- if (!createOption) {
91
- throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
92
- }
93
- const option = createOption(authParameters);
94
- option.schemeId = schemeId;
95
- option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
96
- options.push(option);
97
- }
98
- return options;
99
- };
100
- return endpointRuleSetHttpAuthSchemeProvider;
101
- };
102
- const _defaultS3HttpAuthSchemeProvider = (authParameters) => {
103
- const options = [];
104
- switch (authParameters.operation) {
105
- default: {
106
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
107
- options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
108
- }
109
- }
110
- return options;
111
- };
112
- exports.defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultS3HttpAuthSchemeProvider, {
113
- "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
114
- "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
115
- });
116
- exports.resolveHttpAuthSchemeConfig = (config) => {
117
- const config_0 = resolveAwsSdkSigV4Config(config);
118
- const config_1 = resolveAwsSdkSigV4AConfig(config_0);
119
- return Object.assign(config_1, {
120
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
121
- });
122
- };