@aws-sdk/client-sqs 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.
- package/dist-cjs/index.js +1409 -15
- package/dist-es/runtimeConfig.browser.js +0 -4
- package/dist-es/runtimeConfig.js +1 -3
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -3
- package/dist-types/runtimeConfig.d.ts +26 -27
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +44 -43
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +10 -12
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -49
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/SQSServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -337
- package/dist-cjs/runtimeConfig.browser.js +0 -34
- package/dist-cjs/runtimeConfig.js +0 -46
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -39
- package/dist-cjs/schemas/schemas_0.js +0 -836
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
|
-
import { Md5 } from "@smithy/core/checksum";
|
|
5
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
5
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
|
@@ -21,11 +19,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
21
19
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
22
20
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
21
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
24
|
-
md5: config?.md5 ?? Md5,
|
|
25
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
26
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
28
|
-
sha256: config?.sha256 ?? Sha256,
|
|
29
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
30
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
31
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -28,7 +28,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
28
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
29
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
30
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
-
md5: config?.md5 ?? Hash.bind(null, "md5"),
|
|
32
31
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
33
32
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
34
33
|
retryMode: config?.retryMode ??
|
|
@@ -36,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
36
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
37
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
38
37
|
}, config),
|
|
39
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
40
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
41
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Md5, Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -23,6 +24,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
24
|
},
|
|
24
25
|
],
|
|
25
26
|
logger: config?.logger ?? new NoOpLogger(),
|
|
27
|
+
md5: config?.md5 ?? Md5,
|
|
26
28
|
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
27
29
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
30
|
defaultNamespace: "com.amazonaws.sqs",
|
|
@@ -32,6 +34,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
34
|
awsQueryCompatible: true,
|
|
33
35
|
},
|
|
34
36
|
serviceId: config?.serviceId ?? "SQS",
|
|
37
|
+
sha256: config?.sha256 ?? Sha256,
|
|
35
38
|
urlParser: config?.urlParser ?? parseUrl,
|
|
36
39
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
37
40
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -10,12 +10,10 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
10
10
|
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
11
|
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
|
-
md5: false | import("@smithy/types").HashConstructor;
|
|
14
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
15
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
16
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
|
-
|
|
18
|
-
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
17
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
18
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
21
19
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -25,6 +23,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
25
23
|
[setting: string]: unknown;
|
|
26
24
|
};
|
|
27
25
|
apiVersion: string;
|
|
26
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
28
27
|
urlParser: import("@smithy/types").UrlParser;
|
|
29
28
|
base64Decoder: import("@smithy/types").Decoder;
|
|
30
29
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -33,6 +32,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
33
32
|
disableHostPrefix: boolean;
|
|
34
33
|
serviceId: string;
|
|
35
34
|
profile?: string;
|
|
35
|
+
md5: false | import("@smithy/types").HashConstructor;
|
|
36
36
|
logger: import("@smithy/types").Logger;
|
|
37
37
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
38
38
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HashConstructor as __HashConstructor } from "@aws-sdk/types";
|
|
2
1
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
3
2
|
import type { SQSClientConfig } from "./SQSClient";
|
|
4
3
|
/**
|
|
@@ -6,21 +5,19 @@ import type { SQSClientConfig } from "./SQSClient";
|
|
|
6
5
|
*/
|
|
7
6
|
export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
8
7
|
runtime: string;
|
|
9
|
-
defaultsMode: import("@
|
|
10
|
-
authSchemePreference: string[] | import("@
|
|
11
|
-
bodyLengthChecker: import("@
|
|
12
|
-
credentialDefaultProvider: ((input: any) => import("@
|
|
13
|
-
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@
|
|
14
|
-
maxAttempts: number | import("@
|
|
15
|
-
|
|
16
|
-
region: string | import("@aws-sdk/types").Provider<string>;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
9
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
10
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
|
|
12
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
13
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
14
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
17
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
18
|
-
retryMode: string | import("@
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
userAgentAppId: string | import("@aws-sdk/types").Provider<string | undefined>;
|
|
16
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
19
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
24
21
|
cacheMiddleware?: boolean | undefined;
|
|
25
22
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsJson1_0Protocol;
|
|
26
23
|
protocolSettings: {
|
|
@@ -28,31 +25,33 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
28
25
|
[setting: string]: unknown;
|
|
29
26
|
};
|
|
30
27
|
apiVersion: string;
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
29
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
30
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
33
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
34
|
-
utf8Decoder: import("@
|
|
32
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
35
33
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
36
34
|
disableHostPrefix: boolean;
|
|
37
35
|
serviceId: string;
|
|
38
36
|
profile?: string;
|
|
39
|
-
|
|
37
|
+
md5: false | import("@smithy/types").HashConstructor;
|
|
38
|
+
logger: import("@smithy/types").Logger;
|
|
40
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
-
customUserAgent?: string | import("@
|
|
42
|
-
retryStrategy?: import("@
|
|
43
|
-
endpoint?: ((string | import("@
|
|
40
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
41
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
42
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
44
43
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
45
|
-
logger?: import("@
|
|
46
|
-
}) => import("@
|
|
44
|
+
logger?: import("@smithy/types").Logger;
|
|
45
|
+
}) => import("@smithy/types").EndpointV2;
|
|
47
46
|
tls?: boolean;
|
|
48
47
|
serviceConfiguredEndpoint?: never;
|
|
49
48
|
useQueueUrlAsEndpoint?: boolean;
|
|
50
49
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
51
50
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
52
|
-
credentials?: import("@
|
|
53
|
-
signer?: import("@
|
|
51
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
52
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
54
53
|
signingEscapePath?: boolean;
|
|
55
54
|
systemClockOffset?: number;
|
|
56
55
|
signingRegion?: string;
|
|
57
|
-
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@
|
|
56
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
58
57
|
};
|
|
@@ -4,7 +4,6 @@ import type { SQSClientConfig } from "./SQSClient";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
8
7
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
8
|
cacheMiddleware?: boolean;
|
|
10
9
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsJson1_0Protocol;
|
|
@@ -13,9 +12,10 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
13
12
|
[setting: string]: unknown;
|
|
14
13
|
};
|
|
15
14
|
apiVersion: string;
|
|
15
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -15,12 +15,14 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
15
15
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
16
16
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
17
17
|
logger: import("@smithy/types").Logger;
|
|
18
|
+
md5: false | import("@smithy/types").HashConstructor;
|
|
18
19
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsJson1_0Protocol;
|
|
19
20
|
protocolSettings: {
|
|
20
21
|
[setting: string]: unknown;
|
|
21
22
|
defaultNamespace?: string;
|
|
22
23
|
};
|
|
23
24
|
serviceId: string;
|
|
25
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
24
26
|
urlParser: import("@smithy/types").UrlParser;
|
|
25
27
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
26
28
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
@@ -15,14 +15,18 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
15
15
|
config?: import("@aws-sdk/core/client").PreviouslyResolved
|
|
16
16
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
17
17
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
18
|
-
md5: false | import("@smithy/types").HashConstructor;
|
|
19
18
|
region: string | import("@smithy/types").Provider<any>;
|
|
20
19
|
requestHandler:
|
|
21
20
|
| import("@smithy/core/protocols").HttpHandler<any>
|
|
22
21
|
| RequestHandler;
|
|
23
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
streamCollector: (
|
|
24
|
+
stream:
|
|
25
|
+
| import("stream").Readable
|
|
26
|
+
| import("stream/web").ReadableStream
|
|
27
|
+
| ReadableStream
|
|
28
|
+
| Blob
|
|
29
|
+
) => Promise<Uint8Array>;
|
|
26
30
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
27
31
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
28
32
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -37,6 +41,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
37
41
|
[setting: string]: unknown;
|
|
38
42
|
};
|
|
39
43
|
apiVersion: string;
|
|
44
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
40
45
|
urlParser: import("@smithy/types").UrlParser;
|
|
41
46
|
base64Decoder: import("@smithy/types").Decoder;
|
|
42
47
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -45,6 +50,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
45
50
|
disableHostPrefix: boolean;
|
|
46
51
|
serviceId: string;
|
|
47
52
|
profile?: string;
|
|
53
|
+
md5: false | import("@smithy/types").HashConstructor;
|
|
48
54
|
logger: import("@smithy/types").Logger;
|
|
49
55
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
50
56
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { HashConstructor as __HashConstructor } from "@aws-sdk/types";
|
|
2
1
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
3
2
|
import { SQSClientConfig } from "./SQSClient";
|
|
4
3
|
export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
5
4
|
runtime: string;
|
|
6
|
-
defaultsMode: import("@
|
|
5
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
7
6
|
import("@smithy/core/client").ResolvedDefaultsMode
|
|
8
7
|
>;
|
|
9
|
-
authSchemePreference: string[] | import("@
|
|
10
|
-
bodyLengthChecker: import("@
|
|
8
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
10
|
credentialDefaultProvider:
|
|
12
|
-
| ((input: any) => import("@
|
|
11
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
13
12
|
| ((
|
|
14
13
|
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit
|
|
15
14
|
) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
|
|
16
15
|
defaultUserAgentProvider: (
|
|
17
16
|
config?: import("@aws-sdk/core/client").PreviouslyResolved
|
|
18
|
-
) => Promise<import("@
|
|
19
|
-
maxAttempts: number | import("@
|
|
20
|
-
|
|
21
|
-
region: string | import("@aws-sdk/types").Provider<string>;
|
|
17
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
18
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
19
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
22
20
|
requestHandler:
|
|
23
21
|
| RequestHandler
|
|
24
22
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
25
|
-
retryMode: string | import("@
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
|
+
streamCollector: (
|
|
25
|
+
stream:
|
|
26
|
+
| import("stream").Readable
|
|
27
|
+
| import("stream/web").ReadableStream
|
|
28
|
+
| ReadableStream
|
|
29
|
+
| Blob
|
|
30
|
+
) => Promise<Uint8Array>;
|
|
31
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
32
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
33
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
33
34
|
cacheMiddleware?: boolean | undefined;
|
|
34
35
|
protocol:
|
|
35
36
|
| import("@smithy/types").ClientProtocol<any, any>
|
|
@@ -40,63 +41,63 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
40
41
|
[setting: string]: unknown;
|
|
41
42
|
};
|
|
42
43
|
apiVersion: string;
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
45
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
46
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
45
47
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
46
|
-
utf8Decoder: import("@
|
|
48
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
47
49
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
48
50
|
disableHostPrefix: boolean;
|
|
49
51
|
serviceId: string;
|
|
50
52
|
profile?: string;
|
|
51
|
-
|
|
53
|
+
md5: false | import("@smithy/types").HashConstructor;
|
|
54
|
+
logger: import("@smithy/types").Logger;
|
|
52
55
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
53
|
-
customUserAgent?: string | import("@
|
|
56
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
54
57
|
retryStrategy?:
|
|
55
|
-
| import("@
|
|
56
|
-
| import("@
|
|
58
|
+
| import("@smithy/types").RetryStrategy
|
|
59
|
+
| import("@smithy/types").RetryStrategyV2;
|
|
57
60
|
endpoint?:
|
|
58
61
|
| ((
|
|
59
62
|
| string
|
|
60
|
-
| import("@
|
|
61
|
-
| import("@
|
|
62
|
-
| import("@
|
|
63
|
-
| import("@
|
|
63
|
+
| import("@smithy/types").Endpoint
|
|
64
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
65
|
+
| import("@smithy/types").EndpointV2
|
|
66
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
64
67
|
) &
|
|
65
68
|
(
|
|
66
69
|
| string
|
|
67
|
-
| import("@
|
|
68
|
-
| import("@
|
|
69
|
-
| import("@
|
|
70
|
-
| import("@
|
|
71
|
-
| import("@
|
|
72
|
-
import("@aws-sdk/types").EndpointV2
|
|
73
|
-
>
|
|
70
|
+
| import("@smithy/types").Provider<string>
|
|
71
|
+
| import("@smithy/types").Endpoint
|
|
72
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
73
|
+
| import("@smithy/types").EndpointV2
|
|
74
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
74
75
|
))
|
|
75
76
|
| undefined;
|
|
76
77
|
endpointProvider: (
|
|
77
78
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
78
79
|
context?: {
|
|
79
|
-
logger?: import("@
|
|
80
|
+
logger?: import("@smithy/types").Logger;
|
|
80
81
|
}
|
|
81
|
-
) => import("@
|
|
82
|
+
) => import("@smithy/types").EndpointV2;
|
|
82
83
|
tls?: boolean;
|
|
83
84
|
serviceConfiguredEndpoint?: never;
|
|
84
85
|
useQueueUrlAsEndpoint?: boolean;
|
|
85
86
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
86
87
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
87
88
|
credentials?:
|
|
88
|
-
| import("@
|
|
89
|
-
| import("@
|
|
89
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
90
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
90
91
|
signer?:
|
|
91
|
-
| import("@
|
|
92
|
+
| import("@smithy/types").RequestSigner
|
|
92
93
|
| ((
|
|
93
|
-
authScheme?: import("@
|
|
94
|
-
) => Promise<import("@
|
|
94
|
+
authScheme?: import("@smithy/types").AuthScheme
|
|
95
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
95
96
|
signingEscapePath?: boolean;
|
|
96
97
|
systemClockOffset?: number;
|
|
97
98
|
signingRegion?: string;
|
|
98
99
|
signerConstructor?: new (
|
|
99
100
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
100
101
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
101
|
-
) => import("@
|
|
102
|
+
) => import("@smithy/types").RequestSigner;
|
|
102
103
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SQSClientConfig } from "./SQSClient";
|
|
2
2
|
export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
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: SQSClientConfig) => {
|
|
|
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:
|
|
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;
|
|
@@ -15,6 +15,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
15
15
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
16
16
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
17
17
|
logger: import("@smithy/types").Logger;
|
|
18
|
+
md5: false | import("@smithy/types").HashConstructor;
|
|
18
19
|
protocol:
|
|
19
20
|
| import("@smithy/types").ClientProtocol<any, any>
|
|
20
21
|
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
@@ -24,6 +25,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
24
25
|
defaultNamespace?: string;
|
|
25
26
|
};
|
|
26
27
|
serviceId: string;
|
|
28
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
27
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
28
30
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
29
31
|
utf8Encoder: (input: Uint8Array | string) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sqs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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,20 +27,18 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-
|
|
31
|
-
"@aws-
|
|
32
|
-
"@aws-sdk/
|
|
33
|
-
"@aws-sdk/
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@smithy/
|
|
37
|
-
"@smithy/
|
|
38
|
-
"@smithy/node-http-handler": "^4.7.6",
|
|
39
|
-
"@smithy/types": "^4.14.3",
|
|
30
|
+
"@aws-sdk/core": "^3.974.25",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.60",
|
|
32
|
+
"@aws-sdk/middleware-sdk-sqs": "^3.972.33",
|
|
33
|
+
"@aws-sdk/types": "^3.973.14",
|
|
34
|
+
"@smithy/core": "^3.28.0",
|
|
35
|
+
"@smithy/fetch-http-handler": "^5.6.1",
|
|
36
|
+
"@smithy/node-http-handler": "^4.9.1",
|
|
37
|
+
"@smithy/types": "^4.15.0",
|
|
40
38
|
"tslib": "^2.6.2"
|
|
41
39
|
},
|
|
42
40
|
"devDependencies": {
|
|
43
|
-
"@smithy/snapshot-testing": "^2.
|
|
41
|
+
"@smithy/snapshot-testing": "^2.2.4",
|
|
44
42
|
"@tsconfig/node20": "20.1.8",
|
|
45
43
|
"@types/node": "^20.14.8",
|
|
46
44
|
"concurrently": "7.0.0",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultSQSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "sqs",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultSQSHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const k = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [g]],
|
|
7
|
-
[c, j],
|
|
8
|
-
["aws.partition", j, d],
|
|
9
|
-
[e, [{ [k]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ [k]: "UseDualStack" }, b]],
|
|
11
|
-
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
12
|
-
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
13
|
-
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
|
|
14
|
-
],
|
|
15
|
-
results: [
|
|
16
|
-
[a],
|
|
17
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
18
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
19
|
-
[g, i],
|
|
20
|
-
["https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
21
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
22
|
-
["https://sqs.{Region}.amazonaws.com", i],
|
|
23
|
-
["https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
24
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
25
|
-
["https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
26
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
27
|
-
["https://sqs.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
28
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
29
|
-
]
|
|
30
|
-
};
|
|
31
|
-
const root = 2;
|
|
32
|
-
const r = 100_000_000;
|
|
33
|
-
const nodes = new Int32Array([
|
|
34
|
-
-1, 1, -1,
|
|
35
|
-
0, 13, 3,
|
|
36
|
-
1, 4, r + 12,
|
|
37
|
-
2, 5, r + 12,
|
|
38
|
-
3, 8, 6,
|
|
39
|
-
4, 7, r + 11,
|
|
40
|
-
5, r + 9, r + 10,
|
|
41
|
-
4, 11, 9,
|
|
42
|
-
6, 10, r + 8,
|
|
43
|
-
7, r + 6, r + 7,
|
|
44
|
-
5, 12, r + 5,
|
|
45
|
-
6, r + 4, r + 5,
|
|
46
|
-
3, r + 1, 14,
|
|
47
|
-
4, r + 2, r + 3,
|
|
48
|
-
]);
|
|
49
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.SQSServiceException = class SQSServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, SQSServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|