@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.
Files changed (184) hide show
  1. package/.jsii +9 -9
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
  6. package/node_modules/@aws-sdk/client-connect/README.md +21 -0
  7. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +212 -35
  8. package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +6 -0
  9. package/node_modules/@aws-sdk/client-connect/dist-es/commands/GetCrossRegionRoutingCommand.js +4 -0
  10. package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListEvaluationFormAIVersionsCommand.js +4 -0
  11. package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateCrossRegionRoutingCommand.js +4 -0
  12. package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +3 -0
  13. package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +23 -0
  14. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +152 -34
  15. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +21 -0
  16. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +5 -2
  17. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateEvaluationFormCommand.d.ts +9 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRoutingProfileCommand.d.ts +10 -1
  19. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRuleCommand.d.ts +14 -0
  20. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTaskTemplateCommand.d.ts +1 -1
  21. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactCommand.d.ts +1 -0
  22. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +9 -0
  23. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeEvaluationFormCommand.d.ts +9 -0
  24. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRoutingProfileCommand.d.ts +10 -1
  25. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRuleCommand.d.ts +11 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetContactMetricsCommand.d.ts +2 -1
  27. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCrossRegionRoutingCommand.d.ts +93 -0
  28. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListEvaluationFormAIVersionsCommand.d.ts +96 -0
  29. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ReplicateInstanceCommand.d.ts +2 -1
  30. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ResumeContactCommand.d.ts +1 -1
  31. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ResumeContactRecordingCommand.d.ts +1 -1
  32. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchAgentStatusesCommand.d.ts +1 -1
  33. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -1
  34. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchEvaluationFormsCommand.d.ts +1 -0
  35. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRoutingProfilesCommand.d.ts +10 -1
  36. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRulesCommand.d.ts +11 -0
  37. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartContactEvaluationCommand.d.ts +0 -3
  38. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateCrossRegionRoutingCommand.d.ts +95 -0
  39. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateEvaluationFormCommand.d.ts +9 -0
  40. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +10 -1
  41. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRuleCommand.d.ts +11 -0
  42. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  44. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
  45. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
  46. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserNotificationStatusCommand.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserPhoneConfigCommand.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserProficienciesCommand.d.ts +1 -1
  49. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserRoutingProfileCommand.d.ts +1 -1
  50. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateUserSecurityProfilesCommand.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateViewContentCommand.d.ts +1 -2
  52. package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +3 -0
  53. package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +71 -0
  54. package/node_modules/@aws-sdk/client-connect/dist-types/models/errors.d.ts +2 -1
  55. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +151 -134
  56. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +141 -134
  57. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +258 -218
  58. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +257 -274
  59. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +301 -5
  60. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +16 -0
  61. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +51 -0
  62. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +18 -0
  63. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTaskTemplateCommand.d.ts +1 -1
  64. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetContactMetricsCommand.d.ts +2 -1
  65. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCrossRegionRoutingCommand.d.ts +39 -0
  66. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListEvaluationFormAIVersionsCommand.d.ts +42 -0
  67. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ReplicateInstanceCommand.d.ts +2 -1
  68. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ResumeContactCommand.d.ts +1 -1
  69. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ResumeContactRecordingCommand.d.ts +1 -1
  70. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchAgentStatusesCommand.d.ts +1 -1
  71. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -1
  72. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateCrossRegionRoutingCommand.d.ts +42 -0
  73. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  74. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  75. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
  76. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
  77. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserNotificationStatusCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserPhoneConfigCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserProficienciesCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserRoutingProfileCommand.d.ts +1 -1
  81. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateUserSecurityProfilesCommand.d.ts +1 -1
  82. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +1 -2
  83. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +3 -0
  84. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +35 -0
  85. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/errors.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +32 -32
  87. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +36 -32
  88. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +58 -57
  89. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +64 -69
  90. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +77 -1
  91. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
  92. package/node_modules/@aws-sdk/client-connect/package.json +3 -3
  93. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +1 -1
  94. package/node_modules/@aws-sdk/client-glue/package.json +3 -3
  95. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
  96. package/node_modules/@aws-sdk/client-lakeformation/package.json +3 -3
  97. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
  98. package/node_modules/@aws-sdk/client-ram/package.json +3 -3
  99. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  100. package/node_modules/@aws-sdk/client-sts/package.json +3 -3
  101. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
  102. package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
  103. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
  104. package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
  105. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
  106. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
  107. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
  108. package/node_modules/@aws-sdk/core/package.json +1 -1
  109. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  110. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  111. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  112. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  113. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
  114. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
  115. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  116. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  117. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  118. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  119. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  120. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  121. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  122. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  123. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  124. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  125. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  126. package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
  127. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
  128. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
  129. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
  130. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
  131. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
  132. package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
  133. package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
  134. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
  135. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
  136. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
  137. package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
  138. package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
  139. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  140. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
  141. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
  142. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  143. package/node_modules/@smithy/core/errors.d.ts +5 -0
  144. package/node_modules/@smithy/core/errors.js +5 -0
  145. package/node_modules/@smithy/core/package.json +11 -2
  146. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -1
  147. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -1
  148. package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
  149. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +1 -0
  150. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
  151. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  152. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
  153. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
  154. package/node_modules/@smithy/types/package.json +1 -1
  155. package/node_modules/@types/aws-lambda/README.md +1 -1
  156. package/node_modules/@types/aws-lambda/package.json +3 -3
  157. package/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +1 -1
  158. package/package.json +10 -10
  159. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/LICENSE +0 -0
  160. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/README.md +0 -0
  161. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/index.js +0 -0
  162. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append/constant.js +0 -0
  163. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append.js +0 -0
  164. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/count.js +0 -0
  165. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/help.js +0 -0
  166. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/constant.js +0 -0
  167. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/false.js +0 -0
  168. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/true.js +0 -0
  169. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store.js +0 -0
  170. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/subparsers.js +0 -0
  171. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/version.js +0 -0
  172. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action.js +0 -0
  173. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action_container.js +0 -0
  174. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argparse.js +0 -0
  175. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/error.js +0 -0
  176. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/exclusive.js +0 -0
  177. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/group.js +0 -0
  178. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument_parser.js +0 -0
  179. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/const.js +0 -0
  180. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/added_formatters.js +0 -0
  181. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/formatter.js +0 -0
  182. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/namespace.js +0 -0
  183. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/utils.js +0 -0
  184. /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) => isRetryableByTrait(error) ||
23
- isClockSkewCorrectedError(error) ||
24
- (error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
25
- TRANSIENT_ERROR_CODES.includes(error.name) ||
26
- NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
27
- NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
28
- TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
29
- isBrowserNetworkError(error) ||
30
- isNodeJsHttp2TransientError(error) ||
31
- (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
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
- awsChunkedEncodingStream.push(`0\r\n`);
30
- if (checksumRequired) {
31
- const checksum = base64Encoder(await digest);
32
- awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
33
- awsChunkedEncodingStream.push(`\r\n`);
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;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ export * from "./dist-types/submodules/errors/index";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ module.exports = require("./dist-cjs/submodules/errors/index.js");
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.33.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.17.2",
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
- fetch(fetchRequest).then((response) => {
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
- fetch(fetchRequest).then((response) => {
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.7.2",
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.2",
44
- "@smithy/types": "^4.17.2",
43
+ "@smithy/core": "^3.33.3",
44
+ "@smithy/types": "^4.18.0",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -491,6 +491,7 @@ class ClientHttp2SessionRef {
491
491
  destroy() {
492
492
  this.refs = 0;
493
493
  if (!this.session.destroyed) {
494
+ this.session.setTimeout(0);
494
495
  this.session.destroy();
495
496
  }
496
497
  }
@@ -41,6 +41,7 @@ export class ClientHttp2SessionRef {
41
41
  destroy() {
42
42
  this.refs = 0;
43
43
  if (!this.session.destroyed) {
44
+ this.session.setTimeout(0);
44
45
  this.session.destroy();
45
46
  }
46
47
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.12.0",
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.17.2",
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
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.17.2",
3
+ "version": "4.18.0",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/types",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -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: Sat, 06 Jun 2026 12:54:36 GMT
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.162",
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": "887084a96568d7a80f9cba501909ed52cecd243d2584c88b342d42e4ce9db97a",
225
- "typeScriptVersion": "5.3"
224
+ "typesPublisherContentHash": "225c8b47434176686e640f3c484c3bef662843a3c2fbf6d1f4bd3bf7fe3971d3",
225
+ "typeScriptVersion": "5.6"
226
226
  }
@@ -258,7 +258,7 @@ export interface APIGatewayEventRequestContextJWTAuthorizer {
258
258
  integrationLatency: number;
259
259
  jwt: {
260
260
  claims: { [name: string]: string | number | boolean | string[] };
261
- scopes: string[];
261
+ scopes: string[] | null;
262
262
  };
263
263
  }
264
264
 
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.4.2",
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.63",
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.1121.0",
81
- "@aws-sdk/client-connect": "^3.1121.0",
82
- "@aws-sdk/client-glue": "^3.1121.0",
83
- "@aws-sdk/client-lakeformation": "^3.1121.0",
84
- "@aws-sdk/client-ram": "^3.1121.0",
85
- "@aws-sdk/client-sts": "^3.1121.0",
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.162",
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.25",
115
+ "version": "0.0.27",
116
116
  "jest": {
117
117
  "coverageProvider": "v8",
118
118
  "moduleNameMapper": {