@aws-sdk/core 3.977.0 → 3.977.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/submodules/protocols/index.js +22 -3
- package/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
- package/dist-types/ts3.4/api-extractor-type-index.d.ts +7 -4
- package/dist-types/ts3.4/index.d.ts +21 -61
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +27 -13
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +16 -4
- package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -5
- package/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +5 -16
- package/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +11 -4
- package/dist-types/ts3.4/submodules/client/index.browser.d.ts +47 -107
- package/dist-types/ts3.4/submodules/client/index.d.ts +39 -112
- package/dist-types/ts3.4/submodules/client/index.native.d.ts +48 -107
- package/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +14 -13
- package/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +35 -25
- package/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +4 -14
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +6 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +5 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +5 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +6 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +10 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +6 -2
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +20 -16
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +44 -21
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +5 -2
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
- package/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +11 -8
- package/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +16 -14
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +4 -1
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +14 -7
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +4 -1
- package/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +7 -6
- package/dist-types/ts3.4/submodules/client/setFeature.d.ts +12 -6
- package/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +7 -6
- package/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -4
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +7 -2
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +38 -28
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +638 -647
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -29
- package/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -6
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +1 -12
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +7 -4
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +14 -7
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -7
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +27 -18
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +18 -13
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +8 -3
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +28 -17
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +6 -2
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +5 -2
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +13 -4
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -9
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +44 -39
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -2
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -4
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +7 -23
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -13
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +133 -57
- package/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +11 -32
- package/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +9 -32
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +8 -2
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +26 -6
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -1
- package/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -5
- package/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +74 -40
- package/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -9
- package/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +25 -36
- package/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +18 -3
- package/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -5
- package/dist-types/ts3.4/submodules/protocols/index.d.ts +22 -27
- package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -21
- package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -21
- package/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +29 -49
- package/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -49
- package/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +19 -13
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -13
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +28 -18
- package/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +7 -1
- package/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -14
- package/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -28
- package/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -7
- package/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -7
- package/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -2
- package/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +22 -14
- package/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +27 -18
- package/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +49 -57
- package/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +13 -7
- package/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -21
- package/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -1
- package/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +31 -47
- package/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +14 -17
- package/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -15
- package/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
- package/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -4
- package/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +6 -1
- package/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
- package/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +32 -14
- package/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +2 -4
- package/package.json +1 -1
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { HttpResponse, Schema, SerdeFunctions } from "@smithy/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
) =>
|
|
1
|
+
import { HttpResponse, Schema, SerdeFunctions } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated new calls to parseJsonBody must pass schema.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare function parseJsonBody(streamBody: any, context: SerdeFunctions): Promise<any>;
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseJsonBody(streamBody: any, context: SerdeFunctions, schema: Schema): Promise<any>;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const parseJsonErrorBody: (errorBody: any, context: SerdeFunctions) => Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const loadRestJsonErrorCode: (output: HttpResponse, data: any) => string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const loadJsonRpcErrorCode: (output: HttpResponse, data: any, queryCompat?: boolean) => string | undefined;
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
-
import { AwsQueryProtocol } from "./AwsQueryProtocol";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import { AwsQueryProtocol } from "./AwsQueryProtocol";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class AwsEc2QueryProtocol extends AwsQueryProtocol {
|
|
7
|
+
options: {
|
|
8
|
+
defaultNamespace: string;
|
|
9
|
+
xmlNamespace: string;
|
|
10
|
+
version: string;
|
|
11
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
12
|
+
};
|
|
13
|
+
constructor(options: {
|
|
14
|
+
defaultNamespace: string;
|
|
15
|
+
xmlNamespace: string;
|
|
16
|
+
version: string;
|
|
17
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* @override
|
|
21
|
+
*/
|
|
22
|
+
getShapeId(): string;
|
|
23
|
+
/**
|
|
24
|
+
* EC2 Query reads XResponse.XResult instead of XResponse directly.
|
|
25
|
+
*/
|
|
26
|
+
protected useNestedResult(): boolean;
|
|
27
|
+
}
|
|
@@ -1,57 +1,49 @@
|
|
|
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
|
-
|
|
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
|
+
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
+
import { Codec, EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
4
|
+
import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer";
|
|
5
|
+
import { QueryShapeSerializer } from "./QueryShapeSerializer";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class AwsQueryProtocol extends RpcProtocol {
|
|
10
|
+
options: {
|
|
11
|
+
defaultNamespace: string;
|
|
12
|
+
xmlNamespace: string;
|
|
13
|
+
version: string;
|
|
14
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
15
|
+
};
|
|
16
|
+
protected serializer: QueryShapeSerializer;
|
|
17
|
+
protected deserializer: XmlShapeDeserializer;
|
|
18
|
+
private readonly mixin;
|
|
19
|
+
constructor(options: {
|
|
20
|
+
defaultNamespace: string;
|
|
21
|
+
xmlNamespace: string;
|
|
22
|
+
version: string;
|
|
23
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
24
|
+
});
|
|
25
|
+
getShapeId(): string;
|
|
26
|
+
setSerdeContext(serdeContext: SerdeFunctions): void;
|
|
27
|
+
getPayloadCodec(): Codec<any, any>;
|
|
28
|
+
serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>;
|
|
29
|
+
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
|
|
30
|
+
/**
|
|
31
|
+
* EC2 Query overrides this.
|
|
32
|
+
*/
|
|
33
|
+
protected useNestedResult(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* override
|
|
36
|
+
*/
|
|
37
|
+
protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
|
|
38
|
+
/**
|
|
39
|
+
* The variations in the error and error message locations are attributed to
|
|
40
|
+
* divergence between AWS Query and EC2 Query behavior.
|
|
41
|
+
*/
|
|
42
|
+
protected loadQueryErrorCode(output: IHttpResponse, data: any): string | undefined;
|
|
43
|
+
protected loadQueryError(data: any): any | undefined;
|
|
44
|
+
protected loadQueryErrorMessage(data: any): string;
|
|
45
|
+
/**
|
|
46
|
+
* @override
|
|
47
|
+
*/
|
|
48
|
+
protected getDefaultContentType(): string;
|
|
49
|
+
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { CodecSettings } from "@smithy/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { CodecSettings } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export type QuerySerializerSettings = CodecSettings & {
|
|
6
|
+
capitalizeKeys?: boolean;
|
|
7
|
+
flattenLists?: boolean;
|
|
8
|
+
serializeEmptyLists?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to read from ec2QueryName before xmlName.
|
|
11
|
+
*/
|
|
12
|
+
ec2?: boolean;
|
|
13
|
+
};
|
|
@@ -1,21 +1,16 @@
|
|
|
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
|
-
|
|
17
|
-
keySource?: string,
|
|
18
|
-
): string;
|
|
19
|
-
protected writeKey(key: string): void;
|
|
20
|
-
protected writeValue(value: string): void;
|
|
21
|
-
}
|
|
1
|
+
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
2
|
+
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
+
import { QuerySerializerSettings } from "./QuerySerializerSettings";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class QueryShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string | Uint8Array> {
|
|
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(memberName: string, xmlName?: string, ec2QueryName?: unknown, keySource?: string): string;
|
|
14
|
+
protected writeKey(key: string): void;
|
|
15
|
+
protected writeValue(value: string): void;
|
|
16
|
+
}
|
|
@@ -1,47 +1,31 @@
|
|
|
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
|
-
|
|
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
|
+
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
+
import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
4
|
+
import { XmlCodec } from "./XmlCodec";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class AwsRestXmlProtocol extends HttpBindingProtocol {
|
|
9
|
+
private readonly codec;
|
|
10
|
+
protected serializer: ShapeSerializer<string | Uint8Array>;
|
|
11
|
+
protected deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
12
|
+
private readonly mixin;
|
|
13
|
+
constructor(options: {
|
|
14
|
+
defaultNamespace: string;
|
|
15
|
+
xmlNamespace: string;
|
|
16
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
17
|
+
});
|
|
18
|
+
getPayloadCodec(): XmlCodec;
|
|
19
|
+
getShapeId(): string;
|
|
20
|
+
serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
|
|
21
|
+
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
|
|
22
|
+
/**
|
|
23
|
+
* @override
|
|
24
|
+
*/
|
|
25
|
+
protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
|
|
26
|
+
/**
|
|
27
|
+
* @override
|
|
28
|
+
*/
|
|
29
|
+
protected getDefaultContentType(): string;
|
|
30
|
+
private hasUnstructuredPayloadBinding;
|
|
31
|
+
}
|
|
@@ -1,17 +1,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
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export declare class XmlCodec
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
createSerializer(): XmlShapeSerializer;
|
|
16
|
-
createDeserializer(): XmlShapeDeserializer;
|
|
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
|
+
xmlNamespace: string;
|
|
7
|
+
serviceNamespace: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class XmlCodec extends SerdeContextConfig implements Codec<Uint8Array | string, Uint8Array | string> {
|
|
10
|
+
readonly settings: XmlSettings;
|
|
11
|
+
constructor(settings: XmlSettings);
|
|
12
|
+
createSerializer(): XmlShapeSerializer;
|
|
13
|
+
createDeserializer(): XmlShapeDeserializer;
|
|
14
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
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
|
-
|
|
1
|
+
import { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types";
|
|
2
|
+
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
+
import { XmlSettings } from "./XmlCodec";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class XmlShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<Uint8Array | string> {
|
|
8
|
+
readonly settings: XmlSettings;
|
|
9
|
+
private stringDeserializer;
|
|
10
|
+
constructor(settings: XmlSettings);
|
|
11
|
+
setSerdeContext(serdeContext: SerdeFunctions): void;
|
|
12
|
+
/**
|
|
13
|
+
* @param schema - describing the data.
|
|
14
|
+
* @param bytes - serialized data.
|
|
15
|
+
* @param key - used by AwsQuery to step one additional depth into the object before reading it.
|
|
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,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
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class XmlShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string | Uint8Array> {
|
|
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,4 +1,13 @@
|
|
|
1
|
-
import { HttpResponse, SerdeContext } from "@smithy/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { HttpResponse, SerdeContext } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
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,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,14 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export interface ARN {
|
|
5
|
+
partition: string;
|
|
6
|
+
service: string;
|
|
7
|
+
region: string;
|
|
8
|
+
accountId: string;
|
|
9
|
+
resource: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Validate whether a string is an ARN.
|
|
13
|
+
* @internal
|
|
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,4 +1,2 @@
|
|
|
1
|
-
import { HttpRequest } from "@smithy/types";
|
|
2
|
-
export declare function formatUrl(
|
|
3
|
-
request: Pick<HttpRequest, Exclude<keyof HttpRequest, "headers" | "method">>,
|
|
4
|
-
): string;
|
|
1
|
+
import { HttpRequest } from "@smithy/types";
|
|
2
|
+
export declare function formatUrl(request: Pick<HttpRequest, Exclude<keyof HttpRequest, "headers" | "method">>): 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.1",
|
|
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",
|