@cdklabs/cdk-construct-connect-datalake 0.0.22 → 0.0.24

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 (393) 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/dist-es/index.js +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +38 -38
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +36 -36
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +37 -37
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +2 -2
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +1 -1
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +54 -56
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +57 -57
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +58 -60
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  16. package/node_modules/@aws-sdk/client-cloudformation/package.json +10 -10
  17. package/node_modules/@aws-sdk/client-connect/README.md +91 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +631 -56
  19. package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +32 -0
  20. package/node_modules/@aws-sdk/client-connect/dist-es/commands/CreateExtractionDefinitionCommand.js +4 -0
  21. package/node_modules/@aws-sdk/client-connect/dist-es/commands/CreateMetricCommand.js +4 -0
  22. package/node_modules/@aws-sdk/client-connect/dist-es/commands/DeleteExtractionDefinitionCommand.js +4 -0
  23. package/node_modules/@aws-sdk/client-connect/dist-es/commands/DeleteMetricCommand.js +4 -0
  24. package/node_modules/@aws-sdk/client-connect/dist-es/commands/DescribeExtractionDefinitionCommand.js +4 -0
  25. package/node_modules/@aws-sdk/client-connect/dist-es/commands/DescribeMetricCommand.js +4 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListExtractionDefinitionsCommand.js +4 -0
  27. package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListMetricsCommand.js +4 -0
  28. package/node_modules/@aws-sdk/client-connect/dist-es/commands/SearchMetricsCommand.js +4 -0
  29. package/node_modules/@aws-sdk/client-connect/dist-es/commands/StartAssistantContactCommand.js +4 -0
  30. package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateExtractionDefinitionCommand.js +4 -0
  31. package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateMetricContentCommand.js +4 -0
  32. package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateMetricMetadataCommand.js +4 -0
  33. package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +13 -0
  34. package/node_modules/@aws-sdk/client-connect/dist-es/index.js +1 -1
  35. package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +49 -0
  36. package/node_modules/@aws-sdk/client-connect/dist-es/pagination/ListExtractionDefinitionsPaginator.js +4 -0
  37. package/node_modules/@aws-sdk/client-connect/dist-es/pagination/ListMetricsPaginator.js +4 -0
  38. package/node_modules/@aws-sdk/client-connect/dist-es/pagination/SearchMetricsPaginator.js +4 -0
  39. package/node_modules/@aws-sdk/client-connect/dist-es/pagination/index.js +3 -0
  40. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +440 -55
  41. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +112 -0
  42. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +15 -2
  43. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateEvaluationFormCommand.d.ts +1 -1
  44. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateExtractionDefinitionCommand.d.ts +111 -0
  45. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateMetricCommand.d.ts +137 -0
  46. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRuleCommand.d.ts +9 -2
  47. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTestCaseCommand.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
  49. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateUseCaseCommand.d.ts +1 -1
  50. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateUserCommand.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateUserHierarchyGroupCommand.d.ts +1 -2
  52. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DeleteExtractionDefinitionCommand.d.ts +85 -0
  53. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DeleteMetricCommand.d.ts +93 -0
  54. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +1 -1
  55. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeEvaluationFormCommand.d.ts +1 -1
  56. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeExtractionDefinitionCommand.d.ts +107 -0
  57. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeMetricCommand.d.ts +165 -0
  58. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRuleCommand.d.ts +9 -2
  59. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCurrentMetricDataCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetCurrentUserDataCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetEffectiveHoursOfOperationsCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetEvaluationFormValidationCommand.d.ts +1 -1
  63. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetFederationTokenCommand.d.ts +1 -1
  64. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListExtractionDefinitionsCommand.d.ts +98 -0
  65. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListMetricsCommand.d.ts +103 -0
  66. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListRulesCommand.d.ts +3 -3
  67. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchAgentStatusesCommand.d.ts +1 -1
  68. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactEvaluationsCommand.d.ts +2 -2
  69. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactFlowModulesCommand.d.ts +2 -2
  70. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactFlowsCommand.d.ts +1 -1
  71. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchEvaluationFormsCommand.d.ts +1 -1
  72. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchMetricsCommand.d.ts +223 -0
  73. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRulesCommand.d.ts +2 -2
  74. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartAssistantContactCommand.d.ts +129 -0
  75. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartWebRTCContactCommand.d.ts +28 -1
  76. package/node_modules/@aws-sdk/client-connect/dist-types/commands/TagResourceCommand.d.ts +1 -1
  77. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateEvaluationFormCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateExtractionDefinitionCommand.d.ts +100 -0
  79. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateMetricContentCommand.d.ts +121 -0
  80. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateMetricMetadataCommand.d.ts +93 -0
  81. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateRuleCommand.d.ts +8 -1
  82. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateViewMetadataCommand.d.ts +2 -1
  83. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceMetadataCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspacePageCommand.d.ts +1 -1
  85. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceThemeCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateWorkspaceVisibilityCommand.d.ts +1 -1
  87. package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +13 -0
  88. package/node_modules/@aws-sdk/client-connect/dist-types/index.d.ts +1 -1
  89. package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +129 -0
  90. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +323 -493
  91. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +3428 -3494
  92. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +5751 -5545
  93. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +3477 -3607
  94. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +1233 -6
  95. package/node_modules/@aws-sdk/client-connect/dist-types/pagination/ListExtractionDefinitionsPaginator.d.ts +7 -0
  96. package/node_modules/@aws-sdk/client-connect/dist-types/pagination/ListMetricsPaginator.d.ts +7 -0
  97. package/node_modules/@aws-sdk/client-connect/dist-types/pagination/SearchMetricsPaginator.d.ts +7 -0
  98. package/node_modules/@aws-sdk/client-connect/dist-types/pagination/index.d.ts +3 -0
  99. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.browser.d.ts +40 -40
  100. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.d.ts +36 -36
  101. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.native.d.ts +38 -38
  102. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.shared.d.ts +2 -2
  103. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +58 -0
  104. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +239 -0
  105. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +75 -0
  106. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateExtractionDefinitionCommand.d.ts +42 -0
  107. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateMetricCommand.d.ts +38 -0
  108. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTestCaseCommand.d.ts +1 -1
  109. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
  110. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateUseCaseCommand.d.ts +1 -1
  111. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateUserCommand.d.ts +1 -1
  112. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateUserHierarchyGroupCommand.d.ts +4 -2
  113. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DeleteExtractionDefinitionCommand.d.ts +42 -0
  114. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DeleteMetricCommand.d.ts +38 -0
  115. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeExtractionDefinitionCommand.d.ts +42 -0
  116. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeMetricCommand.d.ts +38 -0
  117. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCurrentMetricDataCommand.d.ts +1 -1
  118. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +1 -1
  119. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetEffectiveHoursOfOperationsCommand.d.ts +1 -1
  120. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetEvaluationFormValidationCommand.d.ts +1 -1
  121. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +1 -1
  122. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListExtractionDefinitionsCommand.d.ts +42 -0
  123. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListMetricsCommand.d.ts +38 -0
  124. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchAgentStatusesCommand.d.ts +1 -1
  125. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactEvaluationsCommand.d.ts +2 -2
  126. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactFlowModulesCommand.d.ts +2 -2
  127. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactFlowsCommand.d.ts +1 -1
  128. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchMetricsCommand.d.ts +39 -0
  129. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/StartAssistantContactCommand.d.ts +39 -0
  130. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/StartWebRTCContactCommand.d.ts +2 -1
  131. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateExtractionDefinitionCommand.d.ts +42 -0
  132. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateMetricContentCommand.d.ts +39 -0
  133. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateMetricMetadataCommand.d.ts +39 -0
  134. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +2 -1
  135. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceMetadataCommand.d.ts +1 -1
  136. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspacePageCommand.d.ts +1 -1
  137. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceThemeCommand.d.ts +1 -1
  138. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateWorkspaceVisibilityCommand.d.ts +1 -1
  139. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +13 -0
  140. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/index.d.ts +1 -1
  141. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +62 -0
  142. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +83 -106
  143. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +185 -168
  144. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +200 -191
  145. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +265 -303
  146. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +304 -25
  147. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/ListExtractionDefinitionsPaginator.d.ts +11 -0
  148. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/ListMetricsPaginator.d.ts +8 -0
  149. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/SearchMetricsPaginator.d.ts +11 -0
  150. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/pagination/index.d.ts +3 -0
  151. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  152. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  153. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
  154. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  155. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
  156. package/node_modules/@aws-sdk/client-connect/package.json +10 -10
  157. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +18 -18
  158. package/node_modules/@aws-sdk/client-glue/dist-es/index.js +1 -1
  159. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +17 -17
  160. package/node_modules/@aws-sdk/client-glue/dist-types/commands/AssociateGlossaryTermsCommand.d.ts +4 -0
  161. package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteAttachmentCommand.d.ts +2 -0
  162. package/node_modules/@aws-sdk/client-glue/dist-types/commands/DisassociateGlossaryTermsCommand.d.ts +4 -0
  163. package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutAssetTypeCommand.d.ts +3 -0
  164. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
  165. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
  166. package/node_modules/@aws-sdk/client-glue/dist-types/index.d.ts +1 -1
  167. package/node_modules/@aws-sdk/client-glue/dist-types/models/errors.d.ts +12 -0
  168. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +20 -0
  169. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +31 -0
  170. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +5 -3
  171. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +3 -2
  172. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.browser.d.ts +40 -40
  173. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.d.ts +36 -36
  174. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.native.d.ts +38 -38
  175. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.shared.d.ts +2 -2
  176. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/index.d.ts +1 -1
  177. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +4 -0
  178. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +6 -0
  179. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  180. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  181. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
  182. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  183. package/node_modules/@aws-sdk/client-glue/package.json +10 -10
  184. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
  185. package/node_modules/@aws-sdk/client-lakeformation/dist-es/index.js +1 -1
  186. package/node_modules/@aws-sdk/client-lakeformation/dist-types/index.d.ts +1 -1
  187. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.browser.d.ts +41 -41
  188. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.d.ts +37 -37
  189. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.native.d.ts +39 -39
  190. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.shared.d.ts +2 -2
  191. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/index.d.ts +1 -1
  192. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +57 -59
  193. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.d.ts +59 -59
  194. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.native.d.ts +61 -63
  195. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  196. package/node_modules/@aws-sdk/client-lakeformation/package.json +10 -10
  197. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
  198. package/node_modules/@aws-sdk/client-ram/dist-es/index.js +1 -1
  199. package/node_modules/@aws-sdk/client-ram/dist-types/index.d.ts +1 -1
  200. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.browser.d.ts +40 -40
  201. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.d.ts +36 -36
  202. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.native.d.ts +38 -38
  203. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.shared.d.ts +2 -2
  204. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/index.d.ts +1 -1
  205. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  206. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  207. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
  208. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  209. package/node_modules/@aws-sdk/client-ram/package.json +10 -10
  210. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  211. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +45 -45
  212. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +36 -36
  213. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +44 -44
  214. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +3 -3
  215. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +72 -74
  216. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +70 -70
  217. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +76 -78
  218. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +5 -5
  219. package/node_modules/@aws-sdk/client-sts/package.json +12 -12
  220. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
  221. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -1
  222. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -1
  223. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -1
  224. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
  225. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -4
  226. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -4
  227. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -4
  228. package/node_modules/@aws-sdk/core/package.json +6 -6
  229. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  230. package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
  231. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  232. package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
  233. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  234. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  235. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  236. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  237. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  238. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  239. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  240. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  241. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +42 -42
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +42 -42
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +41 -41
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +2 -2
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +43 -43
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +43 -43
  248. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +42 -42
  249. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +2 -2
  250. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +42 -42
  251. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +42 -42
  252. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +41 -41
  253. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +2 -2
  254. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +42 -42
  255. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +42 -42
  256. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +41 -41
  257. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +2 -2
  258. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +44 -44
  259. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +35 -35
  260. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +43 -43
  261. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +2 -2
  262. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +64 -66
  263. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +65 -65
  264. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +68 -70
  265. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +3 -3
  266. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +67 -69
  267. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +66 -66
  268. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +71 -73
  269. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +3 -3
  270. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +64 -66
  271. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +65 -65
  272. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +68 -70
  273. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +3 -3
  274. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +64 -66
  275. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +65 -65
  276. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +68 -70
  277. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
  278. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +68 -70
  279. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +68 -68
  280. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +72 -74
  281. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +3 -3
  282. package/node_modules/@aws-sdk/nested-clients/package.json +9 -9
  283. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  284. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
  285. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
  286. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  287. package/node_modules/@aws-sdk/types/package.json +3 -3
  288. package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
  289. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  290. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +127 -41
  291. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  292. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  293. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  294. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +33 -24
  295. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +33 -24
  296. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +33 -15
  297. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  298. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  299. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +0 -10
  300. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  301. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  302. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  303. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  304. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  305. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -2
  306. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  307. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  308. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  309. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  310. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  311. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  312. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  313. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  314. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  315. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  316. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  317. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  318. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +11 -4
  319. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +23 -20
  320. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  321. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  322. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -4
  323. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +6 -4
  324. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +8 -5
  325. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  326. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +0 -2
  327. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +0 -2
  328. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +0 -2
  329. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +0 -2
  330. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +0 -2
  331. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  332. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  333. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  334. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  335. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  336. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  337. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  338. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
  339. package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
  340. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
  341. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
  342. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
  343. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
  344. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
  345. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
  346. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +14 -2
  347. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
  348. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
  349. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  350. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  351. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  352. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  353. package/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts +5 -5
  354. package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
  355. package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
  356. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
  357. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
  358. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
  359. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
  360. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
  361. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
  362. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
  363. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
  364. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +14 -2
  365. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
  366. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
  367. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
  368. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  369. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  370. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  371. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
  372. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
  373. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
  374. package/node_modules/@smithy/core/package.json +3 -11
  375. package/node_modules/@smithy/credential-provider-imds/package.json +4 -12
  376. package/node_modules/@smithy/fetch-http-handler/package.json +5 -13
  377. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +16 -4
  378. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  379. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +12 -2
  380. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  381. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
  382. package/node_modules/@smithy/node-http-handler/package.json +5 -13
  383. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +28 -16
  384. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +13 -10
  385. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
  386. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
  387. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
  388. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
  389. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
  390. package/node_modules/@smithy/signature-v4/package.json +4 -12
  391. package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +14 -14
  392. package/node_modules/@smithy/types/package.json +29 -39
  393. package/package.json +9 -9
@@ -1,4 +1,5 @@
1
1
  const { Crc32 } = require("@smithy/core/checksum");
2
+ const { hasOwn } = require("@smithy/core/transport");
2
3
  const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
3
4
  const { Readable } = require("node:stream");
4
5
  const { TypeRegistry } = require("@smithy/core/schema");
@@ -56,7 +57,9 @@ class HeaderMarshaller {
56
57
  }
57
58
  format(headers) {
58
59
  const chunks = [];
59
- for (const headerName of Object.keys(headers)) {
60
+ for (const headerName in headers) {
61
+ if (!hasOwn(headers, headerName))
62
+ continue;
60
63
  const bytes = this.fromUtf8(headerName);
61
64
  chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
62
65
  }
@@ -71,27 +74,27 @@ class HeaderMarshaller {
71
74
  formatHeaderValue(header) {
72
75
  switch (header.type) {
73
76
  case "boolean":
74
- return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]);
77
+ return Uint8Array.from([header.value ? 0 : 1]);
75
78
  case "byte":
76
- return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]);
79
+ return Uint8Array.from([2, header.value]);
77
80
  case "short":
78
81
  const shortView = new DataView(new ArrayBuffer(3));
79
- shortView.setUint8(0, HEADER_VALUE_TYPE.short);
82
+ shortView.setUint8(0, 3);
80
83
  shortView.setInt16(1, header.value, false);
81
84
  return new Uint8Array(shortView.buffer);
82
85
  case "integer":
83
86
  const intView = new DataView(new ArrayBuffer(5));
84
- intView.setUint8(0, HEADER_VALUE_TYPE.integer);
87
+ intView.setUint8(0, 4);
85
88
  intView.setInt32(1, header.value, false);
86
89
  return new Uint8Array(intView.buffer);
87
90
  case "long":
88
91
  const longBytes = new Uint8Array(9);
89
- longBytes[0] = HEADER_VALUE_TYPE.long;
92
+ longBytes[0] = 5;
90
93
  longBytes.set(header.value.bytes, 1);
91
94
  return longBytes;
92
95
  case "binary":
93
96
  const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
94
- binView.setUint8(0, HEADER_VALUE_TYPE.byteArray);
97
+ binView.setUint8(0, 6);
95
98
  binView.setUint16(1, header.value.byteLength, false);
96
99
  const binBytes = new Uint8Array(binView.buffer);
97
100
  binBytes.set(header.value, 3);
@@ -99,14 +102,14 @@ class HeaderMarshaller {
99
102
  case "string":
100
103
  const utf8Bytes = this.fromUtf8(header.value);
101
104
  const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
102
- strView.setUint8(0, HEADER_VALUE_TYPE.string);
105
+ strView.setUint8(0, 7);
103
106
  strView.setUint16(1, utf8Bytes.byteLength, false);
104
107
  const strBytes = new Uint8Array(strView.buffer);
105
108
  strBytes.set(utf8Bytes, 3);
106
109
  return strBytes;
107
110
  case "timestamp":
108
111
  const tsBytes = new Uint8Array(9);
109
- tsBytes[0] = HEADER_VALUE_TYPE.timestamp;
112
+ tsBytes[0] = 8;
110
113
  tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
111
114
  return tsBytes;
112
115
  case "uuid":
@@ -114,7 +117,7 @@ class HeaderMarshaller {
114
117
  throw new Error(`Invalid UUID received: ${header.value}`);
115
118
  }
116
119
  const uuidBytes = new Uint8Array(17);
117
- uuidBytes[0] = HEADER_VALUE_TYPE.uuid;
120
+ uuidBytes[0] = 9;
118
121
  uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
119
122
  return uuidBytes;
120
123
  }
@@ -127,46 +130,46 @@ class HeaderMarshaller {
127
130
  const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
128
131
  position += nameLength;
129
132
  switch (headers.getUint8(position++)) {
130
- case HEADER_VALUE_TYPE.boolTrue:
133
+ case 0:
131
134
  out[name] = {
132
135
  type: BOOLEAN_TAG,
133
136
  value: true,
134
137
  };
135
138
  break;
136
- case HEADER_VALUE_TYPE.boolFalse:
139
+ case 1:
137
140
  out[name] = {
138
141
  type: BOOLEAN_TAG,
139
142
  value: false,
140
143
  };
141
144
  break;
142
- case HEADER_VALUE_TYPE.byte:
145
+ case 2:
143
146
  out[name] = {
144
147
  type: BYTE_TAG,
145
148
  value: headers.getInt8(position++),
146
149
  };
147
150
  break;
148
- case HEADER_VALUE_TYPE.short:
151
+ case 3:
149
152
  out[name] = {
150
153
  type: SHORT_TAG,
151
154
  value: headers.getInt16(position, false),
152
155
  };
153
156
  position += 2;
154
157
  break;
155
- case HEADER_VALUE_TYPE.integer:
158
+ case 4:
156
159
  out[name] = {
157
160
  type: INT_TAG,
158
161
  value: headers.getInt32(position, false),
159
162
  };
160
163
  position += 4;
161
164
  break;
162
- case HEADER_VALUE_TYPE.long:
165
+ case 5:
163
166
  out[name] = {
164
167
  type: LONG_TAG,
165
168
  value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
166
169
  };
167
170
  position += 8;
168
171
  break;
169
- case HEADER_VALUE_TYPE.byteArray:
172
+ case 6:
170
173
  const binaryLength = headers.getUint16(position, false);
171
174
  position += 2;
172
175
  out[name] = {
@@ -175,7 +178,7 @@ class HeaderMarshaller {
175
178
  };
176
179
  position += binaryLength;
177
180
  break;
178
- case HEADER_VALUE_TYPE.string:
181
+ case 7:
179
182
  const stringLength = headers.getUint16(position, false);
180
183
  position += 2;
181
184
  out[name] = {
@@ -184,14 +187,14 @@ class HeaderMarshaller {
184
187
  };
185
188
  position += stringLength;
186
189
  break;
187
- case HEADER_VALUE_TYPE.timestamp:
190
+ case 8:
188
191
  out[name] = {
189
192
  type: TIMESTAMP_TAG,
190
193
  value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
191
194
  };
192
195
  position += 8;
193
196
  break;
194
- case HEADER_VALUE_TYPE.uuid:
197
+ case 9:
195
198
  const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
196
199
  position += 16;
197
200
  out[name] = {
@@ -626,7 +629,7 @@ class EventStreamSerde {
626
629
  this.defaultContentType = defaultContentType;
627
630
  this.compositeErrorRegistry = compositeErrorRegistry;
628
631
  }
629
- async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
632
+ async serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType, }) {
630
633
  const marshaller = this.marshaller;
631
634
  const eventStreamMember = requestSchema.getEventStreamMember();
632
635
  const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
@@ -637,7 +640,7 @@ class EventStreamSerde {
637
640
  async *[Symbol.asyncIterator]() {
638
641
  if (initialRequest) {
639
642
  const headers = {
640
- ":event-type": { type: "string", value: "initial-request" },
643
+ ":event-type": { type: "string", value: initialMessageType ?? "initial-request" },
641
644
  ":message-type": { type: "string", value: "event" },
642
645
  ":content-type": { type: "string", value: defaultContentType },
643
646
  };
@@ -663,6 +666,8 @@ class EventStreamSerde {
663
666
  }
664
667
  let unionMember = "";
665
668
  for (const key in event) {
669
+ if (!hasOwn(event, key))
670
+ continue;
666
671
  if (key !== "__type") {
667
672
  unionMember = key;
668
673
  break;
@@ -681,7 +686,7 @@ class EventStreamSerde {
681
686
  };
682
687
  });
683
688
  }
684
- async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) {
689
+ async deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType, }) {
685
690
  const marshaller = this.marshaller;
686
691
  const eventStreamMember = responseSchema.getEventStreamMember();
687
692
  const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
@@ -690,13 +695,15 @@ class EventStreamSerde {
690
695
  const asyncIterable = marshaller.deserialize(response.body, async (event) => {
691
696
  let unionMember = "";
692
697
  for (const key in event) {
698
+ if (!hasOwn(event, key))
699
+ continue;
693
700
  if (key !== "__type") {
694
701
  unionMember = key;
695
702
  break;
696
703
  }
697
704
  }
698
705
  const body = event[unionMember].body;
699
- if (unionMember === "initial-response") {
706
+ if (unionMember === (initialMessageType ?? "initial-response")) {
700
707
  const dataObject = await this.deserializer.read(responseSchema, body);
701
708
  delete dataObject[eventStreamMember];
702
709
  return {
@@ -764,6 +771,8 @@ class EventStreamSerde {
764
771
  throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
765
772
  }
766
773
  for (const key in firstEvent.value) {
774
+ if (!hasOwn(firstEvent.value, key))
775
+ continue;
767
776
  initialResponseContainer[key] = firstEvent.value[key];
768
777
  }
769
778
  }
@@ -1,12 +1,12 @@
1
1
  const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require("@smithy/core/serde");
2
- const { TypeRegistry, NormalizedSchema, translateTraits } = require("@smithy/core/schema");
3
- const { HttpRequest, HttpResponse, isValidHostname } = require("@smithy/core/transport");
2
+ const { HttpRequest, HttpResponse, hasOwn, isValidHostname } = require("@smithy/core/transport");
4
3
  const { parseQueryString, parseUrl } = require("@smithy/core/transport");
5
4
  exports.HttpRequest = HttpRequest;
6
5
  exports.HttpResponse = HttpResponse;
7
6
  exports.isValidHostname = isValidHostname;
8
7
  exports.parseQueryString = parseQueryString;
9
8
  exports.parseUrl = parseUrl;
9
+ const { TypeRegistry, NormalizedSchema, translateTraits } = require("@smithy/core/schema");
10
10
  const { FieldPosition } = require("@smithy/types");
11
11
 
12
12
  const collectBody = async (streamBody = new Uint8Array(), context) => {
@@ -75,6 +75,8 @@ class HttpProtocol extends SerdeContext {
75
75
  }
76
76
  if (endpoint.headers) {
77
77
  for (const name in endpoint.headers) {
78
+ if (!hasOwn(endpoint.headers, name))
79
+ continue;
78
80
  request.headers[name] = endpoint.headers[name].join(", ");
79
81
  }
80
82
  }
@@ -90,6 +92,8 @@ class HttpProtocol extends SerdeContext {
90
92
  };
91
93
  if (endpoint.headers) {
92
94
  for (const name in endpoint.headers) {
95
+ if (!hasOwn(endpoint.headers, name))
96
+ continue;
93
97
  request.headers[name] = endpoint.headers[name];
94
98
  }
95
99
  }
@@ -269,6 +273,8 @@ class HttpBindingProtocol extends HttpProtocol {
269
273
  }
270
274
  else if (typeof memberTraits.httpPrefixHeaders === "string") {
271
275
  for (const key in inputMemberValue) {
276
+ if (!hasOwn(inputMemberValue, key))
277
+ continue;
272
278
  const val = inputMemberValue[key];
273
279
  const amalgam = memberTraits.httpPrefixHeaders + key;
274
280
  serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
@@ -315,6 +321,8 @@ class HttpBindingProtocol extends HttpProtocol {
315
321
  const traits = ns.getMergedTraits();
316
322
  if (traits.httpQueryParams) {
317
323
  for (const key in data) {
324
+ if (!hasOwn(data, key))
325
+ continue;
318
326
  if (!(key in query)) {
319
327
  const val = data[key];
320
328
  const valueSchema = ns.getValueSchema();
@@ -358,6 +366,8 @@ class HttpBindingProtocol extends HttpProtocol {
358
366
  throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
359
367
  }
360
368
  for (const header in response.headers) {
369
+ if (!hasOwn(response.headers, header))
370
+ continue;
361
371
  const value = response.headers[header];
362
372
  delete response.headers[header];
363
373
  response.headers[header.toLowerCase()] = value;
@@ -445,6 +455,8 @@ class HttpBindingProtocol extends HttpProtocol {
445
455
  else if (memberTraits.httpPrefixHeaders !== undefined) {
446
456
  dataObject[memberName] = {};
447
457
  for (const header in response.headers) {
458
+ if (!hasOwn(response.headers, header))
459
+ continue;
448
460
  if (header.startsWith(memberTraits.httpPrefixHeaders)) {
449
461
  const value = response.headers[header];
450
462
  const valueSchema = memberSchema.getValueSchema();
@@ -494,10 +506,9 @@ class RpcProtocol extends HttpProtocol {
494
506
  if (eventStreamMember) {
495
507
  if (input[eventStreamMember]) {
496
508
  const initialRequest = {};
497
- for (const [memberName, memberSchema] of ns.structIterator()) {
498
- if (memberName !== eventStreamMember && input[memberName]) {
499
- serializer.write(memberSchema, input[memberName]);
500
- initialRequest[memberName] = serializer.flush();
509
+ for (const [memberName] of ns.structIterator()) {
510
+ if (memberName !== eventStreamMember && input[memberName] != null) {
511
+ initialRequest[memberName] = input[memberName];
501
512
  }
502
513
  }
503
514
  payload = await this.serializeEventStream({
@@ -531,6 +542,8 @@ class RpcProtocol extends HttpProtocol {
531
542
  throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
532
543
  }
533
544
  for (const header in response.headers) {
545
+ if (!hasOwn(response.headers, header))
546
+ continue;
534
547
  const value = response.headers[header];
535
548
  delete response.headers[header];
536
549
  response.headers[header.toLowerCase()] = value;
@@ -928,24 +941,27 @@ class Fields {
928
941
  }
929
942
 
930
943
  const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
944
+ if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
945
+ runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
946
+ }
931
947
  return {
932
948
  setHttpHandler(handler) {
933
- runtimeConfig.httpHandler = handler;
949
+ runtimeConfig.requestHandler = handler;
934
950
  },
935
951
  httpHandler() {
936
- return runtimeConfig.httpHandler;
952
+ return runtimeConfig.requestHandler;
937
953
  },
938
954
  updateHttpClientConfig(key, value) {
939
- runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
955
+ runtimeConfig.requestHandler?.updateHttpClientConfig(key, value);
940
956
  },
941
957
  httpHandlerConfigs() {
942
- return runtimeConfig.httpHandler.httpHandlerConfigs();
958
+ return runtimeConfig.requestHandler.httpHandlerConfigs();
943
959
  },
944
960
  };
945
961
  };
946
962
  const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
947
963
  return {
948
- httpHandler: httpHandlerExtensionConfiguration.httpHandler(),
964
+ requestHandler: httpHandlerExtensionConfiguration.httpHandler(),
949
965
  };
950
966
  };
951
967
 
@@ -961,10 +977,12 @@ function contentLengthMiddleware(bodyLengthChecker) {
961
977
  .indexOf(CONTENT_LENGTH_HEADER) === -1) {
962
978
  try {
963
979
  const length = bodyLengthChecker(body);
964
- request.headers = {
965
- ...request.headers,
966
- [CONTENT_LENGTH_HEADER]: String(length),
967
- };
980
+ if (length != null) {
981
+ request.headers = {
982
+ ...request.headers,
983
+ [CONTENT_LENGTH_HEADER]: String(length),
984
+ };
985
+ }
968
986
  }
969
987
  catch (ignored) {
970
988
  }
@@ -1,6 +1,7 @@
1
1
  const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
2
2
  const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
3
3
  const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
4
+ const { hasOwn } = require("@smithy/core/transport");
4
5
 
5
6
  const isStreamingPayload = (request) => request?.body instanceof ReadableStream;
6
7
 
@@ -92,7 +93,9 @@ function parseRetryAfterHeader(response, logger) {
92
93
  if (!HttpResponse.isInstance(response)) {
93
94
  return;
94
95
  }
95
- for (const header of Object.keys(response.headers)) {
96
+ for (const header in response.headers) {
97
+ if (!hasOwn(response.headers, header))
98
+ continue;
96
99
  const h = header.toLowerCase();
97
100
  if (h === "retry-after") {
98
101
  const retryAfter = response.headers[header];
@@ -2,6 +2,7 @@ const { Readable } = require("node:stream");
2
2
  const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
3
3
  const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
4
4
  const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
5
+ const { hasOwn } = require("@smithy/core/transport");
5
6
 
6
7
  const isStreamingPayload = (request) => request?.body instanceof Readable ||
7
8
  (typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream);
@@ -94,7 +95,9 @@ function parseRetryAfterHeader(response, logger) {
94
95
  if (!HttpResponse.isInstance(response)) {
95
96
  return;
96
97
  }
97
- for (const header of Object.keys(response.headers)) {
98
+ for (const header in response.headers) {
99
+ if (!hasOwn(response.headers, header))
100
+ continue;
98
101
  const h = header.toLowerCase();
99
102
  if (h === "retry-after") {
100
103
  const retryAfter = response.headers[header];
@@ -140,8 +140,6 @@ class Schema {
140
140
 
141
141
  class ListSchema extends Schema {
142
142
  static symbol = Symbol.for("@smithy/lis");
143
- name;
144
- traits;
145
143
  valueSchema;
146
144
  symbol = ListSchema.symbol;
147
145
  }
@@ -154,8 +152,6 @@ const list = (namespace, name, traits, valueSchema) => Schema.assign(new ListSch
154
152
 
155
153
  class MapSchema extends Schema {
156
154
  static symbol = Symbol.for("@smithy/map");
157
- name;
158
- traits;
159
155
  keySchema;
160
156
  valueSchema;
161
157
  symbol = MapSchema.symbol;
@@ -170,8 +166,6 @@ const map = (namespace, name, traits, keySchema, valueSchema) => Schema.assign(n
170
166
 
171
167
  class OperationSchema extends Schema {
172
168
  static symbol = Symbol.for("@smithy/ope");
173
- name;
174
- traits;
175
169
  input;
176
170
  output;
177
171
  symbol = OperationSchema.symbol;
@@ -186,8 +180,6 @@ const op = (namespace, name, traits, input, output) => Schema.assign(new Operati
186
180
 
187
181
  class StructureSchema extends Schema {
188
182
  static symbol = Symbol.for("@smithy/str");
189
- name;
190
- traits;
191
183
  memberNames;
192
184
  memberList;
193
185
  symbol = StructureSchema.symbol;
@@ -545,9 +537,7 @@ const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
545
537
 
546
538
  class SimpleSchema extends Schema {
547
539
  static symbol = Symbol.for("@smithy/sim");
548
- name;
549
540
  schemaRef;
550
- traits;
551
541
  symbol = SimpleSchema.symbol;
552
542
  }
553
543
  const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
@@ -1,4 +1,5 @@
1
- const { HttpResponse } = require("@smithy/core/transport");
1
+ const { hasOwn, HttpResponse } = require("@smithy/core/transport");
2
+ exports.hasOwn = hasOwn;
2
3
  const { toEndpointV1 } = require("@smithy/core/endpoints");
3
4
 
4
5
  const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
@@ -291,6 +292,8 @@ const expectUnion = (value) => {
291
292
  const asObject = expectObject(value);
292
293
  const setKeys = [];
293
294
  for (const k in asObject) {
295
+ if (!hasOwn(asObject, k))
296
+ continue;
294
297
  if (asObject[k] != null) {
295
298
  setKeys.push(k);
296
299
  }
@@ -1,6 +1,7 @@
1
1
  const { createHmac, createHash, getRandomValues } = require("node:crypto");
2
+ const { hasOwn, HttpResponse } = require("@smithy/core/transport");
3
+ exports.hasOwn = hasOwn;
2
4
  const { ReadStream, lstatSync, fstatSync } = require("node:fs");
3
- const { HttpResponse } = require("@smithy/core/transport");
4
5
  const { toEndpointV1 } = require("@smithy/core/endpoints");
5
6
  const { Readable, Writable, PassThrough } = require("node:stream");
6
7
 
@@ -259,6 +260,8 @@ const expectUnion = (value) => {
259
260
  const asObject = expectObject(value);
260
261
  const setKeys = [];
261
262
  for (const k in asObject) {
263
+ if (!hasOwn(asObject, k))
264
+ continue;
262
265
  if (asObject[k] != null) {
263
266
  setKeys.push(k);
264
267
  }
@@ -1,4 +1,5 @@
1
- const { HttpResponse } = require("@smithy/core/transport");
1
+ const { hasOwn, HttpResponse } = require("@smithy/core/transport");
2
+ exports.hasOwn = hasOwn;
2
3
  const { toEndpointV1 } = require("@smithy/core/endpoints");
3
4
 
4
5
  const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
@@ -291,6 +292,8 @@ const expectUnion = (value) => {
291
292
  const asObject = expectObject(value);
292
293
  const setKeys = [];
293
294
  for (const k in asObject) {
295
+ if (!hasOwn(asObject, k))
296
+ continue;
294
297
  if (asObject[k] != null) {
295
298
  setKeys.push(k);
296
299
  }
@@ -2,6 +2,10 @@ const { SMITHY_CONTEXT_KEY } = require("@smithy/types");
2
2
 
3
3
  const getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
4
4
 
5
+ function hasOwn(o, k) {
6
+ return Object.prototype.hasOwnProperty.call(o, k);
7
+ }
8
+
5
9
  class HttpRequest {
6
10
  method;
7
11
  protocol;
@@ -161,6 +165,8 @@ const toEndpointV1 = (endpoint) => {
161
165
  if (endpoint.headers) {
162
166
  v1Endpoint.headers = {};
163
167
  for (const name in endpoint.headers) {
168
+ if (!hasOwn(endpoint.headers, name))
169
+ continue;
164
170
  v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
165
171
  }
166
172
  }
@@ -174,6 +180,7 @@ const toEndpointV1 = (endpoint) => {
174
180
  exports.HttpRequest = HttpRequest;
175
181
  exports.HttpResponse = HttpResponse;
176
182
  exports.getSmithyContext = getSmithyContext;
183
+ exports.hasOwn = hasOwn;
177
184
  exports.isValidHostLabel = isValidHostLabel;
178
185
  exports.isValidHostname = isValidHostname;
179
186
  exports.normalizeProvider = normalizeProvider;
@@ -1,7 +1,10 @@
1
+ import { hasOwn } from "@smithy/core/transport";
1
2
  export class DefaultIdentityProviderConfig {
2
3
  authSchemes = new Map();
3
4
  constructor(config) {
4
5
  for (const key in config) {
6
+ if (!hasOwn(config, key))
7
+ continue;
5
8
  const value = config[key];
6
9
  if (value !== undefined) {
7
10
  this.authSchemes.set(key, value);
@@ -32,10 +32,9 @@ export class SmithyRpcV2CborProtocol extends RpcProtocol {
32
32
  this.serializer.write(15, {});
33
33
  request.body = this.serializer.flush();
34
34
  }
35
- try {
35
+ if (request.body instanceof Uint8Array) {
36
36
  request.headers["content-length"] = String(request.body.byteLength);
37
37
  }
38
- catch (ignored) { }
39
38
  }
40
39
  const { service, operation } = getSmithyContext(context);
41
40
  const path = `/service/${service}/operation/${operation}`;
@@ -271,23 +271,39 @@ function decodeTagValue(at, to, minor, unsignedInt, offset) {
271
271
  }
272
272
  else if (minor === 4) {
273
273
  const decimalFraction = decode(at + offset, to);
274
- const [exponent, mantissa] = decimalFraction;
274
+ const [rawExponent, mantissa] = decimalFraction;
275
275
  const normalizer = mantissa < 0 ? -1 : 1;
276
- const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + String(BigInt(normalizer) * BigInt(mantissa));
277
- let numericString;
276
+ const absMantissa = BigInt(normalizer) * BigInt(mantissa);
277
+ const mantissaDigits = String(absMantissa);
278
278
  const sign = mantissa < 0 ? "-" : "";
279
- numericString =
280
- exponent === 0
281
- ? mantissaStr
282
- : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
283
- numericString = numericString.replace(/^0+/g, "");
284
- if (numericString === "") {
285
- numericString = "0";
279
+ let numericString;
280
+ const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
281
+ if (isSmallExponent) {
282
+ const exponent = rawExponent;
283
+ const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
284
+ numericString =
285
+ exponent === 0
286
+ ? mantissaStr
287
+ : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
288
+ numericString = numericString.replace(/^0+/g, "");
289
+ if (numericString === "") {
290
+ numericString = "0";
291
+ }
292
+ if (numericString[0] === ".") {
293
+ numericString = "0" + numericString;
294
+ }
295
+ numericString = sign + numericString;
286
296
  }
287
- if (numericString[0] === ".") {
288
- numericString = "0" + numericString;
297
+ else {
298
+ const bigExponent = BigInt(rawExponent);
299
+ if (mantissaDigits.length === 1) {
300
+ numericString = sign + mantissaDigits + "e" + String(bigExponent);
301
+ }
302
+ else {
303
+ const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
304
+ numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
305
+ }
289
306
  }
290
- numericString = sign + numericString;
291
307
  _offset = offset + _offset;
292
308
  return nv(numericString);
293
309
  }
@@ -155,13 +155,21 @@ export function encode(_input) {
155
155
  }
156
156
  else if (typeof input === "object") {
157
157
  if (input instanceof NumericValue) {
158
- const decimalIndex = input.string.indexOf(".");
159
- const exponent = decimalIndex === -1 ? 0 : decimalIndex - input.string.length + 1;
160
- const mantissa = BigInt(input.string.replace(".", ""));
158
+ let str = input.string;
159
+ let expOffset = BigInt(0);
160
+ const eIndex = str.search(/[eE]/);
161
+ if (eIndex !== -1) {
162
+ expOffset = BigInt(str.slice(eIndex + 1));
163
+ str = str.slice(0, eIndex);
164
+ }
165
+ const decimalIndex = str.indexOf(".");
166
+ const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
167
+ const exponent = expOffset - BigInt(fractionDigits);
168
+ const mantissa = BigInt(str.replace(".", ""));
161
169
  data[cursor++] = 0b110_00100;
162
170
  encodeInteger(majorList, 2);
163
171
  encodeStack.push(mantissa);
164
- encodeStack.push(exponent);
172
+ encodeStack.push(exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn ? Number(exponent) : exponent);
165
173
  continue;
166
174
  }
167
175
  if (input[tagSymbol]) {