@aws-sdk/core 3.975.1 → 3.975.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.
- package/dist-cjs/submodules/httpAuthSchemes/index.js +1 -1
- package/dist-cjs/submodules/protocols/index.js +8 -8
- package/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -1
- package/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +1 -1
- package/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -1
- package/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -1
- package/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -2
- package/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
- package/dist-types/ts3.4/index.d.ts +1 -5
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +2 -4
- package/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +1 -3
- package/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -4
- package/dist-types/ts3.4/submodules/client/index.browser.d.ts +3 -12
- package/dist-types/ts3.4/submodules/client/index.d.ts +4 -16
- package/dist-types/ts3.4/submodules/client/index.native.d.ts +3 -12
- package/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +2 -4
- package/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +5 -9
- package/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +3 -6
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +1 -2
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +1 -4
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +4 -7
- package/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +2 -2
- package/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +3 -8
- package/dist-types/ts3.4/submodules/client/setFeature.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +1 -1
- package/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +3 -9
- package/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -5
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +1 -3
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +2 -6
- package/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +1 -3
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +2 -5
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +4 -6
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -3
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +3 -8
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +8 -17
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +1 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -4
- package/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +6 -19
- package/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +2 -2
- package/dist-types/ts3.4/submodules/protocols/common.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -5
- package/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -2
- package/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -3
- package/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +1 -4
- package/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -5
- package/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -3
- package/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +4 -13
- package/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +4 -7
- package/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +3 -3
- package/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +3 -12
- package/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +1 -1
- package/package.json +65 -62
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
2
|
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
3
3
|
export declare const UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
4
|
-
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<
|
|
5
|
-
string | undefined
|
|
6
|
-
>;
|
|
4
|
+
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<string | undefined>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AwsCredentialIdentity,
|
|
3
|
-
HttpRequest as IHttpRequest,
|
|
4
|
-
} from "@smithy/types";
|
|
1
|
+
import { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
|
|
5
2
|
import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer";
|
|
6
3
|
export declare class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
7
4
|
sign(
|
|
8
5
|
httpRequest: IHttpRequest,
|
|
9
6
|
identity: AwsCredentialIdentity,
|
|
10
|
-
signingProperties: Record<string, unknown
|
|
7
|
+
signingProperties: Record<string, unknown>,
|
|
11
8
|
): Promise<IHttpRequest>;
|
|
12
9
|
}
|
|
@@ -19,20 +19,18 @@ interface AwsSdkSigV4AuthSigningProperties {
|
|
|
19
19
|
signingName?: string;
|
|
20
20
|
}
|
|
21
21
|
export declare const validateSigningProperties: (
|
|
22
|
-
signingProperties: Record<string, unknown
|
|
22
|
+
signingProperties: Record<string, unknown>,
|
|
23
23
|
) => Promise<AwsSdkSigV4AuthSigningProperties>;
|
|
24
24
|
export declare class AwsSdkSigV4Signer implements HttpSigner {
|
|
25
25
|
sign(
|
|
26
26
|
httpRequest: IHttpRequest,
|
|
27
27
|
identity: AwsCredentialIdentity,
|
|
28
|
-
signingProperties: Record<string, unknown
|
|
28
|
+
signingProperties: Record<string, unknown>,
|
|
29
29
|
): Promise<IHttpRequest>;
|
|
30
|
-
errorHandler(
|
|
31
|
-
signingProperties: Record<string, unknown>
|
|
32
|
-
): (error: Error) => never;
|
|
30
|
+
errorHandler(signingProperties: Record<string, unknown>): (error: Error) => never;
|
|
33
31
|
successHandler(
|
|
34
32
|
httpResponse: HttpResponse | unknown,
|
|
35
|
-
signingProperties: Record<string, unknown
|
|
33
|
+
signingProperties: Record<string, unknown>,
|
|
36
34
|
): void;
|
|
37
35
|
}
|
|
38
36
|
export declare const AWSSDKSigV4Signer: typeof AwsSdkSigV4Signer;
|
|
@@ -5,19 +5,13 @@ export {
|
|
|
5
5
|
} from "./AwsSdkSigV4Signer";
|
|
6
6
|
export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
|
|
7
7
|
export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
|
|
8
|
-
export {
|
|
9
|
-
resolveAwsSdkSigV4AConfig,
|
|
10
|
-
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
11
|
-
} from "./resolveAwsSdkSigV4AConfig";
|
|
8
|
+
export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
|
|
12
9
|
export {
|
|
13
10
|
AwsSdkSigV4AAuthInputConfig,
|
|
14
11
|
AwsSdkSigV4APreviouslyResolved,
|
|
15
12
|
AwsSdkSigV4AAuthResolvedConfig,
|
|
16
13
|
} from "./resolveAwsSdkSigV4AConfig";
|
|
17
|
-
export {
|
|
18
|
-
resolveAwsSdkSigV4Config,
|
|
19
|
-
resolveAWSSDKSigV4Config,
|
|
20
|
-
} from "./resolveAwsSdkSigV4Config";
|
|
14
|
+
export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
|
|
21
15
|
export {
|
|
22
16
|
AwsSdkSigV4AuthInputConfig,
|
|
23
17
|
AwsSdkSigV4Memoized,
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { LoadedConfigSelectors } from "@smithy/core/config";
|
|
2
2
|
import { Provider } from "@smithy/types";
|
|
3
3
|
export interface AwsSdkSigV4AAuthInputConfig {
|
|
4
|
-
sigv4aSigningRegionSet?:
|
|
5
|
-
| string[]
|
|
6
|
-
| undefined
|
|
7
|
-
| Provider<string[] | undefined>;
|
|
4
|
+
sigv4aSigningRegionSet?: string[] | undefined | Provider<string[] | undefined>;
|
|
8
5
|
}
|
|
9
6
|
export interface AwsSdkSigV4APreviouslyResolved {}
|
|
10
7
|
export interface AwsSdkSigV4AAuthResolvedConfig {
|
|
11
8
|
sigv4aSigningRegionSet: Provider<string[] | undefined>;
|
|
12
9
|
}
|
|
13
10
|
export declare const resolveAwsSdkSigV4AConfig: <T>(
|
|
14
|
-
config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved
|
|
11
|
+
config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved,
|
|
15
12
|
) => T & AwsSdkSigV4AAuthResolvedConfig;
|
|
16
|
-
export declare const NODE_SIGV4A_CONFIG_OPTIONS: LoadedConfigSelectors<
|
|
17
|
-
string[] | undefined
|
|
18
|
-
>;
|
|
13
|
+
export declare const NODE_SIGV4A_CONFIG_OPTIONS: LoadedConfigSelectors<string[] | undefined>;
|
|
@@ -13,15 +13,11 @@ import {
|
|
|
13
13
|
} from "@smithy/types";
|
|
14
14
|
export interface AwsSdkSigV4AuthInputConfig {
|
|
15
15
|
credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
16
|
-
signer?:
|
|
17
|
-
| RequestSigner
|
|
18
|
-
| ((authScheme?: AuthScheme) => Promise<RequestSigner>);
|
|
16
|
+
signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>);
|
|
19
17
|
signingEscapePath?: boolean;
|
|
20
18
|
systemClockOffset?: number;
|
|
21
19
|
signingRegion?: string;
|
|
22
|
-
signerConstructor?: new (
|
|
23
|
-
options: SignatureV4Init & SignatureV4CryptoInit
|
|
24
|
-
) => RequestSigner;
|
|
20
|
+
signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
|
|
25
21
|
}
|
|
26
22
|
export type AwsSdkSigV4Memoized = {
|
|
27
23
|
memoized?: boolean;
|
|
@@ -29,9 +25,7 @@ export type AwsSdkSigV4Memoized = {
|
|
|
29
25
|
attributed?: boolean;
|
|
30
26
|
};
|
|
31
27
|
export interface AwsSdkSigV4PreviouslyResolved {
|
|
32
|
-
credentialDefaultProvider?: (
|
|
33
|
-
input: any
|
|
34
|
-
) => MemoizedProvider<AwsCredentialIdentity>;
|
|
28
|
+
credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>;
|
|
35
29
|
region: string | Provider<string>;
|
|
36
30
|
sha256: ChecksumConstructor | HashConstructor;
|
|
37
31
|
signingName?: string;
|
|
@@ -52,14 +46,11 @@ export interface AwsSdkSigV4AuthResolvedConfig {
|
|
|
52
46
|
systemClockOffset: number;
|
|
53
47
|
}
|
|
54
48
|
export declare const resolveAwsSdkSigV4Config: <T>(
|
|
55
|
-
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
49
|
+
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
56
50
|
) => T & AwsSdkSigV4AuthResolvedConfig;
|
|
57
|
-
export interface AWSSDKSigV4AuthInputConfig
|
|
58
|
-
|
|
59
|
-
export interface
|
|
60
|
-
extends AwsSdkSigV4PreviouslyResolved {}
|
|
61
|
-
export interface AWSSDKSigV4AuthResolvedConfig
|
|
62
|
-
extends AwsSdkSigV4AuthResolvedConfig {}
|
|
51
|
+
export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig {}
|
|
52
|
+
export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved {}
|
|
53
|
+
export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {}
|
|
63
54
|
export declare const resolveAWSSDKSigV4Config: <T>(
|
|
64
|
-
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
55
|
+
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
65
56
|
) => T & AwsSdkSigV4AuthResolvedConfig;
|
|
@@ -15,7 +15,7 @@ export declare class ProtocolLib {
|
|
|
15
15
|
constructor(queryCompat?: boolean);
|
|
16
16
|
resolveRestContentType(
|
|
17
17
|
defaultContentType: string,
|
|
18
|
-
inputSchema: NormalizedSchema
|
|
18
|
+
inputSchema: NormalizedSchema,
|
|
19
19
|
): string | undefined;
|
|
20
20
|
getErrorSchemaOrThrowBaseException(
|
|
21
21
|
errorIdentifier: string,
|
|
@@ -23,31 +23,18 @@ export declare class ProtocolLib {
|
|
|
23
23
|
response: IHttpResponse,
|
|
24
24
|
dataObject: any,
|
|
25
25
|
metadata: ResponseMetadata,
|
|
26
|
-
getErrorSchema?: (
|
|
27
|
-
registry: TypeRegistry,
|
|
28
|
-
errorName: string
|
|
29
|
-
) => StaticErrorSchema
|
|
26
|
+
getErrorSchema?: (registry: TypeRegistry, errorName: string) => StaticErrorSchema,
|
|
30
27
|
): Promise<{
|
|
31
28
|
errorSchema: StaticErrorSchema;
|
|
32
29
|
errorMetadata: ErrorMetadataBearer;
|
|
33
30
|
}>;
|
|
34
|
-
compose(
|
|
35
|
-
composite: TypeRegistry,
|
|
36
|
-
errorIdentifier: string,
|
|
37
|
-
defaultNamespace: string
|
|
38
|
-
): void;
|
|
31
|
+
compose(composite: TypeRegistry, errorIdentifier: string, defaultNamespace: string): void;
|
|
39
32
|
decorateServiceException<E extends SDKBaseServiceException>(
|
|
40
33
|
exception: E,
|
|
41
|
-
additions?: Record<string, any
|
|
34
|
+
additions?: Record<string, any>,
|
|
42
35
|
): E;
|
|
43
|
-
setQueryCompatError(
|
|
44
|
-
output: Record<string, any>,
|
|
45
|
-
response: IHttpResponse
|
|
46
|
-
): void;
|
|
36
|
+
setQueryCompatError(output: Record<string, any>, response: IHttpResponse): void;
|
|
47
37
|
queryCompatOutput(queryCompatErrorData: any, errorData: any): void;
|
|
48
|
-
findQueryCompatibleError(
|
|
49
|
-
registry: TypeRegistry,
|
|
50
|
-
errorName: string
|
|
51
|
-
): StaticErrorSchema;
|
|
38
|
+
findQueryCompatibleError(registry: TypeRegistry, errorName: string): StaticErrorSchema;
|
|
52
39
|
}
|
|
53
40
|
export {};
|
|
@@ -24,13 +24,13 @@ export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol
|
|
|
24
24
|
serializeRequest<Input extends object>(
|
|
25
25
|
operationSchema: OperationSchema,
|
|
26
26
|
input: Input,
|
|
27
|
-
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
|
|
27
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
28
28
|
): Promise<HttpRequest>;
|
|
29
29
|
protected handleError(
|
|
30
30
|
operationSchema: OperationSchema,
|
|
31
31
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
32
32
|
response: HttpResponse,
|
|
33
33
|
dataObject: any,
|
|
34
|
-
metadata: ResponseMetadata
|
|
34
|
+
metadata: ResponseMetadata,
|
|
35
35
|
): Promise<never>;
|
|
36
36
|
}
|
|
@@ -24,8 +24,4 @@ export { XmlCodec } from "./xml/XmlCodec";
|
|
|
24
24
|
export { XmlSettings } from "./xml/XmlCodec";
|
|
25
25
|
export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer";
|
|
26
26
|
export { XmlShapeSerializer } from "./xml/XmlShapeSerializer";
|
|
27
|
-
export {
|
|
28
|
-
parseXmlBody,
|
|
29
|
-
parseXmlErrorBody,
|
|
30
|
-
loadRestXmlErrorCode,
|
|
31
|
-
} from "./xml/parseXmlBody";
|
|
27
|
+
export { parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode } from "./xml/parseXmlBody";
|
|
@@ -35,7 +35,7 @@ export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
|
|
|
35
35
|
serializeRequest<Input extends object>(
|
|
36
36
|
operationSchema: OperationSchema,
|
|
37
37
|
input: Input,
|
|
38
|
-
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
|
|
38
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
39
39
|
): Promise<HttpRequest>;
|
|
40
40
|
getPayloadCodec(): JsonCodec;
|
|
41
41
|
protected abstract getJsonRpcVersion(): "1.1" | "1.0";
|
|
@@ -44,6 +44,6 @@ export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
|
|
|
44
44
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
45
45
|
response: HttpResponse,
|
|
46
46
|
dataObject: any,
|
|
47
|
-
metadata: ResponseMetadata
|
|
47
|
+
metadata: ResponseMetadata,
|
|
48
48
|
): Promise<never>;
|
|
49
49
|
}
|
|
@@ -31,19 +31,19 @@ export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
|
|
|
31
31
|
serializeRequest<Input extends object>(
|
|
32
32
|
operationSchema: OperationSchema,
|
|
33
33
|
input: Input,
|
|
34
|
-
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
|
|
34
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
35
35
|
): Promise<HttpRequest>;
|
|
36
36
|
deserializeResponse<Output extends MetadataBearer>(
|
|
37
37
|
operationSchema: OperationSchema,
|
|
38
38
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
39
|
-
response: HttpResponse
|
|
39
|
+
response: HttpResponse,
|
|
40
40
|
): Promise<Output>;
|
|
41
41
|
protected handleError(
|
|
42
42
|
operationSchema: OperationSchema,
|
|
43
43
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
44
44
|
response: HttpResponse,
|
|
45
45
|
dataObject: any,
|
|
46
|
-
metadata: ResponseMetadata
|
|
46
|
+
metadata: ResponseMetadata,
|
|
47
47
|
): Promise<never>;
|
|
48
48
|
protected getDefaultContentType(): string;
|
|
49
49
|
}
|
|
@@ -5,10 +5,7 @@ import { JsonShapeSerializer } from "./JsonShapeSerializer";
|
|
|
5
5
|
export type JsonSettings = CodecSettings & {
|
|
6
6
|
jsonName: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare class JsonCodec
|
|
9
|
-
extends SerdeContextConfig
|
|
10
|
-
implements Codec<string, string>
|
|
11
|
-
{
|
|
8
|
+
export declare class JsonCodec extends SerdeContextConfig implements Codec<string, string> {
|
|
12
9
|
readonly settings: JsonSettings;
|
|
13
10
|
constructor(settings: JsonSettings);
|
|
14
11
|
createSerializer(): JsonShapeSerializer;
|
|
@@ -14,9 +14,5 @@ export declare class JsonShapeSerializer
|
|
|
14
14
|
write(schema: Schema, value: unknown): void;
|
|
15
15
|
flush(): string;
|
|
16
16
|
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
17
|
-
protected _write(
|
|
18
|
-
schema: Schema,
|
|
19
|
-
value: unknown,
|
|
20
|
-
container?: NormalizedSchema
|
|
21
|
-
): any;
|
|
17
|
+
protected _write(schema: Schema, value: unknown, container?: NormalizedSchema): any;
|
|
22
18
|
}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { HttpResponse, SerdeFunctions } from "@smithy/types";
|
|
2
|
-
export declare const parseJsonBody: (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
) => any;
|
|
6
|
-
export declare const parseJsonErrorBody: (
|
|
7
|
-
errorBody: any,
|
|
8
|
-
context: SerdeFunctions
|
|
9
|
-
) => Promise<any>;
|
|
10
|
-
export declare const loadRestJsonErrorCode: (
|
|
11
|
-
output: HttpResponse,
|
|
12
|
-
data: any
|
|
13
|
-
) => string | undefined;
|
|
2
|
+
export declare const parseJsonBody: (streamBody: any, context: SerdeFunctions) => any;
|
|
3
|
+
export declare const parseJsonErrorBody: (errorBody: any, context: SerdeFunctions) => Promise<any>;
|
|
4
|
+
export declare const loadRestJsonErrorCode: (output: HttpResponse, data: any) => string | undefined;
|
|
14
5
|
export declare const loadJsonRpcErrorCode: (
|
|
15
6
|
output: HttpResponse,
|
|
16
7
|
data: any,
|
|
17
|
-
queryCompat?: boolean
|
|
8
|
+
queryCompat?: boolean,
|
|
18
9
|
) => string | undefined;
|
|
@@ -35,12 +35,12 @@ export declare class AwsQueryProtocol extends RpcProtocol {
|
|
|
35
35
|
serializeRequest<Input extends object>(
|
|
36
36
|
operationSchema: OperationSchema,
|
|
37
37
|
input: Input,
|
|
38
|
-
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
|
|
38
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
39
39
|
): Promise<HttpRequest>;
|
|
40
40
|
deserializeResponse<Output extends MetadataBearer>(
|
|
41
41
|
operationSchema: OperationSchema,
|
|
42
42
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
43
|
-
response: IHttpResponse
|
|
43
|
+
response: IHttpResponse,
|
|
44
44
|
): Promise<Output>;
|
|
45
45
|
protected useNestedResult(): boolean;
|
|
46
46
|
protected handleError(
|
|
@@ -48,12 +48,9 @@ export declare class AwsQueryProtocol extends RpcProtocol {
|
|
|
48
48
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
49
49
|
response: IHttpResponse,
|
|
50
50
|
dataObject: any,
|
|
51
|
-
metadata: ResponseMetadata
|
|
51
|
+
metadata: ResponseMetadata,
|
|
52
52
|
): Promise<never>;
|
|
53
|
-
protected loadQueryErrorCode(
|
|
54
|
-
output: IHttpResponse,
|
|
55
|
-
data: any
|
|
56
|
-
): string | undefined;
|
|
53
|
+
protected loadQueryErrorCode(output: IHttpResponse, data: any): string | undefined;
|
|
57
54
|
protected loadQueryError(data: any): any | undefined;
|
|
58
55
|
protected loadQueryErrorMessage(data: any): string;
|
|
59
56
|
protected getDefaultContentType(): string;
|
|
@@ -28,19 +28,19 @@ export declare class AwsRestXmlProtocol extends HttpBindingProtocol {
|
|
|
28
28
|
serializeRequest<Input extends object>(
|
|
29
29
|
operationSchema: OperationSchema,
|
|
30
30
|
input: Input,
|
|
31
|
-
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
|
|
31
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
32
32
|
): Promise<IHttpRequest>;
|
|
33
33
|
deserializeResponse<Output extends MetadataBearer>(
|
|
34
34
|
operationSchema: OperationSchema,
|
|
35
35
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
36
|
-
response: IHttpResponse
|
|
36
|
+
response: IHttpResponse,
|
|
37
37
|
): Promise<Output>;
|
|
38
38
|
protected handleError(
|
|
39
39
|
operationSchema: OperationSchema,
|
|
40
40
|
context: HandlerExecutionContext & SerdeFunctions,
|
|
41
41
|
response: IHttpResponse,
|
|
42
42
|
dataObject: any,
|
|
43
|
-
metadata: ResponseMetadata
|
|
43
|
+
metadata: ResponseMetadata,
|
|
44
44
|
): Promise<never>;
|
|
45
45
|
protected getDefaultContentType(): string;
|
|
46
46
|
private hasUnstructuredPayloadBinding;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { HttpResponse, SerdeContext } from "@smithy/types";
|
|
2
|
-
export declare const parseXmlBody: (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
) => any;
|
|
6
|
-
export declare const parseXmlErrorBody: (
|
|
7
|
-
errorBody: any,
|
|
8
|
-
context: SerdeContext
|
|
9
|
-
) => Promise<any>;
|
|
10
|
-
export declare const loadRestXmlErrorCode: (
|
|
11
|
-
output: HttpResponse,
|
|
12
|
-
data: any
|
|
13
|
-
) => string | undefined;
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,27 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.975.
|
|
3
|
+
"version": "3.975.3",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"build:types": "premove dist-types && premove dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
|
|
11
|
-
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
|
-
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"lint": "node ../../scripts/validation/submodules-linter.js",
|
|
15
|
-
"prebuild": "yarn lint",
|
|
16
|
-
"test": "yarn g:vitest run",
|
|
17
|
-
"test:watch": "yarn g:vitest watch",
|
|
18
|
-
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts && yarn test:temp:retry",
|
|
19
|
-
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
|
|
20
|
-
"test:temp:retry": "SMITHY_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && AWS_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && node ./integ/retry.integ.spec"
|
|
5
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "AWS SDK for JavaScript Team",
|
|
9
|
+
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
21
10
|
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
14
|
+
"directory": "packages-internal/core"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"./account-id-endpoint.d.ts",
|
|
18
|
+
"./account-id-endpoint.js",
|
|
19
|
+
"./client.d.ts",
|
|
20
|
+
"./client.js",
|
|
21
|
+
"./httpAuthSchemes.d.ts",
|
|
22
|
+
"./httpAuthSchemes.js",
|
|
23
|
+
"./protocols.d.ts",
|
|
24
|
+
"./protocols.js",
|
|
25
|
+
"./util.d.ts",
|
|
26
|
+
"./util.js",
|
|
27
|
+
"dist-*/**"
|
|
28
|
+
],
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"./dist-es/submodules/client/util-endpoints/aws.js",
|
|
31
|
+
"./dist-cjs/submodules/client/util-endpoints/aws.js"
|
|
32
|
+
],
|
|
22
33
|
"main": "./dist-cjs/index.js",
|
|
23
34
|
"module": "./dist-es/index.js",
|
|
35
|
+
"browser": {
|
|
36
|
+
"./dist-es/submodules/client/index.js": "./dist-es/submodules/client/index.browser.js"
|
|
37
|
+
},
|
|
24
38
|
"types": "./dist-types/index.d.ts",
|
|
39
|
+
"typesVersions": {
|
|
40
|
+
"<4.5": {
|
|
41
|
+
"dist-types/*": [
|
|
42
|
+
"dist-types/ts3.4/*"
|
|
43
|
+
],
|
|
44
|
+
"*": [
|
|
45
|
+
"dist-types/ts3.4/submodules/*/index.d.ts"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"react-native": {
|
|
50
|
+
"./dist-es/submodules/client/index.js": "./dist-es/submodules/client/index.native.js"
|
|
51
|
+
},
|
|
25
52
|
"exports": {
|
|
26
53
|
".": {
|
|
27
54
|
"types": "./dist-types/index.d.ts",
|
|
@@ -74,41 +101,30 @@
|
|
|
74
101
|
"require": "./dist-cjs/submodules/util/index.js"
|
|
75
102
|
}
|
|
76
103
|
},
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"./
|
|
93
|
-
"./util.js",
|
|
94
|
-
"dist-*/**"
|
|
95
|
-
],
|
|
96
|
-
"sideEffects": [
|
|
97
|
-
"./dist-es/submodules/client/util-endpoints/aws.js",
|
|
98
|
-
"./dist-cjs/submodules/client/util-endpoints/aws.js"
|
|
99
|
-
],
|
|
100
|
-
"author": {
|
|
101
|
-
"name": "AWS SDK for JavaScript Team",
|
|
102
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
104
|
+
"scripts": {
|
|
105
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
106
|
+
"build:cjs": "node ../../scripts/compilation/inline && premove ./dist-cjs/api-extractor-type-index.js",
|
|
107
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json && premove ./dist-es/api-extractor-type-index.js",
|
|
108
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
109
|
+
"build:types": "premove dist-types && premove dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
|
|
110
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
111
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
112
|
+
"extract:docs": "api-extractor run --local",
|
|
113
|
+
"lint": "node ../../scripts/validation/submodules-linter.js",
|
|
114
|
+
"prebuild": "yarn lint",
|
|
115
|
+
"test": "yarn g:vitest run",
|
|
116
|
+
"test:watch": "yarn g:vitest watch",
|
|
117
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts && yarn test:temp:retry",
|
|
118
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
|
|
119
|
+
"test:temp:retry": "SMITHY_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && AWS_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && node ./integ/retry.integ.spec"
|
|
103
120
|
},
|
|
104
|
-
"license": "Apache-2.0",
|
|
105
121
|
"dependencies": {
|
|
106
|
-
"@aws-sdk/types": "^3.974.
|
|
107
|
-
"@aws-sdk/xml-builder": "^3.972.
|
|
122
|
+
"@aws-sdk/types": "^3.974.2",
|
|
123
|
+
"@aws-sdk/xml-builder": "^3.972.36",
|
|
108
124
|
"@aws/lambda-invoke-store": "^0.3.0",
|
|
109
|
-
"@smithy/core": "^3.29.
|
|
110
|
-
"@smithy/signature-v4": "^5.6.
|
|
111
|
-
"@smithy/types": "^4.16.
|
|
125
|
+
"@smithy/core": "^3.29.4",
|
|
126
|
+
"@smithy/signature-v4": "^5.6.5",
|
|
127
|
+
"@smithy/types": "^4.16.1",
|
|
112
128
|
"bowser": "^2.11.0",
|
|
113
129
|
"tslib": "^2.6.2"
|
|
114
130
|
},
|
|
@@ -121,18 +137,5 @@
|
|
|
121
137
|
},
|
|
122
138
|
"engines": {
|
|
123
139
|
"node": ">=20.0.0"
|
|
124
|
-
},
|
|
125
|
-
"typesVersions": {
|
|
126
|
-
"<4.5": {
|
|
127
|
-
"dist-types/*": [
|
|
128
|
-
"dist-types/ts3.4/*"
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
|
|
133
|
-
"repository": {
|
|
134
|
-
"type": "git",
|
|
135
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
136
|
-
"directory": "packages-internal/core"
|
|
137
140
|
}
|
|
138
141
|
}
|