@cdklabs/cdk-construct-connect-datalake 0.0.23 → 0.0.25

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 (211) hide show
  1. package/.jsii +10 -10
  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 +8 -8
  6. package/node_modules/@aws-sdk/client-connect/README.md +35 -0
  7. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +239 -11
  8. package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +12 -0
  9. package/node_modules/@aws-sdk/client-connect/dist-es/commands/CreateExtractionDefinitionCommand.js +4 -0
  10. package/node_modules/@aws-sdk/client-connect/dist-es/commands/DeleteExtractionDefinitionCommand.js +4 -0
  11. package/node_modules/@aws-sdk/client-connect/dist-es/commands/DescribeExtractionDefinitionCommand.js +4 -0
  12. package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListExtractionDefinitionsCommand.js +4 -0
  13. package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateExtractionDefinitionCommand.js +4 -0
  14. package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +5 -0
  15. package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +15 -0
  16. package/node_modules/@aws-sdk/client-connect/dist-es/pagination/ListExtractionDefinitionsPaginator.js +4 -0
  17. package/node_modules/@aws-sdk/client-connect/dist-es/pagination/index.js +1 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +168 -10
  19. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +42 -0
  20. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +7 -2
  21. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateExtractionDefinitionCommand.d.ts +111 -0
  22. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRuleCommand.d.ts +9 -2
  23. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTestCaseCommand.d.ts +1 -1
  24. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateUseCaseCommand.d.ts +1 -1
  26. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DeleteExtractionDefinitionCommand.d.ts +85 -0
  27. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeExtractionDefinitionCommand.d.ts +107 -0
  28. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRuleCommand.d.ts +9 -2
  29. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCurrentMetricDataCommand.d.ts +1 -1
  30. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCurrentUserDataCommand.d.ts +1 -2
  31. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListExtractionDefinitionsCommand.d.ts +98 -0
  32. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListRealtimeContactAnalysisSegmentsV2Command.d.ts +18 -1
  33. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListRulesCommand.d.ts +3 -3
  34. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactEvaluationsCommand.d.ts +1 -1
  35. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactFlowModulesCommand.d.ts +1 -1
  36. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRulesCommand.d.ts +2 -2
  37. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartAssistantContactCommand.d.ts +4 -1
  38. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateExtractionDefinitionCommand.d.ts +100 -0
  39. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRuleCommand.d.ts +8 -1
  40. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateViewContentCommand.d.ts +2 -1
  41. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateViewMetadataCommand.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceMetadataCommand.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspacePageCommand.d.ts +1 -1
  44. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceThemeCommand.d.ts +1 -1
  45. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceVisibilityCommand.d.ts +1 -1
  46. package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +5 -0
  47. package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +31 -0
  48. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +128 -188
  49. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +285 -492
  50. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +1827 -1656
  51. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +2112 -1982
  52. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +403 -7
  53. package/node_modules/@aws-sdk/client-connect/dist-types/pagination/ListExtractionDefinitionsPaginator.d.ts +7 -0
  54. package/node_modules/@aws-sdk/client-connect/dist-types/pagination/index.d.ts +1 -0
  55. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +24 -0
  56. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +92 -0
  57. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +30 -0
  58. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateExtractionDefinitionCommand.d.ts +42 -0
  59. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTestCaseCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateUseCaseCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DeleteExtractionDefinitionCommand.d.ts +42 -0
  63. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeExtractionDefinitionCommand.d.ts +42 -0
  64. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCurrentMetricDataCommand.d.ts +1 -1
  65. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +1 -2
  66. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListExtractionDefinitionsCommand.d.ts +42 -0
  67. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactEvaluationsCommand.d.ts +1 -1
  68. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactFlowModulesCommand.d.ts +1 -1
  69. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateExtractionDefinitionCommand.d.ts +42 -0
  70. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +2 -1
  71. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +1 -1
  72. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceMetadataCommand.d.ts +1 -1
  73. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspacePageCommand.d.ts +1 -1
  74. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceThemeCommand.d.ts +1 -1
  75. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceVisibilityCommand.d.ts +1 -1
  76. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +5 -0
  77. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +18 -0
  78. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +31 -46
  79. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +72 -72
  80. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +120 -116
  81. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +126 -113
  82. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +121 -14
  83. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/ListExtractionDefinitionsPaginator.d.ts +11 -0
  84. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/index.d.ts +1 -0
  85. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  86. package/node_modules/@aws-sdk/client-connect/package.json +8 -8
  87. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +1 -1
  88. package/node_modules/@aws-sdk/client-glue/package.json +8 -8
  89. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
  90. package/node_modules/@aws-sdk/client-lakeformation/package.json +8 -8
  91. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
  92. package/node_modules/@aws-sdk/client-ram/package.json +8 -8
  93. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  94. package/node_modules/@aws-sdk/client-sts/package.json +10 -10
  95. package/node_modules/@aws-sdk/core/package.json +5 -5
  96. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  97. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  98. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  99. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  100. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  101. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  102. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  103. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  104. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  105. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  106. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  107. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  108. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  109. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  110. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  111. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
  112. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
  113. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  114. package/node_modules/@aws-sdk/types/package.json +2 -2
  115. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  116. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  117. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
  118. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  119. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  120. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  121. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
  122. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
  123. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
  124. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  125. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  126. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  127. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  128. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  129. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  130. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  131. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  132. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  133. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  134. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  135. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  136. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  137. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  138. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  139. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  140. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  141. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  142. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  143. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
  144. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
  145. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  146. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  147. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
  148. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  149. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  150. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  151. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  152. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  153. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  154. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  155. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  156. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  157. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  158. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  159. package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
  160. package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
  161. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  162. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  163. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  164. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
  165. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
  166. package/node_modules/@smithy/core/package.json +1 -1
  167. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +17 -6
  168. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  169. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  170. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
  171. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
  172. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  173. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
  174. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
  175. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
  176. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
  177. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
  178. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
  179. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
  180. package/node_modules/@smithy/signature-v4/package.json +2 -2
  181. package/node_modules/js-yaml/dist/js-yaml.js +17 -4
  182. package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
  183. package/node_modules/js-yaml/lib/js-yaml/loader.js +16 -3
  184. package/node_modules/js-yaml/package.json +1 -1
  185. package/package.json +11 -11
  186. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/LICENSE +0 -0
  187. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/README.md +0 -0
  188. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/index.js +0 -0
  189. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/append/constant.js +0 -0
  190. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/append.js +0 -0
  191. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/count.js +0 -0
  192. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/help.js +0 -0
  193. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/store/constant.js +0 -0
  194. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/store/false.js +0 -0
  195. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/store/true.js +0 -0
  196. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/store.js +0 -0
  197. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/subparsers.js +0 -0
  198. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action/version.js +0 -0
  199. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action.js +0 -0
  200. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/action_container.js +0 -0
  201. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/argparse.js +0 -0
  202. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/argument/error.js +0 -0
  203. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/argument/exclusive.js +0 -0
  204. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/argument/group.js +0 -0
  205. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/argument_parser.js +0 -0
  206. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/const.js +0 -0
  207. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/help/added_formatters.js +0 -0
  208. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/help/formatter.js +0 -0
  209. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/namespace.js +0 -0
  210. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/lib/utils.js +0 -0
  211. /package/node_modules/{js-yaml/node_modules/argparse → argparse}/package.json +0 -0
@@ -1,4 +1,5 @@
1
1
  export { getSmithyContext } from "./getSmithyContext";
2
+ export { hasOwn } from "./hasOwn";
2
3
  export { HttpRequest } from "./httpRequest";
3
4
  export { HttpResponse } from "./httpResponse";
4
5
  export { isValidHostLabel } from "./isValidHostLabel";
@@ -1,3 +1,4 @@
1
+ import { hasOwn } from "./hasOwn";
1
2
  import { parseUrl } from "./parseUrl";
2
3
  export const toEndpointV1 = (endpoint) => {
3
4
  if (typeof endpoint === "object") {
@@ -6,6 +7,8 @@ export const toEndpointV1 = (endpoint) => {
6
7
  if (endpoint.headers) {
7
8
  v1Endpoint.headers = {};
8
9
  for (const name in endpoint.headers) {
10
+ if (!hasOwn(endpoint.headers, name))
11
+ continue;
9
12
  v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
10
13
  }
11
14
  }
@@ -39,3 +39,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
39
39
  export { streamCollector } from "./util-stream/stream-collector.browser";
40
40
  export declare const v4: () => string;
41
41
  export declare const generateIdempotencyToken: () => string;
42
+ export { hasOwn } from "@smithy/core/transport";
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
37
37
  export { streamCollector } from "./util-stream/stream-collector";
38
38
  export declare const v4: () => string;
39
39
  export declare const generateIdempotencyToken: () => string;
40
+ export { hasOwn } from "@smithy/core/transport";
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
37
37
  export { streamCollector } from "./util-stream/stream-collector.browser";
38
38
  export declare const v4: () => string;
39
39
  export declare const generateIdempotencyToken: () => string;
40
+ export { hasOwn } from "@smithy/core/transport";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function hasOwn(o: object, k: string): boolean;
@@ -1,4 +1,5 @@
1
1
  export { getSmithyContext } from "./getSmithyContext";
2
+ export { hasOwn } from "./hasOwn";
2
3
  export { HttpRequest } from "./httpRequest";
3
4
  export type { IHttpRequest } from "./httpRequest";
4
5
  export { HttpResponse } from "./httpResponse";
@@ -39,3 +39,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
39
39
  export { streamCollector } from "./util-stream/stream-collector.browser";
40
40
  export declare const v4: () => string;
41
41
  export declare const generateIdempotencyToken: () => string;
42
+ export { hasOwn } from "@smithy/core/transport";
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
37
37
  export { streamCollector } from "./util-stream/stream-collector";
38
38
  export declare const v4: () => string;
39
39
  export declare const generateIdempotencyToken: () => string;
40
+ export { hasOwn } from "@smithy/core/transport";
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
37
37
  export { streamCollector } from "./util-stream/stream-collector.browser";
38
38
  export declare const v4: () => string;
39
39
  export declare const generateIdempotencyToken: () => string;
40
+ export { hasOwn } from "@smithy/core/transport";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function hasOwn(o: object, k: string): boolean;
@@ -1,4 +1,5 @@
1
1
  export { getSmithyContext } from "./getSmithyContext";
2
+ export { hasOwn } from "./hasOwn";
2
3
  export { HttpRequest } from "./httpRequest";
3
4
  export { IHttpRequest } from "./httpRequest";
4
5
  export { HttpResponse } from "./httpResponse";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.33.2",
3
+ "version": "3.33.3",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -1,9 +1,10 @@
1
+ const { hasOwn } = require("@smithy/core/serde");
2
+ const { streamCollector } = require("@smithy/core/serde");
3
+ exports.streamCollector = streamCollector;
1
4
  const { buildQueryString, HttpResponse } = require("@smithy/core/protocols");
2
5
  const node_https = require("node:https");
3
6
  const { Readable } = require("node:stream");
4
7
  const http2 = require("node:http2");
5
- const { streamCollector } = require("@smithy/core/serde");
6
- exports.streamCollector = streamCollector;
7
8
 
8
9
  function buildAbortError(abortSignal) {
9
10
  const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
@@ -30,6 +31,8 @@ const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
30
31
  const getTransformedHeaders = (headers) => {
31
32
  const transformedHeaders = {};
32
33
  for (const name in headers) {
34
+ if (!hasOwn(headers, name))
35
+ continue;
33
36
  const headerValues = headers[name];
34
37
  transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
35
38
  }
@@ -231,6 +234,8 @@ class NodeHttpHandler {
231
234
  }
232
235
  if (sockets && requests) {
233
236
  for (const origin in sockets) {
237
+ if (!hasOwn(sockets, origin))
238
+ continue;
234
239
  const socketsInUse = sockets[origin]?.length ?? 0;
235
240
  const requestsEnqueued = requests[origin]?.length ?? 0;
236
241
  if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
@@ -603,9 +608,8 @@ class NodeHttp2ConnectionManager {
603
608
  session.on("error", ensureDestroyed);
604
609
  session.on("frameError", ensureDestroyed);
605
610
  session.on("close", ensureDestroyed);
606
- if (connectionConfiguration.requestTimeout) {
607
- session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
608
- }
611
+ const timeout = connectionConfiguration.requestTimeout ?? 300_000;
612
+ session.setTimeout(timeout, ensureDestroyed);
609
613
  ref.retain();
610
614
  return ref;
611
615
  }
@@ -812,6 +816,9 @@ class NodeHttp2Handler {
812
816
  resolve({ response: httpResponse });
813
817
  if (useIsolatedSession) {
814
818
  session.close();
819
+ clientHttp2Stream.on("end", () => {
820
+ ref.destroy();
821
+ });
815
822
  }
816
823
  });
817
824
  clientHttp2Stream.on("close", () => {
@@ -822,7 +829,11 @@ class NodeHttp2Handler {
822
829
  this.connectionManager.release(requestContext, ref);
823
830
  }
824
831
  if (!fulfilled) {
825
- rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
832
+ const error = new Error("Unexpected error: http2 request did not get a response");
833
+ if (session.destroyed) {
834
+ error.name = "TimeoutError";
835
+ }
836
+ rejectWithDestroy(error);
826
837
  }
827
838
  });
828
839
  writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
@@ -1,6 +1,9 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  const getTransformedHeaders = (headers) => {
2
3
  const transformedHeaders = {};
3
4
  for (const name in headers) {
5
+ if (!hasOwn(headers, name))
6
+ continue;
4
7
  const headerValues = headers[name];
5
8
  transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
6
9
  }
@@ -1,3 +1,4 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
2
3
  import { buildAbortError } from "./build-abort-error";
3
4
  import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
@@ -35,6 +36,8 @@ export class NodeHttpHandler {
35
36
  }
36
37
  if (sockets && requests) {
37
38
  for (const origin in sockets) {
39
+ if (!hasOwn(sockets, origin))
40
+ continue;
38
41
  const socketsInUse = sockets[origin]?.length ?? 0;
39
42
  const requestsEnqueued = requests[origin]?.length ?? 0;
40
43
  if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
@@ -64,9 +64,8 @@ export class NodeHttp2ConnectionManager {
64
64
  session.on("error", ensureDestroyed);
65
65
  session.on("frameError", ensureDestroyed);
66
66
  session.on("close", ensureDestroyed);
67
- if (connectionConfiguration.requestTimeout) {
68
- session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
69
- }
67
+ const timeout = connectionConfiguration.requestTimeout ?? 300_000;
68
+ session.setTimeout(timeout, ensureDestroyed);
70
69
  ref.retain();
71
70
  return ref;
72
71
  }
@@ -142,6 +142,9 @@ export class NodeHttp2Handler {
142
142
  resolve({ response: httpResponse });
143
143
  if (useIsolatedSession) {
144
144
  session.close();
145
+ clientHttp2Stream.on("end", () => {
146
+ ref.destroy();
147
+ });
145
148
  }
146
149
  });
147
150
  clientHttp2Stream.on("close", () => {
@@ -152,7 +155,11 @@ export class NodeHttp2Handler {
152
155
  this.connectionManager.release(requestContext, ref);
153
156
  }
154
157
  if (!fulfilled) {
155
- rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
158
+ const error = new Error("Unexpected error: http2 request did not get a response");
159
+ if (session.destroyed) {
160
+ error.name = "TimeoutError";
161
+ }
162
+ rejectWithDestroy(error);
156
163
  }
157
164
  });
158
165
  writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.11.2",
3
+ "version": "4.12.0",
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",
@@ -39,7 +39,7 @@
39
39
  "test:watch": "yarn g:vitest watch"
40
40
  },
41
41
  "dependencies": {
42
- "@smithy/core": "^3.33.2",
42
+ "@smithy/core": "^3.33.3",
43
43
  "@smithy/types": "^4.17.2",
44
44
  "tslib": "^2.6.2"
45
45
  },
@@ -1,11 +1,13 @@
1
- const { fromUtf8, fromHex, toHex, toUint8Array, isArrayBuffer } = require("@smithy/core/serde");
1
+ const { hasOwn, fromUtf8, fromHex, toHex, toUint8Array, isArrayBuffer } = require("@smithy/core/serde");
2
2
  const { normalizeProvider } = require("@smithy/core/client");
3
3
  const { escapeUri, HttpRequest } = require("@smithy/core/protocols");
4
4
 
5
5
  class HeaderFormatter {
6
6
  format(headers) {
7
7
  const chunks = [];
8
- for (const headerName of Object.keys(headers)) {
8
+ for (const headerName in headers) {
9
+ if (!hasOwn(headers, headerName))
10
+ continue;
9
11
  const bytes = fromUtf8(headerName);
10
12
  chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
11
13
  }
@@ -174,7 +176,9 @@ const MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
174
176
  const getCanonicalQuery = ({ query = {} }) => {
175
177
  const keys = [];
176
178
  const serialized = {};
177
- for (const key of Object.keys(query)) {
179
+ for (const key in query) {
180
+ if (!hasOwn(query, key))
181
+ continue;
178
182
  if (key.toLowerCase() === SIGNATURE_HEADER) {
179
183
  continue;
180
184
  }
@@ -341,7 +345,9 @@ const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) =>
341
345
  };
342
346
 
343
347
  const getPayloadHash = async ({ headers, body }, hashConstructor) => {
344
- for (const headerName of Object.keys(headers)) {
348
+ for (const headerName in headers) {
349
+ if (!hasOwn(headers, headerName))
350
+ continue;
345
351
  if (headerName.toLowerCase() === SHA256_HEADER) {
346
352
  return headers[headerName];
347
353
  }
@@ -359,7 +365,9 @@ const getPayloadHash = async ({ headers, body }, hashConstructor) => {
359
365
 
360
366
  const hasHeader = (soughtHeader, headers) => {
361
367
  soughtHeader = soughtHeader.toLowerCase();
362
- for (const headerName of Object.keys(headers)) {
368
+ for (const headerName in headers) {
369
+ if (!hasOwn(headers, headerName))
370
+ continue;
363
371
  if (soughtHeader === headerName.toLowerCase()) {
364
372
  return true;
365
373
  }
@@ -369,7 +377,9 @@ const hasHeader = (soughtHeader, headers) => {
369
377
 
370
378
  const moveHeadersToQuery = (request, options = {}) => {
371
379
  const { headers, query = {} } = HttpRequest.clone(request);
372
- for (const name of Object.keys(headers)) {
380
+ for (const name in headers) {
381
+ if (!hasOwn(headers, name))
382
+ continue;
373
383
  const lname = name.toLowerCase();
374
384
  if ((lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) ||
375
385
  options.hoistableHeaders?.has(lname)) {
@@ -386,7 +396,9 @@ const moveHeadersToQuery = (request, options = {}) => {
386
396
 
387
397
  const prepareRequest = (request) => {
388
398
  request = HttpRequest.clone(request);
389
- for (const headerName of Object.keys(request.headers)) {
399
+ for (const headerName in request.headers) {
400
+ if (!hasOwn(request.headers, headerName))
401
+ continue;
390
402
  if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
391
403
  delete request.headers[headerName];
392
404
  }
@@ -1,8 +1,11 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  import { fromHex, fromUtf8, toHex } from "@smithy/core/serde";
2
3
  export class HeaderFormatter {
3
4
  format(headers) {
4
5
  const chunks = [];
5
- for (const headerName of Object.keys(headers)) {
6
+ for (const headerName in headers) {
7
+ if (!hasOwn(headers, headerName))
8
+ continue;
6
9
  const bytes = fromUtf8(headerName);
7
10
  chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
8
11
  }
@@ -1,9 +1,12 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  import { escapeUri } from "@smithy/core/protocols";
2
3
  import { SIGNATURE_HEADER } from "./constants";
3
4
  export const getCanonicalQuery = ({ query = {} }) => {
4
5
  const keys = [];
5
6
  const serialized = {};
6
- for (const key of Object.keys(query)) {
7
+ for (const key in query) {
8
+ if (!hasOwn(query, key))
9
+ continue;
7
10
  if (key.toLowerCase() === SIGNATURE_HEADER) {
8
11
  continue;
9
12
  }
@@ -1,7 +1,10 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  import { isArrayBuffer, toHex, toUint8Array } from "@smithy/core/serde";
2
3
  import { SHA256_HEADER, UNSIGNED_PAYLOAD } from "./constants";
3
4
  export const getPayloadHash = async ({ headers, body }, hashConstructor) => {
4
- for (const headerName of Object.keys(headers)) {
5
+ for (const headerName in headers) {
6
+ if (!hasOwn(headers, headerName))
7
+ continue;
5
8
  if (headerName.toLowerCase() === SHA256_HEADER) {
6
9
  return headers[headerName];
7
10
  }
@@ -1,6 +1,9 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  export const hasHeader = (soughtHeader, headers) => {
2
3
  soughtHeader = soughtHeader.toLowerCase();
3
- for (const headerName of Object.keys(headers)) {
4
+ for (const headerName in headers) {
5
+ if (!hasOwn(headers, headerName))
6
+ continue;
4
7
  if (soughtHeader === headerName.toLowerCase()) {
5
8
  return true;
6
9
  }
@@ -9,7 +12,9 @@ export const hasHeader = (soughtHeader, headers) => {
9
12
  };
10
13
  export const getHeaderValue = (soughtHeader, headers) => {
11
14
  soughtHeader = soughtHeader.toLowerCase();
12
- for (const headerName of Object.keys(headers)) {
15
+ for (const headerName in headers) {
16
+ if (!hasOwn(headers, headerName))
17
+ continue;
13
18
  if (soughtHeader === headerName.toLowerCase()) {
14
19
  return headers[headerName];
15
20
  }
@@ -18,7 +23,9 @@ export const getHeaderValue = (soughtHeader, headers) => {
18
23
  };
19
24
  export const deleteHeader = (soughtHeader, headers) => {
20
25
  soughtHeader = soughtHeader.toLowerCase();
21
- for (const headerName of Object.keys(headers)) {
26
+ for (const headerName in headers) {
27
+ if (!hasOwn(headers, headerName))
28
+ continue;
22
29
  if (soughtHeader === headerName.toLowerCase()) {
23
30
  delete headers[headerName];
24
31
  }
@@ -1,7 +1,10 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  import { HttpRequest } from "@smithy/core/protocols";
2
3
  export const moveHeadersToQuery = (request, options = {}) => {
3
4
  const { headers, query = {} } = HttpRequest.clone(request);
4
- for (const name of Object.keys(headers)) {
5
+ for (const name in headers) {
6
+ if (!hasOwn(headers, name))
7
+ continue;
5
8
  const lname = name.toLowerCase();
6
9
  if ((lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) ||
7
10
  options.hoistableHeaders?.has(lname)) {
@@ -1,8 +1,11 @@
1
+ import { hasOwn } from "@smithy/core/serde";
1
2
  import { HttpRequest } from "@smithy/core/protocols";
2
3
  import { GENERATED_HEADERS } from "./constants";
3
4
  export const prepareRequest = (request) => {
4
5
  request = HttpRequest.clone(request);
5
- for (const headerName of Object.keys(request.headers)) {
6
+ for (const headerName in request.headers) {
7
+ if (!hasOwn(request.headers, headerName))
8
+ continue;
6
9
  if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
7
10
  delete request.headers[headerName];
8
11
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.7.2",
3
+ "version": "5.7.3",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "test:watch": "yarn g:vitest watch"
39
39
  },
40
40
  "dependencies": {
41
- "@smithy/core": "^3.33.2",
41
+ "@smithy/core": "^3.33.3",
42
42
  "@smithy/types": "^4.17.2",
43
43
  "tslib": "^2.6.2"
44
44
  },
@@ -1,4 +1,4 @@
1
- /*! js-yaml 3.15.1 https://github.com/nodeca/js-yaml */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsyaml = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
1
+ /*! js-yaml 3.15.2 https://github.com/nodeca/js-yaml */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsyaml = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
2
  'use strict';
3
3
 
4
4
 
@@ -1283,6 +1283,14 @@ function captureSegment(state, start, end, checkJson) {
1283
1283
  }
1284
1284
  }
1285
1285
 
1286
+ function chargeMergeWork(state) {
1287
+ state.totalMergeKeys += 1;
1288
+
1289
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
1290
+ throwError(state, 'merge keys exceeded maxTotalMergeKeys (' + state.maxTotalMergeKeys + ')');
1291
+ }
1292
+ }
1293
+
1286
1294
  function mergeMappings(state, destination, source, overridableKeys) {
1287
1295
  var sourceKeys, key, index, quantity;
1288
1296
 
@@ -1290,14 +1298,15 @@ function mergeMappings(state, destination, source, overridableKeys) {
1290
1298
  throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
1291
1299
  }
1292
1300
 
1301
+ // Count the source mapping itself to bound sequences of empty mappings.
1302
+ chargeMergeWork(state);
1303
+
1293
1304
  sourceKeys = Object.keys(source);
1294
1305
 
1295
1306
  for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1296
1307
  key = sourceKeys[index];
1297
1308
 
1298
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
1299
- throwError(state, 'merge keys exceeded maxTotalMergeKeys (' + state.maxTotalMergeKeys + ')');
1300
- }
1309
+ chargeMergeWork(state);
1301
1310
 
1302
1311
  if (!_hasOwnProperty.call(destination, key)) {
1303
1312
  setProperty(destination, key, source[key]);
@@ -1342,6 +1351,10 @@ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valu
1342
1351
 
1343
1352
  if (keyTag === 'tag:yaml.org,2002:merge') {
1344
1353
  if (Array.isArray(valueNode)) {
1354
+ if (valueNode.length > 100) {
1355
+ throwError(state, 'abnormal merge sequence size');
1356
+ }
1357
+
1345
1358
  for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
1346
1359
  mergeMappings(state, _result, valueNode[index], overridableKeys);
1347
1360
  }