@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
|
@@ -1,49 +1,57 @@
|
|
|
1
|
-
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
-
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
-
import {
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
+
import {
|
|
4
|
+
Codec,
|
|
5
|
+
EndpointBearer,
|
|
6
|
+
HandlerExecutionContext,
|
|
7
|
+
HttpRequest,
|
|
8
|
+
HttpResponse as IHttpResponse,
|
|
9
|
+
MetadataBearer,
|
|
10
|
+
OperationSchema,
|
|
11
|
+
ResponseMetadata,
|
|
12
|
+
SerdeFunctions,
|
|
13
|
+
} from "@smithy/types";
|
|
14
|
+
import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer";
|
|
15
|
+
import { QueryShapeSerializer } from "./QueryShapeSerializer";
|
|
16
|
+
export declare class AwsQueryProtocol extends RpcProtocol {
|
|
17
|
+
options: {
|
|
18
|
+
defaultNamespace: string;
|
|
19
|
+
xmlNamespace: string;
|
|
20
|
+
version: string;
|
|
21
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
22
|
+
};
|
|
23
|
+
protected serializer: QueryShapeSerializer;
|
|
24
|
+
protected deserializer: XmlShapeDeserializer;
|
|
25
|
+
private readonly mixin;
|
|
26
|
+
constructor(options: {
|
|
27
|
+
defaultNamespace: string;
|
|
28
|
+
xmlNamespace: string;
|
|
29
|
+
version: string;
|
|
30
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
31
|
+
});
|
|
32
|
+
getShapeId(): string;
|
|
33
|
+
setSerdeContext(serdeContext: SerdeFunctions): void;
|
|
34
|
+
getPayloadCodec(): Codec<any, any>;
|
|
35
|
+
serializeRequest<Input extends object>(
|
|
36
|
+
operationSchema: OperationSchema,
|
|
37
|
+
input: Input,
|
|
38
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
39
|
+
): Promise<HttpRequest>;
|
|
40
|
+
deserializeResponse<Output extends MetadataBearer>(
|
|
41
|
+
operationSchema: OperationSchema,
|
|
42
|
+
context: HandlerExecutionContext & SerdeFunctions,
|
|
43
|
+
response: IHttpResponse,
|
|
44
|
+
): Promise<Output>;
|
|
45
|
+
protected useNestedResult(): boolean;
|
|
46
|
+
protected handleError(
|
|
47
|
+
operationSchema: OperationSchema,
|
|
48
|
+
context: HandlerExecutionContext & SerdeFunctions,
|
|
49
|
+
response: IHttpResponse,
|
|
50
|
+
dataObject: any,
|
|
51
|
+
metadata: ResponseMetadata,
|
|
52
|
+
): Promise<never>;
|
|
53
|
+
protected loadQueryErrorCode(output: IHttpResponse, data: any): string | undefined;
|
|
54
|
+
protected loadQueryError(data: any): any | undefined;
|
|
55
|
+
protected loadQueryErrorMessage(data: any): string;
|
|
56
|
+
protected getDefaultContentType(): string;
|
|
57
|
+
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { CodecSettings } from "@smithy/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
serializeEmptyLists?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Whether to read from ec2QueryName before xmlName.
|
|
11
|
-
*/
|
|
12
|
-
ec2?: boolean;
|
|
13
|
-
};
|
|
1
|
+
import { CodecSettings } from "@smithy/types";
|
|
2
|
+
export type QuerySerializerSettings = CodecSettings & {
|
|
3
|
+
capitalizeKeys?: boolean;
|
|
4
|
+
flattenLists?: boolean;
|
|
5
|
+
serializeEmptyLists?: boolean;
|
|
6
|
+
ec2?: boolean;
|
|
7
|
+
};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
-
import { QuerySerializerSettings } from "./QuerySerializerSettings";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
2
|
+
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
+
import { QuerySerializerSettings } from "./QuerySerializerSettings";
|
|
4
|
+
export declare class QueryShapeSerializer
|
|
5
|
+
extends SerdeContextConfig
|
|
6
|
+
implements ShapeSerializer<string | Uint8Array>
|
|
7
|
+
{
|
|
8
|
+
readonly settings: QuerySerializerSettings;
|
|
9
|
+
private buffer;
|
|
10
|
+
constructor(settings: QuerySerializerSettings);
|
|
11
|
+
write(schema: Schema, value: unknown, prefix?: string): void;
|
|
12
|
+
flush(): string | Uint8Array;
|
|
13
|
+
protected getKey(
|
|
14
|
+
memberName: string,
|
|
15
|
+
xmlName?: string,
|
|
16
|
+
ec2QueryName?: unknown,
|
|
17
|
+
keySource?: string,
|
|
18
|
+
): string;
|
|
19
|
+
protected writeKey(key: string): void;
|
|
20
|
+
protected writeValue(value: string): void;
|
|
21
|
+
}
|
|
@@ -1,31 +1,47 @@
|
|
|
1
|
-
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
2
|
-
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
-
import {
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
+
import {
|
|
4
|
+
EndpointBearer,
|
|
5
|
+
HandlerExecutionContext,
|
|
6
|
+
HttpRequest as IHttpRequest,
|
|
7
|
+
HttpResponse as IHttpResponse,
|
|
8
|
+
MetadataBearer,
|
|
9
|
+
OperationSchema,
|
|
10
|
+
ResponseMetadata,
|
|
11
|
+
SerdeFunctions,
|
|
12
|
+
ShapeDeserializer,
|
|
13
|
+
ShapeSerializer,
|
|
14
|
+
} from "@smithy/types";
|
|
15
|
+
import { XmlCodec } from "./XmlCodec";
|
|
16
|
+
export declare class AwsRestXmlProtocol extends HttpBindingProtocol {
|
|
17
|
+
private readonly codec;
|
|
18
|
+
protected serializer: ShapeSerializer<string | Uint8Array>;
|
|
19
|
+
protected deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
20
|
+
private readonly mixin;
|
|
21
|
+
constructor(options: {
|
|
22
|
+
defaultNamespace: string;
|
|
23
|
+
xmlNamespace: string;
|
|
24
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
25
|
+
});
|
|
26
|
+
getPayloadCodec(): XmlCodec;
|
|
27
|
+
getShapeId(): string;
|
|
28
|
+
serializeRequest<Input extends object>(
|
|
29
|
+
operationSchema: OperationSchema,
|
|
30
|
+
input: Input,
|
|
31
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
32
|
+
): Promise<IHttpRequest>;
|
|
33
|
+
deserializeResponse<Output extends MetadataBearer>(
|
|
34
|
+
operationSchema: OperationSchema,
|
|
35
|
+
context: HandlerExecutionContext & SerdeFunctions,
|
|
36
|
+
response: IHttpResponse,
|
|
37
|
+
): Promise<Output>;
|
|
38
|
+
protected handleError(
|
|
39
|
+
operationSchema: OperationSchema,
|
|
40
|
+
context: HandlerExecutionContext & SerdeFunctions,
|
|
41
|
+
response: IHttpResponse,
|
|
42
|
+
dataObject: any,
|
|
43
|
+
metadata: ResponseMetadata,
|
|
44
|
+
): Promise<never>;
|
|
45
|
+
protected getDefaultContentType(): string;
|
|
46
|
+
private hasUnstructuredPayloadBinding;
|
|
47
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { Codec, CodecSettings } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
-
import { XmlShapeDeserializer } from "./XmlShapeDeserializer";
|
|
4
|
-
import { XmlShapeSerializer } from "./XmlShapeSerializer";
|
|
5
|
-
export type XmlSettings = CodecSettings & {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export declare class XmlCodec
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { Codec, CodecSettings } from "@smithy/types";
|
|
2
|
+
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
+
import { XmlShapeDeserializer } from "./XmlShapeDeserializer";
|
|
4
|
+
import { XmlShapeSerializer } from "./XmlShapeSerializer";
|
|
5
|
+
export type XmlSettings = CodecSettings & {
|
|
6
|
+
xmlNamespace: string;
|
|
7
|
+
serviceNamespace: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class XmlCodec
|
|
10
|
+
extends SerdeContextConfig
|
|
11
|
+
implements Codec<Uint8Array | string, Uint8Array | string>
|
|
12
|
+
{
|
|
13
|
+
readonly settings: XmlSettings;
|
|
14
|
+
constructor(settings: XmlSettings);
|
|
15
|
+
createSerializer(): XmlShapeSerializer;
|
|
16
|
+
createDeserializer(): XmlShapeDeserializer;
|
|
17
|
+
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
-
import { XmlSettings } from "./XmlCodec";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
read(schema: Schema, bytes: Uint8Array | string, key?: string): any;
|
|
18
|
-
readSchema(_schema: Schema, value: any): any;
|
|
19
|
-
protected parseXml(xml: string): any;
|
|
20
|
-
}
|
|
1
|
+
import { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types";
|
|
2
|
+
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
+
import { XmlSettings } from "./XmlCodec";
|
|
4
|
+
export declare class XmlShapeDeserializer
|
|
5
|
+
extends SerdeContextConfig
|
|
6
|
+
implements ShapeDeserializer<Uint8Array | string>
|
|
7
|
+
{
|
|
8
|
+
readonly settings: XmlSettings;
|
|
9
|
+
private stringDeserializer;
|
|
10
|
+
constructor(settings: XmlSettings);
|
|
11
|
+
setSerdeContext(serdeContext: SerdeFunctions): void;
|
|
12
|
+
read(schema: Schema, bytes: Uint8Array | string, key?: string): any;
|
|
13
|
+
readSchema(_schema: Schema, value: any): any;
|
|
14
|
+
protected parseXml(xml: string): any;
|
|
15
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Schema as ISchema, ShapeSerializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
-
import { XmlSettings } from "./XmlCodec";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
1
|
+
import { Schema as ISchema, ShapeSerializer } from "@smithy/types";
|
|
2
|
+
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
+
import { XmlSettings } from "./XmlCodec";
|
|
4
|
+
export declare class XmlShapeSerializer
|
|
5
|
+
extends SerdeContextConfig
|
|
6
|
+
implements ShapeSerializer<string | Uint8Array>
|
|
7
|
+
{
|
|
8
|
+
readonly settings: XmlSettings;
|
|
9
|
+
private stringBuffer?;
|
|
10
|
+
private byteBuffer?;
|
|
11
|
+
private buffer?;
|
|
12
|
+
constructor(settings: XmlSettings);
|
|
13
|
+
write(schema: ISchema, value: unknown): void;
|
|
14
|
+
flush(): string | Uint8Array;
|
|
15
|
+
private writeStruct;
|
|
16
|
+
private writeList;
|
|
17
|
+
private writeMap;
|
|
18
|
+
private writeSimple;
|
|
19
|
+
private writeSimpleInto;
|
|
20
|
+
private getXmlnsAttribute;
|
|
21
|
+
}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import { HttpResponse, SerdeContext } from "@smithy/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const parseXmlBody: (streamBody: any, context: SerdeContext) => any;
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export declare const parseXmlErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare const loadRestXmlErrorCode: (output: HttpResponse, data: any) => string | undefined;
|
|
1
|
+
import { HttpResponse, SerdeContext } from "@smithy/types";
|
|
2
|
+
export declare const parseXmlBody: (streamBody: any, context: SerdeContext) => any;
|
|
3
|
+
export declare const parseXmlErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
|
|
4
|
+
export declare const loadRestXmlErrorCode: (output: HttpResponse, data: any) => string | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { build, parse, validate } from "./util-arn-parser/arn";
|
|
2
|
-
export { ARN } from "./util-arn-parser/arn";
|
|
3
|
-
export { formatUrl } from "./util-format-url/format-url";
|
|
1
|
+
export { build, parse, validate } from "./util-arn-parser/arn";
|
|
2
|
+
export { ARN } from "./util-arn-parser/arn";
|
|
3
|
+
export { formatUrl } from "./util-format-url/format-url";
|
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const validate: (str: any) => boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Parse an ARN string into structure with partition, service, region, accountId and resource values
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export declare const parse: (arn: string) => ARN;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
type buildOptions = Pick<ARN, Exclude<keyof ARN, "partition">> & {
|
|
25
|
-
partition?: string;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Build an ARN with service, partition, region, accountId, and resources strings
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
export declare const build: (arnObject: buildOptions) => string;
|
|
32
|
-
export {};
|
|
1
|
+
export interface ARN {
|
|
2
|
+
partition: string;
|
|
3
|
+
service: string;
|
|
4
|
+
region: string;
|
|
5
|
+
accountId: string;
|
|
6
|
+
resource: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const validate: (str: any) => boolean;
|
|
9
|
+
export declare const parse: (arn: string) => ARN;
|
|
10
|
+
type buildOptions = Pick<ARN, Exclude<keyof ARN, "partition">> & {
|
|
11
|
+
partition?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const build: (arnObject: buildOptions) => string;
|
|
14
|
+
export {};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { HttpRequest } from "@smithy/types";
|
|
2
|
-
export declare function formatUrl(
|
|
1
|
+
import { HttpRequest } from "@smithy/types";
|
|
2
|
+
export declare function formatUrl(
|
|
3
|
+
request: Pick<HttpRequest, Exclude<keyof HttpRequest, "headers" | "method">>,
|
|
4
|
+
): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.977.
|
|
3
|
+
"version": "3.977.2",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonSettings } from "./JsonCodec";
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare class JsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<string> {
|
|
8
|
-
readonly settings: JsonSettings;
|
|
9
|
-
constructor(settings: JsonSettings);
|
|
10
|
-
read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
|
|
11
|
-
readObject(schema: Schema, data: DocumentType): any;
|
|
12
|
-
protected _read(schema: Schema, value: unknown): any;
|
|
13
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
|
-
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
3
|
-
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
4
|
-
import { JsonSettings } from "./JsonCodec";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class JsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> {
|
|
9
|
-
readonly settings: JsonSettings;
|
|
10
|
-
/**
|
|
11
|
-
* Write buffer. Reused per value serialization pass.
|
|
12
|
-
* In the initial implementation, this is not an incremental buffer.
|
|
13
|
-
*/
|
|
14
|
-
protected buffer: any;
|
|
15
|
-
protected useReplacer: boolean;
|
|
16
|
-
protected rootSchema: NormalizedSchema | undefined;
|
|
17
|
-
constructor(settings: JsonSettings);
|
|
18
|
-
write(schema: Schema, value: unknown): void;
|
|
19
|
-
flush(): string;
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
24
|
-
/**
|
|
25
|
-
* Order if-statements by likelihood.
|
|
26
|
-
*/
|
|
27
|
-
protected _write(schema: Schema, value: unknown, container?: NormalizedSchema): any;
|
|
28
|
-
}
|
package/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonSettings } from "../JsonCodec";
|
|
4
|
-
/**
|
|
5
|
-
* Performance-optimized JSON deserializer.
|
|
6
|
-
*
|
|
7
|
-
* Skips UTF-8 decoding when the runtime supports JSON.parse(Buffer) (Node 22+).
|
|
8
|
-
*
|
|
9
|
-
* After JSON.parse, lists, maps, and document containers are mutated in place
|
|
10
|
-
* (element values are overwritten with their deserialized form) rather than
|
|
11
|
-
* copied into new arrays/objects. Structs allocate a fresh object because
|
|
12
|
-
* jsonName traits require key renaming, and building the output object
|
|
13
|
-
* incrementally lets V8 assign a stable hidden class rather than
|
|
14
|
-
* deoptimizing from repeated property deletion/addition on an existing shape.
|
|
15
|
-
*
|
|
16
|
-
* In-place mutation is safe here because the parsed tree is locally owned
|
|
17
|
-
* after JSON.parse with no external references, so rewriting values avoids
|
|
18
|
-
* redundant allocation and GC pressure.
|
|
19
|
-
*
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export declare class BufferJsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<string> {
|
|
23
|
-
readonly settings: JsonSettings;
|
|
24
|
-
constructor(settings: JsonSettings);
|
|
25
|
-
read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
|
|
26
|
-
readObject(schema: Schema, data: DocumentType): any;
|
|
27
|
-
protected _read(schema: Schema, value: unknown): any;
|
|
28
|
-
private _readStruct;
|
|
29
|
-
}
|
package/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonSettings } from "../JsonCodec";
|
|
4
|
-
/**
|
|
5
|
-
* Experimental single-pass JSON serializer that writes directly to a Uint8Array buffer.
|
|
6
|
-
* Fewer intermediate states as when compared to the initial multi-pass implementation.
|
|
7
|
-
*
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export declare class ByteJsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<Uint8Array> {
|
|
11
|
-
readonly settings: JsonSettings;
|
|
12
|
-
private json;
|
|
13
|
-
private i;
|
|
14
|
-
private rootSchema;
|
|
15
|
-
constructor(settings: JsonSettings);
|
|
16
|
-
write(schema: Schema, value: unknown): void;
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
21
|
-
/**
|
|
22
|
-
* Returns the serialized JSON as a Uint8Array (UTF-8 bytes).
|
|
23
|
-
* This is the primary output — pass directly to request.body.
|
|
24
|
-
*/
|
|
25
|
-
flush(): Uint8Array;
|
|
26
|
-
private ensure;
|
|
27
|
-
/**
|
|
28
|
-
* Write a raw ASCII string (no JSON escaping). Used for pre-validated content
|
|
29
|
-
* like numeric literals and pre-encoded base64.
|
|
30
|
-
*/
|
|
31
|
-
private writeAscii;
|
|
32
|
-
/**
|
|
33
|
-
* Write a quoted ASCII string with no escape checking.
|
|
34
|
-
* Used for struct member keys (jsonName or model names) which are
|
|
35
|
-
* guaranteed to be safe ASCII identifiers. No control chars, quotes,
|
|
36
|
-
* backslashes, or non-ASCII.
|
|
37
|
-
* Ensures extra room for surrounding structural chars (comma, colon).
|
|
38
|
-
*/
|
|
39
|
-
private writeAsciiQuoted;
|
|
40
|
-
/**
|
|
41
|
-
* Write a JSON-escaped string including the surrounding quotes.
|
|
42
|
-
* Fast-path for ASCII, falls back to TextEncoder for multi-byte.
|
|
43
|
-
*/
|
|
44
|
-
private writeJsonString;
|
|
45
|
-
private writeUnicodeEscape;
|
|
46
|
-
private static readonly B64;
|
|
47
|
-
/**
|
|
48
|
-
* Write a Uint8Array as a quoted base64 string directly into the buffer.
|
|
49
|
-
* No intermediate JS string, no escape checking (base64 alphabet is safe ASCII).
|
|
50
|
-
*/
|
|
51
|
-
private writeBase64;
|
|
52
|
-
private writeValue;
|
|
53
|
-
private writeStruct;
|
|
54
|
-
private writeList;
|
|
55
|
-
private writeMap;
|
|
56
|
-
private writeTimestamp;
|
|
57
|
-
}
|
/package/dist-es/submodules/protocols/json/{experimental → codec-v2}/BufferJsonShapeDeserializer.js
RENAMED
|
File without changes
|
|
File without changes
|