@cdklabs/cdk-construct-connect-datalake 0.0.19 → 0.0.21

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 (355) hide show
  1. package/.jsii +9 -9
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +2 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +1 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +7 -3
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  16. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  17. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +1 -1
  18. package/node_modules/@aws-sdk/client-connect/dist-types/commands/AssociateContactWithUserCommand.d.ts +5 -1
  19. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +11 -3
  20. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +3 -1
  21. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +9 -2
  22. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.browser.d.ts +2 -0
  23. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.d.ts +2 -0
  24. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.native.d.ts +2 -0
  25. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  27. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  28. package/node_modules/@aws-sdk/client-connect/package.json +6 -6
  29. package/node_modules/@aws-sdk/client-glue/README.md +7 -0
  30. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +295 -118
  31. package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +2 -0
  32. package/node_modules/@aws-sdk/client-glue/dist-es/commands/BatchGetDataQualityRulesetEvaluationRunCommand.js +4 -0
  33. package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +1 -0
  34. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +30 -13
  35. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +243 -104
  36. package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +7 -0
  37. package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +3 -2
  38. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityResultCommand.d.ts +11 -0
  39. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +202 -0
  40. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateClassifierCommand.d.ts +1 -1
  41. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateConnectionCommand.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCrawlerCommand.d.ts +1 -2
  44. package/node_modules/@aws-sdk/client-glue/dist-types/commands/DescribeConnectionTypeCommand.d.ts +68 -0
  45. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -1
  46. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelCommand.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelResultCommand.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityResultCommand.d.ts +12 -1
  49. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +4 -1
  50. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetCommand.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
  52. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataflowGraphCommand.d.ts +1 -1
  53. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityRuleRecommendationRunsCommand.d.ts +4 -0
  54. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityStatisticsCommand.d.ts +9 -0
  55. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RegisterConnectionTypeCommand.d.ts +67 -0
  56. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchAssetsCommand.d.ts +1 -2
  57. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +1 -2
  58. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartBlueprintRunCommand.d.ts +1 -1
  59. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartCrawlerCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +3 -0
  63. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
  64. package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +1 -0
  65. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +78 -29
  66. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +305 -439
  67. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +3890 -3703
  68. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +416 -308
  69. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +301 -4
  70. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.browser.d.ts +2 -0
  71. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.d.ts +2 -0
  72. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.native.d.ts +2 -0
  73. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +16 -0
  74. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +17 -0
  75. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +6 -0
  76. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +42 -0
  77. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateClassifierCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCrawlerCommand.d.ts +1 -2
  81. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -4
  82. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelCommand.d.ts +1 -1
  83. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelResultCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityResultCommand.d.ts +1 -1
  85. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRulesetCommand.d.ts +1 -1
  87. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataflowGraphCommand.d.ts +1 -1
  88. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchAssetsCommand.d.ts +1 -2
  89. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchTablesCommand.d.ts +1 -2
  90. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartBlueprintRunCommand.d.ts +1 -1
  91. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
  92. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartCrawlerCommand.d.ts +1 -1
  94. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +1 -0
  95. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +38 -16
  96. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +74 -76
  97. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +113 -101
  98. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +109 -79
  99. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +77 -4
  100. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  101. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  102. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  103. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
  104. package/node_modules/@aws-sdk/client-glue/package.json +6 -6
  105. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
  106. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  107. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.d.ts +2 -0
  108. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.native.d.ts +2 -0
  109. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  110. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  111. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  112. package/node_modules/@aws-sdk/client-lakeformation/package.json +6 -6
  113. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
  114. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.browser.d.ts +2 -0
  115. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.d.ts +2 -0
  116. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.native.d.ts +2 -0
  117. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  118. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  119. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  120. package/node_modules/@aws-sdk/client-ram/package.json +6 -6
  121. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  122. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -0
  123. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -0
  124. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -0
  125. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  126. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  127. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  128. package/node_modules/@aws-sdk/client-sts/package.json +8 -8
  129. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +66 -28
  130. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +989 -72
  131. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
  132. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
  133. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
  134. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
  135. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
  136. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
  137. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
  138. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
  139. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +5 -1
  140. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
  141. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
  142. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
  143. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
  144. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
  145. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  146. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  147. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
  148. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
  149. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
  150. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +14 -5
  151. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +12 -2
  152. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
  153. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
  154. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +200 -0
  155. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +489 -0
  156. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
  157. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
  158. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
  159. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
  160. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js +3 -0
  161. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
  162. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  163. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  164. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  165. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  166. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  167. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
  168. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  169. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
  170. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  171. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
  172. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  173. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
  174. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  175. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  176. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  177. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  178. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
  179. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
  180. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
  181. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
  182. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
  183. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  184. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
  185. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
  186. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
  187. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  188. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
  189. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  190. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  191. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -0
  192. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -0
  193. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -0
  194. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -0
  195. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  196. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +7 -6
  197. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -0
  198. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +10 -2
  199. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +1 -0
  200. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +2 -0
  201. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  202. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -6
  203. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  204. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  205. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  206. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  207. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
  208. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +3 -5
  209. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
  210. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +2 -2
  211. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +2 -2
  212. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
  213. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
  214. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
  215. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
  216. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  217. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -0
  218. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  219. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -0
  220. package/node_modules/@aws-sdk/core/package.json +11 -6
  221. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  222. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  223. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  224. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  225. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  226. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  227. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  228. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  229. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  230. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  231. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  232. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  233. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  234. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  235. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  236. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  237. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  238. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -0
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -0
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -0
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -0
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -0
  248. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -0
  249. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  250. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  251. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  252. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  253. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -0
  254. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -0
  255. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  256. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -0
  257. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -0
  258. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  259. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  260. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  261. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  262. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +2 -0
  263. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -0
  264. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  265. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  266. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  267. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +14 -4
  268. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +14 -4
  269. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  270. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1562 -338
  271. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
  272. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
  273. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
  274. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +1 -0
  275. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +1 -0
  276. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  277. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  278. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  279. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
  280. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -1
  281. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
  282. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
  283. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
  284. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
  285. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
  286. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
  287. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
  288. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
  289. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
  290. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -2
  291. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
  292. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  293. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  294. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  295. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  296. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  297. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
  298. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  299. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
  300. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
  301. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  302. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  303. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  304. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  305. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  306. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
  307. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  308. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
  309. package/node_modules/@smithy/core/package.json +2 -1
  310. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  311. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  312. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  313. package/node_modules/@smithy/signature-v4/package.json +2 -2
  314. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.js +4 -4
  315. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.min.js +1 -1
  316. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/omap.js +3 -3
  317. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/package.json +1 -1
  318. package/node_modules/xml2js/node_modules/sax/lib/sax.js +27 -9
  319. package/node_modules/xml2js/node_modules/sax/package.json +1 -1
  320. package/package.json +12 -12
  321. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
  322. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
  323. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
  324. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/LICENSE +0 -0
  325. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/README.md +0 -0
  326. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/bin/js-yaml.js +0 -0
  327. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/index.js +0 -0
  328. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/common.js +0 -0
  329. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/dumper.js +0 -0
  330. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/exception.js +0 -0
  331. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/loader.js +0 -0
  332. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/mark.js +0 -0
  333. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/core.js +0 -0
  334. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_full.js +0 -0
  335. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_safe.js +0 -0
  336. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/failsafe.js +0 -0
  337. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/json.js +0 -0
  338. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema.js +0 -0
  339. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/binary.js +0 -0
  340. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/bool.js +0 -0
  341. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/float.js +0 -0
  342. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/int.js +0 -0
  343. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/function.js +0 -0
  344. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/regexp.js +0 -0
  345. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/undefined.js +0 -0
  346. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/map.js +0 -0
  347. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/merge.js +0 -0
  348. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/null.js +0 -0
  349. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/pairs.js +0 -0
  350. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/seq.js +0 -0
  351. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/set.js +0 -0
  352. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/str.js +0 -0
  353. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/timestamp.js +0 -0
  354. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type.js +0 -0
  355. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml.js +0 -0
@@ -0,0 +1,602 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
+ import { NumericValue, fromBase64, generateIdempotencyToken } from "@smithy/core/serde";
4
+ import { extendedFloat16, extendedFloat32, extendedFloat64, majorList, majorMap, majorNegativeInt64, majorSpecial, majorTag, majorUint64, majorUnstructuredByteString, majorUtf8String, specialFalse, specialNull, specialTrue, tagSymbol, } from "../cbor-types";
5
+ export class CborShapeSerializer2 extends SerdeContext {
6
+ write(schema, value) {
7
+ cursor = 0;
8
+ const ns = NormalizedSchema.of(schema);
9
+ writeValue(ns, value, undefined, this.serdeContext);
10
+ }
11
+ flush() {
12
+ const result = buf.subarray(0, cursor);
13
+ cursor = 0;
14
+ buf = allocUnsafe(INITIAL_BUFFER_SIZE);
15
+ view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
16
+ return result;
17
+ }
18
+ }
19
+ export function advanceSinglePassEncodingEpoch() {
20
+ encodeCacheEpoch = (encodeCacheEpoch + 1) & 0xffff;
21
+ encodeCacheSaturated = false;
22
+ }
23
+ const CBOR_STRUCT_CACHE = Symbol.for("@smithy/cbor-struct-cache");
24
+ export function loadCborStructIterator(ns) {
25
+ const schema = ns.getSchema();
26
+ const existing = schema[CBOR_STRUCT_CACHE];
27
+ if (existing) {
28
+ return existing;
29
+ }
30
+ const memberNames = [];
31
+ const memberSchemas = [];
32
+ for (const [name, memberSchema] of ns.structIterator()) {
33
+ memberNames.push(name);
34
+ memberSchemas.push(memberSchema);
35
+ }
36
+ const encodedKeys = new Array(memberNames.length);
37
+ for (let i = 0; i < memberNames.length; ++i) {
38
+ encodedKeys[i] = encodeCborStringKey(memberNames[i]);
39
+ }
40
+ const cache = { memberNames, memberSchemas, encodedKeys };
41
+ schema[CBOR_STRUCT_CACHE] = cache;
42
+ return cache;
43
+ }
44
+ function encodeCborStringKey(s) {
45
+ let utf8Bytes;
46
+ if (USE_BUFFER) {
47
+ utf8Bytes = Buffer.from(s, "utf-8");
48
+ }
49
+ else {
50
+ utf8Bytes = new TextEncoder().encode(s);
51
+ }
52
+ const byteLen = utf8Bytes.length;
53
+ let headerSize;
54
+ if (byteLen < 24) {
55
+ headerSize = 1;
56
+ }
57
+ else if (byteLen < 256) {
58
+ headerSize = 2;
59
+ }
60
+ else {
61
+ headerSize = 3;
62
+ }
63
+ const result = new Uint8Array(headerSize + byteLen);
64
+ if (headerSize === 1) {
65
+ result[0] = (majorUtf8String << 5) | byteLen;
66
+ }
67
+ else if (headerSize === 2) {
68
+ result[0] = (majorUtf8String << 5) | 24;
69
+ result[1] = byteLen;
70
+ }
71
+ else {
72
+ result[0] = (majorUtf8String << 5) | extendedFloat16;
73
+ result[1] = byteLen >> 8;
74
+ result[2] = byteLen & 0xff;
75
+ }
76
+ result.set(utf8Bytes, headerSize);
77
+ return result;
78
+ }
79
+ const USE_BUFFER = typeof Buffer !== "undefined";
80
+ const textEncoder = new TextEncoder();
81
+ const INITIAL_BUFFER_SIZE = 2048;
82
+ let buf = USE_BUFFER ? Buffer.allocUnsafe(INITIAL_BUFFER_SIZE) : new Uint8Array(INITIAL_BUFFER_SIZE);
83
+ let view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
84
+ let cursor = 0;
85
+ const STRING_CACHE_MAX = 2048;
86
+ const stringEncodeCache = new Map();
87
+ let encodeCacheEpoch = 0;
88
+ let encodeCacheSaturated = false;
89
+ function allocUnsafe(size) {
90
+ return USE_BUFFER ? Buffer.allocUnsafe(size) : new Uint8Array(size);
91
+ }
92
+ function writeValue(ns, value, container, serdeContext) {
93
+ if (value == null) {
94
+ if (value === undefined && ns.isIdempotencyToken()) {
95
+ writeString(generateIdempotencyToken());
96
+ return;
97
+ }
98
+ ensure(1);
99
+ buf[cursor++] = (majorSpecial << 5) | specialNull;
100
+ return;
101
+ }
102
+ if (ns.isUnitSchema()) {
103
+ ensure(1);
104
+ encodeHeader(majorMap, 0);
105
+ return;
106
+ }
107
+ const isObject = typeof value === "object";
108
+ if (isObject) {
109
+ if (ns.isBlobSchema()) {
110
+ if (value instanceof Uint8Array) {
111
+ writeBytes(value);
112
+ return;
113
+ }
114
+ }
115
+ if (ns.isTimestampSchema()) {
116
+ if (value instanceof Date) {
117
+ writeTimestamp(value);
118
+ return;
119
+ }
120
+ }
121
+ if (ns.isStructSchema()) {
122
+ writeStruct(ns, value, serdeContext);
123
+ return;
124
+ }
125
+ if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) {
126
+ writeList(ns, value, ns.isDocumentSchema(), serdeContext);
127
+ return;
128
+ }
129
+ if (ns.isMapSchema()) {
130
+ writeMap(ns, value, false, serdeContext);
131
+ return;
132
+ }
133
+ if (value instanceof Date) {
134
+ writeTimestamp(value);
135
+ return;
136
+ }
137
+ if (value instanceof Uint8Array) {
138
+ writeBytes(value);
139
+ return;
140
+ }
141
+ if (value instanceof NumericValue) {
142
+ writeNumericValue(value);
143
+ return;
144
+ }
145
+ if (value[tagSymbol]) {
146
+ const tagged = value;
147
+ writeTag(tagged.tag, tagged.value);
148
+ return;
149
+ }
150
+ if (ns.isDocumentSchema()) {
151
+ if (Array.isArray(value)) {
152
+ writeList(ns, value, true, serdeContext);
153
+ }
154
+ else {
155
+ writeMap(ns, value, true, serdeContext);
156
+ }
157
+ return;
158
+ }
159
+ if (ns.isBigDecimalSchema()) {
160
+ writeUntypedValue(value);
161
+ return;
162
+ }
163
+ writeMap(ns, value, true, serdeContext);
164
+ return;
165
+ }
166
+ if (typeof value === "string") {
167
+ if (ns.isBlobSchema()) {
168
+ const bytes = (serdeContext?.base64Decoder ?? fromBase64)(value);
169
+ writeBytes(bytes);
170
+ return;
171
+ }
172
+ writeString(value);
173
+ return;
174
+ }
175
+ if (typeof value === "number") {
176
+ ensure(9);
177
+ if (Number.isInteger(value) && value >= -0x20000000000000 && value <= 0x1fffffffffffff) {
178
+ writeInteger(value);
179
+ }
180
+ else {
181
+ writeFloat64(value);
182
+ }
183
+ return;
184
+ }
185
+ if (typeof value === "boolean") {
186
+ ensure(1);
187
+ buf[cursor++] = (majorSpecial << 5) | (value ? specialTrue : specialFalse);
188
+ return;
189
+ }
190
+ if (typeof value === "bigint") {
191
+ writeBigInt(value);
192
+ return;
193
+ }
194
+ writeString(String(value));
195
+ }
196
+ function writeStruct(ns, value, serdeContext) {
197
+ if (ns.isUnionSchema()) {
198
+ let wrote = false;
199
+ for (const [memberName, memberSchema] of ns.structIterator()) {
200
+ const item = value[memberName];
201
+ if (item != null) {
202
+ ensure(9);
203
+ encodeHeader(majorMap, 1);
204
+ writeString(memberName);
205
+ writeValue(memberSchema, item, ns, serdeContext);
206
+ wrote = true;
207
+ break;
208
+ }
209
+ }
210
+ if (!wrote) {
211
+ const { $unknown } = value;
212
+ if (Array.isArray($unknown)) {
213
+ ensure(9);
214
+ encodeHeader(majorMap, 1);
215
+ writeString($unknown[0]);
216
+ writeUntypedValue($unknown[1]);
217
+ }
218
+ else {
219
+ ensure(9);
220
+ encodeHeader(majorMap, 0);
221
+ }
222
+ }
223
+ return;
224
+ }
225
+ const cache = loadCborStructIterator(ns);
226
+ const { memberNames, memberSchemas, encodedKeys } = cache;
227
+ const z = memberNames.length;
228
+ let headerSize;
229
+ if (z < 24) {
230
+ headerSize = 1;
231
+ }
232
+ else if (z < 256) {
233
+ headerSize = 2;
234
+ }
235
+ else {
236
+ headerSize = 3;
237
+ }
238
+ ensure(headerSize);
239
+ const headerPos = cursor;
240
+ cursor += headerSize;
241
+ let count = 0;
242
+ for (let i = 0; i < z; ++i) {
243
+ const item = value[memberNames[i]];
244
+ if (item == null && !memberSchemas[i].isIdempotencyToken()) {
245
+ continue;
246
+ }
247
+ const key = encodedKeys[i];
248
+ ensure(key.length);
249
+ buf.set(key, cursor);
250
+ cursor += key.length;
251
+ writeValue(memberSchemas[i], item, ns, serdeContext);
252
+ ++count;
253
+ }
254
+ if (typeof value.__type === "string") {
255
+ for (const k in value) {
256
+ if (!memberNames.includes(k)) {
257
+ writeString(k);
258
+ writeUntypedValue(value[k]);
259
+ ++count;
260
+ }
261
+ }
262
+ }
263
+ if (headerSize === 1) {
264
+ buf[headerPos] = (majorMap << 5) | count;
265
+ }
266
+ else if (headerSize === 2) {
267
+ buf[headerPos] = (majorMap << 5) | 24;
268
+ buf[headerPos + 1] = count;
269
+ }
270
+ else {
271
+ buf[headerPos] = (majorMap << 5) | extendedFloat16;
272
+ buf[headerPos + 1] = count >> 8;
273
+ buf[headerPos + 2] = count & 0xff;
274
+ }
275
+ }
276
+ function writeList(ns, value, isDocument, serdeContext) {
277
+ const sparse = !!ns.getMergedTraits().sparse;
278
+ const valueSchema = ns.getValueSchema();
279
+ if (isDocument || sparse) {
280
+ const items = [];
281
+ for (let i = 0; i < value.length; ++i) {
282
+ const item = value[i];
283
+ if (isDocument) {
284
+ if (item !== undefined) {
285
+ items.push(item);
286
+ }
287
+ }
288
+ else {
289
+ if (item != null || sparse) {
290
+ items.push(item);
291
+ }
292
+ }
293
+ }
294
+ ensure(9);
295
+ encodeHeader(majorList, items.length);
296
+ for (let i = 0; i < items.length; ++i) {
297
+ writeValue(valueSchema, items[i], undefined, serdeContext);
298
+ }
299
+ }
300
+ else {
301
+ let count = 0;
302
+ for (let i = 0; i < value.length; ++i) {
303
+ if (value[i] != null) {
304
+ ++count;
305
+ }
306
+ }
307
+ ensure(9);
308
+ encodeHeader(majorList, count);
309
+ for (let i = 0; i < value.length; ++i) {
310
+ if (value[i] != null) {
311
+ writeValue(valueSchema, value[i], undefined, serdeContext);
312
+ }
313
+ }
314
+ }
315
+ }
316
+ function writeMap(ns, value, isDocument, serdeContext) {
317
+ const sparse = !!ns.getMergedTraits().sparse;
318
+ const valueSchema = ns.getValueSchema();
319
+ const keys = [];
320
+ for (const k in value) {
321
+ const v = value[k];
322
+ if (isDocument ? v !== undefined : v != null || sparse) {
323
+ keys.push(k);
324
+ }
325
+ }
326
+ ensure(9);
327
+ encodeHeader(majorMap, keys.length);
328
+ for (let i = 0; i < keys.length; ++i) {
329
+ const k = keys[i];
330
+ writeString(k);
331
+ writeValue(valueSchema, value[k], undefined, serdeContext);
332
+ }
333
+ }
334
+ function writeUntypedValue(value) {
335
+ if (value == null) {
336
+ ensure(1);
337
+ buf[cursor++] = (majorSpecial << 5) | specialNull;
338
+ return;
339
+ }
340
+ if (typeof value === "string") {
341
+ writeString(value);
342
+ return;
343
+ }
344
+ if (typeof value === "number") {
345
+ ensure(9);
346
+ if (Number.isInteger(value) && value >= -0x20000000000000 && value <= 0x1fffffffffffff) {
347
+ writeInteger(value);
348
+ }
349
+ else {
350
+ writeFloat64(value);
351
+ }
352
+ return;
353
+ }
354
+ if (typeof value === "boolean") {
355
+ ensure(1);
356
+ buf[cursor++] = (majorSpecial << 5) | (value ? specialTrue : specialFalse);
357
+ return;
358
+ }
359
+ if (typeof value === "bigint") {
360
+ writeBigInt(value);
361
+ return;
362
+ }
363
+ if (value instanceof Uint8Array) {
364
+ writeBytes(value);
365
+ return;
366
+ }
367
+ if (value instanceof Date) {
368
+ writeTimestamp(value);
369
+ return;
370
+ }
371
+ if (value instanceof NumericValue) {
372
+ writeNumericValue(value);
373
+ return;
374
+ }
375
+ if (value[tagSymbol]) {
376
+ const tagged = value;
377
+ writeTag(tagged.tag, tagged.value);
378
+ return;
379
+ }
380
+ if (Array.isArray(value)) {
381
+ ensure(9);
382
+ encodeHeader(majorList, value.length);
383
+ for (let i = 0; i < value.length; ++i) {
384
+ writeUntypedValue(value[i]);
385
+ }
386
+ return;
387
+ }
388
+ if (typeof value === "object") {
389
+ const keys = Object.keys(value);
390
+ ensure(9);
391
+ encodeHeader(majorMap, keys.length);
392
+ for (let i = 0; i < keys.length; ++i) {
393
+ writeString(keys[i]);
394
+ writeUntypedValue(value[keys[i]]);
395
+ }
396
+ return;
397
+ }
398
+ writeString(String(value));
399
+ }
400
+ function ensure(n) {
401
+ if (cursor + n > buf.length) {
402
+ let newSize = buf.length * 2;
403
+ while (newSize < cursor + n) {
404
+ newSize *= 2;
405
+ }
406
+ const next = allocUnsafe(newSize);
407
+ next.set(buf.subarray(0, cursor));
408
+ buf = next;
409
+ view = new DataView(next.buffer, next.byteOffset, next.byteLength);
410
+ }
411
+ }
412
+ function encodeHeader(major, value) {
413
+ if (value < 24) {
414
+ buf[cursor++] = (major << 5) | value;
415
+ }
416
+ else if (value < 256) {
417
+ buf[cursor++] = (major << 5) | 24;
418
+ buf[cursor++] = value;
419
+ }
420
+ else if (value < 65536) {
421
+ buf[cursor++] = (major << 5) | extendedFloat16;
422
+ buf[cursor++] = value >> 8;
423
+ buf[cursor++] = value & 0xff;
424
+ }
425
+ else if (value < 4294967296) {
426
+ buf[cursor++] = (major << 5) | extendedFloat32;
427
+ view.setUint32(cursor, value);
428
+ cursor += 4;
429
+ }
430
+ else {
431
+ buf[cursor++] = (major << 5) | extendedFloat64;
432
+ const hi = (value / 4294967296) | 0;
433
+ const lo = (value - hi * 4294967296) | 0;
434
+ view.setUint32(cursor, hi);
435
+ view.setUint32(cursor + 4, lo);
436
+ cursor += 8;
437
+ }
438
+ }
439
+ function encodeBigHeader(major, value) {
440
+ const n = Number(value);
441
+ if (n < 4294967296) {
442
+ encodeHeader(major, n);
443
+ return;
444
+ }
445
+ buf[cursor++] = (major << 5) | extendedFloat64;
446
+ view.setBigUint64(cursor, value);
447
+ cursor += 8;
448
+ }
449
+ function writeString(s) {
450
+ const len = s.length;
451
+ if (len <= 23) {
452
+ const cached = stringEncodeCache.get(s);
453
+ if (cached) {
454
+ ensure(cached.bytes.length);
455
+ buf.set(cached.bytes, cursor);
456
+ cursor += cached.bytes.length;
457
+ cached.epoch = encodeCacheEpoch;
458
+ return;
459
+ }
460
+ const start = cursor;
461
+ writeStringUncached(s, len);
462
+ const end = cursor;
463
+ const bytes = Uint8Array.prototype.slice.call(buf, start, end);
464
+ if (stringEncodeCache.size >= STRING_CACHE_MAX) {
465
+ if (encodeCacheSaturated) {
466
+ return;
467
+ }
468
+ let evicted = 0;
469
+ for (const [key, entry] of stringEncodeCache) {
470
+ if (evicted >= 1024) {
471
+ break;
472
+ }
473
+ if (entry.epoch !== encodeCacheEpoch) {
474
+ stringEncodeCache.delete(key);
475
+ ++evicted;
476
+ }
477
+ }
478
+ if (evicted === 0) {
479
+ encodeCacheSaturated = true;
480
+ return;
481
+ }
482
+ }
483
+ if (stringEncodeCache.size < STRING_CACHE_MAX) {
484
+ stringEncodeCache.set(s, { epoch: encodeCacheEpoch, bytes });
485
+ }
486
+ return;
487
+ }
488
+ writeStringUncached(s, len);
489
+ }
490
+ function writeStringUncached(s, len) {
491
+ if (USE_BUFFER) {
492
+ const maxBytes = len * 3;
493
+ ensure(maxBytes + 9);
494
+ const byteLen = Buffer.byteLength(s);
495
+ encodeHeader(majorUtf8String, byteLen);
496
+ cursor += buf.write(s, cursor);
497
+ }
498
+ else {
499
+ const maxBytes = len * 3;
500
+ ensure(maxBytes + 9);
501
+ const headerPos = cursor;
502
+ const result = textEncoder.encodeInto(s, buf.subarray(headerPos + 9));
503
+ const byteLen = result.written;
504
+ let headerSize;
505
+ if (byteLen < 24) {
506
+ headerSize = 1;
507
+ }
508
+ else if (byteLen < 256) {
509
+ headerSize = 2;
510
+ }
511
+ else if (byteLen < 65536) {
512
+ headerSize = 3;
513
+ }
514
+ else if (byteLen < 4294967296) {
515
+ headerSize = 5;
516
+ }
517
+ else {
518
+ headerSize = 9;
519
+ }
520
+ if (headerSize < 9) {
521
+ buf.copyWithin(headerPos + headerSize, headerPos + 9, headerPos + 9 + byteLen);
522
+ }
523
+ cursor = headerPos;
524
+ encodeHeader(majorUtf8String, byteLen);
525
+ cursor += byteLen;
526
+ }
527
+ }
528
+ function writeFloat64(value) {
529
+ ensure(9);
530
+ buf[cursor++] = (majorSpecial << 5) | extendedFloat64;
531
+ view.setFloat64(cursor, value);
532
+ cursor += 8;
533
+ }
534
+ function writeInteger(value) {
535
+ ensure(9);
536
+ const nonNegative = value >= 0;
537
+ const major = nonNegative ? majorUint64 : majorNegativeInt64;
538
+ const abs = nonNegative ? value : -value - 1;
539
+ encodeHeader(major, abs);
540
+ }
541
+ function writeBigInt(value) {
542
+ const nonNegative = value >= 0;
543
+ const major = nonNegative ? majorUint64 : majorNegativeInt64;
544
+ const abs = nonNegative ? value : -value - BigInt(1);
545
+ if (abs < BigInt("18446744073709551616")) {
546
+ ensure(9);
547
+ encodeBigHeader(major, abs);
548
+ }
549
+ else {
550
+ const binaryStr = abs.toString(2);
551
+ const byteLen = Math.ceil(binaryStr.length / 8);
552
+ const bigIntBytes = new Uint8Array(byteLen);
553
+ let b = abs;
554
+ for (let i = byteLen - 1; i >= 0; --i) {
555
+ bigIntBytes[i] = Number(b & BigInt(255));
556
+ b >>= BigInt(8);
557
+ }
558
+ ensure(byteLen + 16);
559
+ buf[cursor++] = nonNegative ? 0b110_00010 : 0b110_00011;
560
+ encodeHeader(majorUnstructuredByteString, byteLen);
561
+ buf.set(bigIntBytes, cursor);
562
+ cursor += byteLen;
563
+ }
564
+ }
565
+ function writeBytes(data) {
566
+ ensure(data.length + 9);
567
+ encodeHeader(majorUnstructuredByteString, data.length);
568
+ buf.set(data, cursor);
569
+ cursor += data.length;
570
+ }
571
+ function writeTag(tagValue, innerValue) {
572
+ ensure(9);
573
+ if (typeof tagValue === "bigint") {
574
+ encodeBigHeader(majorTag, tagValue);
575
+ }
576
+ else {
577
+ encodeHeader(majorTag, tagValue);
578
+ }
579
+ writeUntypedValue(innerValue);
580
+ }
581
+ function writeNumericValue(nv) {
582
+ const decimalIndex = nv.string.indexOf(".");
583
+ const exponent = decimalIndex === -1 ? 0 : decimalIndex - nv.string.length + 1;
584
+ const mantissa = BigInt(nv.string.replace(".", ""));
585
+ ensure(9);
586
+ buf[cursor++] = 0b110_00100;
587
+ encodeHeader(majorList, 2);
588
+ ensure(9);
589
+ writeInteger(exponent);
590
+ writeBigInt(mantissa);
591
+ }
592
+ function writeTimestamp(date) {
593
+ ensure(18);
594
+ encodeHeader(majorTag, 1);
595
+ const epochSecs = date.getTime() / 1000;
596
+ if (Number.isInteger(epochSecs)) {
597
+ writeInteger(epochSecs);
598
+ }
599
+ else {
600
+ writeFloat64(epochSecs);
601
+ }
602
+ }
@@ -2,4 +2,8 @@ export { cbor } from "./cbor";
2
2
  export { tag, tagSymbol } from "./cbor-types";
3
3
  export { buildHttpRpcRequest, checkCborResponse, dateToTag, loadSmithyRpcV2CborErrorCode, parseCborBody, parseCborErrorBody, } from "./parseCborBody";
4
4
  export { SmithyRpcV2CborProtocol } from "./SmithyRpcV2CborProtocol";
5
- export { CborCodec, CborShapeDeserializer, CborShapeSerializer } from "./CborCodec";
5
+ export { CborCodec } from "./CborCodec";
6
+ export { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
7
+ export { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
8
+ export { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
9
+ export { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
@@ -1,3 +1,4 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import { fromUtf8, toUtf8 } from "@smithy/core/serde";
2
3
  export class EventStreamSerde {
3
4
  marshaller;
@@ -5,12 +6,14 @@ export class EventStreamSerde {
5
6
  deserializer;
6
7
  serdeContext;
7
8
  defaultContentType;
8
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }) {
9
+ compositeErrorRegistry;
10
+ constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, compositeErrorRegistry, }) {
9
11
  this.marshaller = marshaller;
10
12
  this.serializer = serializer;
11
13
  this.deserializer = deserializer;
12
14
  this.serdeContext = serdeContext;
13
15
  this.defaultContentType = defaultContentType;
16
+ this.compositeErrorRegistry = compositeErrorRegistry;
14
17
  }
15
18
  async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
16
19
  const marshaller = this.marshaller;
@@ -126,16 +129,9 @@ export class EventStreamSerde {
126
129
  }
127
130
  }
128
131
  }
129
- if (hasBindings) {
130
- return {
131
- [unionMember]: out,
132
- };
133
- }
134
- if (body.byteLength === 0) {
135
- return {
136
- [unionMember]: {},
137
- };
138
- }
132
+ return {
133
+ [unionMember]: await this.readEventMember(eventStreamSchema, body, hasBindings, out),
134
+ };
139
135
  }
140
136
  return {
141
137
  [unionMember]: await this.deserializer.read(eventStreamSchema, body),
@@ -175,6 +171,33 @@ export class EventStreamSerde {
175
171
  },
176
172
  };
177
173
  }
174
+ async readEventMember(eventStreamSchema, body, hasBindings, out) {
175
+ let ErrCtor;
176
+ const staticStructuralSchema = eventStreamSchema.getSchema();
177
+ if (Array.isArray(staticStructuralSchema) && staticStructuralSchema[0] === -3) {
178
+ const namespace = staticStructuralSchema[1];
179
+ const nsRegistry = TypeRegistry.for(namespace);
180
+ this.compositeErrorRegistry?.copyFrom(nsRegistry);
181
+ ErrCtor = (this.compositeErrorRegistry ?? nsRegistry)?.getErrorCtor(staticStructuralSchema);
182
+ }
183
+ const dataObject = hasBindings
184
+ ? out
185
+ : body.byteLength === 0
186
+ ? {}
187
+ : await this.deserializer.read(eventStreamSchema, body);
188
+ if (ErrCtor) {
189
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
190
+ const metadata = {};
191
+ const $fault = eventStreamSchema.getMergedTraits().error;
192
+ if ($fault) {
193
+ metadata.$fault = $fault;
194
+ }
195
+ return Object.assign(new ErrCtor({}), metadata, {
196
+ message,
197
+ }, dataObject);
198
+ }
199
+ return dataObject;
200
+ }
178
201
  writeEventBody(unionMember, unionSchema, event) {
179
202
  const serializer = this.serializer;
180
203
  let eventType = unionMember;
@@ -123,6 +123,7 @@ export class HttpProtocol extends SerdeContext {
123
123
  deserializer: this.deserializer,
124
124
  serdeContext: this.serdeContext,
125
125
  defaultContentType: this.getDefaultContentType(),
126
+ compositeErrorRegistry: this.compositeErrorRegistry,
126
127
  });
127
128
  }
128
129
  resolveEventStreamMarshaller(importedProvider) {
@@ -1,4 +1,5 @@
1
1
  export const CLOCK_SKEW_ERROR_CODES = [
2
+ "AccessDeniedException",
2
3
  "AuthFailure",
3
4
  "InvalidSignatureException",
4
5
  "RequestExpired",