@cdklabs/cdk-construct-connect-datalake 0.0.25 → 0.0.27
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/.jsii +9 -9
- package/.jsii.tabl.json +1 -1
- package/lib/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
- package/node_modules/@aws-sdk/client-connect/README.md +21 -0
- package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +212 -35
- package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +6 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/GetCrossRegionRoutingCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListEvaluationFormAIVersionsCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateCrossRegionRoutingCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +23 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +152 -34
- package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +21 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateEvaluationFormCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRoutingProfileCommand.d.ts +10 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRuleCommand.d.ts +14 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTaskTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeEvaluationFormCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRoutingProfileCommand.d.ts +10 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRuleCommand.d.ts +11 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetContactMetricsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCrossRegionRoutingCommand.d.ts +93 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListEvaluationFormAIVersionsCommand.d.ts +96 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ReplicateInstanceCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ResumeContactCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ResumeContactRecordingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchAgentStatusesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchEvaluationFormsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRoutingProfilesCommand.d.ts +10 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRulesCommand.d.ts +11 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartContactEvaluationCommand.d.ts +0 -3
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateCrossRegionRoutingCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateEvaluationFormCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +10 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRuleCommand.d.ts +11 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserNotificationStatusCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserPhoneConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserProficienciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserRoutingProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserSecurityProfilesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateViewContentCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +71 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/errors.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +151 -134
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +141 -134
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +258 -218
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +257 -274
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +301 -5
- package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +51 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTaskTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetContactMetricsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCrossRegionRoutingCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListEvaluationFormAIVersionsCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ReplicateInstanceCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ResumeContactCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ResumeContactRecordingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchAgentStatusesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateCrossRegionRoutingCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserNotificationStatusCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserPhoneConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserProficienciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserRoutingProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserSecurityProfilesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +35 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +32 -32
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +36 -32
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +58 -57
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +64 -69
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +77 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
- package/node_modules/@aws-sdk/client-connect/package.json +3 -3
- package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-glue/package.json +3 -3
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-lakeformation/package.json +3 -3
- package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ram/package.json +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sts/package.json +3 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
- package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/errors.d.ts +5 -0
- package/node_modules/@smithy/core/errors.js +5 -0
- package/node_modules/@smithy/core/package.json +11 -2
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +1 -0
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@types/aws-lambda/README.md +1 -1
- package/node_modules/@types/aws-lambda/package.json +3 -3
- package/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +1 -1
- package/package.json +10 -10
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/LICENSE +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/README.md +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/index.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append/constant.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/count.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/help.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/constant.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/false.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/true.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/subparsers.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/version.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action_container.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argparse.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/error.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/exclusive.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/group.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument_parser.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/const.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/added_formatters.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/formatter.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/namespace.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/utils.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/package.json +0 -0
|
@@ -19,16 +19,17 @@ export const isBrowserNetworkError = (error) => {
|
|
|
19
19
|
export const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 ||
|
|
20
20
|
THROTTLING_ERROR_CODES.includes(error.name) ||
|
|
21
21
|
error.$retryable?.throttling == true;
|
|
22
|
-
export const isTransientError = (error, depth = 0) =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
export const isTransientError = (error, depth = 0) => error?.name !== "AbortError" &&
|
|
23
|
+
(isRetryableByTrait(error) ||
|
|
24
|
+
isClockSkewCorrectedError(error) ||
|
|
25
|
+
(error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
|
|
26
|
+
TRANSIENT_ERROR_CODES.includes(error.name) ||
|
|
27
|
+
NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
|
|
28
|
+
NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
|
|
29
|
+
TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
|
|
30
|
+
isBrowserNetworkError(error) ||
|
|
31
|
+
isNodeJsHttp2TransientError(error) ||
|
|
32
|
+
(error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1)));
|
|
32
33
|
export const isServerError = (error) => {
|
|
33
34
|
if (error.$metadata?.httpStatusCode !== undefined) {
|
|
34
35
|
const statusCode = error.$metadata.httpStatusCode;
|
|
@@ -6,6 +6,8 @@ export const getAwsChunkedEncodingStream = (readableStream, options) => {
|
|
|
6
6
|
checksumLocationName !== undefined &&
|
|
7
7
|
streamHasher !== undefined;
|
|
8
8
|
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
|
|
9
|
+
Promise.resolve(digest).catch(() => {
|
|
10
|
+
});
|
|
9
11
|
const reader = readableStream.getReader();
|
|
10
12
|
return new ReadableStream({
|
|
11
13
|
async pull(controller) {
|
|
@@ -13,8 +13,12 @@ export function getAwsChunkedEncodingStream(stream, options) {
|
|
|
13
13
|
checksumLocationName !== undefined &&
|
|
14
14
|
streamHasher !== undefined;
|
|
15
15
|
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
|
|
16
|
+
Promise.resolve(digest).catch(() => {
|
|
17
|
+
});
|
|
16
18
|
const awsChunkedEncodingStream = new Readable({
|
|
17
|
-
read
|
|
19
|
+
read() {
|
|
20
|
+
readable.resume();
|
|
21
|
+
},
|
|
18
22
|
});
|
|
19
23
|
readable.on("data", (data) => {
|
|
20
24
|
const length = bodyLengthChecker(data) || 0;
|
|
@@ -23,16 +27,27 @@ export function getAwsChunkedEncodingStream(stream, options) {
|
|
|
23
27
|
}
|
|
24
28
|
awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
|
|
25
29
|
awsChunkedEncodingStream.push(data);
|
|
26
|
-
awsChunkedEncodingStream.push("\r\n")
|
|
30
|
+
if (!awsChunkedEncodingStream.push("\r\n")) {
|
|
31
|
+
readable.pause();
|
|
32
|
+
}
|
|
27
33
|
});
|
|
34
|
+
readable.on("error", (err) => {
|
|
35
|
+
awsChunkedEncodingStream.destroy(err);
|
|
36
|
+
});
|
|
37
|
+
readable.pause();
|
|
28
38
|
readable.on("end", async () => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
try {
|
|
40
|
+
awsChunkedEncodingStream.push(`0\r\n`);
|
|
41
|
+
if (checksumRequired) {
|
|
42
|
+
const checksum = base64Encoder(await digest);
|
|
43
|
+
awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
|
|
44
|
+
awsChunkedEncodingStream.push(`\r\n`);
|
|
45
|
+
}
|
|
46
|
+
awsChunkedEncodingStream.push(null);
|
|
47
|
+
}
|
|
48
|
+
catch (err) {
|
|
49
|
+
awsChunkedEncodingStream.destroy(err);
|
|
34
50
|
}
|
|
35
|
-
awsChunkedEncodingStream.push(null);
|
|
36
51
|
});
|
|
37
52
|
return awsChunkedEncodingStream;
|
|
38
53
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A general SDK error that does not fall into a more specific category.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class SmithyError extends Error {
|
|
7
|
+
name: string;
|
|
8
|
+
readonly $source: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A value had the wrong type or could not be interpreted as the expected type.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export declare class SmithyTypeError extends TypeError {
|
|
16
|
+
name: string;
|
|
17
|
+
readonly $source: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A value was the correct type but fell outside its allowed range or bounds.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare class SmithyRangeError extends RangeError {
|
|
25
|
+
name: string;
|
|
26
|
+
readonly $source: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export type ErrorConstructor<E extends Error = Error> = new (message?: string) => E;
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export interface ErrorContainer {
|
|
36
|
+
readonly $source: string;
|
|
37
|
+
readonly Error: ErrorConstructor<SmithyError>;
|
|
38
|
+
readonly TypeError: ErrorConstructor<SmithyTypeError>;
|
|
39
|
+
readonly RangeError: ErrorConstructor<SmithyRangeError>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare const errors: ErrorContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { errors, type SmithyError, type SmithyRangeError, type SmithyTypeError } from "./errors";
|
|
@@ -19,6 +19,10 @@ export declare const isThrottlingError: (error: SdkError) => boolean;
|
|
|
19
19
|
* included here because there is an error scenario with unknown root
|
|
20
20
|
* cause where the NodeHttpHandler does not decorate the Error with
|
|
21
21
|
* the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition.
|
|
22
|
+
*
|
|
23
|
+
* Errors named "AbortError" are considered terminal. AbortSignal.timeout()
|
|
24
|
+
* produces an underlying cause which would otherwise be considered retryable as
|
|
25
|
+
* a TimeoutError.
|
|
22
26
|
*/
|
|
23
27
|
export declare const isTransientError: (error: SdkError, depth?: number) => boolean;
|
|
24
28
|
export declare const isServerError: (error: SdkError) => boolean;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A general SDK error that does not fall into a more specific category.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class SmithyError extends Error {
|
|
7
|
+
name: string;
|
|
8
|
+
readonly $source: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A value had the wrong type or could not be interpreted as the expected type.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export declare class SmithyTypeError extends TypeError {
|
|
16
|
+
name: string;
|
|
17
|
+
readonly $source: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A value was the correct type but fell outside its allowed range or bounds.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare class SmithyRangeError extends RangeError {
|
|
25
|
+
name: string;
|
|
26
|
+
readonly $source: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export type ErrorConstructor<E extends Error = Error> = new (message?: string) => E;
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export interface ErrorContainer {
|
|
36
|
+
readonly $source: string;
|
|
37
|
+
readonly Error: ErrorConstructor<SmithyError>;
|
|
38
|
+
readonly TypeError: ErrorConstructor<SmithyTypeError>;
|
|
39
|
+
readonly RangeError: ErrorConstructor<SmithyRangeError>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare const errors: ErrorContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { errors, SmithyError, SmithyRangeError, SmithyTypeError } from "./errors";
|
|
@@ -19,6 +19,10 @@ export declare const isThrottlingError: (error: SdkError) => boolean;
|
|
|
19
19
|
* included here because there is an error scenario with unknown root
|
|
20
20
|
* cause where the NodeHttpHandler does not decorate the Error with
|
|
21
21
|
* the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition.
|
|
22
|
+
*
|
|
23
|
+
* Errors named "AbortError" are considered terminal. AbortSignal.timeout()
|
|
24
|
+
* produces an underlying cause which would otherwise be considered retryable as
|
|
25
|
+
* a TimeoutError.
|
|
22
26
|
*/
|
|
23
27
|
export declare const isTransientError: (error: SdkError, depth?: number) => boolean;
|
|
24
28
|
export declare const isServerError: (error: SdkError) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.34.1",
|
|
4
4
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"./config.js",
|
|
25
25
|
"./endpoints.d.ts",
|
|
26
26
|
"./endpoints.js",
|
|
27
|
+
"./errors.d.ts",
|
|
28
|
+
"./errors.js",
|
|
27
29
|
"./event-streams.d.ts",
|
|
28
30
|
"./event-streams.js",
|
|
29
31
|
"./protocols.d.ts",
|
|
@@ -212,6 +214,13 @@
|
|
|
212
214
|
"node": "./dist-cjs/submodules/transport/index.js",
|
|
213
215
|
"import": "./dist-es/submodules/transport/index.js",
|
|
214
216
|
"require": "./dist-cjs/submodules/transport/index.js"
|
|
217
|
+
},
|
|
218
|
+
"./errors": {
|
|
219
|
+
"types": "./dist-types/submodules/errors/index.d.ts",
|
|
220
|
+
"module": "./dist-es/submodules/errors/index.js",
|
|
221
|
+
"node": "./dist-cjs/submodules/errors/index.js",
|
|
222
|
+
"import": "./dist-es/submodules/errors/index.js",
|
|
223
|
+
"require": "./dist-cjs/submodules/errors/index.js"
|
|
215
224
|
}
|
|
216
225
|
},
|
|
217
226
|
"scripts": {
|
|
@@ -232,7 +241,7 @@
|
|
|
232
241
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
233
242
|
},
|
|
234
243
|
"dependencies": {
|
|
235
|
-
"@smithy/types": "^4.
|
|
244
|
+
"@smithy/types": "^4.18.0",
|
|
236
245
|
"tslib": "^2.6.2"
|
|
237
246
|
},
|
|
238
247
|
"devDependencies": {
|
|
@@ -51,6 +51,7 @@ class FetchHttpHandler {
|
|
|
51
51
|
const requestTimeoutInMs = requestTimeout$1 ?? this.config.requestTimeout;
|
|
52
52
|
const keepAlive = this.config.keepAlive === true;
|
|
53
53
|
const credentials = this.config.credentials;
|
|
54
|
+
const fetchFn = this.config.customFetch ?? fetch;
|
|
54
55
|
if (abortSignal?.aborted) {
|
|
55
56
|
const abortError = buildAbortError(abortSignal);
|
|
56
57
|
return Promise.reject(abortError);
|
|
@@ -96,7 +97,7 @@ class FetchHttpHandler {
|
|
|
96
97
|
let removeSignalEventListener = () => { };
|
|
97
98
|
const fetchRequest = createRequest(url, requestOptions);
|
|
98
99
|
const raceOfPromises = [
|
|
99
|
-
|
|
100
|
+
fetchFn(fetchRequest).then((response) => {
|
|
100
101
|
const fetchHeaders = response.headers;
|
|
101
102
|
const transformedHeaders = {};
|
|
102
103
|
for (const pair of fetchHeaders.entries()) {
|
|
@@ -34,6 +34,7 @@ export class FetchHttpHandler {
|
|
|
34
34
|
const requestTimeoutInMs = requestTimeout ?? this.config.requestTimeout;
|
|
35
35
|
const keepAlive = this.config.keepAlive === true;
|
|
36
36
|
const credentials = this.config.credentials;
|
|
37
|
+
const fetchFn = this.config.customFetch ?? fetch;
|
|
37
38
|
if (abortSignal?.aborted) {
|
|
38
39
|
const abortError = buildAbortError(abortSignal);
|
|
39
40
|
return Promise.reject(abortError);
|
|
@@ -79,7 +80,7 @@ export class FetchHttpHandler {
|
|
|
79
80
|
let removeSignalEventListener = () => { };
|
|
80
81
|
const fetchRequest = createRequest(url, requestOptions);
|
|
81
82
|
const raceOfPromises = [
|
|
82
|
-
|
|
83
|
+
fetchFn(fetchRequest).then((response) => {
|
|
83
84
|
const fetchHeaders = response.headers;
|
|
84
85
|
const transformedHeaders = {};
|
|
85
86
|
for (const pair of fetchHeaders.entries()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@smithy/core": "^3.33.
|
|
44
|
-
"@smithy/types": "^4.
|
|
43
|
+
"@smithy/core": "^3.33.3",
|
|
44
|
+
"@smithy/types": "^4.18.0",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@smithy/core": "^3.33.3",
|
|
43
|
-
"@smithy/types": "^4.
|
|
43
|
+
"@smithy/types": "^4.18.0",
|
|
44
44
|
"tslib": "^2.6.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
|
|
121
|
+
/**
|
|
122
|
+
* An optional custom fetch implementation to use in place of the
|
|
123
|
+
* global fetch function.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```js
|
|
127
|
+
* new Client({
|
|
128
|
+
* requestHandler: {
|
|
129
|
+
* customFetch: (request) => myFetchImplementation(request)
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
customFetch?: typeof fetch;
|
|
121
135
|
}
|
|
122
136
|
declare global {
|
|
123
137
|
/**
|
|
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
|
|
121
|
+
/**
|
|
122
|
+
* An optional custom fetch implementation to use in place of the
|
|
123
|
+
* global fetch function.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```js
|
|
127
|
+
* new Client({
|
|
128
|
+
* requestHandler: {
|
|
129
|
+
* customFetch: (request) => myFetchImplementation(request)
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
customFetch?: typeof fetch;
|
|
121
135
|
}
|
|
122
136
|
declare global {
|
|
123
137
|
/**
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for aws-lambda (http://docs.aws.amazon.co
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 01 Sep 2026 18:37:51 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/aws-lambda",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.163",
|
|
4
4
|
"description": "TypeScript definitions for aws-lambda",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda",
|
|
6
6
|
"license": "MIT",
|
|
@@ -221,6 +221,6 @@
|
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
223
|
"peerDependencies": {},
|
|
224
|
-
"typesPublisherContentHash": "
|
|
225
|
-
"typeScriptVersion": "5.
|
|
224
|
+
"typesPublisherContentHash": "225c8b47434176686e640f3c484c3bef662843a3c2fbf6d1f4bd3bf7fe3971d3",
|
|
225
|
+
"typeScriptVersion": "5.6"
|
|
226
226
|
}
|
package/package.json
CHANGED
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
60
60
|
"eslint-plugin-import": "^2.32.0",
|
|
61
61
|
"eslint-plugin-prettier": "^5.5.6",
|
|
62
|
-
"jest": "^30.
|
|
62
|
+
"jest": "^30.5.1",
|
|
63
63
|
"jest-junit": "^16",
|
|
64
64
|
"jsii": "~5.9",
|
|
65
65
|
"jsii-diff": "^1.140.0",
|
|
66
66
|
"jsii-docgen": "^10.5.0",
|
|
67
67
|
"jsii-pacmak": "^1.140.0",
|
|
68
|
-
"jsii-rosetta": "^5.9.
|
|
68
|
+
"jsii-rosetta": "^5.9.65",
|
|
69
69
|
"prettier": "^3.9.6",
|
|
70
70
|
"projen": "^0.99.17",
|
|
71
71
|
"ts-jest": "^29.4.12",
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"constructs": "^10.5.1"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
81
|
-
"@aws-sdk/client-connect": "^3.
|
|
82
|
-
"@aws-sdk/client-glue": "^3.
|
|
83
|
-
"@aws-sdk/client-lakeformation": "^3.
|
|
84
|
-
"@aws-sdk/client-ram": "^3.
|
|
85
|
-
"@aws-sdk/client-sts": "^3.
|
|
80
|
+
"@aws-sdk/client-cloudformation": "^3.1131.0",
|
|
81
|
+
"@aws-sdk/client-connect": "^3.1131.0",
|
|
82
|
+
"@aws-sdk/client-glue": "^3.1131.0",
|
|
83
|
+
"@aws-sdk/client-lakeformation": "^3.1131.0",
|
|
84
|
+
"@aws-sdk/client-ram": "^3.1131.0",
|
|
85
|
+
"@aws-sdk/client-sts": "^3.1131.0",
|
|
86
86
|
"@aws-sdk/types": "^3.974.5",
|
|
87
|
-
"@types/aws-lambda": "^8.10.
|
|
87
|
+
"@types/aws-lambda": "^8.10.163",
|
|
88
88
|
"aws-lambda": "^1.0.7"
|
|
89
89
|
},
|
|
90
90
|
"bundledDependencies": [
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"publishConfig": {
|
|
113
113
|
"access": "public"
|
|
114
114
|
},
|
|
115
|
-
"version": "0.0.
|
|
115
|
+
"version": "0.0.27",
|
|
116
116
|
"jest": {
|
|
117
117
|
"coverageProvider": "v8",
|
|
118
118
|
"moduleNameMapper": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append/constant.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/constant.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/added_formatters.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|