@aws-sdk/core 3.977.1 → 3.977.3

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.
Files changed (144) hide show
  1. package/dist-cjs/submodules/protocols/index.js +741 -57
  2. package/dist-es/submodules/protocols/index.js +8 -5
  3. package/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  4. package/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  5. package/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
  6. package/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
  7. package/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
  8. package/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
  9. package/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +3 -3
  10. package/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
  11. package/dist-es/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.js → codec-v2/JsonShapeDeserializer2.js} +1 -1
  12. package/dist-es/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.js → codec-v2/JsonShapeSerializer2.js} +27 -13
  13. package/dist-types/submodules/protocols/index.d.ts +9 -6
  14. package/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  15. package/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  16. package/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  17. package/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  18. package/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
  19. package/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
  20. package/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
  21. package/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
  22. package/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
  23. package/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +12 -0
  24. package/dist-types/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.d.ts → codec-v2/JsonShapeDeserializer2.d.ts} +3 -3
  25. package/dist-types/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.d.ts → codec-v2/JsonShapeSerializer2.d.ts} +19 -16
  26. package/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
  27. package/dist-types/ts3.4/index.d.ts +61 -21
  28. package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
  29. package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
  30. package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
  31. package/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
  32. package/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
  33. package/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
  34. package/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
  35. package/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
  36. package/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
  37. package/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
  38. package/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
  39. package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
  40. package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
  41. package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
  42. package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
  43. package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
  44. package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
  45. package/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
  46. package/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
  47. package/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  48. package/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +2 -5
  49. package/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  50. package/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +8 -11
  51. package/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
  52. package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
  53. package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
  54. package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
  55. package/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
  56. package/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
  57. package/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
  58. package/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  59. package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -5
  60. package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
  61. package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
  62. package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
  63. package/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  64. package/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +29 -56
  65. package/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  66. package/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  67. package/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +6 -1
  68. package/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  69. package/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  70. package/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  71. package/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +12 -1
  72. package/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
  73. package/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
  74. package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
  75. package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +18 -27
  76. package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +13 -18
  77. package/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
  78. package/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +17 -28
  79. package/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
  80. package/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
  81. package/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
  82. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
  83. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
  84. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
  85. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
  86. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
  87. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
  88. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
  89. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
  90. package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
  91. package/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
  92. package/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
  93. package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
  94. package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
  95. package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
  96. package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
  97. package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
  98. package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
  99. package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -9
  100. package/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
  101. package/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
  102. package/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
  103. package/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
  104. package/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
  105. package/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
  106. package/dist-types/ts3.4/submodules/protocols/index.d.ts +30 -22
  107. package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +21 -22
  108. package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +21 -22
  109. package/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +49 -29
  110. package/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +49 -36
  111. package/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
  112. package/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
  113. package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
  114. package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
  115. package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
  116. package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
  117. package/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
  118. package/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +14 -0
  119. package/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
  120. package/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
  121. package/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -21
  122. package/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
  123. package/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
  124. package/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
  125. package/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
  126. package/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
  127. package/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
  128. package/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
  129. package/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
  130. package/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
  131. package/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
  132. package/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
  133. package/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  134. package/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +4 -13
  135. package/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
  136. package/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  137. package/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +14 -32
  138. package/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
  139. package/package.json +3 -3
  140. package/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -19
  141. package/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
  142. package/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
  143. package/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
  144. package/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
@@ -1,49 +1,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
+ 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
- * @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
+ 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
- * @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
+ 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,4 +1 @@
1
- /**
2
- * Makes __proto__ writable on a given object.
3
- */
4
- export declare function writeKey(obj: object | Record<string, unknown> | any): void;
1
+ export declare function writeKey(obj: object | Record<string, unknown> | any): void;
@@ -1,31 +1,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
+ 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
- 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
+ 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
- * @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
+ 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
- * @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
+ 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
- * @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
+ 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,6 +1 @@
1
- /**
2
- * Formats XML, for testing only.
3
- * @internal
4
- * @deprecated don't use in runtime code.
5
- */
6
- export declare function simpleFormatXml(xml: string): string;
1
+ export declare function simpleFormatXml(xml: string): string;
@@ -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
- * @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
+ 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(request: Pick<HttpRequest, Exclude<keyof HttpRequest, "headers" | "method">>): string;
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.1",
3
+ "version": "3.977.3",
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",
@@ -127,8 +127,8 @@
127
127
  "@aws-sdk/types": "^3.974.2",
128
128
  "@aws-sdk/xml-builder": "^3.972.37",
129
129
  "@aws/lambda-invoke-store": "^0.3.0",
130
- "@smithy/core": "^3.29.8",
131
- "@smithy/signature-v4": "^5.6.9",
130
+ "@smithy/core": "^3.31.1",
131
+ "@smithy/signature-v4": "^5.6.12",
132
132
  "@smithy/types": "^4.16.1",
133
133
  "bowser": "^2.11.0",
134
134
  "tslib": "^2.6.2"
@@ -1,19 +0,0 @@
1
- import { Codec, CodecSettings } from "@smithy/types";
2
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
- import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
4
- import { JsonShapeSerializer } from "./JsonShapeSerializer";
5
- /**
6
- * @public
7
- */
8
- export type JsonSettings = CodecSettings & {
9
- jsonName: boolean;
10
- };
11
- /**
12
- * @public
13
- */
14
- export declare class JsonCodec extends SerdeContextConfig implements Codec<string, string> {
15
- readonly settings: JsonSettings;
16
- constructor(settings: JsonSettings);
17
- createSerializer(): JsonShapeSerializer;
18
- createDeserializer(): JsonShapeDeserializer;
19
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }