@aws-sdk/core 3.975.2 → 3.976.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/submodules/httpAuthSchemes/index.js +1 -1
- package/dist-cjs/submodules/protocols/index.js +8 -8
- package/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -1
- package/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +1 -1
- package/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -1
- package/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +182 -0
- package/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +473 -0
- package/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -2
- package/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
- package/dist-types/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
- package/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +59 -0
- package/dist-types/ts3.4/index.d.ts +1 -5
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +2 -4
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +1 -3
- package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -4
- package/dist-types/ts3.4/submodules/client/index.browser.d.ts +3 -12
- package/dist-types/ts3.4/submodules/client/index.d.ts +4 -16
- package/dist-types/ts3.4/submodules/client/index.native.d.ts +3 -12
- package/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +2 -4
- package/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +5 -9
- package/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +3 -6
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +1 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +4 -7
- package/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +2 -2
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +3 -8
- package/dist-types/ts3.4/submodules/client/setFeature.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +3 -9
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -5
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +1 -3
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +2 -5
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +4 -6
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -3
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +3 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +8 -17
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +1 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -4
- package/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +6 -19
- package/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +2 -2
- package/dist-types/ts3.4/submodules/protocols/common.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -5
- package/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -2
- package/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -3
- package/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +1 -4
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -5
- package/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -3
- package/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +14 -0
- package/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +30 -0
- package/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +4 -13
- package/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +4 -7
- package/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +3 -3
- package/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +3 -12
- package/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +1 -1
- package/package.json +65 -64
- package/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
- package/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
- package/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
emitWarningIfUnsupportedVersion,
|
|
3
|
-
state,
|
|
4
|
-
} from "./emitWarningIfUnsupportedVersion";
|
|
1
|
+
export { emitWarningIfUnsupportedVersion, state } from "./emitWarningIfUnsupportedVersion";
|
|
5
2
|
export { getLongPollPlugin } from "./longPollMiddleware";
|
|
6
3
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
7
4
|
export { setFeature } from "./setFeature";
|
|
@@ -24,10 +21,7 @@ export {
|
|
|
24
21
|
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
25
22
|
export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin";
|
|
26
23
|
export { recursionDetectionMiddleware } from "./middleware-recursion-detection/recursionDetectionMiddleware";
|
|
27
|
-
export {
|
|
28
|
-
DEFAULT_UA_APP_ID,
|
|
29
|
-
resolveUserAgentConfig,
|
|
30
|
-
} from "./middleware-user-agent/configurations";
|
|
24
|
+
export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations";
|
|
31
25
|
export {
|
|
32
26
|
UserAgentInputConfig,
|
|
33
27
|
UserAgentResolvedConfig,
|
|
@@ -81,10 +75,7 @@ export {
|
|
|
81
75
|
EndpointRuleObject,
|
|
82
76
|
} from "./util-endpoints/types/EndpointRuleObject";
|
|
83
77
|
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
84
|
-
export {
|
|
85
|
-
RuleSetRules,
|
|
86
|
-
TreeRuleObject,
|
|
87
|
-
} from "./util-endpoints/types/TreeRuleObject";
|
|
78
|
+
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
88
79
|
export {
|
|
89
80
|
DeprecatedObject,
|
|
90
81
|
ParameterObject,
|
|
@@ -109,10 +100,7 @@ export {
|
|
|
109
100
|
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
110
101
|
resolveRegionConfig,
|
|
111
102
|
} from "./region-config-resolver/awsRegionConfig";
|
|
112
|
-
export {
|
|
113
|
-
RegionInputConfig,
|
|
114
|
-
RegionResolvedConfig,
|
|
115
|
-
} from "./region-config-resolver/awsRegionConfig";
|
|
103
|
+
export { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig";
|
|
116
104
|
export {
|
|
117
105
|
stsRegionDefaultResolver,
|
|
118
106
|
warning as stsRegionWarning,
|
|
@@ -22,10 +22,7 @@ export {
|
|
|
22
22
|
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
23
23
|
export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin.browser";
|
|
24
24
|
export { recursionDetectionMiddleware } from "./middleware-recursion-detection/recursionDetectionMiddleware.native";
|
|
25
|
-
export {
|
|
26
|
-
DEFAULT_UA_APP_ID,
|
|
27
|
-
resolveUserAgentConfig,
|
|
28
|
-
} from "./middleware-user-agent/configurations";
|
|
25
|
+
export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations";
|
|
29
26
|
export {
|
|
30
27
|
UserAgentInputConfig,
|
|
31
28
|
UserAgentResolvedConfig,
|
|
@@ -77,10 +74,7 @@ export {
|
|
|
77
74
|
EndpointRuleObject,
|
|
78
75
|
} from "./util-endpoints/types/EndpointRuleObject";
|
|
79
76
|
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
80
|
-
export {
|
|
81
|
-
RuleSetRules,
|
|
82
|
-
TreeRuleObject,
|
|
83
|
-
} from "./util-endpoints/types/TreeRuleObject";
|
|
77
|
+
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
84
78
|
export {
|
|
85
79
|
DeprecatedObject,
|
|
86
80
|
ParameterObject,
|
|
@@ -103,10 +97,7 @@ export declare const REGION_INI_NAME: symbol;
|
|
|
103
97
|
export declare const NODE_REGION_CONFIG_OPTIONS: symbol;
|
|
104
98
|
export declare const NODE_REGION_CONFIG_FILE_OPTIONS: symbol;
|
|
105
99
|
export { resolveRegionConfig } from "./region-config-resolver/awsRegionConfig";
|
|
106
|
-
export {
|
|
107
|
-
RegionInputConfig,
|
|
108
|
-
RegionResolvedConfig,
|
|
109
|
-
} from "./region-config-resolver/awsRegionConfig";
|
|
100
|
+
export { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig";
|
|
110
101
|
export { stsRegionDefaultResolver } from "./region-config-resolver/stsRegionDefaultResolver.native";
|
|
111
102
|
export declare const stsRegionWarning: symbol;
|
|
112
103
|
export {
|
|
@@ -5,11 +5,9 @@ import {
|
|
|
5
5
|
MetadataBearer,
|
|
6
6
|
Pluggable,
|
|
7
7
|
} from "@smithy/types";
|
|
8
|
-
export declare const longPollMiddleware: () => <
|
|
9
|
-
Output extends MetadataBearer = MetadataBearer
|
|
10
|
-
>(
|
|
8
|
+
export declare const longPollMiddleware: () => <Output extends MetadataBearer = MetadataBearer>(
|
|
11
9
|
next: InitializeHandler<any, Output>,
|
|
12
|
-
context: HandlerExecutionContext
|
|
10
|
+
context: HandlerExecutionContext,
|
|
13
11
|
) => InitializeHandler<any, Output>;
|
|
14
12
|
export declare const longPollMiddlewareOptions: InitializeHandlerOptions;
|
|
15
13
|
export declare const getLongPollPlugin: (options: {}) => Pluggable<any, any>;
|
|
@@ -13,17 +13,13 @@ export interface HostHeaderResolvedConfig {
|
|
|
13
13
|
requestHandler: RequestHandler<any, any>;
|
|
14
14
|
}
|
|
15
15
|
export declare function resolveHostHeaderConfig<T>(
|
|
16
|
-
input: T & PreviouslyResolved & HostHeaderInputConfig
|
|
16
|
+
input: T & PreviouslyResolved & HostHeaderInputConfig,
|
|
17
17
|
): T & HostHeaderResolvedConfig;
|
|
18
|
-
export declare const hostHeaderMiddleware: <
|
|
19
|
-
|
|
20
|
-
Output extends object
|
|
21
|
-
>(
|
|
22
|
-
options: HostHeaderResolvedConfig
|
|
18
|
+
export declare const hostHeaderMiddleware: <Input extends object, Output extends object>(
|
|
19
|
+
options: HostHeaderResolvedConfig,
|
|
23
20
|
) => BuildMiddleware<Input, Output>;
|
|
24
|
-
export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions &
|
|
25
|
-
AbsoluteLocation;
|
|
21
|
+
export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
|
|
26
22
|
export declare const getHostHeaderPlugin: (
|
|
27
|
-
options: HostHeaderResolvedConfig
|
|
23
|
+
options: HostHeaderResolvedConfig,
|
|
28
24
|
) => Pluggable<any, any>;
|
|
29
25
|
export {};
|
|
@@ -6,12 +6,9 @@ import {
|
|
|
6
6
|
MetadataBearer,
|
|
7
7
|
Pluggable,
|
|
8
8
|
} from "@smithy/types";
|
|
9
|
-
export declare const loggerMiddleware: () => <
|
|
10
|
-
Output extends MetadataBearer = MetadataBearer
|
|
11
|
-
>(
|
|
9
|
+
export declare const loggerMiddleware: () => <Output extends MetadataBearer = MetadataBearer>(
|
|
12
10
|
next: InitializeHandler<any, Output>,
|
|
13
|
-
context: HandlerExecutionContext
|
|
11
|
+
context: HandlerExecutionContext,
|
|
14
12
|
) => InitializeHandler<any, Output>;
|
|
15
|
-
export declare const loggerMiddlewareOptions: InitializeHandlerOptions &
|
|
16
|
-
AbsoluteLocation;
|
|
13
|
+
export declare const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocation;
|
|
17
14
|
export declare const getLoggerPlugin: (options: any) => Pluggable<any, any>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { AccountIdEndpointMode } from "@aws-sdk/core/account-id-endpoint";
|
|
2
2
|
import { AwsHandlerExecutionContext } from "@aws-sdk/types";
|
|
3
|
-
import {
|
|
4
|
-
AwsCredentialIdentityProvider,
|
|
5
|
-
BuildHandlerArguments,
|
|
6
|
-
Provider,
|
|
7
|
-
} from "@smithy/types";
|
|
3
|
+
import { AwsCredentialIdentityProvider, BuildHandlerArguments, Provider } from "@smithy/types";
|
|
8
4
|
type PreviouslyResolved = Partial<{
|
|
9
5
|
credentials?: AwsCredentialIdentityProvider;
|
|
10
6
|
accountIdEndpointMode?: Provider<AccountIdEndpointMode>;
|
|
@@ -15,6 +11,6 @@ type PreviouslyResolved = Partial<{
|
|
|
15
11
|
export declare function checkFeatures(
|
|
16
12
|
context: AwsHandlerExecutionContext,
|
|
17
13
|
config: PreviouslyResolved,
|
|
18
|
-
args: BuildHandlerArguments<any
|
|
14
|
+
args: BuildHandlerArguments<any>,
|
|
19
15
|
): Promise<void>;
|
|
20
16
|
export {};
|
|
@@ -16,6 +16,6 @@ export interface UserAgentResolvedConfig {
|
|
|
16
16
|
userAgentAppId: Provider<string | undefined>;
|
|
17
17
|
}
|
|
18
18
|
export declare function resolveUserAgentConfig<T>(
|
|
19
|
-
input: T & PreviouslyResolved & UserAgentInputConfig
|
|
19
|
+
input: T & PreviouslyResolved & UserAgentInputConfig,
|
|
20
20
|
): T & UserAgentResolvedConfig;
|
|
21
21
|
export {};
|
|
@@ -9,13 +9,10 @@ import {
|
|
|
9
9
|
} from "@smithy/types";
|
|
10
10
|
import { UserAgentResolvedConfig } from "./configurations";
|
|
11
11
|
export declare const userAgentMiddleware: (
|
|
12
|
-
options: UserAgentResolvedConfig
|
|
12
|
+
options: UserAgentResolvedConfig,
|
|
13
13
|
) => <Output extends MetadataBearer>(
|
|
14
14
|
next: BuildHandler<any, any>,
|
|
15
|
-
context: HandlerExecutionContext | AwsHandlerExecutionContext
|
|
15
|
+
context: HandlerExecutionContext | AwsHandlerExecutionContext,
|
|
16
16
|
) => BuildHandler<any, any>;
|
|
17
|
-
export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions &
|
|
18
|
-
|
|
19
|
-
export declare const getUserAgentPlugin: (
|
|
20
|
-
config: UserAgentResolvedConfig
|
|
21
|
-
) => Pluggable<any, any>;
|
|
17
|
+
export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
|
|
18
|
+
export declare const getUserAgentPlugin: (config: UserAgentResolvedConfig) => Pluggable<any, any>;
|
|
@@ -4,11 +4,11 @@ export type RegionExtensionRuntimeConfigType = Partial<{
|
|
|
4
4
|
region: string | Provider<string>;
|
|
5
5
|
}>;
|
|
6
6
|
export declare const getAwsRegionExtensionConfiguration: (
|
|
7
|
-
runtimeConfig: RegionExtensionRuntimeConfigType
|
|
7
|
+
runtimeConfig: RegionExtensionRuntimeConfigType,
|
|
8
8
|
) => {
|
|
9
9
|
setRegion(region: Provider<string>): void;
|
|
10
10
|
region(): Provider<string>;
|
|
11
11
|
};
|
|
12
12
|
export declare const resolveAwsRegionExtensionConfiguration: (
|
|
13
|
-
awsRegionExtensionConfiguration: AwsRegionExtensionConfiguration
|
|
13
|
+
awsRegionExtensionConfiguration: AwsRegionExtensionConfiguration,
|
|
14
14
|
) => RegionExtensionRuntimeConfigType;
|
package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LocalConfigOptions } from "@smithy/core/config";
|
|
2
2
|
export declare function stsRegionDefaultResolver(
|
|
3
|
-
loaderConfig?: LocalConfigOptions
|
|
3
|
+
loaderConfig?: LocalConfigOptions,
|
|
4
4
|
): import("@smithy/types").Provider<string>;
|
|
5
5
|
export declare const warning: {
|
|
6
6
|
silence: boolean;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
AwsSdkCredentialsFeatures,
|
|
4
|
-
} from "@aws-sdk/types";
|
|
5
|
-
export declare function setCredentialFeature<
|
|
6
|
-
F extends keyof AwsSdkCredentialsFeatures
|
|
7
|
-
>(
|
|
1
|
+
import { AttributedAwsCredentialIdentity, AwsSdkCredentialsFeatures } from "@aws-sdk/types";
|
|
2
|
+
export declare function setCredentialFeature<F extends keyof AwsSdkCredentialsFeatures>(
|
|
8
3
|
credentials: AttributedAwsCredentialIdentity,
|
|
9
4
|
feature: F,
|
|
10
|
-
value: AwsSdkCredentialsFeatures[F]
|
|
5
|
+
value: AwsSdkCredentialsFeatures[F],
|
|
11
6
|
): AttributedAwsCredentialIdentity;
|
|
@@ -2,5 +2,5 @@ import { AttributedTokenIdentity, AwsSdkTokenFeatures } from "@aws-sdk/types";
|
|
|
2
2
|
export declare function setTokenFeature<F extends keyof AwsSdkTokenFeatures>(
|
|
3
3
|
token: AttributedTokenIdentity,
|
|
4
4
|
feature: F,
|
|
5
|
-
value: AwsSdkTokenFeatures[F]
|
|
5
|
+
value: AwsSdkTokenFeatures[F],
|
|
6
6
|
): AttributedTokenIdentity;
|
|
@@ -22,7 +22,7 @@ export type PartitionsInfo = {
|
|
|
22
22
|
export declare const partition: (value: string) => EndpointPartition;
|
|
23
23
|
export declare const setPartitionInfo: (
|
|
24
24
|
partitionsInfo: PartitionsInfo,
|
|
25
|
-
userAgentPrefix?: string
|
|
25
|
+
userAgentPrefix?: string,
|
|
26
26
|
) => void;
|
|
27
27
|
export declare const useDefaultPartitionInfo: () => void;
|
|
28
28
|
export declare const getUserAgentPrefix: () => string;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Endpoint,
|
|
3
|
-
EndpointParameters,
|
|
4
|
-
EndpointV2,
|
|
5
|
-
Logger,
|
|
6
|
-
Provider,
|
|
7
|
-
} from "@smithy/types";
|
|
1
|
+
import { Endpoint, EndpointParameters, EndpointV2, Logger, Provider } from "@smithy/types";
|
|
8
2
|
export type DefaultAwsRegionalEndpointsInputConfig = {
|
|
9
3
|
endpoint?: unknown;
|
|
10
4
|
};
|
|
@@ -17,7 +11,7 @@ type PreviouslyResolved = {
|
|
|
17
11
|
endpointParams: EndpointParameters | DefaultRegionalEndpointParameters,
|
|
18
12
|
context?: {
|
|
19
13
|
logger?: Logger;
|
|
20
|
-
}
|
|
14
|
+
},
|
|
21
15
|
) => EndpointV2;
|
|
22
16
|
};
|
|
23
17
|
type DefaultRegionalEndpointParameters = {
|
|
@@ -29,7 +23,7 @@ export interface DefaultAwsRegionalEndpointsResolvedConfig {
|
|
|
29
23
|
endpoint: Provider<Endpoint>;
|
|
30
24
|
}
|
|
31
25
|
export declare const resolveDefaultAwsRegionalEndpointsConfig: <T>(
|
|
32
|
-
input: T & DefaultAwsRegionalEndpointsInputConfig & PreviouslyResolved
|
|
26
|
+
input: T & DefaultAwsRegionalEndpointsInputConfig & PreviouslyResolved,
|
|
33
27
|
) => T & DefaultAwsRegionalEndpointsResolvedConfig;
|
|
34
28
|
export declare const toEndpointV1: (endpoint: EndpointV2) => Endpoint;
|
|
35
29
|
export {};
|
|
@@ -4,6 +4,4 @@ import { PreviouslyResolved } from "./defaultUserAgent";
|
|
|
4
4
|
export declare const createUserAgentStringParsingProvider: ({
|
|
5
5
|
serviceId,
|
|
6
6
|
clientVersion,
|
|
7
|
-
}: DefaultUserAgentOptions) => (
|
|
8
|
-
config?: PreviouslyResolved
|
|
9
|
-
) => Promise<UserAgent>;
|
|
7
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
@@ -7,9 +7,7 @@ export interface PreviouslyResolved {
|
|
|
7
7
|
export declare const createDefaultUserAgentProvider: ({
|
|
8
8
|
serviceId,
|
|
9
9
|
clientVersion,
|
|
10
|
-
}: DefaultUserAgentOptions) => (
|
|
11
|
-
config?: PreviouslyResolved
|
|
12
|
-
) => Promise<UserAgent>;
|
|
10
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
13
11
|
export declare const fallback: {
|
|
14
12
|
os(ua: string): string | undefined;
|
|
15
13
|
browser(ua: string): string | undefined;
|
|
@@ -17,6 +15,4 @@ export declare const fallback: {
|
|
|
17
15
|
export declare const defaultUserAgent: ({
|
|
18
16
|
serviceId,
|
|
19
17
|
clientVersion,
|
|
20
|
-
}: DefaultUserAgentOptions) => (
|
|
21
|
-
config?: PreviouslyResolved
|
|
22
|
-
) => Promise<UserAgent>;
|
|
18
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts
CHANGED
|
@@ -6,12 +6,8 @@ export interface PreviouslyResolved {
|
|
|
6
6
|
export declare const createDefaultUserAgentProvider: ({
|
|
7
7
|
serviceId,
|
|
8
8
|
clientVersion,
|
|
9
|
-
}: DefaultUserAgentOptions) => (
|
|
10
|
-
config?: PreviouslyResolved
|
|
11
|
-
) => Promise<UserAgent>;
|
|
9
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
12
10
|
export declare const defaultUserAgent: ({
|
|
13
11
|
serviceId,
|
|
14
12
|
clientVersion,
|
|
15
|
-
}: DefaultUserAgentOptions) => (
|
|
16
|
-
config?: PreviouslyResolved
|
|
17
|
-
) => Promise<UserAgent>;
|
|
13
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
@@ -10,12 +10,8 @@ export interface PreviouslyResolved {
|
|
|
10
10
|
export declare const createDefaultUserAgentProvider: ({
|
|
11
11
|
serviceId,
|
|
12
12
|
clientVersion,
|
|
13
|
-
}: DefaultUserAgentOptions) => (
|
|
14
|
-
config?: PreviouslyResolved
|
|
15
|
-
) => Promise<UserAgent>;
|
|
13
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
16
14
|
export declare const defaultUserAgent: ({
|
|
17
15
|
serviceId,
|
|
18
16
|
clientVersion,
|
|
19
|
-
}: DefaultUserAgentOptions) => (
|
|
20
|
-
config?: PreviouslyResolved
|
|
21
|
-
) => Promise<UserAgent>;
|
|
17
|
+
}: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
2
|
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
3
3
|
export declare const UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
4
|
-
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<
|
|
5
|
-
string | undefined
|
|
6
|
-
>;
|
|
4
|
+
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<string | undefined>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AwsCredentialIdentity,
|
|
3
|
-
HttpRequest as IHttpRequest,
|
|
4
|
-
} from "@smithy/types";
|
|
1
|
+
import { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
|
|
5
2
|
import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer";
|
|
6
3
|
export declare class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
7
4
|
sign(
|
|
8
5
|
httpRequest: IHttpRequest,
|
|
9
6
|
identity: AwsCredentialIdentity,
|
|
10
|
-
signingProperties: Record<string, unknown
|
|
7
|
+
signingProperties: Record<string, unknown>,
|
|
11
8
|
): Promise<IHttpRequest>;
|
|
12
9
|
}
|
|
@@ -19,20 +19,18 @@ interface AwsSdkSigV4AuthSigningProperties {
|
|
|
19
19
|
signingName?: string;
|
|
20
20
|
}
|
|
21
21
|
export declare const validateSigningProperties: (
|
|
22
|
-
signingProperties: Record<string, unknown
|
|
22
|
+
signingProperties: Record<string, unknown>,
|
|
23
23
|
) => Promise<AwsSdkSigV4AuthSigningProperties>;
|
|
24
24
|
export declare class AwsSdkSigV4Signer implements HttpSigner {
|
|
25
25
|
sign(
|
|
26
26
|
httpRequest: IHttpRequest,
|
|
27
27
|
identity: AwsCredentialIdentity,
|
|
28
|
-
signingProperties: Record<string, unknown
|
|
28
|
+
signingProperties: Record<string, unknown>,
|
|
29
29
|
): Promise<IHttpRequest>;
|
|
30
|
-
errorHandler(
|
|
31
|
-
signingProperties: Record<string, unknown>
|
|
32
|
-
): (error: Error) => never;
|
|
30
|
+
errorHandler(signingProperties: Record<string, unknown>): (error: Error) => never;
|
|
33
31
|
successHandler(
|
|
34
32
|
httpResponse: HttpResponse | unknown,
|
|
35
|
-
signingProperties: Record<string, unknown
|
|
33
|
+
signingProperties: Record<string, unknown>,
|
|
36
34
|
): void;
|
|
37
35
|
}
|
|
38
36
|
export declare const AWSSDKSigV4Signer: typeof AwsSdkSigV4Signer;
|
|
@@ -5,19 +5,13 @@ export {
|
|
|
5
5
|
} from "./AwsSdkSigV4Signer";
|
|
6
6
|
export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
|
|
7
7
|
export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
|
|
8
|
-
export {
|
|
9
|
-
resolveAwsSdkSigV4AConfig,
|
|
10
|
-
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
11
|
-
} from "./resolveAwsSdkSigV4AConfig";
|
|
8
|
+
export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
|
|
12
9
|
export {
|
|
13
10
|
AwsSdkSigV4AAuthInputConfig,
|
|
14
11
|
AwsSdkSigV4APreviouslyResolved,
|
|
15
12
|
AwsSdkSigV4AAuthResolvedConfig,
|
|
16
13
|
} from "./resolveAwsSdkSigV4AConfig";
|
|
17
|
-
export {
|
|
18
|
-
resolveAwsSdkSigV4Config,
|
|
19
|
-
resolveAWSSDKSigV4Config,
|
|
20
|
-
} from "./resolveAwsSdkSigV4Config";
|
|
14
|
+
export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
|
|
21
15
|
export {
|
|
22
16
|
AwsSdkSigV4AuthInputConfig,
|
|
23
17
|
AwsSdkSigV4Memoized,
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
2
|
import { Provider } from "@smithy/types";
|
|
3
3
|
export interface AwsSdkSigV4AAuthInputConfig {
|
|
4
|
-
sigv4aSigningRegionSet?:
|
|
5
|
-
| string[]
|
|
6
|
-
| undefined
|
|
7
|
-
| Provider<string[] | undefined>;
|
|
4
|
+
sigv4aSigningRegionSet?: string[] | undefined | Provider<string[] | undefined>;
|
|
8
5
|
}
|
|
9
6
|
export interface AwsSdkSigV4APreviouslyResolved {}
|
|
10
7
|
export interface AwsSdkSigV4AAuthResolvedConfig {
|
|
11
8
|
sigv4aSigningRegionSet: Provider<string[] | undefined>;
|
|
12
9
|
}
|
|
13
10
|
export declare const resolveAwsSdkSigV4AConfig: <T>(
|
|
14
|
-
config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved
|
|
11
|
+
config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved,
|
|
15
12
|
) => T & AwsSdkSigV4AAuthResolvedConfig;
|
|
16
|
-
export declare const NODE_SIGV4A_CONFIG_OPTIONS: LoadedConfigSelectors<
|
|
17
|
-
string[] | undefined
|
|
18
|
-
>;
|
|
13
|
+
export declare const NODE_SIGV4A_CONFIG_OPTIONS: LoadedConfigSelectors<string[] | undefined>;
|
|
@@ -13,15 +13,11 @@ import {
|
|
|
13
13
|
} from "@smithy/types";
|
|
14
14
|
export interface AwsSdkSigV4AuthInputConfig {
|
|
15
15
|
credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
16
|
-
signer?:
|
|
17
|
-
| RequestSigner
|
|
18
|
-
| ((authScheme?: AuthScheme) => Promise<RequestSigner>);
|
|
16
|
+
signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>);
|
|
19
17
|
signingEscapePath?: boolean;
|
|
20
18
|
systemClockOffset?: number;
|
|
21
19
|
signingRegion?: string;
|
|
22
|
-
signerConstructor?: new (
|
|
23
|
-
options: SignatureV4Init & SignatureV4CryptoInit
|
|
24
|
-
) => RequestSigner;
|
|
20
|
+
signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
|
|
25
21
|
}
|
|
26
22
|
export type AwsSdkSigV4Memoized = {
|
|
27
23
|
memoized?: boolean;
|
|
@@ -29,9 +25,7 @@ export type AwsSdkSigV4Memoized = {
|
|
|
29
25
|
attributed?: boolean;
|
|
30
26
|
};
|
|
31
27
|
export interface AwsSdkSigV4PreviouslyResolved {
|
|
32
|
-
credentialDefaultProvider?: (
|
|
33
|
-
input: any
|
|
34
|
-
) => MemoizedProvider<AwsCredentialIdentity>;
|
|
28
|
+
credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>;
|
|
35
29
|
region: string | Provider<string>;
|
|
36
30
|
sha256: ChecksumConstructor | HashConstructor;
|
|
37
31
|
signingName?: string;
|
|
@@ -52,14 +46,11 @@ export interface AwsSdkSigV4AuthResolvedConfig {
|
|
|
52
46
|
systemClockOffset: number;
|
|
53
47
|
}
|
|
54
48
|
export declare const resolveAwsSdkSigV4Config: <T>(
|
|
55
|
-
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
49
|
+
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
56
50
|
) => T & AwsSdkSigV4AuthResolvedConfig;
|
|
57
|
-
export interface AWSSDKSigV4AuthInputConfig
|
|
58
|
-
|
|
59
|
-
export interface
|
|
60
|
-
extends AwsSdkSigV4PreviouslyResolved {}
|
|
61
|
-
export interface AWSSDKSigV4AuthResolvedConfig
|
|
62
|
-
extends AwsSdkSigV4AuthResolvedConfig {}
|
|
51
|
+
export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig {}
|
|
52
|
+
export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved {}
|
|
53
|
+
export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {}
|
|
63
54
|
export declare const resolveAWSSDKSigV4Config: <T>(
|
|
64
|
-
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
55
|
+
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
65
56
|
) => T & AwsSdkSigV4AuthResolvedConfig;
|
|
@@ -15,7 +15,7 @@ export declare class ProtocolLib {
|
|
|
15
15
|
constructor(queryCompat?: boolean);
|
|
16
16
|
resolveRestContentType(
|
|
17
17
|
defaultContentType: string,
|
|
18
|
-
inputSchema: NormalizedSchema
|
|
18
|
+
inputSchema: NormalizedSchema,
|
|
19
19
|
): string | undefined;
|
|
20
20
|
getErrorSchemaOrThrowBaseException(
|
|
21
21
|
errorIdentifier: string,
|
|
@@ -23,31 +23,18 @@ export declare class ProtocolLib {
|
|
|
23
23
|
response: IHttpResponse,
|
|
24
24
|
dataObject: any,
|
|
25
25
|
metadata: ResponseMetadata,
|
|
26
|
-
getErrorSchema?: (
|
|
27
|
-
registry: TypeRegistry,
|
|
28
|
-
errorName: string
|
|
29
|
-
) => StaticErrorSchema
|
|
26
|
+
getErrorSchema?: (registry: TypeRegistry, errorName: string) => StaticErrorSchema,
|
|
30
27
|
): Promise<{
|
|
31
28
|
errorSchema: StaticErrorSchema;
|
|
32
29
|
errorMetadata: ErrorMetadataBearer;
|
|
33
30
|
}>;
|
|
34
|
-
compose(
|
|
35
|
-
composite: TypeRegistry,
|
|
36
|
-
errorIdentifier: string,
|
|
37
|
-
defaultNamespace: string
|
|
38
|
-
): void;
|
|
31
|
+
compose(composite: TypeRegistry, errorIdentifier: string, defaultNamespace: string): void;
|
|
39
32
|
decorateServiceException<E extends SDKBaseServiceException>(
|
|
40
33
|
exception: E,
|
|
41
|
-
additions?: Record<string, any
|
|
34
|
+
additions?: Record<string, any>,
|
|
42
35
|
): E;
|
|
43
|
-
setQueryCompatError(
|
|
44
|
-
output: Record<string, any>,
|
|
45
|
-
response: IHttpResponse
|
|
46
|
-
): void;
|
|
36
|
+
setQueryCompatError(output: Record<string, any>, response: IHttpResponse): void;
|
|
47
37
|
queryCompatOutput(queryCompatErrorData: any, errorData: any): void;
|
|
48
|
-
findQueryCompatibleError(
|
|
49
|
-
registry: TypeRegistry,
|
|
50
|
-
errorName: string
|
|
51
|
-
): StaticErrorSchema;
|
|
38
|
+
findQueryCompatibleError(registry: TypeRegistry, errorName: string): StaticErrorSchema;
|
|
52
39
|
}
|
|
53
40
|
export {};
|
|
@@ -24,13 +24,13 @@ export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol
|
|
|
24
24
|
serializeRequest<Input extends object>(
|
|
25
25
|
operationSchema: OperationSchema,
|
|
26
26
|
input: Input,
|
|
27
|
-
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
|
|
27
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
28
28
|
): Promise<HttpRequest>;
|
|
29
29
|
protected handleError(
|
|
30
30
|
operationSchema: OperationSchema,
|
|
31
31
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
32
32
|
response: HttpResponse,
|
|
33
33
|
dataObject: any,
|
|
34
|
-
metadata: ResponseMetadata
|
|
34
|
+
metadata: ResponseMetadata,
|
|
35
35
|
): Promise<never>;
|
|
36
36
|
}
|