@aws-sdk/core 3.977.1 → 3.977.2
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-es/submodules/protocols/index.js +2 -2
- package/dist-es/submodules/protocols/json/JsonCodec.js +2 -2
- package/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
- package/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +3 -3
- package/dist-es/submodules/protocols/json/{experimental → codec-v2}/ByteJsonShapeSerializer.js +19 -1
- package/dist-types/submodules/protocols/index.d.ts +2 -2
- package/dist-types/submodules/protocols/json/JsonCodec.d.ts +2 -2
- package/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +2 -2
- package/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +2 -2
- package/dist-types/submodules/protocols/json/{experimental → codec-v2}/ByteJsonShapeSerializer.d.ts +15 -0
- package/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
- package/dist-types/ts3.4/index.d.ts +61 -21
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
- package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
- package/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
- package/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
- package/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
- package/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
- package/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
- package/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
- package/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
- package/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
- 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 +2 -5
- 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 +8 -11
- package/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
- package/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
- package/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
- 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 +4 -5
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
- 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 +29 -56
- 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 +6 -1
- 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 +12 -1
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +18 -27
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +13 -18
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +17 -28
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
- package/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
- package/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -9
- package/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
- package/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
- package/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
- package/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
- package/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
- package/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
- package/dist-types/ts3.4/submodules/protocols/index.d.ts +27 -22
- package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +21 -22
- package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +21 -22
- package/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +49 -29
- package/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +49 -36
- package/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +13 -19
- package/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
- package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
- package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
- package/dist-types/ts3.4/submodules/protocols/json/codec-v2/BufferJsonShapeDeserializer.d.ts +14 -0
- package/dist-types/ts3.4/submodules/protocols/json/codec-v2/ByteJsonShapeSerializer.d.ts +39 -0
- package/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -21
- package/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
- package/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
- package/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
- package/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
- package/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
- package/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
- package/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
- package/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
- package/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
- package/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
- package/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
- package/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
- package/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +4 -13
- package/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
- 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 +14 -32
- package/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
- package/package.json +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
- package/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
- package/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
- /package/dist-es/submodules/protocols/json/{experimental → codec-v2}/BufferJsonShapeDeserializer.js +0 -0
- /package/dist-types/submodules/protocols/json/{experimental → codec-v2}/BufferJsonShapeDeserializer.d.ts +0 -0
|
@@ -5,8 +5,8 @@ export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
|
|
|
5
5
|
export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
|
|
6
6
|
export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
|
|
7
7
|
export { JsonCodec } from "./json/JsonCodec";
|
|
8
|
-
export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer";
|
|
9
|
-
export { JsonShapeSerializer } from "./json/JsonShapeSerializer";
|
|
8
|
+
export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
|
|
9
|
+
export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
|
|
10
10
|
export { awsExpectUnion } from "./json/awsExpectUnion";
|
|
11
11
|
export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
|
|
12
12
|
export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
2
|
-
import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
|
|
3
|
-
import { JsonShapeSerializer } from "./JsonShapeSerializer";
|
|
2
|
+
import { JsonShapeDeserializer } from "./codec-v1/JsonShapeDeserializer";
|
|
3
|
+
import { JsonShapeSerializer } from "./codec-v1/JsonShapeSerializer";
|
|
4
4
|
export class JsonCodec extends SerdeContextConfig {
|
|
5
5
|
settings;
|
|
6
6
|
constructor(settings) {
|
|
@@ -2,12 +2,12 @@ import { determineTimestampFormat } from "@smithy/core/protocols";
|
|
|
2
2
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
|
|
4
4
|
import { fromBase64 } from "@smithy/core/serde";
|
|
5
|
-
import { SerdeContextConfig } from "
|
|
6
|
-
import { UnionSerde } from "
|
|
7
|
-
import { jsonReviver } from "
|
|
8
|
-
import { needsReviver } from "
|
|
9
|
-
import { parseJsonBody } from "
|
|
10
|
-
import { writeKey } from "
|
|
5
|
+
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
6
|
+
import { UnionSerde } from "../../UnionSerde";
|
|
7
|
+
import { jsonReviver } from "../jsonReviver";
|
|
8
|
+
import { needsReviver } from "../needsReviver";
|
|
9
|
+
import { parseJsonBody } from "../parseJsonBody";
|
|
10
|
+
import { writeKey } from "../../writeKey";
|
|
11
11
|
export class JsonShapeDeserializer extends SerdeContextConfig {
|
|
12
12
|
settings;
|
|
13
13
|
constructor(settings) {
|
package/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { determineTimestampFormat } from "@smithy/core/protocols";
|
|
2
2
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
|
|
4
|
-
import { SerdeContextConfig } from "
|
|
5
|
-
import { JsonReplacer } from "
|
|
6
|
-
import { writeKey } from "
|
|
4
|
+
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
5
|
+
import { JsonReplacer } from "../jsonReplacer";
|
|
6
|
+
import { writeKey } from "../../writeKey";
|
|
7
7
|
export class JsonShapeSerializer extends SerdeContextConfig {
|
|
8
8
|
settings;
|
|
9
9
|
buffer;
|
package/dist-es/submodules/protocols/json/{experimental → codec-v2}/ByteJsonShapeSerializer.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { determineTimestampFormat } from "@smithy/core/protocols";
|
|
2
2
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
-
import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
|
|
3
|
+
import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64, toUtf8, } from "@smithy/core/serde";
|
|
4
4
|
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
5
5
|
import { writeKey } from "../../writeKey";
|
|
6
6
|
const encoder = new TextEncoder();
|
|
@@ -481,3 +481,21 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
|
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
+
export class StringJsonShapeSerializer extends SerdeContextConfig {
|
|
485
|
+
settings;
|
|
486
|
+
byteSerializer;
|
|
487
|
+
constructor(settings) {
|
|
488
|
+
super();
|
|
489
|
+
this.settings = settings;
|
|
490
|
+
this.byteSerializer = new ByteJsonShapeSerializer(settings);
|
|
491
|
+
}
|
|
492
|
+
write(schema, value) {
|
|
493
|
+
this.byteSerializer.write(schema, value);
|
|
494
|
+
}
|
|
495
|
+
writeDiscriminatedDocument(schema, value) {
|
|
496
|
+
this.byteSerializer.writeDiscriminatedDocument(schema, value);
|
|
497
|
+
}
|
|
498
|
+
flush() {
|
|
499
|
+
return (this.serdeContext?.utf8Encoder ?? toUtf8)(this.byteSerializer.flush());
|
|
500
|
+
}
|
|
501
|
+
}
|
|
@@ -6,8 +6,8 @@ export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
|
|
|
6
6
|
export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
|
|
7
7
|
export { JsonCodec } from "./json/JsonCodec";
|
|
8
8
|
export type { JsonSettings } from "./json/JsonCodec";
|
|
9
|
-
export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer";
|
|
10
|
-
export { JsonShapeSerializer } from "./json/JsonShapeSerializer";
|
|
9
|
+
export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
|
|
10
|
+
export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
|
|
11
11
|
export { awsExpectUnion } from "./json/awsExpectUnion";
|
|
12
12
|
export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
|
|
13
13
|
export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Codec, CodecSettings } from "@smithy/types";
|
|
2
2
|
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
|
|
4
|
-
import { JsonShapeSerializer } from "./JsonShapeSerializer";
|
|
3
|
+
import { JsonShapeDeserializer } from "./codec-v1/JsonShapeDeserializer";
|
|
4
|
+
import { JsonShapeSerializer } from "./codec-v1/JsonShapeSerializer";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "
|
|
3
|
-
import type { JsonSettings } from "
|
|
2
|
+
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
3
|
+
import type { JsonSettings } from "../JsonCodec";
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
2
|
import type { Schema, ShapeSerializer } from "@smithy/types";
|
|
3
|
-
import { SerdeContextConfig } from "
|
|
4
|
-
import type { JsonSettings } from "
|
|
3
|
+
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
4
|
+
import type { JsonSettings } from "../JsonCodec";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
package/dist-types/submodules/protocols/json/{experimental → codec-v2}/ByteJsonShapeSerializer.d.ts
RENAMED
|
@@ -55,3 +55,18 @@ export declare class ByteJsonShapeSerializer extends SerdeContextConfig implemen
|
|
|
55
55
|
private writeMap;
|
|
56
56
|
private writeTimestamp;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* A string adapter for the byte serializer, for backwards compatibility.
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export declare class StringJsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> {
|
|
63
|
+
readonly settings: JsonSettings;
|
|
64
|
+
private byteSerializer;
|
|
65
|
+
constructor(settings: JsonSettings);
|
|
66
|
+
write(schema: Schema, value: unknown): void;
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
71
|
+
flush(): string;
|
|
72
|
+
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export * from "./submodules/account-id-endpoint/index";
|
|
2
|
-
export * from "./submodules/client/index";
|
|
3
|
-
export * from "./submodules/httpAuthSchemes/index";
|
|
4
|
-
export * from "./submodules/protocols/index";
|
|
5
|
-
/**
|
|
6
|
-
* no need to export this.
|
|
7
|
-
*/
|
|
1
|
+
export * from "./submodules/account-id-endpoint/index";
|
|
2
|
+
export * from "./submodules/client/index";
|
|
3
|
+
export * from "./submodules/httpAuthSchemes/index";
|
|
4
|
+
export * from "./submodules/protocols/index";
|
|
@@ -1,21 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
export {
|
|
2
|
+
emitWarningIfUnsupportedVersion,
|
|
3
|
+
getLongPollPlugin,
|
|
4
|
+
setCredentialFeature,
|
|
5
|
+
setFeature,
|
|
6
|
+
setTokenFeature,
|
|
7
|
+
state,
|
|
8
|
+
} from "@aws-sdk/core/client";
|
|
9
|
+
export {
|
|
10
|
+
AwsSdkSigV4ASigner,
|
|
11
|
+
AwsSdkSigV4Signer,
|
|
12
|
+
AwsSdkSigV4Signer as AWSSDKSigV4Signer,
|
|
13
|
+
getBearerTokenEnvKey,
|
|
14
|
+
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
15
|
+
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
16
|
+
resolveAwsSdkSigV4AConfig,
|
|
17
|
+
resolveAwsSdkSigV4Config,
|
|
18
|
+
resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config,
|
|
19
|
+
validateSigningProperties,
|
|
20
|
+
} from "@aws-sdk/core/httpAuthSchemes";
|
|
21
|
+
export {
|
|
22
|
+
AwsSdkSigV4AAuthInputConfig,
|
|
23
|
+
AwsSdkSigV4AAuthResolvedConfig,
|
|
24
|
+
AwsSdkSigV4AAuthResolvedConfig as AwsSdkSigV4APreviouslyResolved,
|
|
25
|
+
AwsSdkSigV4AuthInputConfig,
|
|
26
|
+
AwsSdkSigV4AuthInputConfig as AWSSDKSigV4AuthInputConfig,
|
|
27
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
28
|
+
AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4AuthResolvedConfig,
|
|
29
|
+
AwsSdkSigV4Memoized,
|
|
30
|
+
AwsSdkSigV4AuthResolvedConfig as AwsSdkSigV4PreviouslyResolved,
|
|
31
|
+
AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4PreviouslyResolved,
|
|
32
|
+
} from "@aws-sdk/core/httpAuthSchemes";
|
|
33
|
+
export {
|
|
34
|
+
_toBool,
|
|
35
|
+
_toNum,
|
|
36
|
+
_toStr,
|
|
37
|
+
awsExpectUnion,
|
|
38
|
+
AwsEc2QueryProtocol,
|
|
39
|
+
AwsJson1_0Protocol,
|
|
40
|
+
AwsJson1_1Protocol,
|
|
41
|
+
AwsJsonRpcProtocol,
|
|
42
|
+
AwsQueryProtocol,
|
|
43
|
+
AwsRestJsonProtocol,
|
|
44
|
+
AwsRestXmlProtocol,
|
|
45
|
+
AwsSmithyRpcV2CborProtocol,
|
|
46
|
+
JsonCodec,
|
|
47
|
+
JsonShapeDeserializer,
|
|
48
|
+
JsonShapeSerializer,
|
|
49
|
+
loadJsonRpcErrorCode,
|
|
50
|
+
loadRestJsonErrorCode,
|
|
51
|
+
loadRestXmlErrorCode,
|
|
52
|
+
parseJsonBody,
|
|
53
|
+
parseJsonErrorBody,
|
|
54
|
+
parseXmlBody,
|
|
55
|
+
parseXmlErrorBody,
|
|
56
|
+
QueryShapeSerializer,
|
|
57
|
+
XmlCodec,
|
|
58
|
+
XmlShapeDeserializer,
|
|
59
|
+
XmlShapeSerializer,
|
|
60
|
+
} from "@aws-sdk/core/protocols";
|
|
61
|
+
export { JsonSettings, QuerySerializerSettings, XmlSettings } from "@aws-sdk/core/protocols";
|
package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts
CHANGED
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
import { Provider } from "@smithy/types";
|
|
2
|
-
import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
interface PreviouslyResolved {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export interface AccountIdEndpointModeResolvedConfig {
|
|
21
|
-
accountIdEndpointMode: Provider<AccountIdEndpointMode>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
export declare const resolveAccountIdEndpointModeConfig: <T>(input: T & AccountIdEndpointModeInputConfig & PreviouslyResolved) => T & AccountIdEndpointModeResolvedConfig;
|
|
27
|
-
export {};
|
|
1
|
+
import { Provider } from "@smithy/types";
|
|
2
|
+
import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
3
|
+
export interface AccountIdEndpointModeInputConfig {
|
|
4
|
+
accountIdEndpointMode?: AccountIdEndpointMode | Provider<AccountIdEndpointMode>;
|
|
5
|
+
}
|
|
6
|
+
interface PreviouslyResolved {}
|
|
7
|
+
export interface AccountIdEndpointModeResolvedConfig {
|
|
8
|
+
accountIdEndpointMode: Provider<AccountIdEndpointMode>;
|
|
9
|
+
}
|
|
10
|
+
export declare const resolveAccountIdEndpointModeConfig: <T>(
|
|
11
|
+
input: T & AccountIdEndpointModeInputConfig & PreviouslyResolved,
|
|
12
|
+
) => T & AccountIdEndpointModeResolvedConfig;
|
|
13
|
+
export {};
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export declare const DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = "preferred";
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export declare const ACCOUNT_ID_ENDPOINT_MODE_VALUES: AccountIdEndpointMode[];
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export declare function validateAccountIdEndpointMode(value: any): value is AccountIdEndpointMode;
|
|
1
|
+
export type AccountIdEndpointMode = "disabled" | "preferred" | "required";
|
|
2
|
+
export declare const DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = "preferred";
|
|
3
|
+
export declare const ACCOUNT_ID_ENDPOINT_MODE_VALUES: AccountIdEndpointMode[];
|
|
4
|
+
export declare function validateAccountIdEndpointMode(value: any): value is AccountIdEndpointMode;
|
package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
-
import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const ENV_ACCOUNT_ID_ENDPOINT_MODE = "AWS_ACCOUNT_ID_ENDPOINT_MODE";
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export declare const CONFIG_ACCOUNT_ID_ENDPOINT_MODE = "account_id_endpoint_mode";
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare const NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS: LoadedConfigSelectors<AccountIdEndpointMode>;
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
|
+
import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
3
|
+
export declare const ENV_ACCOUNT_ID_ENDPOINT_MODE = "AWS_ACCOUNT_ID_ENDPOINT_MODE";
|
|
4
|
+
export declare const CONFIG_ACCOUNT_ID_ENDPOINT_MODE = "account_id_endpoint_mode";
|
|
5
|
+
export declare const NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS: LoadedConfigSelectors<AccountIdEndpointMode>;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver";
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver";
|
|
2
|
+
export {
|
|
3
|
+
AccountIdEndpointModeInputConfig,
|
|
4
|
+
AccountIdEndpointModeResolvedConfig,
|
|
5
|
+
} from "./AccountIdEndpointModeConfigResolver";
|
|
6
|
+
export {
|
|
7
|
+
DEFAULT_ACCOUNT_ID_ENDPOINT_MODE,
|
|
8
|
+
ACCOUNT_ID_ENDPOINT_MODE_VALUES,
|
|
9
|
+
validateAccountIdEndpointMode,
|
|
10
|
+
} from "./AccountIdEndpointModeConstants";
|
|
11
|
+
export { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
12
|
+
export {
|
|
13
|
+
ENV_ACCOUNT_ID_ENDPOINT_MODE,
|
|
14
|
+
CONFIG_ACCOUNT_ID_ENDPOINT_MODE,
|
|
15
|
+
NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS,
|
|
16
|
+
} from "./NodeAccountIdEndpointModeConfigOptions";
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
export declare const state: {
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
* Emits warning if the provided Node.js version string is
|
|
6
|
-
* pending deprecation by AWS SDK JSv3.
|
|
7
|
-
* @internal
|
|
8
|
-
*
|
|
9
|
-
* @param version - The Node.js version string.
|
|
10
|
-
*/
|
|
11
|
-
export declare const emitWarningIfUnsupportedVersion: (version: string) => void;
|
|
1
|
+
export declare const state: {
|
|
2
|
+
warningEmitted: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const emitWarningIfUnsupportedVersion: (version: string) => void;
|
|
@@ -1,47 +1,107 @@
|
|
|
1
|
-
export declare const emitWarningIfUnsupportedVersion: symbol;
|
|
2
|
-
export declare const state: symbol;
|
|
3
|
-
export { getLongPollPlugin } from "./longPollMiddleware";
|
|
4
|
-
export { setCredentialFeature } from "./setCredentialFeature";
|
|
5
|
-
export { setFeature } from "./setFeature";
|
|
6
|
-
export { setTokenFeature } from "./setTokenFeature";
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export declare const
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export declare const
|
|
46
|
-
export
|
|
47
|
-
export
|
|
1
|
+
export declare const emitWarningIfUnsupportedVersion: symbol;
|
|
2
|
+
export declare const state: symbol;
|
|
3
|
+
export { getLongPollPlugin } from "./longPollMiddleware";
|
|
4
|
+
export { setCredentialFeature } from "./setCredentialFeature";
|
|
5
|
+
export { setFeature } from "./setFeature";
|
|
6
|
+
export { setTokenFeature } from "./setTokenFeature";
|
|
7
|
+
export {
|
|
8
|
+
hostHeaderMiddleware,
|
|
9
|
+
hostHeaderMiddlewareOptions,
|
|
10
|
+
getHostHeaderPlugin,
|
|
11
|
+
resolveHostHeaderConfig,
|
|
12
|
+
} from "./middleware-host-header/hostHeaderMiddleware";
|
|
13
|
+
export {
|
|
14
|
+
HostHeaderInputConfig,
|
|
15
|
+
HostHeaderResolvedConfig,
|
|
16
|
+
} from "./middleware-host-header/hostHeaderMiddleware";
|
|
17
|
+
export {
|
|
18
|
+
loggerMiddleware,
|
|
19
|
+
loggerMiddlewareOptions,
|
|
20
|
+
getLoggerPlugin,
|
|
21
|
+
} from "./middleware-logger/loggerMiddleware";
|
|
22
|
+
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
23
|
+
export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin.browser";
|
|
24
|
+
export { recursionDetectionMiddleware } from "./middleware-recursion-detection/recursionDetectionMiddleware.browser";
|
|
25
|
+
export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations";
|
|
26
|
+
export {
|
|
27
|
+
UserAgentInputConfig,
|
|
28
|
+
UserAgentResolvedConfig,
|
|
29
|
+
} from "./middleware-user-agent/configurations";
|
|
30
|
+
export {
|
|
31
|
+
userAgentMiddleware,
|
|
32
|
+
getUserAgentMiddlewareOptions,
|
|
33
|
+
getUserAgentPlugin,
|
|
34
|
+
} from "./middleware-user-agent/user-agent-middleware";
|
|
35
|
+
export {
|
|
36
|
+
createDefaultUserAgentProvider,
|
|
37
|
+
defaultUserAgent,
|
|
38
|
+
fallback,
|
|
39
|
+
} from "./util-user-agent-browser/defaultUserAgent";
|
|
40
|
+
export declare const crtAvailability: symbol;
|
|
41
|
+
export {
|
|
42
|
+
DefaultUserAgentOptions,
|
|
43
|
+
PreviouslyResolved,
|
|
44
|
+
} from "./util-user-agent-node/defaultUserAgent";
|
|
45
|
+
export declare const NODE_APP_ID_CONFIG_OPTIONS: symbol;
|
|
46
|
+
export declare const UA_APP_ID_ENV_NAME: symbol;
|
|
47
|
+
export declare const UA_APP_ID_INI_NAME: symbol;
|
|
48
|
+
export { createUserAgentStringParsingProvider } from "./util-user-agent-browser/createUserAgentStringParsingProvider";
|
|
49
|
+
export { awsEndpointFunctions } from "./util-endpoints/aws";
|
|
50
|
+
export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
|
|
51
|
+
export {
|
|
52
|
+
resolveDefaultAwsRegionalEndpointsConfig,
|
|
53
|
+
toEndpointV1,
|
|
54
|
+
} from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig";
|
|
55
|
+
export {
|
|
56
|
+
DefaultAwsRegionalEndpointsInputConfig,
|
|
57
|
+
DefaultAwsRegionalEndpointsResolvedConfig,
|
|
58
|
+
} from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig";
|
|
59
|
+
export { isIpAddress } from "./util-endpoints/lib/isIpAddress";
|
|
60
|
+
export { isVirtualHostableS3Bucket } from "./util-endpoints/lib/aws/isVirtualHostableS3Bucket";
|
|
61
|
+
export { parseArn } from "./util-endpoints/lib/aws/parseArn";
|
|
62
|
+
export {
|
|
63
|
+
partition,
|
|
64
|
+
setPartitionInfo,
|
|
65
|
+
useDefaultPartitionInfo,
|
|
66
|
+
getUserAgentPrefix,
|
|
67
|
+
} from "./util-endpoints/lib/aws/partition";
|
|
68
|
+
export { PartitionsInfo } from "./util-endpoints/lib/aws/partition";
|
|
69
|
+
export { EndpointError } from "./util-endpoints/types/EndpointError";
|
|
70
|
+
export {
|
|
71
|
+
EndpointObjectProperties,
|
|
72
|
+
EndpointObjectHeaders,
|
|
73
|
+
EndpointObject,
|
|
74
|
+
EndpointRuleObject,
|
|
75
|
+
} from "./util-endpoints/types/EndpointRuleObject";
|
|
76
|
+
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
77
|
+
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
78
|
+
export {
|
|
79
|
+
DeprecatedObject,
|
|
80
|
+
ParameterObject,
|
|
81
|
+
RuleSetObject,
|
|
82
|
+
} from "./util-endpoints/types/RuleSetObject";
|
|
83
|
+
export {
|
|
84
|
+
ReferenceObject,
|
|
85
|
+
FunctionObject,
|
|
86
|
+
FunctionArgv,
|
|
87
|
+
FunctionReturn,
|
|
88
|
+
ConditionObject,
|
|
89
|
+
Expression,
|
|
90
|
+
EndpointParams,
|
|
91
|
+
EndpointResolverOptions,
|
|
92
|
+
ReferenceRecord,
|
|
93
|
+
EvaluateOptions,
|
|
94
|
+
} from "./util-endpoints/types/shared";
|
|
95
|
+
export declare const REGION_ENV_NAME: symbol;
|
|
96
|
+
export declare const REGION_INI_NAME: symbol;
|
|
97
|
+
export declare const NODE_REGION_CONFIG_OPTIONS: symbol;
|
|
98
|
+
export declare const NODE_REGION_CONFIG_FILE_OPTIONS: symbol;
|
|
99
|
+
export { resolveRegionConfig } from "./region-config-resolver/awsRegionConfig";
|
|
100
|
+
export { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig";
|
|
101
|
+
export { stsRegionDefaultResolver } from "./region-config-resolver/stsRegionDefaultResolver.browser";
|
|
102
|
+
export declare const stsRegionWarning: symbol;
|
|
103
|
+
export {
|
|
104
|
+
getAwsRegionExtensionConfiguration,
|
|
105
|
+
resolveAwsRegionExtensionConfiguration,
|
|
106
|
+
} from "./region-config-resolver/extensions";
|
|
107
|
+
export { RegionExtensionRuntimeConfigType } from "./region-config-resolver/extensions";
|