@aws-sdk/core 3.976.0 → 3.977.1
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/submodules/httpAuthSchemes/index.js +66 -28
- package/dist-cjs/submodules/protocols/index.js +133 -15
- package/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
- package/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
- package/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
- package/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
- package/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
- package/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
- package/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
- package/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
- package/dist-es/submodules/httpAuthSchemes/index.js +5 -1
- package/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
- package/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
- package/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
- package/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
- package/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +10 -1
- package/dist-es/submodules/protocols/json/JsonShapeSerializer.js +10 -0
- package/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
- package/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +13 -15
- package/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +27 -17
- package/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
- package/dist-es/submodules/protocols/json/needsReviver.js +41 -0
- package/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
- package/dist-es/submodules/protocols/writeKey.js +3 -0
- package/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
- package/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
- package/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
- package/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
- package/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
- package/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
- package/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
- package/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
- package/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
- package/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
- package/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
- package/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
- package/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
- package/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -2
- package/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
- package/dist-types/submodules/protocols/writeKey.d.ts +4 -0
- package/dist-types/ts3.4/api-extractor-type-index.d.ts +7 -4
- package/dist-types/ts3.4/index.d.ts +21 -61
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +27 -13
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +16 -4
- package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -5
- package/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +5 -16
- package/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +11 -4
- package/dist-types/ts3.4/submodules/client/index.browser.d.ts +47 -107
- package/dist-types/ts3.4/submodules/client/index.d.ts +39 -112
- package/dist-types/ts3.4/submodules/client/index.native.d.ts +48 -107
- package/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +14 -13
- package/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +35 -25
- package/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +4 -14
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +6 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +5 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +5 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +6 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +10 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +6 -2
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +20 -16
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +44 -21
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +5 -2
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
- package/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +11 -8
- package/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +16 -14
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +4 -1
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +14 -7
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +4 -1
- package/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +7 -6
- package/dist-types/ts3.4/submodules/client/setFeature.d.ts +12 -6
- package/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +7 -6
- package/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -4
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +7 -2
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +38 -28
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +638 -647
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -29
- package/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -6
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +1 -12
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +7 -4
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +14 -7
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -7
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +27 -18
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +18 -13
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +8 -3
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +28 -17
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +6 -2
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +5 -2
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +13 -4
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -9
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +44 -37
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -2
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +7 -23
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -13
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +133 -56
- package/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
- package/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +9 -24
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +8 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +26 -4
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -3
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -1
- package/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -5
- package/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +74 -40
- package/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -9
- package/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +25 -36
- package/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +18 -3
- package/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -5
- package/dist-types/ts3.4/submodules/protocols/index.d.ts +22 -27
- package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -21
- package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -21
- package/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +29 -49
- package/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -49
- package/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +19 -13
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -13
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +28 -18
- package/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +7 -1
- package/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
- package/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -14
- package/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -30
- package/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -7
- package/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -7
- package/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +22 -9
- package/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +27 -18
- package/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +49 -57
- package/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +13 -7
- package/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -21
- package/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
- package/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +31 -47
- package/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +14 -17
- package/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -15
- package/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
- package/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -4
- package/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +6 -1
- package/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
- package/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +32 -14
- package/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +2 -4
- package/package.json +10 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
export { isIpAddress } from "@smithy/core/endpoints";
|
|
1
|
+
export { isIpAddress } from "@smithy/core/endpoints";
|
|
@@ -1,29 +1,56 @@
|
|
|
1
|
-
import { Endpoint, EndpointParameters, EndpointV2, Logger, Provider } from "@smithy/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { Endpoint, EndpointParameters, EndpointV2, Logger, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* This is an additional config resolver layer for clients using the default
|
|
4
|
+
* AWS regional endpoints ruleset. It makes the *resolved* config guarantee the presence of an
|
|
5
|
+
* endpoint provider function. This differs from the base behavior of the Endpoint
|
|
6
|
+
* config resolver, which only normalizes config.endpoint IFF one is provided by the caller.
|
|
7
|
+
*
|
|
8
|
+
* This is not used by AWS SDK clients, but rather
|
|
9
|
+
* generated clients that have the aws.api#service trait. This includes protocol tests
|
|
10
|
+
* and other customers.
|
|
11
|
+
*
|
|
12
|
+
* This resolver is MUTUALLY EXCLUSIVE with the EndpointRequired config resolver from
|
|
13
|
+
* |@smithy/middleware-endpoint.
|
|
14
|
+
*
|
|
15
|
+
* It must be placed after the `resolveEndpointConfig`
|
|
16
|
+
* resolver. This replaces the endpoints.json-based default endpoint provider.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type DefaultAwsRegionalEndpointsInputConfig = {
|
|
21
|
+
endpoint?: unknown;
|
|
22
|
+
};
|
|
23
|
+
type PreviouslyResolved = {
|
|
24
|
+
logger?: Logger;
|
|
25
|
+
region?: undefined | string | Provider<string | undefined>;
|
|
26
|
+
useFipsEndpoint?: undefined | boolean | Provider<string | boolean>;
|
|
27
|
+
useDualstackEndpoint?: undefined | boolean | Provider<string | boolean>;
|
|
28
|
+
endpointProvider: (endpointParams: EndpointParameters | DefaultRegionalEndpointParameters, context?: {
|
|
29
|
+
logger?: Logger;
|
|
30
|
+
}) => EndpointV2;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
type DefaultRegionalEndpointParameters = {
|
|
36
|
+
Region?: string | undefined;
|
|
37
|
+
UseDualStack?: boolean | undefined;
|
|
38
|
+
UseFIPS?: boolean | undefined;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export interface DefaultAwsRegionalEndpointsResolvedConfig {
|
|
44
|
+
endpoint: Provider<Endpoint>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* MUST resolve after `\@smithy/middleware-endpoint`::`resolveEndpointConfig`.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
export declare const resolveDefaultAwsRegionalEndpointsConfig: <T>(input: T & DefaultAwsRegionalEndpointsInputConfig & PreviouslyResolved) => T & DefaultAwsRegionalEndpointsResolvedConfig;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
export declare const toEndpointV1: (endpoint: EndpointV2) => Endpoint;
|
|
56
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { resolveEndpoint } from "@smithy/core/endpoints";
|
|
1
|
+
export { resolveEndpoint } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EndpointError } from "@smithy/core/endpoints";
|
|
1
|
+
export { EndpointError } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ErrorRuleObject } from "@smithy/core/endpoints";
|
|
1
|
+
export { ErrorRuleObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints";
|
|
1
|
+
export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
|
|
1
|
+
export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
ReferenceObject,
|
|
3
|
-
FunctionObject,
|
|
4
|
-
FunctionArgv,
|
|
5
|
-
FunctionReturn,
|
|
6
|
-
ConditionObject,
|
|
7
|
-
Expression,
|
|
8
|
-
EndpointParams,
|
|
9
|
-
EndpointResolverOptions,
|
|
10
|
-
ReferenceRecord,
|
|
11
|
-
EvaluateOptions,
|
|
12
|
-
} from "@smithy/core/endpoints";
|
|
1
|
+
export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/core/endpoints";
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { UserAgent } from "@smithy/types";
|
|
2
|
-
import { DefaultUserAgentOptions } from "./configurations";
|
|
3
|
-
import { PreviouslyResolved } from "./defaultUserAgent";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { UserAgent } from "@smithy/types";
|
|
2
|
+
import { DefaultUserAgentOptions } from "./configurations";
|
|
3
|
+
import { PreviouslyResolved } from "./defaultUserAgent";
|
|
4
|
+
/**
|
|
5
|
+
* This is an alternative to the default user agent provider that uses the bowser
|
|
6
|
+
* library to parse the user agent string.
|
|
7
|
+
*
|
|
8
|
+
* Use this with your client's `defaultUserAgentProvider` constructor object field
|
|
9
|
+
* to use the legacy behavior.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated use the default provider unless you need the older UA-parsing functionality.
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare const createUserAgentStringParsingProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>);
|
package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
createDefaultUserAgentProvider,
|
|
4
|
-
fallback,
|
|
5
|
-
defaultUserAgent,
|
|
6
|
-
} from "./defaultUserAgent";
|
|
7
|
-
export { PreviouslyResolved } from "./defaultUserAgent";
|
|
1
|
+
export { createUserAgentStringParsingProvider, createDefaultUserAgentProvider, fallback, defaultUserAgent, } from "./defaultUserAgent";
|
|
2
|
+
export { PreviouslyResolved } from "./defaultUserAgent";
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
-
import { DefaultUserAgentOptions } from "./configurations";
|
|
3
|
-
export { createUserAgentStringParsingProvider } from "./createUserAgentStringParsingProvider";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
+
import { DefaultUserAgentOptions } from "./configurations";
|
|
3
|
+
export { createUserAgentStringParsingProvider } from "./createUserAgentStringParsingProvider";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface PreviouslyResolved {
|
|
8
|
+
userAgentAppId: Provider<string | undefined>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Default provider of the AWS SDK user agent string in react-native.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>);
|
|
15
|
+
/**
|
|
16
|
+
* Rudimentary UA string parsing as a fallback.
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare const fallback: {
|
|
20
|
+
os(ua: string): string | undefined;
|
|
21
|
+
browser(ua: string): string | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* @deprecated use createDefaultUserAgentProvider
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>);
|
package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
-
import { DefaultUserAgentOptions } from "./configurations";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent
|
|
1
|
+
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
+
import { DefaultUserAgentOptions } from "./configurations";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface PreviouslyResolved {
|
|
7
|
+
userAgentAppId: Provider<string | undefined>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Default provider to the user agent in ReactNative.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>);
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
* @deprecated use createDefaultUserAgentProvider
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>);
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* If \@aws-sdk/signature-v4-crt is installed and loaded, it will register
|
|
3
|
+
* this value to true.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const crtAvailability: {
|
|
7
|
+
isCrtAvailable: boolean;
|
|
8
|
+
};
|
|
@@ -1,17 +1,28 @@
|
|
|
1
|
-
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export { crtAvailability } from "./crt-availability";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface DefaultUserAgentOptions {
|
|
10
|
+
serviceId?: string;
|
|
11
|
+
clientVersion: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export interface PreviouslyResolved {
|
|
17
|
+
userAgentAppId: Provider<string | undefined>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Collect metrics from runtime to put into user agent.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated use createDefaultUserAgentProvider
|
|
27
|
+
*/
|
|
28
|
+
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
package/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import { UserAgentPair } from "@smithy/types";
|
|
2
|
-
|
|
1
|
+
import { UserAgentPair } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the runtime name and version as a user agent pair.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeUserAgentPair: () => UserAgentPair;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<string | undefined>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
|
|
2
|
-
import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
|
|
2
|
+
import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* Note: this is not a signing algorithm implementation. The sign method
|
|
6
|
+
* accepts the real signer as an input parameter.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
9
|
+
sign(httpRequest: IHttpRequest, identity: AwsCredentialIdentity, signingProperties: Record<string, unknown>): Promise<IHttpRequest>;
|
|
10
|
+
}
|
|
@@ -1,37 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
interface AwsSdkSigV4AuthSigningProperties {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, Provider, RequestSigner } from "@smithy/types";
|
|
2
|
+
import { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
interface AwsSdkSigV4Config extends AwsSdkSigV4AAuthResolvedConfig {
|
|
7
|
+
systemClockOffset: number;
|
|
8
|
+
signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
|
|
9
|
+
disableClockSkewCorrection?: Provider<boolean>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
interface AwsSdkSigV4AuthSigningProperties {
|
|
15
|
+
config: AwsSdkSigV4Config;
|
|
16
|
+
signer: RequestSigner;
|
|
17
|
+
signingRegion?: string;
|
|
18
|
+
signingRegionSet?: string[];
|
|
19
|
+
signingName?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare const validateSigningProperties: (signingProperties: Record<string, unknown>) => Promise<AwsSdkSigV4AuthSigningProperties>;
|
|
25
|
+
/**
|
|
26
|
+
* Note: this is not a signing algorithm implementation. The sign method
|
|
27
|
+
* accepts the real signer as an input parameter.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare class AwsSdkSigV4Signer implements HttpSigner {
|
|
31
|
+
sign(httpRequest: IHttpRequest,
|
|
32
|
+
/**
|
|
33
|
+
* `identity` is bound in {@link resolveAWSSDKSigV4Config}
|
|
34
|
+
*/
|
|
35
|
+
identity: AwsCredentialIdentity, signingProperties: Record<string, unknown>): Promise<IHttpRequest>;
|
|
36
|
+
errorHandler(signingProperties: Record<string, unknown>): (error: Error) => never;
|
|
37
|
+
successHandler(httpResponse: HttpResponse | unknown, signingProperties: Record<string, unknown>): void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @deprecated renamed to {@link AwsSdkSigV4Signer}
|
|
42
|
+
*/
|
|
43
|
+
export declare const AWSSDKSigV4Signer: typeof AwsSdkSigV4Signer;
|
|
44
|
+
export {};
|
package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
-
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export declare const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: LoadedConfigSelectors<string[]>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>;
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
|
|
9
|
-
export {
|
|
10
|
-
AwsSdkSigV4AAuthInputConfig,
|
|
11
|
-
AwsSdkSigV4APreviouslyResolved,
|
|
12
|
-
AwsSdkSigV4AAuthResolvedConfig,
|
|
13
|
-
} from "./resolveAwsSdkSigV4AConfig";
|
|
14
|
-
export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
|
|
15
|
-
export {
|
|
16
|
-
AwsSdkSigV4AuthInputConfig,
|
|
17
|
-
AwsSdkSigV4Memoized,
|
|
18
|
-
AwsSdkSigV4PreviouslyResolved,
|
|
19
|
-
AwsSdkSigV4AuthResolvedConfig,
|
|
20
|
-
AWSSDKSigV4AuthInputConfig,
|
|
21
|
-
AWSSDKSigV4PreviouslyResolved,
|
|
22
|
-
AWSSDKSigV4AuthResolvedConfig,
|
|
23
|
-
} from "./resolveAwsSdkSigV4Config";
|
|
1
|
+
export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from "./AwsSdkSigV4Signer";
|
|
2
|
+
export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
|
|
3
|
+
export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
|
|
4
|
+
export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
|
|
5
|
+
export { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, } from "./resolveAwsSdkSigV4AConfig";
|
|
6
|
+
export { bindResolveAwsSdkSigV4Config } from "./resolveAwsSdkSigV4Config";
|
|
7
|
+
export { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./resolveAwsSdkSigV4Config";
|
|
@@ -1,13 +1,38 @@
|
|
|
1
|
-
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
-
import { Provider } from "@smithy/types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
+
import { Provider } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface AwsSdkSigV4AAuthInputConfig {
|
|
7
|
+
/**
|
|
8
|
+
* This option will override the AWS sigv4a
|
|
9
|
+
* signing regionSet from any other source.
|
|
10
|
+
*
|
|
11
|
+
* The lookup order is:
|
|
12
|
+
* 1. this value
|
|
13
|
+
* 2. configuration file value of sigv4a_signing_region_set.
|
|
14
|
+
* 3. environment value of AWS_SIGV4A_SIGNING_REGION_SET.
|
|
15
|
+
* 4. signingRegionSet given by endpoint resolution.
|
|
16
|
+
* 5. the singular region of the SDK client.
|
|
17
|
+
*/
|
|
18
|
+
sigv4aSigningRegionSet?: string[] | undefined | Provider<string[] | undefined>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export interface AwsSdkSigV4APreviouslyResolved {
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export interface AwsSdkSigV4AAuthResolvedConfig {
|
|
29
|
+
sigv4aSigningRegionSet: Provider<string[] | undefined>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare const resolveAwsSdkSigV4AConfig: <T>(config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved) => T & AwsSdkSigV4AAuthResolvedConfig;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare const NODE_SIGV4A_CONFIG_OPTIONS: LoadedConfigSelectors<string[] | undefined>;
|