@gemeentenijmegen/webapp 1.1.11 → 1.1.12

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 (1827) hide show
  1. package/.jsii +11 -11
  2. package/assets/webapp/auth/auth.lambda/index.js +16 -0
  3. package/assets/webapp/login/login.lambda/index.js +16 -0
  4. package/assets/webapp/logout/logout.lambda/index.js +16 -0
  5. package/lib/webapp/Criticality.js +1 -1
  6. package/lib/webapp/Webapp.js +1 -1
  7. package/lib/webapp/Webpage.js +1 -1
  8. package/lib/webapp/util/Files.js +1 -1
  9. package/node_modules/@aws/lambda-invoke-store/LICENSE +175 -0
  10. package/node_modules/@aws/lambda-invoke-store/README.md +182 -0
  11. package/node_modules/@aws/lambda-invoke-store/dist/invoke-store.d.ts +52 -0
  12. package/node_modules/@aws/lambda-invoke-store/dist/invoke-store.js +90 -0
  13. package/node_modules/@aws/lambda-invoke-store/package.json +36 -0
  14. package/node_modules/@aws-cdk/cloud-assembly-schema/.jsii +6005 -0
  15. package/node_modules/@aws-cdk/cloud-assembly-schema/.jsii.tabl.json +1 -0
  16. package/node_modules/@aws-cdk/cloud-assembly-schema/CONTRIBUTING.md +66 -0
  17. package/node_modules/@aws-cdk/cloud-assembly-schema/LICENSE +202 -0
  18. package/node_modules/@aws-cdk/cloud-assembly-schema/NOTICE +46 -0
  19. package/node_modules/@aws-cdk/cloud-assembly-schema/README.md +53 -0
  20. package/node_modules/@aws-cdk/cloud-assembly-schema/cli-version.json +1 -0
  21. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/aws-destination.d.ts +35 -0
  22. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/aws-destination.js +3 -0
  23. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/docker-image-asset.d.ts +171 -0
  24. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/docker-image-asset.js +3 -0
  25. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.d.ts +75 -0
  26. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.js +18 -0
  27. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/index.d.ts +4 -0
  28. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/index.js +21 -0
  29. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/schema.d.ts +27 -0
  30. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/schema.js +3 -0
  31. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/artifact-schema.d.ts +295 -0
  32. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/artifact-schema.js +3 -0
  33. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.d.ts +451 -0
  34. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.js +102 -0
  35. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.d.ts +5 -0
  36. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.js +22 -0
  37. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/interfaces.d.ts +23 -0
  38. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/interfaces.js +10 -0
  39. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.d.ts +302 -0
  40. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.js +38 -0
  41. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.d.ts +147 -0
  42. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.js +34 -0
  43. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/index.d.ts +4 -0
  44. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/index.js +21 -0
  45. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/common.d.ts +178 -0
  46. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/common.js +22 -0
  47. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/deploy.d.ts +92 -0
  48. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/deploy.js +3 -0
  49. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/destroy.d.ts +18 -0
  50. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/destroy.js +3 -0
  51. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/index.d.ts +3 -0
  52. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/index.js +20 -0
  53. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/index.d.ts +3 -0
  54. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/index.js +20 -0
  55. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/schema.d.ts +35 -0
  56. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/schema.js +3 -0
  57. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.d.ts +186 -0
  58. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.js +3 -0
  59. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/manifest.d.ts +134 -0
  60. package/node_modules/@aws-cdk/cloud-assembly-schema/lib/manifest.js +295 -0
  61. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/.editorconfig +10 -0
  62. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/LICENSE +21 -0
  63. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/README.md +421 -0
  64. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/attribute.js +978 -0
  65. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js +390 -0
  66. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/index.d.ts +142 -0
  67. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/index.js +15 -0
  68. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/scan.js +75 -0
  69. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/validator.js +336 -0
  70. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/package.json +42 -0
  71. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/LICENSE +15 -0
  72. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/README.md +664 -0
  73. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/bin/semver.js +191 -0
  74. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/comparator.js +143 -0
  75. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/index.js +7 -0
  76. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/range.js +556 -0
  77. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/semver.js +319 -0
  78. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/clean.js +8 -0
  79. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/cmp.js +54 -0
  80. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/coerce.js +62 -0
  81. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare-build.js +9 -0
  82. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare-loose.js +5 -0
  83. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare.js +7 -0
  84. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/diff.js +60 -0
  85. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/eq.js +5 -0
  86. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/gt.js +5 -0
  87. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/gte.js +5 -0
  88. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/inc.js +21 -0
  89. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/lt.js +5 -0
  90. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/lte.js +5 -0
  91. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/major.js +5 -0
  92. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/minor.js +5 -0
  93. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/neq.js +5 -0
  94. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/parse.js +18 -0
  95. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/patch.js +5 -0
  96. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/prerelease.js +8 -0
  97. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/rcompare.js +5 -0
  98. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/rsort.js +5 -0
  99. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/satisfies.js +12 -0
  100. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/sort.js +5 -0
  101. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/valid.js +8 -0
  102. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/index.js +91 -0
  103. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/constants.js +37 -0
  104. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/debug.js +11 -0
  105. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/identifiers.js +25 -0
  106. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/lrucache.js +42 -0
  107. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/parse-options.js +17 -0
  108. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/re.js +223 -0
  109. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/package.json +78 -0
  110. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/preload.js +4 -0
  111. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/range.bnf +16 -0
  112. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/gtr.js +6 -0
  113. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/intersects.js +9 -0
  114. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/ltr.js +6 -0
  115. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/max-satisfying.js +27 -0
  116. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/min-satisfying.js +26 -0
  117. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/min-version.js +63 -0
  118. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/outside.js +82 -0
  119. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/simplify.js +49 -0
  120. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/subset.js +249 -0
  121. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/to-comparators.js +10 -0
  122. package/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/valid.js +13 -0
  123. package/node_modules/@aws-cdk/cloud-assembly-schema/package.json +133 -0
  124. package/node_modules/@aws-cdk/cloud-assembly-schema/rosetta/default.ts-fixture +3 -0
  125. package/node_modules/@aws-cdk/cloud-assembly-schema/schema/README.md +5 -0
  126. package/node_modules/@aws-cdk/cloud-assembly-schema/schema/assets.schema.json +271 -0
  127. package/node_modules/@aws-cdk/cloud-assembly-schema/schema/cloud-assembly.schema.json +1189 -0
  128. package/node_modules/@aws-cdk/cloud-assembly-schema/schema/integ.schema.json +493 -0
  129. package/node_modules/@aws-cdk/cloud-assembly-schema/schema/version.json +5 -0
  130. package/node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoint/ruleset.js +3 -3
  131. package/node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js +5197 -5488
  132. package/node_modules/@aws-sdk/client-dynamodb/dist-es/endpoint/ruleset.js +3 -3
  133. package/node_modules/@aws-sdk/client-dynamodb/dist-es/protocols/Aws_json1_0.js +1 -1
  134. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/BatchExecuteStatementCommand.d.ts +2 -0
  135. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/BatchGetItemCommand.d.ts +2 -0
  136. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/BatchWriteItemCommand.d.ts +2 -0
  137. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/CreateBackupCommand.d.ts +2 -0
  138. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/CreateGlobalTableCommand.d.ts +2 -0
  139. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/CreateTableCommand.d.ts +2 -0
  140. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DeleteBackupCommand.d.ts +2 -0
  141. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DeleteItemCommand.d.ts +2 -0
  142. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DeleteResourcePolicyCommand.d.ts +2 -0
  143. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DeleteTableCommand.d.ts +2 -0
  144. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeBackupCommand.d.ts +2 -0
  145. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeContinuousBackupsCommand.d.ts +2 -0
  146. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeContributorInsightsCommand.d.ts +2 -0
  147. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeEndpointsCommand.d.ts +2 -0
  148. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeExportCommand.d.ts +2 -0
  149. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeGlobalTableCommand.d.ts +2 -0
  150. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeGlobalTableSettingsCommand.d.ts +2 -0
  151. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeImportCommand.d.ts +2 -0
  152. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeKinesisStreamingDestinationCommand.d.ts +2 -0
  153. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeLimitsCommand.d.ts +2 -0
  154. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeTableCommand.d.ts +2 -0
  155. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeTableReplicaAutoScalingCommand.d.ts +2 -0
  156. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DescribeTimeToLiveCommand.d.ts +2 -0
  157. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/DisableKinesisStreamingDestinationCommand.d.ts +2 -0
  158. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/EnableKinesisStreamingDestinationCommand.d.ts +2 -0
  159. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ExecuteStatementCommand.d.ts +2 -0
  160. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ExecuteTransactionCommand.d.ts +2 -0
  161. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +2 -0
  162. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/GetItemCommand.d.ts +2 -0
  163. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/GetResourcePolicyCommand.d.ts +2 -0
  164. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ImportTableCommand.d.ts +2 -0
  165. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ListBackupsCommand.d.ts +2 -0
  166. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ListContributorInsightsCommand.d.ts +2 -0
  167. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ListExportsCommand.d.ts +2 -0
  168. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ListGlobalTablesCommand.d.ts +2 -0
  169. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ListImportsCommand.d.ts +2 -0
  170. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ListTablesCommand.d.ts +2 -0
  171. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ListTagsOfResourceCommand.d.ts +2 -0
  172. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/PutItemCommand.d.ts +2 -0
  173. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -0
  174. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/QueryCommand.d.ts +2 -0
  175. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/RestoreTableFromBackupCommand.d.ts +2 -0
  176. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +2 -0
  177. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/ScanCommand.d.ts +2 -0
  178. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/TagResourceCommand.d.ts +2 -0
  179. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/TransactGetItemsCommand.d.ts +2 -0
  180. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/TransactWriteItemsCommand.d.ts +2 -0
  181. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  182. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateContinuousBackupsCommand.d.ts +2 -0
  183. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateContributorInsightsCommand.d.ts +2 -0
  184. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateGlobalTableCommand.d.ts +2 -0
  185. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateGlobalTableSettingsCommand.d.ts +2 -0
  186. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateItemCommand.d.ts +2 -0
  187. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateKinesisStreamingDestinationCommand.d.ts +2 -0
  188. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateTableCommand.d.ts +2 -0
  189. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateTableReplicaAutoScalingCommand.d.ts +2 -0
  190. package/node_modules/@aws-sdk/client-dynamodb/dist-types/commands/UpdateTimeToLiveCommand.d.ts +2 -0
  191. package/node_modules/@aws-sdk/client-dynamodb/package.json +41 -42
  192. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +11771 -11916
  193. package/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +55 -55
  194. package/node_modules/@aws-sdk/client-s3/dist-types/commands/AbortMultipartUploadCommand.d.ts +2 -0
  195. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CompleteMultipartUploadCommand.d.ts +2 -0
  196. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +2 -0
  197. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +2 -0
  198. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketMetadataConfigurationCommand.d.ts +2 -0
  199. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +2 -0
  200. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +2 -0
  201. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateSessionCommand.d.ts +2 -0
  202. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -0
  203. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCommand.d.ts +2 -0
  204. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketCorsCommand.d.ts +2 -0
  205. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +2 -0
  206. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -0
  207. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -0
  208. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +2 -0
  209. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetadataConfigurationCommand.d.ts +2 -0
  210. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +2 -0
  211. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -0
  212. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -0
  213. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketPolicyCommand.d.ts +2 -0
  214. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketReplicationCommand.d.ts +2 -0
  215. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketTaggingCommand.d.ts +2 -0
  216. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +2 -0
  217. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectCommand.d.ts +2 -0
  218. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectTaggingCommand.d.ts +2 -0
  219. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectsCommand.d.ts +2 -0
  220. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +2 -0
  221. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -0
  222. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAclCommand.d.ts +2 -0
  223. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -0
  224. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketCorsCommand.d.ts +2 -0
  225. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketEncryptionCommand.d.ts +2 -0
  226. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -0
  227. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -0
  228. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -0
  229. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLocationCommand.d.ts +2 -0
  230. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLoggingCommand.d.ts +2 -0
  231. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetadataConfigurationCommand.d.ts +2 -0
  232. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +2 -0
  233. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -0
  234. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -0
  235. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +2 -0
  236. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyCommand.d.ts +2 -0
  237. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +2 -0
  238. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketReplicationCommand.d.ts +2 -0
  239. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +2 -0
  240. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketTaggingCommand.d.ts +2 -0
  241. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketVersioningCommand.d.ts +2 -0
  242. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketWebsiteCommand.d.ts +2 -0
  243. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAclCommand.d.ts +2 -0
  244. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts +2 -0
  245. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +2 -0
  246. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLegalHoldCommand.d.ts +2 -0
  247. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +2 -0
  248. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectRetentionCommand.d.ts +2 -0
  249. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTaggingCommand.d.ts +2 -0
  250. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectTorrentCommand.d.ts +2 -0
  251. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetPublicAccessBlockCommand.d.ts +2 -0
  252. package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadBucketCommand.d.ts +2 -0
  253. package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +2 -0
  254. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -0
  255. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -0
  256. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -0
  257. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -0
  258. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketsCommand.d.ts +2 -0
  259. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListDirectoryBucketsCommand.d.ts +2 -0
  260. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListMultipartUploadsCommand.d.ts +2 -0
  261. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectVersionsCommand.d.ts +2 -0
  262. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsCommand.d.ts +2 -0
  263. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectsV2Command.d.ts +2 -0
  264. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListPartsCommand.d.ts +2 -0
  265. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -0
  266. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAclCommand.d.ts +2 -0
  267. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -0
  268. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketCorsCommand.d.ts +2 -0
  269. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketEncryptionCommand.d.ts +2 -0
  270. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -0
  271. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -0
  272. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -0
  273. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLoggingCommand.d.ts +2 -0
  274. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -0
  275. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -0
  276. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +2 -0
  277. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketPolicyCommand.d.ts +2 -0
  278. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketReplicationCommand.d.ts +2 -0
  279. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +2 -0
  280. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketTaggingCommand.d.ts +2 -0
  281. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketVersioningCommand.d.ts +2 -0
  282. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketWebsiteCommand.d.ts +2 -0
  283. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectAclCommand.d.ts +2 -0
  284. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +2 -0
  285. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLegalHoldCommand.d.ts +2 -0
  286. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +2 -0
  287. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -0
  288. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectTaggingCommand.d.ts +2 -0
  289. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutPublicAccessBlockCommand.d.ts +2 -0
  290. package/node_modules/@aws-sdk/client-s3/dist-types/commands/RenameObjectCommand.d.ts +2 -0
  291. package/node_modules/@aws-sdk/client-s3/dist-types/commands/RestoreObjectCommand.d.ts +2 -0
  292. package/node_modules/@aws-sdk/client-s3/dist-types/commands/SelectObjectContentCommand.d.ts +2 -0
  293. package/node_modules/@aws-sdk/client-s3/dist-types/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.d.ts +2 -0
  294. package/node_modules/@aws-sdk/client-s3/dist-types/commands/UpdateBucketMetadataJournalTableConfigurationCommand.d.ts +2 -0
  295. package/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCommand.d.ts +2 -0
  296. package/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCopyCommand.d.ts +2 -0
  297. package/node_modules/@aws-sdk/client-s3/dist-types/commands/WriteGetObjectResponseCommand.d.ts +2 -0
  298. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +4 -4
  299. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +1 -1
  300. package/node_modules/@aws-sdk/client-s3/package.json +62 -63
  301. package/node_modules/@aws-sdk/client-secrets-manager/dist-cjs/index.js +1582 -1740
  302. package/node_modules/@aws-sdk/client-secrets-manager/dist-es/protocols/Aws_json1_1.js +1 -1
  303. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/BatchGetSecretValueCommand.d.ts +2 -0
  304. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/CancelRotateSecretCommand.d.ts +2 -0
  305. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/CreateSecretCommand.d.ts +2 -0
  306. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/DeleteResourcePolicyCommand.d.ts +2 -0
  307. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/DeleteSecretCommand.d.ts +2 -0
  308. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/DescribeSecretCommand.d.ts +2 -0
  309. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/GetRandomPasswordCommand.d.ts +2 -0
  310. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/GetResourcePolicyCommand.d.ts +2 -0
  311. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/GetSecretValueCommand.d.ts +2 -0
  312. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/ListSecretVersionIdsCommand.d.ts +2 -0
  313. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/ListSecretsCommand.d.ts +2 -0
  314. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -0
  315. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/PutSecretValueCommand.d.ts +2 -0
  316. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +2 -0
  317. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +2 -0
  318. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/RestoreSecretCommand.d.ts +2 -0
  319. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/RotateSecretCommand.d.ts +2 -0
  320. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/StopReplicationToReplicaCommand.d.ts +2 -0
  321. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/TagResourceCommand.d.ts +2 -0
  322. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  323. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/UpdateSecretCommand.d.ts +2 -0
  324. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/UpdateSecretVersionStageCommand.d.ts +2 -0
  325. package/node_modules/@aws-sdk/client-secrets-manager/dist-types/commands/ValidateResourcePolicyCommand.d.ts +2 -0
  326. package/node_modules/@aws-sdk/client-secrets-manager/package.json +39 -40
  327. package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js +1 -1
  328. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +12508 -13696
  329. package/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/ruleset.js +1 -1
  330. package/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js +1 -1
  331. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/AddTagsToResourceCommand.d.ts +2 -0
  332. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/AssociateOpsItemRelatedItemCommand.d.ts +2 -0
  333. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelCommandCommand.d.ts +2 -0
  334. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelMaintenanceWindowExecutionCommand.d.ts +2 -0
  335. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateActivationCommand.d.ts +2 -0
  336. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationBatchCommand.d.ts +2 -0
  337. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationCommand.d.ts +2 -0
  338. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateDocumentCommand.d.ts +2 -0
  339. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateMaintenanceWindowCommand.d.ts +2 -0
  340. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsItemCommand.d.ts +2 -0
  341. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsMetadataCommand.d.ts +2 -0
  342. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreatePatchBaselineCommand.d.ts +2 -0
  343. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateResourceDataSyncCommand.d.ts +2 -0
  344. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteActivationCommand.d.ts +2 -0
  345. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteAssociationCommand.d.ts +2 -0
  346. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteDocumentCommand.d.ts +2 -0
  347. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteInventoryCommand.d.ts +2 -0
  348. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteMaintenanceWindowCommand.d.ts +2 -0
  349. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsItemCommand.d.ts +2 -0
  350. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsMetadataCommand.d.ts +2 -0
  351. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParameterCommand.d.ts +2 -0
  352. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParametersCommand.d.ts +2 -0
  353. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeletePatchBaselineCommand.d.ts +2 -0
  354. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourceDataSyncCommand.d.ts +2 -0
  355. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourcePolicyCommand.d.ts +2 -0
  356. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterManagedInstanceCommand.d.ts +2 -0
  357. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts +2 -0
  358. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts +2 -0
  359. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts +2 -0
  360. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeActivationsCommand.d.ts +2 -0
  361. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationCommand.d.ts +2 -0
  362. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionTargetsCommand.d.ts +2 -0
  363. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionsCommand.d.ts +2 -0
  364. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts +2 -0
  365. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationStepExecutionsCommand.d.ts +2 -0
  366. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAvailablePatchesCommand.d.ts +2 -0
  367. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentCommand.d.ts +2 -0
  368. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentPermissionCommand.d.ts +2 -0
  369. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts +2 -0
  370. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts +2 -0
  371. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceAssociationsStatusCommand.d.ts +2 -0
  372. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceInformationCommand.d.ts +2 -0
  373. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesCommand.d.ts +2 -0
  374. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts +2 -0
  375. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchesCommand.d.ts +2 -0
  376. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePropertiesCommand.d.ts +2 -0
  377. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInventoryDeletionsCommand.d.ts +2 -0
  378. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts +2 -0
  379. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts +2 -0
  380. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts +2 -0
  381. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +2 -0
  382. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTargetsCommand.d.ts +2 -0
  383. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTasksCommand.d.ts +2 -0
  384. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsCommand.d.ts +2 -0
  385. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +2 -0
  386. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeOpsItemsCommand.d.ts +2 -0
  387. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeParametersCommand.d.ts +2 -0
  388. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchBaselinesCommand.d.ts +2 -0
  389. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupStateCommand.d.ts +2 -0
  390. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupsCommand.d.ts +2 -0
  391. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchPropertiesCommand.d.ts +2 -0
  392. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeSessionsCommand.d.ts +2 -0
  393. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DisassociateOpsItemRelatedItemCommand.d.ts +2 -0
  394. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAccessTokenCommand.d.ts +2 -0
  395. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAutomationExecutionCommand.d.ts +2 -0
  396. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCalendarStateCommand.d.ts +2 -0
  397. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCommandInvocationCommand.d.ts +2 -0
  398. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetConnectionStatusCommand.d.ts +2 -0
  399. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDefaultPatchBaselineCommand.d.ts +2 -0
  400. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts +3 -0
  401. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDocumentCommand.d.ts +2 -0
  402. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetExecutionPreviewCommand.d.ts +2 -0
  403. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventoryCommand.d.ts +2 -0
  404. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventorySchemaCommand.d.ts +2 -0
  405. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowCommand.d.ts +2 -0
  406. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionCommand.d.ts +2 -0
  407. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts +2 -0
  408. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts +2 -0
  409. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowTaskCommand.d.ts +2 -0
  410. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsItemCommand.d.ts +2 -0
  411. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsMetadataCommand.d.ts +2 -0
  412. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsSummaryCommand.d.ts +2 -0
  413. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterCommand.d.ts +2 -0
  414. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterHistoryCommand.d.ts +2 -0
  415. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersByPathCommand.d.ts +2 -0
  416. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersCommand.d.ts +2 -0
  417. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineCommand.d.ts +2 -0
  418. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineForPatchGroupCommand.d.ts +2 -0
  419. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetResourcePoliciesCommand.d.ts +2 -0
  420. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetServiceSettingCommand.d.ts +2 -0
  421. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/LabelParameterVersionCommand.d.ts +2 -0
  422. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationVersionsCommand.d.ts +2 -0
  423. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationsCommand.d.ts +2 -0
  424. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandInvocationsCommand.d.ts +2 -0
  425. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandsCommand.d.ts +2 -0
  426. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceItemsCommand.d.ts +2 -0
  427. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceSummariesCommand.d.ts +2 -0
  428. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentMetadataHistoryCommand.d.ts +2 -0
  429. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentVersionsCommand.d.ts +2 -0
  430. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentsCommand.d.ts +2 -0
  431. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListInventoryEntriesCommand.d.ts +2 -0
  432. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListNodesCommand.d.ts +2 -0
  433. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListNodesSummaryCommand.d.ts +2 -0
  434. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemEventsCommand.d.ts +2 -0
  435. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemRelatedItemsCommand.d.ts +2 -0
  436. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsMetadataCommand.d.ts +2 -0
  437. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceComplianceSummariesCommand.d.ts +2 -0
  438. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceDataSyncCommand.d.ts +2 -0
  439. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  440. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ModifyDocumentPermissionCommand.d.ts +2 -0
  441. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutComplianceItemsCommand.d.ts +2 -0
  442. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutInventoryCommand.d.ts +2 -0
  443. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutParameterCommand.d.ts +2 -0
  444. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -0
  445. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterDefaultPatchBaselineCommand.d.ts +2 -0
  446. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts +2 -0
  447. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +2 -0
  448. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +2 -0
  449. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +2 -0
  450. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResetServiceSettingCommand.d.ts +2 -0
  451. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResumeSessionCommand.d.ts +2 -0
  452. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendAutomationSignalCommand.d.ts +2 -0
  453. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendCommandCommand.d.ts +2 -0
  454. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAccessRequestCommand.d.ts +2 -0
  455. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAssociationsOnceCommand.d.ts +2 -0
  456. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAutomationExecutionCommand.d.ts +2 -0
  457. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartChangeRequestExecutionCommand.d.ts +2 -0
  458. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartExecutionPreviewCommand.d.ts +2 -0
  459. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartSessionCommand.d.ts +2 -0
  460. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StopAutomationExecutionCommand.d.ts +2 -0
  461. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/TerminateSessionCommand.d.ts +2 -0
  462. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UnlabelParameterVersionCommand.d.ts +2 -0
  463. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationCommand.d.ts +2 -0
  464. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationStatusCommand.d.ts +2 -0
  465. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentCommand.d.ts +2 -0
  466. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentDefaultVersionCommand.d.ts +2 -0
  467. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentMetadataCommand.d.ts +2 -0
  468. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowCommand.d.ts +2 -0
  469. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTargetCommand.d.ts +2 -0
  470. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTaskCommand.d.ts +2 -0
  471. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateManagedInstanceRoleCommand.d.ts +2 -0
  472. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsItemCommand.d.ts +2 -0
  473. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsMetadataCommand.d.ts +2 -0
  474. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdatePatchBaselineCommand.d.ts +2 -0
  475. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateResourceDataSyncCommand.d.ts +2 -0
  476. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateServiceSettingCommand.d.ts +2 -0
  477. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +24 -5
  478. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +9 -0
  479. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +18 -3
  480. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +1 -0
  481. package/node_modules/@aws-sdk/client-ssm/package.json +40 -41
  482. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
  483. package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +2 -0
  484. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +2 -0
  485. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +2 -0
  486. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +2 -0
  487. package/node_modules/@aws-sdk/client-sso/package.json +36 -36
  488. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
  489. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
  490. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
  491. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
  492. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1582 -1717
  493. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +89 -0
  494. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +40 -0
  495. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -1
  496. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
  497. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +2 -1
  498. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +2 -1
  499. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +22 -35
  500. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +12 -61
  501. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +28 -11
  502. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +39 -16
  503. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +26 -42
  504. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
  505. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +13 -69
  506. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -13
  507. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +9 -13
  508. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +2 -13
  509. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  510. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
  511. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  512. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  513. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  514. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
  515. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +49 -0
  516. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +23 -0
  517. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +1 -0
  518. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +2 -1
  519. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +2 -1
  520. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +6 -3
  521. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -1
  522. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  523. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  524. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +6 -2
  525. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +2 -2
  526. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
  527. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +2 -2
  528. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
  529. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +37 -0
  530. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +33 -0
  531. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  532. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +2 -0
  533. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +2 -0
  534. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +5 -1
  535. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -0
  536. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -0
  537. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +2 -1
  538. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +2 -1
  539. package/node_modules/@aws-sdk/core/package.json +15 -17
  540. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
  541. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -5
  542. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +4 -2
  543. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +4 -2
  544. package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -10
  545. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
  546. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -2
  547. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
  548. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -1
  549. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +4 -0
  550. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +3 -1
  551. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +1 -0
  552. package/node_modules/@aws-sdk/credential-provider-ini/package.json +16 -15
  553. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
  554. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +3 -1
  555. package/node_modules/@aws-sdk/credential-provider-node/package.json +16 -14
  556. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -106
  557. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -1
  558. package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -6
  559. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -233
  560. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
  561. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +8 -0
  562. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +7 -2
  563. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
  564. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +3 -0
  565. package/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -8
  566. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +3 -1
  567. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
  568. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +3 -1
  569. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -6
  570. package/node_modules/@aws-sdk/endpoint-cache/package.json +2 -1
  571. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +334 -450
  572. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +8 -7
  573. package/node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js +170 -211
  574. package/node_modules/@aws-sdk/middleware-endpoint-discovery/package.json +9 -8
  575. package/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +30 -60
  576. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +7 -6
  577. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +381 -478
  578. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/getCrc32ChecksumAlgorithmFunction.d.ts +1 -1
  579. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/stringHasher.d.ts +1 -1
  580. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/getCrc32ChecksumAlgorithmFunction.d.ts +1 -1
  581. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/stringHasher.d.ts +1 -1
  582. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +16 -15
  583. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
  584. package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -6
  585. package/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +23 -57
  586. package/node_modules/@aws-sdk/middleware-location-constraint/dist-es/index.js +4 -7
  587. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +6 -5
  588. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
  589. package/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts +1 -1
  590. package/node_modules/@aws-sdk/middleware-logger/package.json +6 -5
  591. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +20 -67
  592. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +32 -0
  593. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.native.js +5 -0
  594. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js +7 -0
  595. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js +7 -0
  596. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +2 -37
  597. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.browser.js +1 -0
  598. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js +28 -0
  599. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.native.js +1 -0
  600. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +5 -0
  601. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +5 -0
  602. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +2 -18
  603. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +6 -0
  604. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +6 -0
  605. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +6 -0
  606. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/configuration.d.ts +3 -0
  607. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/getRecursionDetectionPlugin.d.ts +4 -0
  608. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +2 -18
  609. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.browser.d.ts +5 -0
  610. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.d.ts +5 -0
  611. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.native.d.ts +5 -0
  612. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +13 -7
  613. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +512 -638
  614. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-middleware.js +15 -10
  615. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +19 -18
  616. package/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +65 -92
  617. package/node_modules/@aws-sdk/middleware-ssec/package.json +6 -5
  618. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
  619. package/node_modules/@aws-sdk/middleware-user-agent/package.json +10 -9
  620. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
  621. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +585 -833
  622. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +797 -928
  623. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +13 -0
  624. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +2 -0
  625. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +6 -4
  626. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +1 -1
  627. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +1 -1
  628. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +2 -0
  629. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -1
  630. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +36 -3
  631. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -0
  632. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -0
  633. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  634. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +15 -0
  635. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  636. package/node_modules/@aws-sdk/nested-clients/package.json +37 -36
  637. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +37 -100
  638. package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +1 -1
  639. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/awsRegionConfig.js +2 -0
  640. package/node_modules/@aws-sdk/region-config-resolver/dist-types/extensions/index.d.ts +2 -2
  641. package/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +1 -1
  642. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/awsRegionConfig.d.ts +15 -0
  643. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +1 -1
  644. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/awsRegionConfig.d.ts +11 -0
  645. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -7
  646. package/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js +123 -177
  647. package/node_modules/@aws-sdk/s3-request-presigner/package.json +11 -10
  648. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +108 -137
  649. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +9 -8
  650. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
  651. package/node_modules/@aws-sdk/token-providers/package.json +10 -10
  652. package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
  653. package/node_modules/@aws-sdk/types/package.json +3 -2
  654. package/node_modules/@aws-sdk/util-arn-parser/package.json +2 -1
  655. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -466
  656. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +40 -37
  657. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +40 -37
  658. package/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  659. package/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js +30 -58
  660. package/node_modules/@aws-sdk/util-format-url/package.json +5 -4
  661. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -1
  662. package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
  663. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
  664. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
  665. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
  666. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
  667. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
  668. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
  669. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
  670. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
  671. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
  672. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -3
  673. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
  674. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
  675. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
  676. package/node_modules/@aws-sdk/util-user-agent-node/package.json +6 -5
  677. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -155
  678. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +18 -0
  679. package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +1 -0
  680. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +57 -0
  681. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +15 -0
  682. package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +4 -0
  683. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +1 -0
  684. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.browser.d.ts +1 -0
  685. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -0
  686. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.browser.d.ts +9 -0
  687. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +4 -0
  688. package/node_modules/@aws-sdk/xml-builder/package.json +11 -2
  689. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/.jsii +57 -5
  690. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/lib/index.js +1 -1
  691. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/.jsii +143 -83
  692. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/index.d.ts +1 -0
  693. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/index.js +2 -1
  694. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/cloudfront-distribution-helper.js +21 -2
  695. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/constructs-feature-flags.d.ts +21 -0
  696. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/constructs-feature-flags.js +63 -0
  697. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/dynamodb-table-helper.d.ts +0 -2
  698. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/dynamodb-table-helper.js +4 -2
  699. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/pipes-defaults.js +1 -2
  700. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/sqs-helper.js +46 -41
  701. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/utils.js +1 -1
  702. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/vpc-defaults.d.ts +3 -0
  703. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/vpc-defaults.js +21 -16
  704. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/vpc-helper.d.ts +5 -1
  705. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/lib/vpc-helper.js +31 -4
  706. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/package.json +5 -4
  707. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/test/cloudfront-distribution-s3-helper.test.js +123 -1
  708. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/test/constructs-feature-flags.test.d.ts +13 -0
  709. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/test/constructs-feature-flags.test.js +50 -0
  710. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/test/dynamo-table.test.js +12 -6
  711. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/node_modules/@aws-solutions-constructs/core/test/vpc-helper.test.js +31 -1
  712. package/node_modules/@aws-solutions-constructs/aws-lambda-dynamodb/package.json +6 -6
  713. package/node_modules/@gemeentenijmegen/apiclient/node_modules/@gemeentenijmegen/utils/package.json +7 -7
  714. package/node_modules/@gemeentenijmegen/apiclient/package.json +8 -8
  715. package/node_modules/@gemeentenijmegen/apigateway-http/package.json +5 -5
  716. package/node_modules/@gemeentenijmegen/session/lib/index.d.ts +5 -0
  717. package/node_modules/@gemeentenijmegen/session/lib/index.js +17 -1
  718. package/node_modules/@gemeentenijmegen/session/package.json +5 -5
  719. package/node_modules/@gemeentenijmegen/utils/lib/authenticate.d.ts +13 -0
  720. package/node_modules/@gemeentenijmegen/utils/lib/authenticate.js +52 -0
  721. package/node_modules/@gemeentenijmegen/utils/lib/index.d.ts +3 -2
  722. package/node_modules/@gemeentenijmegen/utils/lib/index.js +8 -6
  723. package/node_modules/@gemeentenijmegen/utils/package.json +9 -8
  724. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +28 -80
  725. package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +1 -3
  726. package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +2 -2
  727. package/node_modules/@smithy/abort-controller/package.json +3 -2
  728. package/node_modules/@smithy/chunked-blob-reader/dist-cjs/index.js +9 -37
  729. package/node_modules/@smithy/chunked-blob-reader/package.json +5 -4
  730. package/node_modules/@smithy/chunked-blob-reader-native/dist-cjs/index.js +28 -55
  731. package/node_modules/@smithy/chunked-blob-reader-native/package.json +6 -5
  732. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +167 -214
  733. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js +10 -0
  734. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +5 -5
  735. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +1 -1
  736. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +1 -1
  737. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +2 -2
  738. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +1 -1
  739. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts +1 -1
  740. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/checkRegion.d.ts +9 -0
  741. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts +1 -1
  742. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +1 -1
  743. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +1 -1
  744. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +1 -1
  745. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +1 -1
  746. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +1 -1
  747. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +3 -3
  748. package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +1 -1
  749. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/checkRegion.d.ts +9 -0
  750. package/node_modules/@smithy/config-resolver/package.json +7 -5
  751. package/node_modules/@smithy/core/dist-cjs/index.js +308 -413
  752. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +946 -939
  753. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +211 -0
  754. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +797 -802
  755. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +576 -819
  756. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +675 -679
  757. package/node_modules/@smithy/core/dist-es/index.js +1 -1
  758. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -1
  759. package/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js +0 -1
  760. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +7 -14
  761. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +42 -19
  762. package/node_modules/@smithy/core/dist-es/submodules/cbor/byte-printer.js +35 -1
  763. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +18 -18
  764. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +5 -5
  765. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
  766. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +206 -0
  767. package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.js +1 -0
  768. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +27 -40
  769. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +47 -8
  770. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +38 -12
  771. package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
  772. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +2 -0
  773. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +9 -7
  774. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +23 -21
  775. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +5 -1
  776. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +3 -0
  777. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +9 -10
  778. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
  779. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +27 -11
  780. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +2 -0
  781. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -1
  782. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -1
  783. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +12 -24
  784. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +11 -22
  785. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +13 -23
  786. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +141 -202
  787. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +13 -13
  788. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +17 -3
  789. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +17 -22
  790. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +13 -29
  791. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
  792. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +14 -14
  793. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
  794. package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +1 -1
  795. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  796. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
  797. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +6 -24
  798. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -1
  799. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +4 -2
  800. package/node_modules/@smithy/core/dist-types/getSmithyContext.d.ts +1 -1
  801. package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
  802. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +2 -2
  803. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +2 -2
  804. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +1 -1
  805. package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/resolveAuthOptions.d.ts +1 -1
  806. package/node_modules/@smithy/core/dist-types/middleware-http-signing/getHttpSigningMiddleware.d.ts +1 -1
  807. package/node_modules/@smithy/core/dist-types/middleware-http-signing/httpSigningMiddleware.d.ts +1 -1
  808. package/node_modules/@smithy/core/dist-types/normalizeProvider.d.ts +1 -1
  809. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +10 -11
  810. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  811. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +1 -1
  812. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -1
  813. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor.d.ts +1 -1
  814. package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +2 -2
  815. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +60 -0
  816. package/node_modules/@smithy/core/dist-types/submodules/event-streams/index.d.ts +1 -0
  817. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  818. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +44 -3
  819. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +1 -1
  820. package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
  821. package/node_modules/@smithy/core/dist-types/submodules/protocols/collect-stream-body.d.ts +1 -1
  822. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +2 -0
  823. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  824. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +6 -3
  825. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  826. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  827. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts +2 -2
  828. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +14 -5
  829. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +2 -0
  830. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +2 -2
  831. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +2 -2
  832. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +2 -2
  833. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +10 -14
  834. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +5 -5
  835. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +5 -9
  836. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +26 -29
  837. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +5 -2
  838. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +6 -1
  839. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +11 -6
  840. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +5 -6
  841. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
  842. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +3 -1
  843. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
  844. package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
  845. package/node_modules/@smithy/core/dist-types/submodules/serde/generateIdempotencyToken.d.ts +1 -1
  846. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  847. package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  848. package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
  849. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +10 -11
  850. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  851. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +1 -1
  852. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor.d.ts +1 -1
  853. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +60 -0
  854. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/index.d.ts +1 -0
  855. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +44 -3
  856. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
  857. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
  858. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  859. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  860. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  861. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  862. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts +1 -1
  863. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +13 -4
  864. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +2 -0
  865. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +10 -14
  866. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +5 -5
  867. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +5 -9
  868. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +26 -29
  869. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +5 -2
  870. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +6 -1
  871. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +10 -5
  872. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +5 -9
  873. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
  874. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
  875. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
  876. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts +1 -1
  877. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  878. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  879. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +1 -1
  880. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +1 -1
  881. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +1 -1
  882. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +1 -1
  883. package/node_modules/@smithy/core/dist-types/util-identity-and-auth/memoizeIdentityProvider.d.ts +1 -1
  884. package/node_modules/@smithy/core/event-streams.d.ts +7 -0
  885. package/node_modules/@smithy/core/event-streams.js +6 -0
  886. package/node_modules/@smithy/core/package.json +21 -12
  887. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +340 -413
  888. package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +2 -1
  889. package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +1 -1
  890. package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +1 -1
  891. package/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +2 -2
  892. package/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +3 -3
  893. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +1 -1
  894. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +1 -1
  895. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
  896. package/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +1 -1
  897. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +2 -2
  898. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +1 -1
  899. package/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +2 -2
  900. package/node_modules/@smithy/credential-provider-imds/package.json +6 -5
  901. package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +372 -459
  902. package/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js +3 -0
  903. package/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js +2 -0
  904. package/node_modules/@smithy/eventstream-codec/dist-es/Int64.js +2 -1
  905. package/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js +1 -0
  906. package/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js +1 -0
  907. package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js +1 -0
  908. package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js +1 -0
  909. package/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts +2 -2
  910. package/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts +1 -1
  911. package/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts +1 -1
  912. package/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts +1 -1
  913. package/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts +1 -1
  914. package/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts +1 -1
  915. package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts +1 -1
  916. package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts +1 -1
  917. package/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts +1 -1
  918. package/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts +1 -1
  919. package/node_modules/@smithy/eventstream-codec/package.json +5 -4
  920. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/index.js +51 -97
  921. package/node_modules/@smithy/eventstream-serde-browser/dist-es/EventStreamMarshaller.js +1 -0
  922. package/node_modules/@smithy/eventstream-serde-browser/dist-types/EventStreamMarshaller.d.ts +1 -1
  923. package/node_modules/@smithy/eventstream-serde-browser/dist-types/provider.d.ts +1 -1
  924. package/node_modules/@smithy/eventstream-serde-browser/package.json +4 -3
  925. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +4 -33
  926. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/EventStreamSerdeConfig.d.ts +1 -1
  927. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +3 -2
  928. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +44 -80
  929. package/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js +1 -0
  930. package/node_modules/@smithy/eventstream-serde-node/dist-types/EventStreamMarshaller.d.ts +1 -1
  931. package/node_modules/@smithy/eventstream-serde-node/dist-types/provider.d.ts +1 -1
  932. package/node_modules/@smithy/eventstream-serde-node/dist-types/utils.d.ts +1 -1
  933. package/node_modules/@smithy/eventstream-serde-node/package.json +4 -3
  934. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js +120 -171
  935. package/node_modules/@smithy/eventstream-serde-universal/dist-es/EventStreamMarshaller.js +2 -0
  936. package/node_modules/@smithy/eventstream-serde-universal/dist-types/EventStreamMarshaller.d.ts +1 -1
  937. package/node_modules/@smithy/eventstream-serde-universal/dist-types/getUnmarshalledStream.d.ts +2 -2
  938. package/node_modules/@smithy/eventstream-serde-universal/dist-types/provider.d.ts +1 -1
  939. package/node_modules/@smithy/eventstream-serde-universal/package.json +8 -5
  940. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +190 -238
  941. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -0
  942. package/node_modules/@smithy/fetch-http-handler/dist-types/create-request.d.ts +1 -1
  943. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +3 -2
  944. package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +1 -1
  945. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +2 -1
  946. package/node_modules/@smithy/fetch-http-handler/package.json +9 -8
  947. package/node_modules/@smithy/hash-blob-browser/dist-cjs/index.js +10 -36
  948. package/node_modules/@smithy/hash-blob-browser/dist-types/index.d.ts +1 -1
  949. package/node_modules/@smithy/hash-blob-browser/package.json +6 -5
  950. package/node_modules/@smithy/hash-node/dist-cjs/index.js +38 -63
  951. package/node_modules/@smithy/hash-node/dist-es/index.js +3 -0
  952. package/node_modules/@smithy/hash-node/dist-types/index.d.ts +1 -1
  953. package/node_modules/@smithy/hash-node/package.json +5 -4
  954. package/node_modules/@smithy/hash-stream-node/dist-cjs/index.js +58 -92
  955. package/node_modules/@smithy/hash-stream-node/dist-es/HashCalculator.js +1 -0
  956. package/node_modules/@smithy/hash-stream-node/dist-types/HashCalculator.d.ts +3 -2
  957. package/node_modules/@smithy/hash-stream-node/dist-types/fileStreamHasher.d.ts +2 -2
  958. package/node_modules/@smithy/hash-stream-node/dist-types/readableStreamHasher.d.ts +2 -2
  959. package/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/HashCalculator.d.ts +2 -1
  960. package/node_modules/@smithy/hash-stream-node/package.json +5 -4
  961. package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +7 -38
  962. package/node_modules/@smithy/invalid-dependency/dist-types/invalidProvider.d.ts +1 -1
  963. package/node_modules/@smithy/invalid-dependency/package.json +3 -2
  964. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +4 -30
  965. package/node_modules/@smithy/is-array-buffer/package.json +5 -4
  966. package/node_modules/@smithy/md5-js/dist-cjs/index.js +153 -186
  967. package/node_modules/@smithy/md5-js/dist-es/index.js +5 -0
  968. package/node_modules/@smithy/md5-js/dist-types/index.d.ts +1 -1
  969. package/node_modules/@smithy/md5-js/package.json +6 -5
  970. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +39 -64
  971. package/node_modules/@smithy/middleware-content-length/dist-types/index.d.ts +1 -1
  972. package/node_modules/@smithy/middleware-content-length/package.json +6 -5
  973. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +1 -1
  974. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +219 -277
  975. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts +3 -3
  976. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +1 -1
  977. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -1
  978. package/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts +3 -3
  979. package/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts +3 -3
  980. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +1 -1
  981. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +1 -1
  982. package/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts +1 -1
  983. package/node_modules/@smithy/middleware-endpoint/package.json +9 -8
  984. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +327 -394
  985. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +1 -1
  986. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +2 -2
  987. package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +1 -0
  988. package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +6 -2
  989. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -1
  990. package/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts +4 -3
  991. package/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts +2 -2
  992. package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +2 -2
  993. package/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts +1 -1
  994. package/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts +1 -1
  995. package/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +1 -1
  996. package/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts +2 -2
  997. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +2 -1
  998. package/node_modules/@smithy/middleware-retry/dist-types/types.d.ts +1 -1
  999. package/node_modules/@smithy/middleware-retry/dist-types/util.d.ts +1 -1
  1000. package/node_modules/@smithy/middleware-retry/package.json +13 -13
  1001. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +89 -118
  1002. package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +1 -1
  1003. package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +1 -1
  1004. package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +1 -1
  1005. package/node_modules/@smithy/middleware-serde/package.json +6 -5
  1006. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +274 -302
  1007. package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +1 -1
  1008. package/node_modules/@smithy/middleware-stack/dist-types/types.d.ts +1 -1
  1009. package/node_modules/@smithy/middleware-stack/package.json +3 -2
  1010. package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +51 -98
  1011. package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +4 -4
  1012. package/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +1 -1
  1013. package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +2 -2
  1014. package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +1 -1
  1015. package/node_modules/@smithy/node-config-provider/package.json +5 -4
  1016. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +690 -769
  1017. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +26 -15
  1018. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -1
  1019. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +1 -1
  1020. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -2
  1021. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +3 -1
  1022. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
  1023. package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  1024. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
  1025. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -4
  1026. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +3 -1
  1027. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
  1028. package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +2 -2
  1029. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +3 -2
  1030. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +4 -4
  1031. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +2 -2
  1032. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +3 -2
  1033. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -1
  1034. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +4 -4
  1035. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
  1036. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  1037. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
  1038. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
  1039. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +1 -1
  1040. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -1
  1041. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +2 -1
  1042. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +2 -1
  1043. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -1
  1044. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  1045. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -1
  1046. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +3 -3
  1047. package/node_modules/@smithy/node-http-handler/package.json +6 -5
  1048. package/node_modules/@smithy/property-provider/dist-cjs/index.js +105 -158
  1049. package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +1 -1
  1050. package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +2 -1
  1051. package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +1 -1
  1052. package/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +2 -1
  1053. package/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +1 -1
  1054. package/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +2 -1
  1055. package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
  1056. package/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +1 -1
  1057. package/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +1 -1
  1058. package/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +2 -1
  1059. package/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +2 -1
  1060. package/node_modules/@smithy/property-provider/package.json +3 -2
  1061. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +154 -247
  1062. package/node_modules/@smithy/protocol-http/dist-es/Field.js +3 -0
  1063. package/node_modules/@smithy/protocol-http/dist-es/Fields.js +2 -1
  1064. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +11 -0
  1065. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +4 -0
  1066. package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +2 -1
  1067. package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +2 -2
  1068. package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +1 -1
  1069. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +2 -1
  1070. package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +1 -1
  1071. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +2 -1
  1072. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +2 -1
  1073. package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +1 -1
  1074. package/node_modules/@smithy/protocol-http/package.json +3 -2
  1075. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +21 -47
  1076. package/node_modules/@smithy/querystring-builder/dist-types/index.d.ts +1 -1
  1077. package/node_modules/@smithy/querystring-builder/package.json +4 -3
  1078. package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +22 -48
  1079. package/node_modules/@smithy/querystring-parser/dist-types/index.d.ts +1 -1
  1080. package/node_modules/@smithy/querystring-parser/package.json +3 -2
  1081. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +70 -103
  1082. package/node_modules/@smithy/service-error-classification/dist-es/index.js +3 -2
  1083. package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +1 -1
  1084. package/node_modules/@smithy/service-error-classification/package.json +3 -2
  1085. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +5 -1
  1086. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +173 -189
  1087. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +9 -5
  1088. package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  1089. package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
  1090. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
  1091. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +4 -0
  1092. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +2 -1
  1093. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +1 -1
  1094. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
  1095. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +5 -1
  1096. package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  1097. package/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
  1098. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +1 -1
  1099. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +5 -1
  1100. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +1 -1
  1101. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +2 -1
  1102. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +2 -5
  1103. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +1 -1
  1104. package/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +1 -1
  1105. package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +1 -1
  1106. package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +2 -2
  1107. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +2 -0
  1108. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
  1109. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +9 -0
  1110. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +5 -1
  1111. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +2 -1
  1112. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
  1113. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +2 -0
  1114. package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +1 -1
  1115. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -2
  1116. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +525 -651
  1117. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +2 -1
  1118. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +1 -1
  1119. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +6 -0
  1120. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -2
  1121. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4Base.d.ts +1 -1
  1122. package/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +1 -1
  1123. package/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +1 -1
  1124. package/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +1 -1
  1125. package/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +1 -1
  1126. package/node_modules/@smithy/signature-v4/dist-types/headerUtil.d.ts +1 -1
  1127. package/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +1 -1
  1128. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +2 -1
  1129. package/node_modules/@smithy/signature-v4/package.json +9 -8
  1130. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +557 -715
  1131. package/node_modules/@smithy/smithy-client/dist-es/client.js +4 -1
  1132. package/node_modules/@smithy/smithy-client/dist-es/command.js +23 -20
  1133. package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +4 -0
  1134. package/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js +34 -0
  1135. package/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts +1 -1
  1136. package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +1 -1
  1137. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
  1138. package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +1 -1
  1139. package/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +1 -1
  1140. package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
  1141. package/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts +1 -1
  1142. package/node_modules/@smithy/smithy-client/dist-types/schemaLogFilter.d.ts +9 -0
  1143. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
  1144. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/schemaLogFilter.d.ts +9 -0
  1145. package/node_modules/@smithy/smithy-client/package.json +8 -7
  1146. package/node_modules/@smithy/types/dist-cjs/index.js +80 -133
  1147. package/node_modules/@smithy/types/dist-es/index.js +2 -0
  1148. package/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
  1149. package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
  1150. package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +4 -4
  1151. package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +2 -2
  1152. package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +2 -2
  1153. package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +2 -2
  1154. package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +1 -1
  1155. package/node_modules/@smithy/types/dist-types/checksum.d.ts +1 -1
  1156. package/node_modules/@smithy/types/dist-types/client.d.ts +4 -4
  1157. package/node_modules/@smithy/types/dist-types/command.d.ts +2 -2
  1158. package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +2 -2
  1159. package/node_modules/@smithy/types/dist-types/encode.d.ts +1 -1
  1160. package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
  1161. package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +2 -2
  1162. package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +1 -1
  1163. package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +1 -1
  1164. package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +3 -3
  1165. package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +1 -1
  1166. package/node_modules/@smithy/types/dist-types/eventStream.d.ts +3 -3
  1167. package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +2 -2
  1168. package/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +1 -1
  1169. package/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
  1170. package/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +2 -2
  1171. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +19 -12
  1172. package/node_modules/@smithy/types/dist-types/http.d.ts +2 -2
  1173. package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +1 -1
  1174. package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +1 -1
  1175. package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +1 -1
  1176. package/node_modules/@smithy/types/dist-types/index.d.ts +2 -0
  1177. package/node_modules/@smithy/types/dist-types/retry.d.ts +1 -1
  1178. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +136 -0
  1179. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +30 -62
  1180. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
  1181. package/node_modules/@smithy/types/dist-types/serde.d.ts +5 -5
  1182. package/node_modules/@smithy/types/dist-types/shapes.d.ts +2 -2
  1183. package/node_modules/@smithy/types/dist-types/signature.d.ts +2 -2
  1184. package/node_modules/@smithy/types/dist-types/stream.d.ts +3 -3
  1185. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
  1186. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +2 -0
  1187. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +142 -0
  1188. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +34 -66
  1189. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
  1190. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
  1191. package/node_modules/@smithy/types/dist-types/uri.d.ts +1 -1
  1192. package/node_modules/@smithy/types/dist-types/util.d.ts +3 -3
  1193. package/node_modules/@smithy/types/dist-types/waiter.d.ts +1 -1
  1194. package/node_modules/@smithy/types/package.json +2 -1
  1195. package/node_modules/@smithy/url-parser/dist-cjs/index.js +20 -46
  1196. package/node_modules/@smithy/url-parser/dist-types/index.d.ts +1 -1
  1197. package/node_modules/@smithy/url-parser/package.json +4 -3
  1198. package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
  1199. package/node_modules/@smithy/util-base64/dist-cjs/index.js +16 -24
  1200. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +1 -2
  1201. package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
  1202. package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
  1203. package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
  1204. package/node_modules/@smithy/util-base64/package.json +7 -6
  1205. package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +26 -53
  1206. package/node_modules/@smithy/util-body-length-browser/package.json +5 -4
  1207. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +29 -50
  1208. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
  1209. package/node_modules/@smithy/util-body-length-node/package.json +5 -4
  1210. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +17 -44
  1211. package/node_modules/@smithy/util-buffer-from/package.json +6 -5
  1212. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +26 -60
  1213. package/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts +1 -1
  1214. package/node_modules/@smithy/util-config-provider/dist-types/numberSelector.d.ts +1 -1
  1215. package/node_modules/@smithy/util-config-provider/package.json +5 -4
  1216. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +9 -22
  1217. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +13 -12
  1218. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +2 -2
  1219. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
  1220. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  1221. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +65 -110
  1222. package/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts +1 -1
  1223. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -7
  1224. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +435 -507
  1225. package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +3 -2
  1226. package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
  1227. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
  1228. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
  1229. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
  1230. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
  1231. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
  1232. package/node_modules/@smithy/util-endpoints/dist-types/debug/toDebugString.d.ts +3 -3
  1233. package/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +1 -1
  1234. package/node_modules/@smithy/util-endpoints/dist-types/lib/parseURL.d.ts +1 -1
  1235. package/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts +2 -2
  1236. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
  1237. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
  1238. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
  1239. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
  1240. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
  1241. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
  1242. package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts +1 -1
  1243. package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -1
  1244. package/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -1
  1245. package/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -1
  1246. package/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -1
  1247. package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +1 -1
  1248. package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
  1249. package/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts +1 -1
  1250. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +1 -1
  1251. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +1 -1
  1252. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +2 -2
  1253. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +1 -1
  1254. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
  1255. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +7 -2
  1256. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +1 -1
  1257. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
  1258. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
  1259. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +7 -1
  1260. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
  1261. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +1 -1
  1262. package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +1 -1
  1263. package/node_modules/@smithy/util-endpoints/package.json +6 -5
  1264. package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +29 -58
  1265. package/node_modules/@smithy/util-hex-encoding/package.json +5 -4
  1266. package/node_modules/@smithy/util-middleware/dist-cjs/index.js +11 -41
  1267. package/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts +1 -1
  1268. package/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts +1 -1
  1269. package/node_modules/@smithy/util-middleware/package.json +3 -2
  1270. package/node_modules/@smithy/util-retry/dist-cjs/index.js +260 -340
  1271. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +4 -1
  1272. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +1 -0
  1273. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +17 -8
  1274. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +5 -3
  1275. package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +2 -2
  1276. package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +1 -1
  1277. package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +1 -1
  1278. package/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +1 -1
  1279. package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
  1280. package/node_modules/@smithy/util-retry/package.json +7 -4
  1281. package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +3 -2
  1282. package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +7 -3
  1283. package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +2 -3
  1284. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
  1285. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +2 -3
  1286. package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
  1287. package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +4 -8
  1288. package/node_modules/@smithy/util-stream/dist-cjs/index.js +78 -97
  1289. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +1 -2
  1290. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
  1291. package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +3 -7
  1292. package/node_modules/@smithy/util-stream/dist-es/ByteArrayCollector.js +3 -2
  1293. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +12 -7
  1294. package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +5 -0
  1295. package/node_modules/@smithy/util-stream/dist-es/headStream.js +3 -6
  1296. package/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +1 -1
  1297. package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  1298. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.browser.d.ts +1 -1
  1299. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +3 -2
  1300. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +1 -1
  1301. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +3 -3
  1302. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts +1 -1
  1303. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +1 -1
  1304. package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +1 -1
  1305. package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts +1 -1
  1306. package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
  1307. package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +1 -1
  1308. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  1309. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +2 -1
  1310. package/node_modules/@smithy/util-stream/package.json +13 -12
  1311. package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +6 -40
  1312. package/node_modules/@smithy/util-uri-escape/package.json +5 -4
  1313. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +27 -60
  1314. package/node_modules/@smithy/util-utf8/package.json +6 -5
  1315. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +152 -190
  1316. package/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts +1 -1
  1317. package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +1 -1
  1318. package/node_modules/@smithy/util-waiter/dist-types/utils/validate.d.ts +1 -1
  1319. package/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts +1 -1
  1320. package/node_modules/@smithy/util-waiter/package.json +4 -3
  1321. package/node_modules/@smithy/uuid/LICENSE +201 -0
  1322. package/node_modules/@smithy/uuid/README.md +10 -0
  1323. package/node_modules/@smithy/uuid/dist-cjs/index.js +36 -0
  1324. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
  1325. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.native.js +4 -0
  1326. package/node_modules/@smithy/uuid/dist-es/index.js +1 -0
  1327. package/node_modules/@smithy/uuid/dist-es/randomUUID.browser.js +1 -0
  1328. package/node_modules/@smithy/uuid/dist-es/randomUUID.js +2 -0
  1329. package/node_modules/@smithy/uuid/dist-es/randomUUID.native.js +1 -0
  1330. package/node_modules/@smithy/uuid/dist-es/v4.js +31 -0
  1331. package/node_modules/@smithy/uuid/dist-types/index.d.ts +1 -0
  1332. package/node_modules/@smithy/uuid/dist-types/randomUUID.browser.d.ts +1 -0
  1333. package/node_modules/@smithy/uuid/dist-types/randomUUID.d.ts +2 -0
  1334. package/node_modules/@smithy/uuid/dist-types/randomUUID.native.d.ts +1 -0
  1335. package/node_modules/@smithy/uuid/dist-types/ts3.4/index.d.ts +1 -0
  1336. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.browser.d.ts +1 -0
  1337. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.d.ts +2 -0
  1338. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.native.d.ts +1 -0
  1339. package/node_modules/@smithy/uuid/dist-types/ts3.4/v4.d.ts +19 -0
  1340. package/node_modules/@smithy/uuid/dist-types/v4.d.ts +19 -0
  1341. package/node_modules/@smithy/uuid/package.json +66 -0
  1342. package/node_modules/@types/aws-lambda/README.md +1 -1
  1343. package/node_modules/@types/aws-lambda/package.json +3 -3
  1344. package/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.ts +1 -1
  1345. package/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +20 -12
  1346. package/node_modules/@types/aws-lambda/trigger/sns.d.ts +2 -2
  1347. package/node_modules/axios/CHANGELOG.md +58 -0
  1348. package/node_modules/axios/README.md +87 -10
  1349. package/node_modules/axios/dist/axios.js +355 -289
  1350. package/node_modules/axios/dist/axios.js.map +1 -1
  1351. package/node_modules/axios/dist/axios.min.js +2 -2
  1352. package/node_modules/axios/dist/axios.min.js.map +1 -1
  1353. package/node_modules/axios/dist/browser/axios.cjs +286 -213
  1354. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  1355. package/node_modules/axios/dist/esm/axios.js +286 -213
  1356. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  1357. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  1358. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  1359. package/node_modules/axios/dist/node/axios.cjs +377 -213
  1360. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  1361. package/node_modules/axios/index.d.cts +12 -5
  1362. package/node_modules/axios/index.d.ts +13 -4
  1363. package/node_modules/axios/lib/adapters/adapters.js +6 -4
  1364. package/node_modules/axios/lib/adapters/fetch.js +221 -162
  1365. package/node_modules/axios/lib/adapters/http.js +18 -0
  1366. package/node_modules/axios/lib/adapters/xhr.js +11 -8
  1367. package/node_modules/axios/lib/core/Axios.js +0 -2
  1368. package/node_modules/axios/lib/core/AxiosError.js +10 -3
  1369. package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  1370. package/node_modules/axios/lib/defaults/index.js +1 -1
  1371. package/node_modules/axios/lib/env/data.js +1 -1
  1372. package/node_modules/axios/lib/helpers/buildURL.js +1 -3
  1373. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
  1374. package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
  1375. package/node_modules/axios/lib/utils.js +5 -3
  1376. package/node_modules/axios/package.json +18 -12
  1377. package/node_modules/bowser/index.d.ts +1 -1
  1378. package/node_modules/bowser/package.json +1 -1
  1379. package/package.json +18 -18
  1380. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js +0 -12
  1381. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js +0 -6
  1382. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js +0 -2
  1383. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js +0 -1
  1384. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +0 -24
  1385. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/config.d.ts +0 -17
  1386. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/getRealRegion.d.ts +0 -4
  1387. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/index.d.ts +0 -8
  1388. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/isFipsRegion.d.ts +0 -4
  1389. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +0 -37
  1390. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +0 -8
  1391. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +0 -1
  1392. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +0 -2
  1393. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +0 -1
  1394. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +0 -14
  1395. package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
  1396. package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
  1397. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +0 -1
  1398. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +0 -1
  1399. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +0 -1
  1400. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +0 -1
  1401. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +0 -1
  1402. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +0 -1
  1403. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +0 -1
  1404. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +0 -1
  1405. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +0 -1
  1406. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +0 -1
  1407. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +0 -1
  1408. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +0 -1
  1409. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +0 -1
  1410. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +0 -1
  1411. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +0 -1
  1412. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +0 -1
  1413. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +0 -1
  1414. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +0 -1
  1415. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +0 -1
  1416. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +0 -1
  1417. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +0 -1
  1418. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -1
  1419. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -1
  1420. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -1
  1421. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -1
  1422. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -1
  1423. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -1
  1424. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -1
  1425. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -1
  1426. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -1
  1427. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -1
  1428. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -1
  1429. package/node_modules/@smithy/core/dist-cjs/protocols/requestBuilder.js +0 -1
  1430. package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -1
  1431. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -1
  1432. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -1
  1433. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -1
  1434. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -1
  1435. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -1
  1436. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -1
  1437. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -1
  1438. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +0 -1
  1439. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +0 -1
  1440. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +0 -1
  1441. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +0 -1
  1442. package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +0 -1
  1443. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +0 -1
  1444. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +0 -1
  1445. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +0 -1
  1446. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +0 -1
  1447. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +0 -1
  1448. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +0 -1
  1449. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +0 -1
  1450. package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +0 -1
  1451. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +0 -1
  1452. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +0 -1
  1453. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +0 -1
  1454. package/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js +0 -1
  1455. package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +0 -1
  1456. package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +0 -1
  1457. package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +0 -1
  1458. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +0 -1
  1459. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +0 -1
  1460. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +0 -1
  1461. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +0 -1
  1462. package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +0 -1
  1463. package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +0 -1
  1464. package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +0 -1
  1465. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/EventStreamMarshaller.js +0 -1
  1466. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/provider.js +0 -1
  1467. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/utils.js +0 -1
  1468. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/EventStreamSerdeConfig.js +0 -1
  1469. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/EventStreamMarshaller.js +0 -1
  1470. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/provider.js +0 -1
  1471. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/utils.js +0 -1
  1472. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/EventStreamMarshaller.js +0 -1
  1473. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/getChunkedStream.js +0 -1
  1474. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/getUnmarshalledStream.js +0 -1
  1475. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/provider.js +0 -1
  1476. package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +0 -1
  1477. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +0 -1
  1478. package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +0 -1
  1479. package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
  1480. package/node_modules/@smithy/hash-stream-node/dist-cjs/HashCalculator.js +0 -1
  1481. package/node_modules/@smithy/hash-stream-node/dist-cjs/fileStreamHasher.js +0 -1
  1482. package/node_modules/@smithy/hash-stream-node/dist-cjs/readableStreamHasher.js +0 -1
  1483. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +0 -1
  1484. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +0 -1
  1485. package/node_modules/@smithy/md5-js/dist-cjs/constants.js +0 -1
  1486. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +0 -1
  1487. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +0 -1
  1488. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js +0 -1
  1489. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +0 -1
  1490. package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +0 -1
  1491. package/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js +0 -1
  1492. package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +0 -1
  1493. package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointRequiredConfig.js +0 -1
  1494. package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js +0 -1
  1495. package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js +0 -1
  1496. package/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js +0 -1
  1497. package/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
  1498. package/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js +0 -1
  1499. package/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js +0 -1
  1500. package/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js +0 -1
  1501. package/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js +0 -1
  1502. package/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +0 -1
  1503. package/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js +0 -1
  1504. package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +0 -1
  1505. package/node_modules/@smithy/middleware-retry/dist-cjs/types.js +0 -1
  1506. package/node_modules/@smithy/middleware-retry/dist-cjs/util.js +0 -1
  1507. package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +0 -1
  1508. package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +0 -1
  1509. package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +0 -1
  1510. package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +0 -1
  1511. package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +0 -1
  1512. package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +0 -1
  1513. package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +0 -1
  1514. package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +0 -1
  1515. package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +0 -1
  1516. package/node_modules/@smithy/node-config-provider/dist-cjs/getSelectorName.js +0 -1
  1517. package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
  1518. package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
  1519. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
  1520. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
  1521. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
  1522. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
  1523. package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
  1524. package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
  1525. package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
  1526. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
  1527. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
  1528. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
  1529. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
  1530. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
  1531. package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
  1532. package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
  1533. package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +0 -1
  1534. package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +0 -1
  1535. package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +0 -1
  1536. package/node_modules/@smithy/property-provider/dist-cjs/chain.js +0 -1
  1537. package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +0 -1
  1538. package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +0 -1
  1539. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +0 -1
  1540. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +0 -1
  1541. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -1
  1542. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -1
  1543. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +0 -1
  1544. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +0 -1
  1545. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +0 -1
  1546. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +0 -1
  1547. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -1
  1548. package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +0 -1
  1549. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +0 -1
  1550. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +0 -1
  1551. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +0 -1
  1552. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +0 -1
  1553. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +0 -1
  1554. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +0 -1
  1555. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +0 -1
  1556. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +0 -1
  1557. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +0 -1
  1558. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +0 -1
  1559. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +0 -1
  1560. package/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +0 -1
  1561. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +0 -1
  1562. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +0 -1
  1563. package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +0 -1
  1564. package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +0 -1
  1565. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +0 -1
  1566. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +0 -1
  1567. package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +0 -1
  1568. package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +0 -1
  1569. package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +0 -1
  1570. package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +0 -1
  1571. package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +0 -1
  1572. package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +0 -1
  1573. package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +0 -1
  1574. package/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +0 -1
  1575. package/node_modules/@smithy/smithy-client/dist-cjs/client.js +0 -1
  1576. package/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js +0 -1
  1577. package/node_modules/@smithy/smithy-client/dist-cjs/command.js +0 -1
  1578. package/node_modules/@smithy/smithy-client/dist-cjs/constants.js +0 -1
  1579. package/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js +0 -1
  1580. package/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js +0 -1
  1581. package/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js +0 -1
  1582. package/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +0 -1
  1583. package/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js +0 -1
  1584. package/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js +0 -1
  1585. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js +0 -1
  1586. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
  1587. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js +0 -1
  1588. package/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js +0 -1
  1589. package/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js +0 -1
  1590. package/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js +0 -1
  1591. package/node_modules/@smithy/smithy-client/dist-cjs/is-serializable-header-value.js +0 -1
  1592. package/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js +0 -1
  1593. package/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js +0 -1
  1594. package/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js +0 -1
  1595. package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +0 -1
  1596. package/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
  1597. package/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
  1598. package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
  1599. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
  1600. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
  1601. package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
  1602. package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
  1603. package/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
  1604. package/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
  1605. package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
  1606. package/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
  1607. package/node_modules/@smithy/types/dist-cjs/client.js +0 -1
  1608. package/node_modules/@smithy/types/dist-cjs/command.js +0 -1
  1609. package/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
  1610. package/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
  1611. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
  1612. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
  1613. package/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
  1614. package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
  1615. package/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
  1616. package/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
  1617. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
  1618. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
  1619. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
  1620. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
  1621. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
  1622. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
  1623. package/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
  1624. package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
  1625. package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
  1626. package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
  1627. package/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
  1628. package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
  1629. package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
  1630. package/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
  1631. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
  1632. package/node_modules/@smithy/types/dist-cjs/http.js +0 -1
  1633. package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
  1634. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
  1635. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
  1636. package/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
  1637. package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
  1638. package/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
  1639. package/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
  1640. package/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
  1641. package/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
  1642. package/node_modules/@smithy/types/dist-cjs/response.js +0 -1
  1643. package/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
  1644. package/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
  1645. package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
  1646. package/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
  1647. package/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
  1648. package/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
  1649. package/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
  1650. package/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
  1651. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
  1652. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
  1653. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
  1654. package/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
  1655. package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
  1656. package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
  1657. package/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
  1658. package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
  1659. package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
  1660. package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
  1661. package/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
  1662. package/node_modules/@smithy/types/dist-cjs/util.js +0 -1
  1663. package/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
  1664. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +0 -1
  1665. package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +0 -1
  1666. package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +0 -1
  1667. package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +0 -1
  1668. package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +0 -1
  1669. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +0 -1
  1670. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +0 -1
  1671. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +0 -1
  1672. package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +0 -1
  1673. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +0 -1
  1674. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +0 -1
  1675. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +0 -1
  1676. package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +0 -1
  1677. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -1
  1678. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +0 -1
  1679. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -1
  1680. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +0 -1
  1681. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +0 -1
  1682. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +0 -1
  1683. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -1
  1684. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +0 -1
  1685. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +0 -1
  1686. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +0 -1
  1687. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +0 -1
  1688. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +0 -1
  1689. package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +0 -1
  1690. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +0 -1
  1691. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +0 -1
  1692. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +0 -1
  1693. package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +0 -1
  1694. package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +0 -1
  1695. package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +0 -1
  1696. package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +0 -1
  1697. package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +0 -1
  1698. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +0 -1
  1699. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +0 -1
  1700. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +0 -1
  1701. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -1
  1702. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -1
  1703. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -1
  1704. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -1
  1705. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -1
  1706. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -1
  1707. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -1
  1708. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -1
  1709. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -1
  1710. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -1
  1711. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -1
  1712. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -1
  1713. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -1
  1714. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +0 -1
  1715. package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +0 -1
  1716. package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +0 -1
  1717. package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
  1718. package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +0 -1
  1719. package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +0 -1
  1720. package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +0 -1
  1721. package/node_modules/@smithy/util-retry/dist-cjs/config.js +0 -1
  1722. package/node_modules/@smithy/util-retry/dist-cjs/constants.js +0 -1
  1723. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +0 -1
  1724. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +0 -1
  1725. package/node_modules/@smithy/util-retry/dist-cjs/types.js +0 -1
  1726. package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +0 -1
  1727. package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +0 -1
  1728. package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
  1729. package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
  1730. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
  1731. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +0 -1
  1732. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +0 -1
  1733. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  1734. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  1735. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  1736. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  1737. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  1738. package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +0 -1
  1739. package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +0 -1
  1740. package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +0 -1
  1741. package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +0 -1
  1742. package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +0 -1
  1743. package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +0 -1
  1744. package/node_modules/@types/uuid/LICENSE +0 -21
  1745. package/node_modules/@types/uuid/README.md +0 -15
  1746. package/node_modules/@types/uuid/index.d.mts +0 -12
  1747. package/node_modules/@types/uuid/index.d.ts +0 -86
  1748. package/node_modules/@types/uuid/package.json +0 -54
  1749. package/node_modules/uuid/CHANGELOG.md +0 -274
  1750. package/node_modules/uuid/CONTRIBUTING.md +0 -18
  1751. package/node_modules/uuid/LICENSE.md +0 -9
  1752. package/node_modules/uuid/README.md +0 -466
  1753. package/node_modules/uuid/dist/bin/uuid +0 -2
  1754. package/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  1755. package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  1756. package/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  1757. package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  1758. package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  1759. package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  1760. package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  1761. package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  1762. package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  1763. package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  1764. package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  1765. package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  1766. package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  1767. package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  1768. package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  1769. package/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  1770. package/node_modules/uuid/dist/esm-browser/index.js +0 -9
  1771. package/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  1772. package/node_modules/uuid/dist/esm-browser/native.js +0 -4
  1773. package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  1774. package/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  1775. package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  1776. package/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  1777. package/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  1778. package/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  1779. package/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  1780. package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  1781. package/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  1782. package/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  1783. package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  1784. package/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  1785. package/node_modules/uuid/dist/esm-browser/version.js +0 -11
  1786. package/node_modules/uuid/dist/esm-node/index.js +0 -9
  1787. package/node_modules/uuid/dist/esm-node/md5.js +0 -13
  1788. package/node_modules/uuid/dist/esm-node/native.js +0 -4
  1789. package/node_modules/uuid/dist/esm-node/nil.js +0 -1
  1790. package/node_modules/uuid/dist/esm-node/parse.js +0 -35
  1791. package/node_modules/uuid/dist/esm-node/regex.js +0 -1
  1792. package/node_modules/uuid/dist/esm-node/rng.js +0 -12
  1793. package/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  1794. package/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  1795. package/node_modules/uuid/dist/esm-node/v1.js +0 -95
  1796. package/node_modules/uuid/dist/esm-node/v3.js +0 -4
  1797. package/node_modules/uuid/dist/esm-node/v35.js +0 -66
  1798. package/node_modules/uuid/dist/esm-node/v4.js +0 -29
  1799. package/node_modules/uuid/dist/esm-node/v5.js +0 -4
  1800. package/node_modules/uuid/dist/esm-node/validate.js +0 -7
  1801. package/node_modules/uuid/dist/esm-node/version.js +0 -11
  1802. package/node_modules/uuid/dist/index.js +0 -79
  1803. package/node_modules/uuid/dist/md5-browser.js +0 -223
  1804. package/node_modules/uuid/dist/md5.js +0 -23
  1805. package/node_modules/uuid/dist/native-browser.js +0 -11
  1806. package/node_modules/uuid/dist/native.js +0 -15
  1807. package/node_modules/uuid/dist/nil.js +0 -8
  1808. package/node_modules/uuid/dist/parse.js +0 -45
  1809. package/node_modules/uuid/dist/regex.js +0 -8
  1810. package/node_modules/uuid/dist/rng-browser.js +0 -25
  1811. package/node_modules/uuid/dist/rng.js +0 -24
  1812. package/node_modules/uuid/dist/sha1-browser.js +0 -104
  1813. package/node_modules/uuid/dist/sha1.js +0 -23
  1814. package/node_modules/uuid/dist/stringify.js +0 -44
  1815. package/node_modules/uuid/dist/uuid-bin.js +0 -85
  1816. package/node_modules/uuid/dist/v1.js +0 -107
  1817. package/node_modules/uuid/dist/v3.js +0 -16
  1818. package/node_modules/uuid/dist/v35.js +0 -80
  1819. package/node_modules/uuid/dist/v4.js +0 -43
  1820. package/node_modules/uuid/dist/v5.js +0 -16
  1821. package/node_modules/uuid/dist/validate.js +0 -17
  1822. package/node_modules/uuid/dist/version.js +0 -21
  1823. package/node_modules/uuid/package.json +0 -135
  1824. package/node_modules/uuid/wrapper.mjs +0 -10
  1825. /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
  1826. /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
  1827. /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
@@ -1,1759 +1,1624 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
20
2
 
21
- // src/submodules/protocols/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AwsEc2QueryProtocol: () => AwsEc2QueryProtocol,
25
- AwsJson1_0Protocol: () => AwsJson1_0Protocol,
26
- AwsJson1_1Protocol: () => AwsJson1_1Protocol,
27
- AwsJsonRpcProtocol: () => AwsJsonRpcProtocol,
28
- AwsQueryProtocol: () => AwsQueryProtocol,
29
- AwsRestJsonProtocol: () => AwsRestJsonProtocol,
30
- AwsRestXmlProtocol: () => AwsRestXmlProtocol,
31
- JsonCodec: () => JsonCodec,
32
- JsonShapeDeserializer: () => JsonShapeDeserializer,
33
- JsonShapeSerializer: () => JsonShapeSerializer,
34
- XmlCodec: () => XmlCodec,
35
- XmlShapeDeserializer: () => XmlShapeDeserializer,
36
- XmlShapeSerializer: () => XmlShapeSerializer,
37
- _toBool: () => _toBool,
38
- _toNum: () => _toNum,
39
- _toStr: () => _toStr,
40
- awsExpectUnion: () => awsExpectUnion,
41
- loadRestJsonErrorCode: () => loadRestJsonErrorCode,
42
- loadRestXmlErrorCode: () => loadRestXmlErrorCode,
43
- parseJsonBody: () => parseJsonBody,
44
- parseJsonErrorBody: () => parseJsonErrorBody,
45
- parseXmlBody: () => parseXmlBody,
46
- parseXmlErrorBody: () => parseXmlErrorBody
47
- });
48
- module.exports = __toCommonJS(index_exports);
3
+ var cbor = require('@smithy/core/cbor');
4
+ var schema = require('@smithy/core/schema');
5
+ var protocols = require('@smithy/core/protocols');
6
+ var serde = require('@smithy/core/serde');
7
+ var utilBase64 = require('@smithy/util-base64');
8
+ var smithyClient = require('@smithy/smithy-client');
9
+ var utilUtf8 = require('@smithy/util-utf8');
10
+ var xmlBuilder = require('@aws-sdk/xml-builder');
49
11
 
50
- // src/submodules/protocols/coercing-serializers.ts
51
- var _toStr = /* @__PURE__ */ __name((val) => {
52
- if (val == null) {
12
+ class ProtocolLib {
13
+ resolveRestContentType(defaultContentType, inputSchema) {
14
+ const members = inputSchema.getMemberSchemas();
15
+ const httpPayloadMember = Object.values(members).find((m) => {
16
+ return !!m.getMergedTraits().httpPayload;
17
+ });
18
+ if (httpPayloadMember) {
19
+ const mediaType = httpPayloadMember.getMergedTraits().mediaType;
20
+ if (mediaType) {
21
+ return mediaType;
22
+ }
23
+ else if (httpPayloadMember.isStringSchema()) {
24
+ return "text/plain";
25
+ }
26
+ else if (httpPayloadMember.isBlobSchema()) {
27
+ return "application/octet-stream";
28
+ }
29
+ else {
30
+ return defaultContentType;
31
+ }
32
+ }
33
+ else if (!inputSchema.isUnitSchema()) {
34
+ const hasBody = Object.values(members).find((m) => {
35
+ const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
36
+ const noPrefixHeaders = httpPrefixHeaders === void 0;
37
+ return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders;
38
+ });
39
+ if (hasBody) {
40
+ return defaultContentType;
41
+ }
42
+ }
43
+ }
44
+ async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
45
+ let namespace = defaultNamespace;
46
+ let errorName = errorIdentifier;
47
+ if (errorIdentifier.includes("#")) {
48
+ [namespace, errorName] = errorIdentifier.split("#");
49
+ }
50
+ const errorMetadata = {
51
+ $metadata: metadata,
52
+ $response: response,
53
+ $fault: response.statusCode < 500 ? "client" : "server",
54
+ };
55
+ const registry = schema.TypeRegistry.for(namespace);
56
+ try {
57
+ const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
58
+ return { errorSchema, errorMetadata };
59
+ }
60
+ catch (e) {
61
+ dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
62
+ const synthetic = schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
63
+ const baseExceptionSchema = synthetic.getBaseException();
64
+ if (baseExceptionSchema) {
65
+ const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
66
+ throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
67
+ }
68
+ throw Object.assign(new Error(errorName), errorMetadata, dataObject);
69
+ }
70
+ }
71
+ setQueryCompatError(output, response) {
72
+ const queryErrorHeader = response.headers?.["x-amzn-query-error"];
73
+ if (output !== undefined && queryErrorHeader != null) {
74
+ const [Code, Type] = queryErrorHeader.split(";");
75
+ const entries = Object.entries(output);
76
+ const Error = {
77
+ Code,
78
+ Type,
79
+ };
80
+ Object.assign(output, Error);
81
+ for (const [k, v] of entries) {
82
+ Error[k] = v;
83
+ }
84
+ delete Error.__type;
85
+ output.Error = Error;
86
+ }
87
+ }
88
+ queryCompatOutput(queryCompatErrorData, errorData) {
89
+ if (queryCompatErrorData.Error) {
90
+ errorData.Error = queryCompatErrorData.Error;
91
+ }
92
+ if (queryCompatErrorData.Type) {
93
+ errorData.Type = queryCompatErrorData.Type;
94
+ }
95
+ if (queryCompatErrorData.Code) {
96
+ errorData.Code = queryCompatErrorData.Code;
97
+ }
98
+ }
99
+ }
100
+
101
+ class AwsSmithyRpcV2CborProtocol extends cbor.SmithyRpcV2CborProtocol {
102
+ awsQueryCompatible;
103
+ mixin = new ProtocolLib();
104
+ constructor({ defaultNamespace, awsQueryCompatible, }) {
105
+ super({ defaultNamespace });
106
+ this.awsQueryCompatible = !!awsQueryCompatible;
107
+ }
108
+ async serializeRequest(operationSchema, input, context) {
109
+ const request = await super.serializeRequest(operationSchema, input, context);
110
+ if (this.awsQueryCompatible) {
111
+ request.headers["x-amzn-query-mode"] = "true";
112
+ }
113
+ return request;
114
+ }
115
+ async handleError(operationSchema, context, response, dataObject, metadata) {
116
+ if (this.awsQueryCompatible) {
117
+ this.mixin.setQueryCompatError(dataObject, response);
118
+ }
119
+ const errorName = cbor.loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
120
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata);
121
+ const ns = schema.NormalizedSchema.of(errorSchema);
122
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
123
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
124
+ const exception = new ErrorCtor(message);
125
+ const output = {};
126
+ for (const [name, member] of ns.structIterator()) {
127
+ output[name] = this.deserializer.readValue(member, dataObject[name]);
128
+ }
129
+ if (this.awsQueryCompatible) {
130
+ this.mixin.queryCompatOutput(dataObject, output);
131
+ }
132
+ throw Object.assign(exception, errorMetadata, {
133
+ $fault: ns.getMergedTraits().error,
134
+ message,
135
+ }, output);
136
+ }
137
+ }
138
+
139
+ const _toStr = (val) => {
140
+ if (val == null) {
141
+ return val;
142
+ }
143
+ if (typeof val === "number" || typeof val === "bigint") {
144
+ const warning = new Error(`Received number ${val} where a string was expected.`);
145
+ warning.name = "Warning";
146
+ console.warn(warning);
147
+ return String(val);
148
+ }
149
+ if (typeof val === "boolean") {
150
+ const warning = new Error(`Received boolean ${val} where a string was expected.`);
151
+ warning.name = "Warning";
152
+ console.warn(warning);
153
+ return String(val);
154
+ }
53
155
  return val;
54
- }
55
- if (typeof val === "number" || typeof val === "bigint") {
56
- const warning = new Error(`Received number ${val} where a string was expected.`);
57
- warning.name = "Warning";
58
- console.warn(warning);
59
- return String(val);
60
- }
61
- if (typeof val === "boolean") {
62
- const warning = new Error(`Received boolean ${val} where a string was expected.`);
63
- warning.name = "Warning";
64
- console.warn(warning);
65
- return String(val);
66
- }
67
- return val;
68
- }, "_toStr");
69
- var _toBool = /* @__PURE__ */ __name((val) => {
70
- if (val == null) {
156
+ };
157
+ const _toBool = (val) => {
158
+ if (val == null) {
159
+ return val;
160
+ }
161
+ if (typeof val === "string") {
162
+ const lowercase = val.toLowerCase();
163
+ if (val !== "" && lowercase !== "false" && lowercase !== "true") {
164
+ const warning = new Error(`Received string "${val}" where a boolean was expected.`);
165
+ warning.name = "Warning";
166
+ console.warn(warning);
167
+ }
168
+ return val !== "" && lowercase !== "false";
169
+ }
71
170
  return val;
72
- }
73
- if (typeof val === "number") {
74
- }
75
- if (typeof val === "string") {
76
- const lowercase = val.toLowerCase();
77
- if (val !== "" && lowercase !== "false" && lowercase !== "true") {
78
- const warning = new Error(`Received string "${val}" where a boolean was expected.`);
79
- warning.name = "Warning";
80
- console.warn(warning);
81
- }
82
- return val !== "" && lowercase !== "false";
83
- }
84
- return val;
85
- }, "_toBool");
86
- var _toNum = /* @__PURE__ */ __name((val) => {
87
- if (val == null) {
171
+ };
172
+ const _toNum = (val) => {
173
+ if (val == null) {
174
+ return val;
175
+ }
176
+ if (typeof val === "string") {
177
+ const num = Number(val);
178
+ if (num.toString() !== val) {
179
+ const warning = new Error(`Received string "${val}" where a number was expected.`);
180
+ warning.name = "Warning";
181
+ console.warn(warning);
182
+ return val;
183
+ }
184
+ return num;
185
+ }
88
186
  return val;
89
- }
90
- if (typeof val === "boolean") {
91
- }
92
- if (typeof val === "string") {
93
- const num = Number(val);
94
- if (num.toString() !== val) {
95
- const warning = new Error(`Received string "${val}" where a number was expected.`);
96
- warning.name = "Warning";
97
- console.warn(warning);
98
- return val;
99
- }
100
- return num;
101
- }
102
- return val;
103
- }, "_toNum");
104
-
105
- // src/submodules/protocols/json/AwsJsonRpcProtocol.ts
106
- var import_protocols = require("@smithy/core/protocols");
107
- var import_schema3 = require("@smithy/core/schema");
108
- var import_util_body_length_browser = require("@smithy/util-body-length-browser");
109
-
110
- // src/submodules/protocols/ConfigurableSerdeContext.ts
111
- var SerdeContextConfig = class {
112
- static {
113
- __name(this, "SerdeContextConfig");
114
- }
115
- serdeContext;
116
- setSerdeContext(serdeContext) {
117
- this.serdeContext = serdeContext;
118
- }
119
187
  };
120
188
 
121
- // src/submodules/protocols/json/JsonShapeDeserializer.ts
122
- var import_schema = require("@smithy/core/schema");
123
- var import_serde2 = require("@smithy/core/serde");
124
- var import_util_base64 = require("@smithy/util-base64");
189
+ class SerdeContextConfig {
190
+ serdeContext;
191
+ setSerdeContext(serdeContext) {
192
+ this.serdeContext = serdeContext;
193
+ }
194
+ }
125
195
 
126
- // src/submodules/protocols/json/jsonReviver.ts
127
- var import_serde = require("@smithy/core/serde");
128
196
  function jsonReviver(key, value, context) {
129
- if (context?.source) {
130
- const numericString = context.source;
131
- if (typeof value === "number") {
132
- if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
133
- const isFractional = numericString.includes(".");
134
- if (isFractional) {
135
- return new import_serde.NumericValue(numericString, "bigDecimal");
136
- } else {
137
- return BigInt(numericString);
138
- }
139
- }
140
- }
141
- }
142
- return value;
197
+ if (context?.source) {
198
+ const numericString = context.source;
199
+ if (typeof value === "number") {
200
+ if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
201
+ const isFractional = numericString.includes(".");
202
+ if (isFractional) {
203
+ return new serde.NumericValue(numericString, "bigDecimal");
204
+ }
205
+ else {
206
+ return BigInt(numericString);
207
+ }
208
+ }
209
+ }
210
+ }
211
+ return value;
143
212
  }
144
- __name(jsonReviver, "jsonReviver");
145
213
 
146
- // src/submodules/protocols/common.ts
147
- var import_smithy_client = require("@smithy/smithy-client");
148
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
214
+ const collectBodyString = (streamBody, context) => smithyClient.collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? utilUtf8.toUtf8)(body));
149
215
 
150
- // src/submodules/protocols/json/parseJsonBody.ts
151
- var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
152
- if (encoded.length) {
153
- try {
154
- return JSON.parse(encoded);
155
- } catch (e) {
156
- if (e?.name === "SyntaxError") {
157
- Object.defineProperty(e, "$responseBodyText", {
158
- value: encoded
159
- });
160
- }
161
- throw e;
162
- }
163
- }
164
- return {};
165
- }), "parseJsonBody");
166
- var parseJsonErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
167
- const value = await parseJsonBody(errorBody, context);
168
- value.message = value.message ?? value.Message;
169
- return value;
170
- }, "parseJsonErrorBody");
171
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
172
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
173
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
174
- let cleanValue = rawValue;
175
- if (typeof cleanValue === "number") {
176
- cleanValue = cleanValue.toString();
177
- }
178
- if (cleanValue.indexOf(",") >= 0) {
179
- cleanValue = cleanValue.split(",")[0];
180
- }
181
- if (cleanValue.indexOf(":") >= 0) {
182
- cleanValue = cleanValue.split(":")[0];
183
- }
184
- if (cleanValue.indexOf("#") >= 0) {
185
- cleanValue = cleanValue.split("#")[1];
186
- }
187
- return cleanValue;
188
- }, "sanitizeErrorCode");
189
- const headerKey = findKey(output.headers, "x-amzn-errortype");
190
- if (headerKey !== void 0) {
191
- return sanitizeErrorCode(output.headers[headerKey]);
192
- }
193
- if (data && typeof data === "object") {
194
- const codeKey = findKey(data, "code");
195
- if (codeKey && data[codeKey] !== void 0) {
196
- return sanitizeErrorCode(data[codeKey]);
197
- }
198
- if (data["__type"] !== void 0) {
199
- return sanitizeErrorCode(data["__type"]);
200
- }
201
- }
202
- }, "loadRestJsonErrorCode");
203
-
204
- // src/submodules/protocols/json/JsonShapeDeserializer.ts
205
- var JsonShapeDeserializer = class extends SerdeContextConfig {
206
- constructor(settings) {
207
- super();
208
- this.settings = settings;
209
- }
210
- static {
211
- __name(this, "JsonShapeDeserializer");
212
- }
213
- async read(schema, data) {
214
- return this._read(
215
- schema,
216
- typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext)
217
- );
218
- }
219
- readObject(schema, data) {
220
- return this._read(schema, data);
221
- }
222
- _read(schema, value) {
223
- const isObject = value !== null && typeof value === "object";
224
- const ns = import_schema.NormalizedSchema.of(schema);
225
- if (ns.isListSchema() && Array.isArray(value)) {
226
- const listMember = ns.getValueSchema();
227
- const out = [];
228
- const sparse = !!ns.getMergedTraits().sparse;
229
- for (const item of value) {
230
- if (sparse || item != null) {
231
- out.push(this._read(listMember, item));
232
- }
233
- }
234
- return out;
235
- } else if (ns.isMapSchema() && isObject) {
236
- const mapMember = ns.getValueSchema();
237
- const out = {};
238
- const sparse = !!ns.getMergedTraits().sparse;
239
- for (const [_k, _v] of Object.entries(value)) {
240
- if (sparse || _v != null) {
241
- out[_k] = this._read(mapMember, _v);
242
- }
243
- }
244
- return out;
245
- } else if (ns.isStructSchema() && isObject) {
246
- const out = {};
247
- for (const [memberName, memberSchema] of ns.structIterator()) {
248
- const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
249
- const deserializedValue = this._read(memberSchema, value[fromKey]);
250
- if (deserializedValue != null) {
251
- out[memberName] = deserializedValue;
252
- }
253
- }
254
- return out;
255
- }
256
- if (ns.isBlobSchema() && typeof value === "string") {
257
- return (0, import_util_base64.fromBase64)(value);
258
- }
259
- const mediaType = ns.getMergedTraits().mediaType;
260
- if (ns.isStringSchema() && typeof value === "string" && mediaType) {
261
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
262
- if (isJson) {
263
- return import_serde2.LazyJsonString.from(value);
264
- }
265
- }
266
- if (ns.isTimestampSchema()) {
267
- const options = this.settings.timestampFormat;
268
- const format = options.useTrait ? ns.getSchema() === import_schema.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
269
- switch (format) {
270
- case import_schema.SCHEMA.TIMESTAMP_DATE_TIME:
271
- return (0, import_serde2.parseRfc3339DateTimeWithOffset)(value);
272
- case import_schema.SCHEMA.TIMESTAMP_HTTP_DATE:
273
- return (0, import_serde2.parseRfc7231DateTime)(value);
274
- case import_schema.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
275
- return (0, import_serde2.parseEpochTimestamp)(value);
276
- default:
277
- console.warn("Missing timestamp format, parsing value with Date constructor:", value);
278
- return new Date(value);
279
- }
280
- }
281
- if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
282
- return BigInt(value);
283
- }
284
- if (ns.isBigDecimalSchema() && value != void 0) {
285
- if (value instanceof import_serde2.NumericValue) {
286
- return value;
287
- }
288
- return new import_serde2.NumericValue(String(value), "bigDecimal");
289
- }
290
- if (ns.isNumericSchema() && typeof value === "string") {
291
- switch (value) {
292
- case "Infinity":
293
- return Infinity;
294
- case "-Infinity":
295
- return -Infinity;
296
- case "NaN":
297
- return NaN;
298
- }
216
+ const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
217
+ if (encoded.length) {
218
+ try {
219
+ return JSON.parse(encoded);
220
+ }
221
+ catch (e) {
222
+ if (e?.name === "SyntaxError") {
223
+ Object.defineProperty(e, "$responseBodyText", {
224
+ value: encoded,
225
+ });
226
+ }
227
+ throw e;
228
+ }
299
229
  }
230
+ return {};
231
+ });
232
+ const parseJsonErrorBody = async (errorBody, context) => {
233
+ const value = await parseJsonBody(errorBody, context);
234
+ value.message = value.message ?? value.Message;
300
235
  return value;
301
- }
302
236
  };
303
-
304
- // src/submodules/protocols/json/JsonShapeSerializer.ts
305
- var import_schema2 = require("@smithy/core/schema");
306
- var import_serde4 = require("@smithy/core/serde");
307
-
308
- // src/submodules/protocols/json/jsonReplacer.ts
309
- var import_serde3 = require("@smithy/core/serde");
310
- var NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
311
- var JsonReplacer = class {
312
- static {
313
- __name(this, "JsonReplacer");
314
- }
315
- /**
316
- * Stores placeholder key to true serialized value lookup.
317
- */
318
- values = /* @__PURE__ */ new Map();
319
- counter = 0;
320
- stage = 0;
321
- /**
322
- * Creates a jsonReplacer function that reserves big integer and big decimal values
323
- * for later replacement.
324
- */
325
- createReplacer() {
326
- if (this.stage === 1) {
327
- throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
328
- }
329
- if (this.stage === 2) {
330
- throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
331
- }
332
- this.stage = 1;
333
- return (key, value) => {
334
- if (value instanceof import_serde3.NumericValue) {
335
- const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
336
- this.values.set(`"${v}"`, value.string);
337
- return v;
338
- }
339
- if (typeof value === "bigint") {
340
- const s = value.toString();
341
- const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
342
- this.values.set(`"${v}"`, s);
343
- return v;
344
- }
345
- return value;
237
+ const loadRestJsonErrorCode = (output, data) => {
238
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
239
+ const sanitizeErrorCode = (rawValue) => {
240
+ let cleanValue = rawValue;
241
+ if (typeof cleanValue === "number") {
242
+ cleanValue = cleanValue.toString();
243
+ }
244
+ if (cleanValue.indexOf(",") >= 0) {
245
+ cleanValue = cleanValue.split(",")[0];
246
+ }
247
+ if (cleanValue.indexOf(":") >= 0) {
248
+ cleanValue = cleanValue.split(":")[0];
249
+ }
250
+ if (cleanValue.indexOf("#") >= 0) {
251
+ cleanValue = cleanValue.split("#")[1];
252
+ }
253
+ return cleanValue;
346
254
  };
347
- }
348
- /**
349
- * Replaces placeholder keys with their true values.
350
- */
351
- replaceInJson(json) {
352
- if (this.stage === 0) {
353
- throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
354
- }
355
- if (this.stage === 2) {
356
- throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
357
- }
358
- this.stage = 2;
359
- if (this.counter === 0) {
360
- return json;
361
- }
362
- for (const [key, value] of this.values) {
363
- json = json.replace(key, value);
364
- }
365
- return json;
366
- }
255
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
256
+ if (headerKey !== undefined) {
257
+ return sanitizeErrorCode(output.headers[headerKey]);
258
+ }
259
+ if (data && typeof data === "object") {
260
+ const codeKey = findKey(data, "code");
261
+ if (codeKey && data[codeKey] !== undefined) {
262
+ return sanitizeErrorCode(data[codeKey]);
263
+ }
264
+ if (data["__type"] !== undefined) {
265
+ return sanitizeErrorCode(data["__type"]);
266
+ }
267
+ }
367
268
  };
368
269
 
369
- // src/submodules/protocols/json/JsonShapeSerializer.ts
370
- var JsonShapeSerializer = class extends SerdeContextConfig {
371
- constructor(settings) {
372
- super();
373
- this.settings = settings;
374
- }
375
- static {
376
- __name(this, "JsonShapeSerializer");
377
- }
378
- buffer;
379
- rootSchema;
380
- write(schema, value) {
381
- this.rootSchema = import_schema2.NormalizedSchema.of(schema);
382
- this.buffer = this._write(this.rootSchema, value);
383
- }
384
- flush() {
385
- if (this.rootSchema?.isStructSchema() || this.rootSchema?.isDocumentSchema()) {
386
- const replacer = new JsonReplacer();
387
- return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
388
- }
389
- return this.buffer;
390
- }
391
- _write(schema, value, container) {
392
- const isObject = value !== null && typeof value === "object";
393
- const ns = import_schema2.NormalizedSchema.of(schema);
394
- if (ns.isListSchema() && Array.isArray(value)) {
395
- const listMember = ns.getValueSchema();
396
- const out = [];
397
- const sparse = !!ns.getMergedTraits().sparse;
398
- for (const item of value) {
399
- if (sparse || item != null) {
400
- out.push(this._write(listMember, item));
401
- }
402
- }
403
- return out;
404
- } else if (ns.isMapSchema() && isObject) {
405
- const mapMember = ns.getValueSchema();
406
- const out = {};
407
- const sparse = !!ns.getMergedTraits().sparse;
408
- for (const [_k, _v] of Object.entries(value)) {
409
- if (sparse || _v != null) {
410
- out[_k] = this._write(mapMember, _v);
411
- }
412
- }
413
- return out;
414
- } else if (ns.isStructSchema() && isObject) {
415
- const out = {};
416
- for (const [memberName, memberSchema] of ns.structIterator()) {
417
- const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
418
- const serializableValue = this._write(memberSchema, value[memberName], ns);
419
- if (serializableValue !== void 0) {
420
- out[targetKey] = serializableValue;
421
- }
422
- }
423
- return out;
424
- }
425
- if (value === null && container?.isStructSchema()) {
426
- return void 0;
427
- }
428
- if (ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) {
429
- if (ns === this.rootSchema) {
270
+ class JsonShapeDeserializer extends SerdeContextConfig {
271
+ settings;
272
+ constructor(settings) {
273
+ super();
274
+ this.settings = settings;
275
+ }
276
+ async read(schema, data) {
277
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
278
+ }
279
+ readObject(schema, data) {
280
+ return this._read(schema, data);
281
+ }
282
+ _read(schema$1, value) {
283
+ const isObject = value !== null && typeof value === "object";
284
+ const ns = schema.NormalizedSchema.of(schema$1);
285
+ if (ns.isListSchema() && Array.isArray(value)) {
286
+ const listMember = ns.getValueSchema();
287
+ const out = [];
288
+ const sparse = !!ns.getMergedTraits().sparse;
289
+ for (const item of value) {
290
+ if (sparse || item != null) {
291
+ out.push(this._read(listMember, item));
292
+ }
293
+ }
294
+ return out;
295
+ }
296
+ else if (ns.isMapSchema() && isObject) {
297
+ const mapMember = ns.getValueSchema();
298
+ const out = {};
299
+ const sparse = !!ns.getMergedTraits().sparse;
300
+ for (const [_k, _v] of Object.entries(value)) {
301
+ if (sparse || _v != null) {
302
+ out[_k] = this._read(mapMember, _v);
303
+ }
304
+ }
305
+ return out;
306
+ }
307
+ else if (ns.isStructSchema() && isObject) {
308
+ const out = {};
309
+ for (const [memberName, memberSchema] of ns.structIterator()) {
310
+ const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
311
+ const deserializedValue = this._read(memberSchema, value[fromKey]);
312
+ if (deserializedValue != null) {
313
+ out[memberName] = deserializedValue;
314
+ }
315
+ }
316
+ return out;
317
+ }
318
+ if (ns.isBlobSchema() && typeof value === "string") {
319
+ return utilBase64.fromBase64(value);
320
+ }
321
+ const mediaType = ns.getMergedTraits().mediaType;
322
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
323
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
324
+ if (isJson) {
325
+ return serde.LazyJsonString.from(value);
326
+ }
327
+ }
328
+ if (ns.isTimestampSchema() && value != null) {
329
+ const format = protocols.determineTimestampFormat(ns, this.settings);
330
+ switch (format) {
331
+ case 5:
332
+ return serde.parseRfc3339DateTimeWithOffset(value);
333
+ case 6:
334
+ return serde.parseRfc7231DateTime(value);
335
+ case 7:
336
+ return serde.parseEpochTimestamp(value);
337
+ default:
338
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
339
+ return new Date(value);
340
+ }
341
+ }
342
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
343
+ return BigInt(value);
344
+ }
345
+ if (ns.isBigDecimalSchema() && value != undefined) {
346
+ if (value instanceof serde.NumericValue) {
347
+ return value;
348
+ }
349
+ const untyped = value;
350
+ if (untyped.type === "bigDecimal" && "string" in untyped) {
351
+ return new serde.NumericValue(untyped.string, untyped.type);
352
+ }
353
+ return new serde.NumericValue(String(value), "bigDecimal");
354
+ }
355
+ if (ns.isNumericSchema() && typeof value === "string") {
356
+ switch (value) {
357
+ case "Infinity":
358
+ return Infinity;
359
+ case "-Infinity":
360
+ return -Infinity;
361
+ case "NaN":
362
+ return NaN;
363
+ }
364
+ }
365
+ if (ns.isDocumentSchema()) {
366
+ if (isObject) {
367
+ const out = Array.isArray(value) ? [] : {};
368
+ for (const [k, v] of Object.entries(value)) {
369
+ if (v instanceof serde.NumericValue) {
370
+ out[k] = v;
371
+ }
372
+ else {
373
+ out[k] = this._read(ns, v);
374
+ }
375
+ }
376
+ return out;
377
+ }
378
+ else {
379
+ return structuredClone(value);
380
+ }
381
+ }
430
382
  return value;
431
- }
432
- if (!this.serdeContext?.base64Encoder) {
433
- throw new Error("Missing base64Encoder in serdeContext");
434
- }
435
- return this.serdeContext?.base64Encoder(value);
436
- }
437
- if (ns.isTimestampSchema() && value instanceof Date) {
438
- const options = this.settings.timestampFormat;
439
- const format = options.useTrait ? ns.getSchema() === import_schema2.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
440
- switch (format) {
441
- case import_schema2.SCHEMA.TIMESTAMP_DATE_TIME:
442
- return value.toISOString().replace(".000Z", "Z");
443
- case import_schema2.SCHEMA.TIMESTAMP_HTTP_DATE:
444
- return (0, import_serde4.dateToUtcString)(value);
445
- case import_schema2.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
446
- return value.getTime() / 1e3;
447
- default:
448
- console.warn("Missing timestamp format, using epoch seconds", value);
449
- return value.getTime() / 1e3;
450
- }
451
- }
452
- if (ns.isNumericSchema() && typeof value === "number") {
453
- if (Math.abs(value) === Infinity || isNaN(value)) {
454
- return String(value);
455
- }
456
- }
457
- if (ns.isStringSchema()) {
458
- if (typeof value === "undefined" && ns.isIdempotencyToken()) {
459
- return (0, import_serde4.generateIdempotencyToken)();
460
- }
461
- const mediaType = ns.getMergedTraits().mediaType;
462
- if (typeof value === "string" && mediaType) {
463
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
464
- if (isJson) {
465
- return import_serde4.LazyJsonString.from(value);
466
- }
467
- }
468
383
  }
469
- return value;
470
- }
471
- };
472
-
473
- // src/submodules/protocols/json/JsonCodec.ts
474
- var JsonCodec = class extends SerdeContextConfig {
475
- constructor(settings) {
476
- super();
477
- this.settings = settings;
478
- }
479
- static {
480
- __name(this, "JsonCodec");
481
- }
482
- createSerializer() {
483
- const serializer = new JsonShapeSerializer(this.settings);
484
- serializer.setSerdeContext(this.serdeContext);
485
- return serializer;
486
- }
487
- createDeserializer() {
488
- const deserializer = new JsonShapeDeserializer(this.settings);
489
- deserializer.setSerdeContext(this.serdeContext);
490
- return deserializer;
491
- }
492
- };
384
+ }
493
385
 
494
- // src/submodules/protocols/json/AwsJsonRpcProtocol.ts
495
- var AwsJsonRpcProtocol = class extends import_protocols.RpcProtocol {
496
- static {
497
- __name(this, "AwsJsonRpcProtocol");
498
- }
499
- serializer;
500
- deserializer;
501
- serviceTarget;
502
- codec;
503
- constructor({ defaultNamespace, serviceTarget }) {
504
- super({
505
- defaultNamespace
506
- });
507
- this.serviceTarget = serviceTarget;
508
- this.codec = new JsonCodec({
509
- timestampFormat: {
510
- useTrait: true,
511
- default: import_schema3.SCHEMA.TIMESTAMP_EPOCH_SECONDS
512
- },
513
- jsonName: false
514
- });
515
- this.serializer = this.codec.createSerializer();
516
- this.deserializer = this.codec.createDeserializer();
517
- }
518
- async serializeRequest(operationSchema, input, context) {
519
- const request = await super.serializeRequest(operationSchema, input, context);
520
- if (!request.path.endsWith("/")) {
521
- request.path += "/";
522
- }
523
- Object.assign(request.headers, {
524
- "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
525
- "x-amz-target": `${this.serviceTarget}.${import_schema3.NormalizedSchema.of(operationSchema).getName()}`
526
- });
527
- if ((0, import_schema3.deref)(operationSchema.input) === "unit" || !request.body) {
528
- request.body = "{}";
529
- }
530
- try {
531
- request.headers["content-length"] = String((0, import_util_body_length_browser.calculateBodyLength)(request.body));
532
- } catch (e) {
533
- }
534
- return request;
535
- }
536
- getPayloadCodec() {
537
- return this.codec;
538
- }
539
- async handleError(operationSchema, context, response, dataObject, metadata) {
540
- const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
541
- let namespace = this.options.defaultNamespace;
542
- let errorName = errorIdentifier;
543
- if (errorIdentifier.includes("#")) {
544
- [namespace, errorName] = errorIdentifier.split("#");
545
- }
546
- const registry = import_schema3.TypeRegistry.for(namespace);
547
- let errorSchema;
548
- try {
549
- errorSchema = registry.getSchema(errorIdentifier);
550
- } catch (e) {
551
- const baseExceptionSchema = import_schema3.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
552
- if (baseExceptionSchema) {
553
- const ErrorCtor = baseExceptionSchema.ctor;
554
- throw Object.assign(new ErrorCtor(errorName), dataObject);
555
- }
556
- throw new Error(errorName);
557
- }
558
- const ns = import_schema3.NormalizedSchema.of(errorSchema);
559
- const message = dataObject.message ?? dataObject.Message ?? "Unknown";
560
- const exception = new errorSchema.ctor(message);
561
- await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
562
- const output = {};
563
- for (const [name, member] of ns.structIterator()) {
564
- const target = member.getMergedTraits().jsonName ?? name;
565
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
566
- }
567
- Object.assign(exception, {
568
- $metadata: metadata,
569
- $response: response,
570
- $fault: ns.getMergedTraits().error,
571
- message,
572
- ...output
573
- });
574
- throw exception;
575
- }
576
- };
386
+ const NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
387
+ class JsonReplacer {
388
+ values = new Map();
389
+ counter = 0;
390
+ stage = 0;
391
+ createReplacer() {
392
+ if (this.stage === 1) {
393
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
394
+ }
395
+ if (this.stage === 2) {
396
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
397
+ }
398
+ this.stage = 1;
399
+ return (key, value) => {
400
+ if (value instanceof serde.NumericValue) {
401
+ const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
402
+ this.values.set(`"${v}"`, value.string);
403
+ return v;
404
+ }
405
+ if (typeof value === "bigint") {
406
+ const s = value.toString();
407
+ const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
408
+ this.values.set(`"${v}"`, s);
409
+ return v;
410
+ }
411
+ return value;
412
+ };
413
+ }
414
+ replaceInJson(json) {
415
+ if (this.stage === 0) {
416
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
417
+ }
418
+ if (this.stage === 2) {
419
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
420
+ }
421
+ this.stage = 2;
422
+ if (this.counter === 0) {
423
+ return json;
424
+ }
425
+ for (const [key, value] of this.values) {
426
+ json = json.replace(key, value);
427
+ }
428
+ return json;
429
+ }
430
+ }
577
431
 
578
- // src/submodules/protocols/json/AwsJson1_0Protocol.ts
579
- var AwsJson1_0Protocol = class extends AwsJsonRpcProtocol {
580
- static {
581
- __name(this, "AwsJson1_0Protocol");
582
- }
583
- constructor({ defaultNamespace, serviceTarget }) {
584
- super({
585
- defaultNamespace,
586
- serviceTarget
587
- });
588
- }
589
- getShapeId() {
590
- return "aws.protocols#awsJson1_0";
591
- }
592
- getJsonRpcVersion() {
593
- return "1.0";
594
- }
595
- /**
596
- * @override
597
- */
598
- getDefaultContentType() {
599
- return "application/x-amz-json-1.0";
600
- }
601
- };
432
+ class JsonShapeSerializer extends SerdeContextConfig {
433
+ settings;
434
+ buffer;
435
+ rootSchema;
436
+ constructor(settings) {
437
+ super();
438
+ this.settings = settings;
439
+ }
440
+ write(schema$1, value) {
441
+ this.rootSchema = schema.NormalizedSchema.of(schema$1);
442
+ this.buffer = this._write(this.rootSchema, value);
443
+ }
444
+ writeDiscriminatedDocument(schema$1, value) {
445
+ this.write(schema$1, value);
446
+ if (typeof this.buffer === "object") {
447
+ this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
448
+ }
449
+ }
450
+ flush() {
451
+ const { rootSchema } = this;
452
+ this.rootSchema = undefined;
453
+ if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) {
454
+ const replacer = new JsonReplacer();
455
+ return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
456
+ }
457
+ return this.buffer;
458
+ }
459
+ _write(schema$1, value, container) {
460
+ const isObject = value !== null && typeof value === "object";
461
+ const ns = schema.NormalizedSchema.of(schema$1);
462
+ if (ns.isListSchema() && Array.isArray(value)) {
463
+ const listMember = ns.getValueSchema();
464
+ const out = [];
465
+ const sparse = !!ns.getMergedTraits().sparse;
466
+ for (const item of value) {
467
+ if (sparse || item != null) {
468
+ out.push(this._write(listMember, item));
469
+ }
470
+ }
471
+ return out;
472
+ }
473
+ else if (ns.isMapSchema() && isObject) {
474
+ const mapMember = ns.getValueSchema();
475
+ const out = {};
476
+ const sparse = !!ns.getMergedTraits().sparse;
477
+ for (const [_k, _v] of Object.entries(value)) {
478
+ if (sparse || _v != null) {
479
+ out[_k] = this._write(mapMember, _v);
480
+ }
481
+ }
482
+ return out;
483
+ }
484
+ else if (ns.isStructSchema() && isObject) {
485
+ const out = {};
486
+ for (const [memberName, memberSchema] of ns.structIterator()) {
487
+ const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
488
+ const serializableValue = this._write(memberSchema, value[memberName], ns);
489
+ if (serializableValue !== undefined) {
490
+ out[targetKey] = serializableValue;
491
+ }
492
+ }
493
+ return out;
494
+ }
495
+ if (value === null && container?.isStructSchema()) {
496
+ return void 0;
497
+ }
498
+ if ((ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) ||
499
+ (ns.isDocumentSchema() && value instanceof Uint8Array)) {
500
+ if (ns === this.rootSchema) {
501
+ return value;
502
+ }
503
+ if (!this.serdeContext?.base64Encoder) {
504
+ return utilBase64.toBase64(value);
505
+ }
506
+ return this.serdeContext?.base64Encoder(value);
507
+ }
508
+ if ((ns.isTimestampSchema() || ns.isDocumentSchema()) && value instanceof Date) {
509
+ const format = protocols.determineTimestampFormat(ns, this.settings);
510
+ switch (format) {
511
+ case 5:
512
+ return value.toISOString().replace(".000Z", "Z");
513
+ case 6:
514
+ return serde.dateToUtcString(value);
515
+ case 7:
516
+ return value.getTime() / 1000;
517
+ default:
518
+ console.warn("Missing timestamp format, using epoch seconds", value);
519
+ return value.getTime() / 1000;
520
+ }
521
+ }
522
+ if (ns.isNumericSchema() && typeof value === "number") {
523
+ if (Math.abs(value) === Infinity || isNaN(value)) {
524
+ return String(value);
525
+ }
526
+ }
527
+ if (ns.isStringSchema()) {
528
+ if (typeof value === "undefined" && ns.isIdempotencyToken()) {
529
+ return serde.generateIdempotencyToken();
530
+ }
531
+ const mediaType = ns.getMergedTraits().mediaType;
532
+ if (value != null && mediaType) {
533
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
534
+ if (isJson) {
535
+ return serde.LazyJsonString.from(value);
536
+ }
537
+ }
538
+ }
539
+ if (ns.isDocumentSchema()) {
540
+ if (isObject) {
541
+ const out = Array.isArray(value) ? [] : {};
542
+ for (const [k, v] of Object.entries(value)) {
543
+ if (v instanceof serde.NumericValue) {
544
+ out[k] = v;
545
+ }
546
+ else {
547
+ out[k] = this._write(ns, v);
548
+ }
549
+ }
550
+ return out;
551
+ }
552
+ else {
553
+ return structuredClone(value);
554
+ }
555
+ }
556
+ return value;
557
+ }
558
+ }
602
559
 
603
- // src/submodules/protocols/json/AwsJson1_1Protocol.ts
604
- var AwsJson1_1Protocol = class extends AwsJsonRpcProtocol {
605
- static {
606
- __name(this, "AwsJson1_1Protocol");
607
- }
608
- constructor({ defaultNamespace, serviceTarget }) {
609
- super({
610
- defaultNamespace,
611
- serviceTarget
612
- });
613
- }
614
- getShapeId() {
615
- return "aws.protocols#awsJson1_1";
616
- }
617
- getJsonRpcVersion() {
618
- return "1.1";
619
- }
620
- /**
621
- * @override
622
- */
623
- getDefaultContentType() {
624
- return "application/x-amz-json-1.1";
625
- }
626
- };
560
+ class JsonCodec extends SerdeContextConfig {
561
+ settings;
562
+ constructor(settings) {
563
+ super();
564
+ this.settings = settings;
565
+ }
566
+ createSerializer() {
567
+ const serializer = new JsonShapeSerializer(this.settings);
568
+ serializer.setSerdeContext(this.serdeContext);
569
+ return serializer;
570
+ }
571
+ createDeserializer() {
572
+ const deserializer = new JsonShapeDeserializer(this.settings);
573
+ deserializer.setSerdeContext(this.serdeContext);
574
+ return deserializer;
575
+ }
576
+ }
627
577
 
628
- // src/submodules/protocols/json/AwsRestJsonProtocol.ts
629
- var import_protocols2 = require("@smithy/core/protocols");
630
- var import_schema4 = require("@smithy/core/schema");
631
- var import_util_body_length_browser2 = require("@smithy/util-body-length-browser");
632
- var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
633
- static {
634
- __name(this, "AwsRestJsonProtocol");
635
- }
636
- serializer;
637
- deserializer;
638
- codec;
639
- constructor({ defaultNamespace }) {
640
- super({
641
- defaultNamespace
642
- });
643
- const settings = {
644
- timestampFormat: {
645
- useTrait: true,
646
- default: import_schema4.SCHEMA.TIMESTAMP_EPOCH_SECONDS
647
- },
648
- httpBindings: true,
649
- jsonName: true
650
- };
651
- this.codec = new JsonCodec(settings);
652
- this.serializer = new import_protocols2.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
653
- this.deserializer = new import_protocols2.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
654
- }
655
- getShapeId() {
656
- return "aws.protocols#restJson1";
657
- }
658
- getPayloadCodec() {
659
- return this.codec;
660
- }
661
- setSerdeContext(serdeContext) {
662
- this.codec.setSerdeContext(serdeContext);
663
- super.setSerdeContext(serdeContext);
664
- }
665
- async serializeRequest(operationSchema, input, context) {
666
- const request = await super.serializeRequest(operationSchema, input, context);
667
- const inputSchema = import_schema4.NormalizedSchema.of(operationSchema.input);
668
- const members = inputSchema.getMemberSchemas();
669
- if (!request.headers["content-type"]) {
670
- const httpPayloadMember = Object.values(members).find((m) => {
671
- return !!m.getMergedTraits().httpPayload;
672
- });
673
- if (httpPayloadMember) {
674
- const mediaType = httpPayloadMember.getMergedTraits().mediaType;
675
- if (mediaType) {
676
- request.headers["content-type"] = mediaType;
677
- } else if (httpPayloadMember.isStringSchema()) {
678
- request.headers["content-type"] = "text/plain";
679
- } else if (httpPayloadMember.isBlobSchema()) {
680
- request.headers["content-type"] = "application/octet-stream";
681
- } else {
682
- request.headers["content-type"] = this.getDefaultContentType();
683
- }
684
- } else if (!inputSchema.isUnitSchema()) {
685
- const hasBody = Object.values(members).find((m) => {
686
- const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
687
- return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
578
+ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
579
+ serializer;
580
+ deserializer;
581
+ serviceTarget;
582
+ codec;
583
+ mixin = new ProtocolLib();
584
+ awsQueryCompatible;
585
+ constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, }) {
586
+ super({
587
+ defaultNamespace,
688
588
  });
689
- if (hasBody) {
690
- request.headers["content-type"] = this.getDefaultContentType();
691
- }
692
- }
693
- }
694
- if (request.headers["content-type"] && !request.body) {
695
- request.body = "{}";
696
- }
697
- if (request.body) {
698
- try {
699
- request.headers["content-length"] = String((0, import_util_body_length_browser2.calculateBodyLength)(request.body));
700
- } catch (e) {
701
- }
702
- }
703
- return request;
704
- }
705
- async handleError(operationSchema, context, response, dataObject, metadata) {
706
- const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
707
- let namespace = this.options.defaultNamespace;
708
- let errorName = errorIdentifier;
709
- if (errorIdentifier.includes("#")) {
710
- [namespace, errorName] = errorIdentifier.split("#");
711
- }
712
- const registry = import_schema4.TypeRegistry.for(namespace);
713
- let errorSchema;
714
- try {
715
- errorSchema = registry.getSchema(errorIdentifier);
716
- } catch (e) {
717
- const baseExceptionSchema = import_schema4.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
718
- if (baseExceptionSchema) {
719
- const ErrorCtor = baseExceptionSchema.ctor;
720
- throw Object.assign(new ErrorCtor(errorName), dataObject);
721
- }
722
- throw new Error(errorName);
723
- }
724
- const ns = import_schema4.NormalizedSchema.of(errorSchema);
725
- const message = dataObject.message ?? dataObject.Message ?? "Unknown";
726
- const exception = new errorSchema.ctor(message);
727
- await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
728
- const output = {};
729
- for (const [name, member] of ns.structIterator()) {
730
- const target = member.getMergedTraits().jsonName ?? name;
731
- output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
732
- }
733
- Object.assign(exception, {
734
- $metadata: metadata,
735
- $response: response,
736
- $fault: ns.getMergedTraits().error,
737
- message,
738
- ...output
739
- });
740
- throw exception;
741
- }
742
- /**
743
- * @override
744
- */
745
- getDefaultContentType() {
746
- return "application/json";
747
- }
748
- };
589
+ this.serviceTarget = serviceTarget;
590
+ this.codec = new JsonCodec({
591
+ timestampFormat: {
592
+ useTrait: true,
593
+ default: 7,
594
+ },
595
+ jsonName: false,
596
+ });
597
+ this.serializer = this.codec.createSerializer();
598
+ this.deserializer = this.codec.createDeserializer();
599
+ this.awsQueryCompatible = !!awsQueryCompatible;
600
+ }
601
+ async serializeRequest(operationSchema, input, context) {
602
+ const request = await super.serializeRequest(operationSchema, input, context);
603
+ if (!request.path.endsWith("/")) {
604
+ request.path += "/";
605
+ }
606
+ Object.assign(request.headers, {
607
+ "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
608
+ "x-amz-target": `${this.serviceTarget}.${operationSchema.name}`,
609
+ });
610
+ if (this.awsQueryCompatible) {
611
+ request.headers["x-amzn-query-mode"] = "true";
612
+ }
613
+ if (schema.deref(operationSchema.input) === "unit" || !request.body) {
614
+ request.body = "{}";
615
+ }
616
+ return request;
617
+ }
618
+ getPayloadCodec() {
619
+ return this.codec;
620
+ }
621
+ async handleError(operationSchema, context, response, dataObject, metadata) {
622
+ if (this.awsQueryCompatible) {
623
+ this.mixin.setQueryCompatError(dataObject, response);
624
+ }
625
+ const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
626
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
627
+ const ns = schema.NormalizedSchema.of(errorSchema);
628
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
629
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
630
+ const exception = new ErrorCtor(message);
631
+ const output = {};
632
+ for (const [name, member] of ns.structIterator()) {
633
+ const target = member.getMergedTraits().jsonName ?? name;
634
+ output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
635
+ }
636
+ if (this.awsQueryCompatible) {
637
+ this.mixin.queryCompatOutput(dataObject, output);
638
+ }
639
+ throw Object.assign(exception, errorMetadata, {
640
+ $fault: ns.getMergedTraits().error,
641
+ message,
642
+ }, output);
643
+ }
644
+ }
749
645
 
750
- // src/submodules/protocols/json/awsExpectUnion.ts
751
- var import_smithy_client2 = require("@smithy/smithy-client");
752
- var awsExpectUnion = /* @__PURE__ */ __name((value) => {
753
- if (value == null) {
754
- return void 0;
755
- }
756
- if (typeof value === "object" && "__type" in value) {
757
- delete value.__type;
758
- }
759
- return (0, import_smithy_client2.expectUnion)(value);
760
- }, "awsExpectUnion");
646
+ class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
647
+ constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, }) {
648
+ super({
649
+ defaultNamespace,
650
+ serviceTarget,
651
+ awsQueryCompatible,
652
+ });
653
+ }
654
+ getShapeId() {
655
+ return "aws.protocols#awsJson1_0";
656
+ }
657
+ getJsonRpcVersion() {
658
+ return "1.0";
659
+ }
660
+ getDefaultContentType() {
661
+ return "application/x-amz-json-1.0";
662
+ }
663
+ }
761
664
 
762
- // src/submodules/protocols/query/AwsQueryProtocol.ts
763
- var import_protocols5 = require("@smithy/core/protocols");
764
- var import_schema7 = require("@smithy/core/schema");
765
- var import_util_body_length_browser3 = require("@smithy/util-body-length-browser");
665
+ class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
666
+ constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, }) {
667
+ super({
668
+ defaultNamespace,
669
+ serviceTarget,
670
+ awsQueryCompatible,
671
+ });
672
+ }
673
+ getShapeId() {
674
+ return "aws.protocols#awsJson1_1";
675
+ }
676
+ getJsonRpcVersion() {
677
+ return "1.1";
678
+ }
679
+ getDefaultContentType() {
680
+ return "application/x-amz-json-1.1";
681
+ }
682
+ }
766
683
 
767
- // src/submodules/protocols/xml/XmlShapeDeserializer.ts
768
- var import_protocols3 = require("@smithy/core/protocols");
769
- var import_schema5 = require("@smithy/core/schema");
770
- var import_smithy_client3 = require("@smithy/smithy-client");
771
- var import_util_utf8 = require("@smithy/util-utf8");
772
- var import_fast_xml_parser = require("fast-xml-parser");
773
- var XmlShapeDeserializer = class extends SerdeContextConfig {
774
- constructor(settings) {
775
- super();
776
- this.settings = settings;
777
- this.stringDeserializer = new import_protocols3.FromStringShapeDeserializer(settings);
778
- }
779
- static {
780
- __name(this, "XmlShapeDeserializer");
781
- }
782
- stringDeserializer;
783
- setSerdeContext(serdeContext) {
784
- this.serdeContext = serdeContext;
785
- this.stringDeserializer.setSerdeContext(serdeContext);
786
- }
787
- /**
788
- * @param schema - describing the data.
789
- * @param bytes - serialized data.
790
- * @param key - used by AwsQuery to step one additional depth into the object before reading it.
791
- */
792
- read(schema, bytes, key) {
793
- const ns = import_schema5.NormalizedSchema.of(schema);
794
- const memberSchemas = ns.getMemberSchemas();
795
- const isEventPayload = ns.isStructSchema() && ns.isMemberSchema() && !!Object.values(memberSchemas).find((memberNs) => {
796
- return !!memberNs.getMemberTraits().eventPayload;
797
- });
798
- if (isEventPayload) {
799
- const output = {};
800
- const memberName = Object.keys(memberSchemas)[0];
801
- const eventMemberSchema = memberSchemas[memberName];
802
- if (eventMemberSchema.isBlobSchema()) {
803
- output[memberName] = bytes;
804
- } else {
805
- output[memberName] = this.read(memberSchemas[memberName], bytes);
806
- }
807
- return output;
808
- }
809
- const xmlString = (this.serdeContext?.utf8Encoder ?? import_util_utf8.toUtf8)(bytes);
810
- const parsedObject = this.parseXml(xmlString);
811
- return this.readSchema(schema, key ? parsedObject[key] : parsedObject);
812
- }
813
- readSchema(_schema, value) {
814
- const ns = import_schema5.NormalizedSchema.of(_schema);
815
- const traits = ns.getMergedTraits();
816
- if (ns.isListSchema() && !Array.isArray(value)) {
817
- return this.readSchema(ns, [value]);
684
+ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
685
+ serializer;
686
+ deserializer;
687
+ codec;
688
+ mixin = new ProtocolLib();
689
+ constructor({ defaultNamespace }) {
690
+ super({
691
+ defaultNamespace,
692
+ });
693
+ const settings = {
694
+ timestampFormat: {
695
+ useTrait: true,
696
+ default: 7,
697
+ },
698
+ httpBindings: true,
699
+ jsonName: true,
700
+ };
701
+ this.codec = new JsonCodec(settings);
702
+ this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
703
+ this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
704
+ }
705
+ getShapeId() {
706
+ return "aws.protocols#restJson1";
707
+ }
708
+ getPayloadCodec() {
709
+ return this.codec;
710
+ }
711
+ setSerdeContext(serdeContext) {
712
+ this.codec.setSerdeContext(serdeContext);
713
+ super.setSerdeContext(serdeContext);
714
+ }
715
+ async serializeRequest(operationSchema, input, context) {
716
+ const request = await super.serializeRequest(operationSchema, input, context);
717
+ const inputSchema = schema.NormalizedSchema.of(operationSchema.input);
718
+ if (!request.headers["content-type"]) {
719
+ const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
720
+ if (contentType) {
721
+ request.headers["content-type"] = contentType;
722
+ }
723
+ }
724
+ if (request.headers["content-type"] && !request.body) {
725
+ request.body = "{}";
726
+ }
727
+ return request;
728
+ }
729
+ async handleError(operationSchema, context, response, dataObject, metadata) {
730
+ const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
731
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
732
+ const ns = schema.NormalizedSchema.of(errorSchema);
733
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
734
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
735
+ const exception = new ErrorCtor(message);
736
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
737
+ const output = {};
738
+ for (const [name, member] of ns.structIterator()) {
739
+ const target = member.getMergedTraits().jsonName ?? name;
740
+ output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
741
+ }
742
+ throw Object.assign(exception, errorMetadata, {
743
+ $fault: ns.getMergedTraits().error,
744
+ message,
745
+ }, output);
818
746
  }
747
+ getDefaultContentType() {
748
+ return "application/json";
749
+ }
750
+ }
751
+
752
+ const awsExpectUnion = (value) => {
819
753
  if (value == null) {
820
- return value;
821
- }
822
- if (typeof value === "object") {
823
- const sparse = !!traits.sparse;
824
- const flat = !!traits.xmlFlattened;
825
- if (ns.isListSchema()) {
826
- const listValue = ns.getValueSchema();
827
- const buffer2 = [];
828
- const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
829
- const source = flat ? value : (value[0] ?? value)[sourceKey];
830
- const sourceArray = Array.isArray(source) ? source : [source];
831
- for (const v of sourceArray) {
832
- if (v != null || sparse) {
833
- buffer2.push(this.readSchema(listValue, v));
834
- }
835
- }
836
- return buffer2;
837
- }
838
- const buffer = {};
839
- if (ns.isMapSchema()) {
840
- const keyNs = ns.getKeySchema();
841
- const memberNs = ns.getValueSchema();
842
- let entries;
843
- if (flat) {
844
- entries = Array.isArray(value) ? value : [value];
845
- } else {
846
- entries = Array.isArray(value.entry) ? value.entry : [value.entry];
847
- }
848
- const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
849
- const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
850
- for (const entry of entries) {
851
- const key = entry[keyProperty];
852
- const value2 = entry[valueProperty];
853
- if (value2 != null || sparse) {
854
- buffer[key] = this.readSchema(memberNs, value2);
855
- }
856
- }
857
- return buffer;
858
- }
859
- if (ns.isStructSchema()) {
860
- for (const [memberName, memberSchema] of ns.structIterator()) {
861
- const memberTraits = memberSchema.getMergedTraits();
862
- const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName();
863
- if (value[xmlObjectKey] != null) {
864
- buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
865
- }
866
- }
867
- return buffer;
868
- }
869
- if (ns.isDocumentSchema()) {
870
- return value;
871
- }
872
- throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
873
- }
874
- if (ns.isListSchema()) {
875
- return [];
876
- }
877
- if (ns.isMapSchema() || ns.isStructSchema()) {
878
- return {};
879
- }
880
- return this.stringDeserializer.read(ns, value);
881
- }
882
- parseXml(xml) {
883
- if (xml.length) {
884
- const parser = new import_fast_xml_parser.XMLParser({
885
- attributeNamePrefix: "",
886
- htmlEntities: true,
887
- ignoreAttributes: false,
888
- ignoreDeclaration: true,
889
- parseTagValue: false,
890
- trimValues: false,
891
- tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
892
- });
893
- parser.addEntity("#xD", "\r");
894
- parser.addEntity("#10", "\n");
895
- let parsedObj;
896
- try {
897
- parsedObj = parser.parse(xml, true);
898
- } catch (e) {
899
- if (e && typeof e === "object") {
900
- Object.defineProperty(e, "$responseBodyText", {
901
- value: xml
902
- });
903
- }
904
- throw e;
905
- }
906
- const textNodeName = "#text";
907
- const key = Object.keys(parsedObj)[0];
908
- const parsedObjToReturn = parsedObj[key];
909
- if (parsedObjToReturn[textNodeName]) {
910
- parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
911
- delete parsedObjToReturn[textNodeName];
912
- }
913
- return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn);
754
+ return undefined;
914
755
  }
915
- return {};
916
- }
756
+ if (typeof value === "object" && "__type" in value) {
757
+ delete value.__type;
758
+ }
759
+ return smithyClient.expectUnion(value);
917
760
  };
918
761
 
919
- // src/submodules/protocols/query/QueryShapeSerializer.ts
920
- var import_protocols4 = require("@smithy/core/protocols");
921
- var import_schema6 = require("@smithy/core/schema");
922
- var import_serde5 = require("@smithy/core/serde");
923
- var import_smithy_client4 = require("@smithy/smithy-client");
924
- var import_util_base642 = require("@smithy/util-base64");
925
- var QueryShapeSerializer = class extends SerdeContextConfig {
926
- constructor(settings) {
927
- super();
928
- this.settings = settings;
929
- }
930
- static {
931
- __name(this, "QueryShapeSerializer");
932
- }
933
- buffer;
934
- write(schema, value, prefix = "") {
935
- if (this.buffer === void 0) {
936
- this.buffer = "";
937
- }
938
- const ns = import_schema6.NormalizedSchema.of(schema);
939
- if (prefix && !prefix.endsWith(".")) {
940
- prefix += ".";
941
- }
942
- if (ns.isBlobSchema()) {
943
- if (typeof value === "string" || value instanceof Uint8Array) {
944
- this.writeKey(prefix);
945
- this.writeValue((this.serdeContext?.base64Encoder ?? import_util_base642.toBase64)(value));
946
- }
947
- } else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
948
- if (value != null) {
949
- this.writeKey(prefix);
950
- this.writeValue(String(value));
951
- } else if (ns.isIdempotencyToken()) {
952
- this.writeKey(prefix);
953
- this.writeValue((0, import_serde5.generateIdempotencyToken)());
954
- }
955
- } else if (ns.isBigIntegerSchema()) {
956
- if (value != null) {
957
- this.writeKey(prefix);
958
- this.writeValue(String(value));
959
- }
960
- } else if (ns.isBigDecimalSchema()) {
961
- if (value != null) {
962
- this.writeKey(prefix);
963
- this.writeValue(value instanceof import_serde5.NumericValue ? value.string : String(value));
964
- }
965
- } else if (ns.isTimestampSchema()) {
966
- if (value instanceof Date) {
967
- this.writeKey(prefix);
968
- const format = (0, import_protocols4.determineTimestampFormat)(ns, this.settings);
969
- switch (format) {
970
- case import_schema6.SCHEMA.TIMESTAMP_DATE_TIME:
971
- this.writeValue(value.toISOString().replace(".000Z", "Z"));
972
- break;
973
- case import_schema6.SCHEMA.TIMESTAMP_HTTP_DATE:
974
- this.writeValue((0, import_smithy_client4.dateToUtcString)(value));
975
- break;
976
- case import_schema6.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
977
- this.writeValue(String(value.getTime() / 1e3));
978
- break;
979
- }
980
- }
981
- } else if (ns.isDocumentSchema()) {
982
- throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`);
983
- } else if (ns.isListSchema()) {
984
- if (Array.isArray(value)) {
985
- if (value.length === 0) {
986
- if (this.settings.serializeEmptyLists) {
987
- this.writeKey(prefix);
988
- this.writeValue("");
989
- }
990
- } else {
991
- const member = ns.getValueSchema();
992
- const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
993
- let i = 1;
994
- for (const item of value) {
995
- if (item == null) {
996
- continue;
997
- }
998
- const suffix = this.getKey("member", member.getMergedTraits().xmlName);
999
- const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
1000
- this.write(member, item, key);
1001
- ++i;
1002
- }
1003
- }
1004
- }
1005
- } else if (ns.isMapSchema()) {
1006
- if (value && typeof value === "object") {
1007
- const keySchema = ns.getKeySchema();
1008
- const memberSchema = ns.getValueSchema();
1009
- const flat = ns.getMergedTraits().xmlFlattened;
1010
- let i = 1;
1011
- for (const [k, v] of Object.entries(value)) {
1012
- if (v == null) {
1013
- continue;
1014
- }
1015
- const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName);
1016
- const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
1017
- const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName);
1018
- const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
1019
- this.write(keySchema, k, key);
1020
- this.write(memberSchema, v, valueKey);
1021
- ++i;
1022
- }
1023
- }
1024
- } else if (ns.isStructSchema()) {
1025
- if (value && typeof value === "object") {
1026
- for (const [memberName, member] of ns.structIterator()) {
1027
- if (value[memberName] == null && !member.isIdempotencyToken()) {
1028
- continue;
1029
- }
1030
- const suffix = this.getKey(memberName, member.getMergedTraits().xmlName);
1031
- const key = `${prefix}${suffix}`;
1032
- this.write(member, value[memberName], key);
1033
- }
1034
- }
1035
- } else if (ns.isUnitSchema()) {
1036
- } else {
1037
- throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
1038
- }
1039
- }
1040
- flush() {
1041
- if (this.buffer === void 0) {
1042
- throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
1043
- }
1044
- const str = this.buffer;
1045
- delete this.buffer;
1046
- return str;
1047
- }
1048
- getKey(memberName, xmlName) {
1049
- const key = xmlName ?? memberName;
1050
- if (this.settings.capitalizeKeys) {
1051
- return key[0].toUpperCase() + key.slice(1);
1052
- }
1053
- return key;
1054
- }
1055
- writeKey(key) {
1056
- if (key.endsWith(".")) {
1057
- key = key.slice(0, key.length - 1);
1058
- }
1059
- this.buffer += `&${(0, import_protocols4.extendedEncodeURIComponent)(key)}=`;
1060
- }
1061
- writeValue(value) {
1062
- this.buffer += (0, import_protocols4.extendedEncodeURIComponent)(value);
1063
- }
1064
- };
762
+ class XmlShapeDeserializer extends SerdeContextConfig {
763
+ settings;
764
+ stringDeserializer;
765
+ constructor(settings) {
766
+ super();
767
+ this.settings = settings;
768
+ this.stringDeserializer = new protocols.FromStringShapeDeserializer(settings);
769
+ }
770
+ setSerdeContext(serdeContext) {
771
+ this.serdeContext = serdeContext;
772
+ this.stringDeserializer.setSerdeContext(serdeContext);
773
+ }
774
+ read(schema$1, bytes, key) {
775
+ const ns = schema.NormalizedSchema.of(schema$1);
776
+ const memberSchemas = ns.getMemberSchemas();
777
+ const isEventPayload = ns.isStructSchema() &&
778
+ ns.isMemberSchema() &&
779
+ !!Object.values(memberSchemas).find((memberNs) => {
780
+ return !!memberNs.getMemberTraits().eventPayload;
781
+ });
782
+ if (isEventPayload) {
783
+ const output = {};
784
+ const memberName = Object.keys(memberSchemas)[0];
785
+ const eventMemberSchema = memberSchemas[memberName];
786
+ if (eventMemberSchema.isBlobSchema()) {
787
+ output[memberName] = bytes;
788
+ }
789
+ else {
790
+ output[memberName] = this.read(memberSchemas[memberName], bytes);
791
+ }
792
+ return output;
793
+ }
794
+ const xmlString = (this.serdeContext?.utf8Encoder ?? utilUtf8.toUtf8)(bytes);
795
+ const parsedObject = this.parseXml(xmlString);
796
+ return this.readSchema(schema$1, key ? parsedObject[key] : parsedObject);
797
+ }
798
+ readSchema(_schema, value) {
799
+ const ns = schema.NormalizedSchema.of(_schema);
800
+ if (ns.isUnitSchema()) {
801
+ return;
802
+ }
803
+ const traits = ns.getMergedTraits();
804
+ if (ns.isListSchema() && !Array.isArray(value)) {
805
+ return this.readSchema(ns, [value]);
806
+ }
807
+ if (value == null) {
808
+ return value;
809
+ }
810
+ if (typeof value === "object") {
811
+ const sparse = !!traits.sparse;
812
+ const flat = !!traits.xmlFlattened;
813
+ if (ns.isListSchema()) {
814
+ const listValue = ns.getValueSchema();
815
+ const buffer = [];
816
+ const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
817
+ const source = flat ? value : (value[0] ?? value)[sourceKey];
818
+ const sourceArray = Array.isArray(source) ? source : [source];
819
+ for (const v of sourceArray) {
820
+ if (v != null || sparse) {
821
+ buffer.push(this.readSchema(listValue, v));
822
+ }
823
+ }
824
+ return buffer;
825
+ }
826
+ const buffer = {};
827
+ if (ns.isMapSchema()) {
828
+ const keyNs = ns.getKeySchema();
829
+ const memberNs = ns.getValueSchema();
830
+ let entries;
831
+ if (flat) {
832
+ entries = Array.isArray(value) ? value : [value];
833
+ }
834
+ else {
835
+ entries = Array.isArray(value.entry) ? value.entry : [value.entry];
836
+ }
837
+ const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
838
+ const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
839
+ for (const entry of entries) {
840
+ const key = entry[keyProperty];
841
+ const value = entry[valueProperty];
842
+ if (value != null || sparse) {
843
+ buffer[key] = this.readSchema(memberNs, value);
844
+ }
845
+ }
846
+ return buffer;
847
+ }
848
+ if (ns.isStructSchema()) {
849
+ for (const [memberName, memberSchema] of ns.structIterator()) {
850
+ const memberTraits = memberSchema.getMergedTraits();
851
+ const xmlObjectKey = !memberTraits.httpPayload
852
+ ? memberSchema.getMemberTraits().xmlName ?? memberName
853
+ : memberTraits.xmlName ?? memberSchema.getName();
854
+ if (value[xmlObjectKey] != null) {
855
+ buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
856
+ }
857
+ }
858
+ return buffer;
859
+ }
860
+ if (ns.isDocumentSchema()) {
861
+ return value;
862
+ }
863
+ throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
864
+ }
865
+ if (ns.isListSchema()) {
866
+ return [];
867
+ }
868
+ if (ns.isMapSchema() || ns.isStructSchema()) {
869
+ return {};
870
+ }
871
+ return this.stringDeserializer.read(ns, value);
872
+ }
873
+ parseXml(xml) {
874
+ if (xml.length) {
875
+ let parsedObj;
876
+ try {
877
+ parsedObj = xmlBuilder.parseXML(xml);
878
+ }
879
+ catch (e) {
880
+ if (e && typeof e === "object") {
881
+ Object.defineProperty(e, "$responseBodyText", {
882
+ value: xml,
883
+ });
884
+ }
885
+ throw e;
886
+ }
887
+ const textNodeName = "#text";
888
+ const key = Object.keys(parsedObj)[0];
889
+ const parsedObjToReturn = parsedObj[key];
890
+ if (parsedObjToReturn[textNodeName]) {
891
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
892
+ delete parsedObjToReturn[textNodeName];
893
+ }
894
+ return smithyClient.getValueFromTextNode(parsedObjToReturn);
895
+ }
896
+ return {};
897
+ }
898
+ }
1065
899
 
1066
- // src/submodules/protocols/query/AwsQueryProtocol.ts
1067
- var AwsQueryProtocol = class extends import_protocols5.RpcProtocol {
1068
- constructor(options) {
1069
- super({
1070
- defaultNamespace: options.defaultNamespace
1071
- });
1072
- this.options = options;
1073
- const settings = {
1074
- timestampFormat: {
1075
- useTrait: true,
1076
- default: import_schema7.SCHEMA.TIMESTAMP_DATE_TIME
1077
- },
1078
- httpBindings: false,
1079
- xmlNamespace: options.xmlNamespace,
1080
- serviceNamespace: options.defaultNamespace,
1081
- serializeEmptyLists: true
1082
- };
1083
- this.serializer = new QueryShapeSerializer(settings);
1084
- this.deserializer = new XmlShapeDeserializer(settings);
1085
- }
1086
- static {
1087
- __name(this, "AwsQueryProtocol");
1088
- }
1089
- serializer;
1090
- deserializer;
1091
- getShapeId() {
1092
- return "aws.protocols#awsQuery";
1093
- }
1094
- setSerdeContext(serdeContext) {
1095
- this.serializer.setSerdeContext(serdeContext);
1096
- this.deserializer.setSerdeContext(serdeContext);
1097
- }
1098
- getPayloadCodec() {
1099
- throw new Error("AWSQuery protocol has no payload codec.");
1100
- }
1101
- async serializeRequest(operationSchema, input, context) {
1102
- const request = await super.serializeRequest(operationSchema, input, context);
1103
- if (!request.path.endsWith("/")) {
1104
- request.path += "/";
1105
- }
1106
- Object.assign(request.headers, {
1107
- "content-type": `application/x-www-form-urlencoded`
1108
- });
1109
- if ((0, import_schema7.deref)(operationSchema.input) === "unit" || !request.body) {
1110
- request.body = "";
1111
- }
1112
- request.body = `Action=${operationSchema.name.split("#")[1]}&Version=${this.options.version}` + request.body;
1113
- if (request.body.endsWith("&")) {
1114
- request.body = request.body.slice(-1);
1115
- }
1116
- try {
1117
- request.headers["content-length"] = String((0, import_util_body_length_browser3.calculateBodyLength)(request.body));
1118
- } catch (e) {
1119
- }
1120
- return request;
1121
- }
1122
- async deserializeResponse(operationSchema, context, response) {
1123
- const deserializer = this.deserializer;
1124
- const ns = import_schema7.NormalizedSchema.of(operationSchema.output);
1125
- const dataObject = {};
1126
- if (response.statusCode >= 300) {
1127
- const bytes2 = await (0, import_protocols5.collectBody)(response.body, context);
1128
- if (bytes2.byteLength > 0) {
1129
- Object.assign(dataObject, await deserializer.read(import_schema7.SCHEMA.DOCUMENT, bytes2));
1130
- }
1131
- await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
1132
- }
1133
- for (const header in response.headers) {
1134
- const value = response.headers[header];
1135
- delete response.headers[header];
1136
- response.headers[header.toLowerCase()] = value;
1137
- }
1138
- const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? operationSchema.name.split("#")[1] + "Result" : void 0;
1139
- const bytes = await (0, import_protocols5.collectBody)(response.body, context);
1140
- if (bytes.byteLength > 0) {
1141
- Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
1142
- }
1143
- const output = {
1144
- $metadata: this.deserializeMetadata(response),
1145
- ...dataObject
1146
- };
1147
- return output;
1148
- }
1149
- /**
1150
- * EC2 Query overrides this.
1151
- */
1152
- useNestedResult() {
1153
- return true;
1154
- }
1155
- async handleError(operationSchema, context, response, dataObject, metadata) {
1156
- const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
1157
- let namespace = this.options.defaultNamespace;
1158
- let errorName = errorIdentifier;
1159
- if (errorIdentifier.includes("#")) {
1160
- [namespace, errorName] = errorIdentifier.split("#");
1161
- }
1162
- const errorDataSource = this.loadQueryError(dataObject);
1163
- const registry = import_schema7.TypeRegistry.for(namespace);
1164
- let errorSchema;
1165
- try {
1166
- errorSchema = registry.find(
1167
- (schema) => import_schema7.NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName
1168
- );
1169
- if (!errorSchema) {
1170
- errorSchema = registry.getSchema(errorIdentifier);
1171
- }
1172
- } catch (e) {
1173
- const baseExceptionSchema = import_schema7.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
1174
- if (baseExceptionSchema) {
1175
- const ErrorCtor = baseExceptionSchema.ctor;
1176
- throw Object.assign(new ErrorCtor(errorName), errorDataSource);
1177
- }
1178
- throw new Error(errorName);
1179
- }
1180
- const ns = import_schema7.NormalizedSchema.of(errorSchema);
1181
- const message = this.loadQueryErrorMessage(dataObject);
1182
- const exception = new errorSchema.ctor(message);
1183
- const output = {};
1184
- for (const [name, member] of ns.structIterator()) {
1185
- const target = member.getMergedTraits().xmlName ?? name;
1186
- const value = errorDataSource[target] ?? dataObject[target];
1187
- output[name] = this.deserializer.readSchema(member, value);
1188
- }
1189
- Object.assign(exception, {
1190
- $metadata: metadata,
1191
- $response: response,
1192
- $fault: ns.getMergedTraits().error,
1193
- message,
1194
- ...output
1195
- });
1196
- throw exception;
1197
- }
1198
- /**
1199
- * The variations in the error and error message locations are attributed to
1200
- * divergence between AWS Query and EC2 Query behavior.
1201
- */
1202
- loadQueryErrorCode(output, data) {
1203
- const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
1204
- if (code !== void 0) {
1205
- return code;
900
+ class QueryShapeSerializer extends SerdeContextConfig {
901
+ settings;
902
+ buffer;
903
+ constructor(settings) {
904
+ super();
905
+ this.settings = settings;
906
+ }
907
+ write(schema$1, value, prefix = "") {
908
+ if (this.buffer === undefined) {
909
+ this.buffer = "";
910
+ }
911
+ const ns = schema.NormalizedSchema.of(schema$1);
912
+ if (prefix && !prefix.endsWith(".")) {
913
+ prefix += ".";
914
+ }
915
+ if (ns.isBlobSchema()) {
916
+ if (typeof value === "string" || value instanceof Uint8Array) {
917
+ this.writeKey(prefix);
918
+ this.writeValue((this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value));
919
+ }
920
+ }
921
+ else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
922
+ if (value != null) {
923
+ this.writeKey(prefix);
924
+ this.writeValue(String(value));
925
+ }
926
+ else if (ns.isIdempotencyToken()) {
927
+ this.writeKey(prefix);
928
+ this.writeValue(serde.generateIdempotencyToken());
929
+ }
930
+ }
931
+ else if (ns.isBigIntegerSchema()) {
932
+ if (value != null) {
933
+ this.writeKey(prefix);
934
+ this.writeValue(String(value));
935
+ }
936
+ }
937
+ else if (ns.isBigDecimalSchema()) {
938
+ if (value != null) {
939
+ this.writeKey(prefix);
940
+ this.writeValue(value instanceof serde.NumericValue ? value.string : String(value));
941
+ }
942
+ }
943
+ else if (ns.isTimestampSchema()) {
944
+ if (value instanceof Date) {
945
+ this.writeKey(prefix);
946
+ const format = protocols.determineTimestampFormat(ns, this.settings);
947
+ switch (format) {
948
+ case 5:
949
+ this.writeValue(value.toISOString().replace(".000Z", "Z"));
950
+ break;
951
+ case 6:
952
+ this.writeValue(smithyClient.dateToUtcString(value));
953
+ break;
954
+ case 7:
955
+ this.writeValue(String(value.getTime() / 1000));
956
+ break;
957
+ }
958
+ }
959
+ }
960
+ else if (ns.isDocumentSchema()) {
961
+ throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`);
962
+ }
963
+ else if (ns.isListSchema()) {
964
+ if (Array.isArray(value)) {
965
+ if (value.length === 0) {
966
+ if (this.settings.serializeEmptyLists) {
967
+ this.writeKey(prefix);
968
+ this.writeValue("");
969
+ }
970
+ }
971
+ else {
972
+ const member = ns.getValueSchema();
973
+ const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
974
+ let i = 1;
975
+ for (const item of value) {
976
+ if (item == null) {
977
+ continue;
978
+ }
979
+ const suffix = this.getKey("member", member.getMergedTraits().xmlName);
980
+ const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
981
+ this.write(member, item, key);
982
+ ++i;
983
+ }
984
+ }
985
+ }
986
+ }
987
+ else if (ns.isMapSchema()) {
988
+ if (value && typeof value === "object") {
989
+ const keySchema = ns.getKeySchema();
990
+ const memberSchema = ns.getValueSchema();
991
+ const flat = ns.getMergedTraits().xmlFlattened;
992
+ let i = 1;
993
+ for (const [k, v] of Object.entries(value)) {
994
+ if (v == null) {
995
+ continue;
996
+ }
997
+ const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName);
998
+ const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
999
+ const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName);
1000
+ const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
1001
+ this.write(keySchema, k, key);
1002
+ this.write(memberSchema, v, valueKey);
1003
+ ++i;
1004
+ }
1005
+ }
1006
+ }
1007
+ else if (ns.isStructSchema()) {
1008
+ if (value && typeof value === "object") {
1009
+ for (const [memberName, member] of ns.structIterator()) {
1010
+ if (value[memberName] == null && !member.isIdempotencyToken()) {
1011
+ continue;
1012
+ }
1013
+ const suffix = this.getKey(memberName, member.getMergedTraits().xmlName);
1014
+ const key = `${prefix}${suffix}`;
1015
+ this.write(member, value[memberName], key);
1016
+ }
1017
+ }
1018
+ }
1019
+ else if (ns.isUnitSchema()) ;
1020
+ else {
1021
+ throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
1022
+ }
1206
1023
  }
1207
- if (output.statusCode == 404) {
1208
- return "NotFound";
1209
- }
1210
- }
1211
- loadQueryError(data) {
1212
- return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
1213
- }
1214
- loadQueryErrorMessage(data) {
1215
- const errorData = this.loadQueryError(data);
1216
- return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
1217
- }
1218
- /**
1219
- * @override
1220
- */
1221
- getDefaultContentType() {
1222
- return "application/x-www-form-urlencoded";
1223
- }
1224
- };
1024
+ flush() {
1025
+ if (this.buffer === undefined) {
1026
+ throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
1027
+ }
1028
+ const str = this.buffer;
1029
+ delete this.buffer;
1030
+ return str;
1031
+ }
1032
+ getKey(memberName, xmlName) {
1033
+ const key = xmlName ?? memberName;
1034
+ if (this.settings.capitalizeKeys) {
1035
+ return key[0].toUpperCase() + key.slice(1);
1036
+ }
1037
+ return key;
1038
+ }
1039
+ writeKey(key) {
1040
+ if (key.endsWith(".")) {
1041
+ key = key.slice(0, key.length - 1);
1042
+ }
1043
+ this.buffer += `&${protocols.extendedEncodeURIComponent(key)}=`;
1044
+ }
1045
+ writeValue(value) {
1046
+ this.buffer += protocols.extendedEncodeURIComponent(value);
1047
+ }
1048
+ }
1225
1049
 
1226
- // src/submodules/protocols/query/AwsEc2QueryProtocol.ts
1227
- var AwsEc2QueryProtocol = class extends AwsQueryProtocol {
1228
- constructor(options) {
1229
- super(options);
1230
- this.options = options;
1231
- const ec2Settings = {
1232
- capitalizeKeys: true,
1233
- flattenLists: true,
1234
- serializeEmptyLists: false
1235
- };
1236
- Object.assign(this.serializer.settings, ec2Settings);
1237
- }
1238
- static {
1239
- __name(this, "AwsEc2QueryProtocol");
1240
- }
1241
- /**
1242
- * EC2 Query reads XResponse.XResult instead of XResponse directly.
1243
- */
1244
- useNestedResult() {
1245
- return false;
1246
- }
1247
- };
1050
+ class AwsQueryProtocol extends protocols.RpcProtocol {
1051
+ options;
1052
+ serializer;
1053
+ deserializer;
1054
+ mixin = new ProtocolLib();
1055
+ constructor(options) {
1056
+ super({
1057
+ defaultNamespace: options.defaultNamespace,
1058
+ });
1059
+ this.options = options;
1060
+ const settings = {
1061
+ timestampFormat: {
1062
+ useTrait: true,
1063
+ default: 5,
1064
+ },
1065
+ httpBindings: false,
1066
+ xmlNamespace: options.xmlNamespace,
1067
+ serviceNamespace: options.defaultNamespace,
1068
+ serializeEmptyLists: true,
1069
+ };
1070
+ this.serializer = new QueryShapeSerializer(settings);
1071
+ this.deserializer = new XmlShapeDeserializer(settings);
1072
+ }
1073
+ getShapeId() {
1074
+ return "aws.protocols#awsQuery";
1075
+ }
1076
+ setSerdeContext(serdeContext) {
1077
+ this.serializer.setSerdeContext(serdeContext);
1078
+ this.deserializer.setSerdeContext(serdeContext);
1079
+ }
1080
+ getPayloadCodec() {
1081
+ throw new Error("AWSQuery protocol has no payload codec.");
1082
+ }
1083
+ async serializeRequest(operationSchema, input, context) {
1084
+ const request = await super.serializeRequest(operationSchema, input, context);
1085
+ if (!request.path.endsWith("/")) {
1086
+ request.path += "/";
1087
+ }
1088
+ Object.assign(request.headers, {
1089
+ "content-type": `application/x-www-form-urlencoded`,
1090
+ });
1091
+ if (schema.deref(operationSchema.input) === "unit" || !request.body) {
1092
+ request.body = "";
1093
+ }
1094
+ const action = operationSchema.name.split("#")[1] ?? operationSchema.name;
1095
+ request.body = `Action=${action}&Version=${this.options.version}` + request.body;
1096
+ if (request.body.endsWith("&")) {
1097
+ request.body = request.body.slice(-1);
1098
+ }
1099
+ return request;
1100
+ }
1101
+ async deserializeResponse(operationSchema, context, response) {
1102
+ const deserializer = this.deserializer;
1103
+ const ns = schema.NormalizedSchema.of(operationSchema.output);
1104
+ const dataObject = {};
1105
+ if (response.statusCode >= 300) {
1106
+ const bytes = await protocols.collectBody(response.body, context);
1107
+ if (bytes.byteLength > 0) {
1108
+ Object.assign(dataObject, await deserializer.read(15, bytes));
1109
+ }
1110
+ await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
1111
+ }
1112
+ for (const header in response.headers) {
1113
+ const value = response.headers[header];
1114
+ delete response.headers[header];
1115
+ response.headers[header.toLowerCase()] = value;
1116
+ }
1117
+ const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name;
1118
+ const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : undefined;
1119
+ const bytes = await protocols.collectBody(response.body, context);
1120
+ if (bytes.byteLength > 0) {
1121
+ Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
1122
+ }
1123
+ const output = {
1124
+ $metadata: this.deserializeMetadata(response),
1125
+ ...dataObject,
1126
+ };
1127
+ return output;
1128
+ }
1129
+ useNestedResult() {
1130
+ return true;
1131
+ }
1132
+ async handleError(operationSchema, context, response, dataObject, metadata) {
1133
+ const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
1134
+ const errorData = this.loadQueryError(dataObject);
1135
+ const message = this.loadQueryErrorMessage(dataObject);
1136
+ errorData.message = message;
1137
+ errorData.Error = {
1138
+ Type: errorData.Type,
1139
+ Code: errorData.Code,
1140
+ Message: message,
1141
+ };
1142
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema$1) => schema.NormalizedSchema.of(schema$1).getMergedTraits().awsQueryError?.[0] === errorName));
1143
+ const ns = schema.NormalizedSchema.of(errorSchema);
1144
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
1145
+ const exception = new ErrorCtor(message);
1146
+ const output = {
1147
+ Error: errorData.Error,
1148
+ };
1149
+ for (const [name, member] of ns.structIterator()) {
1150
+ const target = member.getMergedTraits().xmlName ?? name;
1151
+ const value = errorData[target] ?? dataObject[target];
1152
+ output[name] = this.deserializer.readSchema(member, value);
1153
+ }
1154
+ throw Object.assign(exception, errorMetadata, {
1155
+ $fault: ns.getMergedTraits().error,
1156
+ message,
1157
+ }, output);
1158
+ }
1159
+ loadQueryErrorCode(output, data) {
1160
+ const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
1161
+ if (code !== undefined) {
1162
+ return code;
1163
+ }
1164
+ if (output.statusCode == 404) {
1165
+ return "NotFound";
1166
+ }
1167
+ }
1168
+ loadQueryError(data) {
1169
+ return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
1170
+ }
1171
+ loadQueryErrorMessage(data) {
1172
+ const errorData = this.loadQueryError(data);
1173
+ return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
1174
+ }
1175
+ getDefaultContentType() {
1176
+ return "application/x-www-form-urlencoded";
1177
+ }
1178
+ }
1248
1179
 
1249
- // src/submodules/protocols/xml/AwsRestXmlProtocol.ts
1250
- var import_protocols6 = require("@smithy/core/protocols");
1251
- var import_schema9 = require("@smithy/core/schema");
1252
- var import_util_body_length_browser4 = require("@smithy/util-body-length-browser");
1180
+ class AwsEc2QueryProtocol extends AwsQueryProtocol {
1181
+ options;
1182
+ constructor(options) {
1183
+ super(options);
1184
+ this.options = options;
1185
+ const ec2Settings = {
1186
+ capitalizeKeys: true,
1187
+ flattenLists: true,
1188
+ serializeEmptyLists: false,
1189
+ };
1190
+ Object.assign(this.serializer.settings, ec2Settings);
1191
+ }
1192
+ useNestedResult() {
1193
+ return false;
1194
+ }
1195
+ }
1253
1196
 
1254
- // src/submodules/protocols/xml/parseXmlBody.ts
1255
- var import_smithy_client5 = require("@smithy/smithy-client");
1256
- var import_fast_xml_parser2 = require("fast-xml-parser");
1257
- var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1258
- if (encoded.length) {
1259
- const parser = new import_fast_xml_parser2.XMLParser({
1260
- attributeNamePrefix: "",
1261
- htmlEntities: true,
1262
- ignoreAttributes: false,
1263
- ignoreDeclaration: true,
1264
- parseTagValue: false,
1265
- trimValues: false,
1266
- tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
1267
- });
1268
- parser.addEntity("#xD", "\r");
1269
- parser.addEntity("#10", "\n");
1270
- let parsedObj;
1271
- try {
1272
- parsedObj = parser.parse(encoded, true);
1273
- } catch (e) {
1274
- if (e && typeof e === "object") {
1275
- Object.defineProperty(e, "$responseBodyText", {
1276
- value: encoded
1277
- });
1278
- }
1279
- throw e;
1280
- }
1281
- const textNodeName = "#text";
1282
- const key = Object.keys(parsedObj)[0];
1283
- const parsedObjToReturn = parsedObj[key];
1284
- if (parsedObjToReturn[textNodeName]) {
1285
- parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1286
- delete parsedObjToReturn[textNodeName];
1287
- }
1288
- return (0, import_smithy_client5.getValueFromTextNode)(parsedObjToReturn);
1289
- }
1290
- return {};
1291
- }), "parseXmlBody");
1292
- var parseXmlErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1293
- const value = await parseXmlBody(errorBody, context);
1294
- if (value.Error) {
1295
- value.Error.message = value.Error.message ?? value.Error.Message;
1296
- }
1297
- return value;
1298
- }, "parseXmlErrorBody");
1299
- var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
1300
- if (data?.Error?.Code !== void 0) {
1301
- return data.Error.Code;
1302
- }
1303
- if (data?.Code !== void 0) {
1304
- return data.Code;
1305
- }
1306
- if (output.statusCode == 404) {
1307
- return "NotFound";
1308
- }
1309
- }, "loadRestXmlErrorCode");
1197
+ const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1198
+ if (encoded.length) {
1199
+ let parsedObj;
1200
+ try {
1201
+ parsedObj = xmlBuilder.parseXML(encoded);
1202
+ }
1203
+ catch (e) {
1204
+ if (e && typeof e === "object") {
1205
+ Object.defineProperty(e, "$responseBodyText", {
1206
+ value: encoded,
1207
+ });
1208
+ }
1209
+ throw e;
1210
+ }
1211
+ const textNodeName = "#text";
1212
+ const key = Object.keys(parsedObj)[0];
1213
+ const parsedObjToReturn = parsedObj[key];
1214
+ if (parsedObjToReturn[textNodeName]) {
1215
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1216
+ delete parsedObjToReturn[textNodeName];
1217
+ }
1218
+ return smithyClient.getValueFromTextNode(parsedObjToReturn);
1219
+ }
1220
+ return {};
1221
+ });
1222
+ const parseXmlErrorBody = async (errorBody, context) => {
1223
+ const value = await parseXmlBody(errorBody, context);
1224
+ if (value.Error) {
1225
+ value.Error.message = value.Error.message ?? value.Error.Message;
1226
+ }
1227
+ return value;
1228
+ };
1229
+ const loadRestXmlErrorCode = (output, data) => {
1230
+ if (data?.Error?.Code !== undefined) {
1231
+ return data.Error.Code;
1232
+ }
1233
+ if (data?.Code !== undefined) {
1234
+ return data.Code;
1235
+ }
1236
+ if (output.statusCode == 404) {
1237
+ return "NotFound";
1238
+ }
1239
+ };
1310
1240
 
1311
- // src/submodules/protocols/xml/XmlShapeSerializer.ts
1312
- var import_xml_builder = require("@aws-sdk/xml-builder");
1313
- var import_schema8 = require("@smithy/core/schema");
1314
- var import_serde6 = require("@smithy/core/serde");
1315
- var import_smithy_client6 = require("@smithy/smithy-client");
1316
- var import_util_base643 = require("@smithy/util-base64");
1317
- var XmlShapeSerializer = class extends SerdeContextConfig {
1318
- constructor(settings) {
1319
- super();
1320
- this.settings = settings;
1321
- }
1322
- static {
1323
- __name(this, "XmlShapeSerializer");
1324
- }
1325
- stringBuffer;
1326
- byteBuffer;
1327
- buffer;
1328
- write(schema, value) {
1329
- const ns = import_schema8.NormalizedSchema.of(schema);
1330
- if (ns.isStringSchema() && typeof value === "string") {
1331
- this.stringBuffer = value;
1332
- } else if (ns.isBlobSchema()) {
1333
- this.byteBuffer = "byteLength" in value ? value : (this.serdeContext?.base64Decoder ?? import_util_base643.fromBase64)(value);
1334
- } else {
1335
- this.buffer = this.writeStruct(ns, value, void 0);
1336
- const traits = ns.getMergedTraits();
1337
- if (traits.httpPayload && !traits.xmlName) {
1338
- this.buffer.withName(ns.getName());
1339
- }
1340
- }
1341
- }
1342
- flush() {
1343
- if (this.byteBuffer !== void 0) {
1344
- const bytes = this.byteBuffer;
1345
- delete this.byteBuffer;
1346
- return bytes;
1347
- }
1348
- if (this.stringBuffer !== void 0) {
1349
- const str = this.stringBuffer;
1350
- delete this.stringBuffer;
1351
- return str;
1352
- }
1353
- const buffer = this.buffer;
1354
- if (this.settings.xmlNamespace) {
1355
- if (!buffer?.attributes?.["xmlns"]) {
1356
- buffer.addAttribute("xmlns", this.settings.xmlNamespace);
1357
- }
1358
- }
1359
- delete this.buffer;
1360
- return buffer.toString();
1361
- }
1362
- writeStruct(ns, value, parentXmlns) {
1363
- const traits = ns.getMergedTraits();
1364
- const name = ns.isMemberSchema() && !traits.httpPayload ? ns.getMemberTraits().xmlName ?? ns.getMemberName() : traits.xmlName ?? ns.getName();
1365
- if (!name || !ns.isStructSchema()) {
1366
- throw new Error(
1367
- `@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(
1368
- true
1369
- )}.`
1370
- );
1371
- }
1372
- const structXmlNode = import_xml_builder.XmlNode.of(name);
1373
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1374
- if (xmlns) {
1375
- structXmlNode.addAttribute(xmlnsAttr, xmlns);
1376
- }
1377
- for (const [memberName, memberSchema] of ns.structIterator()) {
1378
- const val = value[memberName];
1379
- if (val != null || memberSchema.isIdempotencyToken()) {
1380
- if (memberSchema.getMergedTraits().xmlAttribute) {
1381
- structXmlNode.addAttribute(
1382
- memberSchema.getMergedTraits().xmlName ?? memberName,
1383
- this.writeSimple(memberSchema, val)
1384
- );
1385
- continue;
1386
- }
1387
- if (memberSchema.isListSchema()) {
1388
- this.writeList(memberSchema, val, structXmlNode, xmlns);
1389
- } else if (memberSchema.isMapSchema()) {
1390
- this.writeMap(memberSchema, val, structXmlNode, xmlns);
1391
- } else if (memberSchema.isStructSchema()) {
1392
- structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
1393
- } else {
1394
- const memberNode = import_xml_builder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
1395
- this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
1396
- structXmlNode.addChildNode(memberNode);
1397
- }
1398
- }
1399
- }
1400
- return structXmlNode;
1401
- }
1402
- writeList(listMember, array, container, parentXmlns) {
1403
- if (!listMember.isMemberSchema()) {
1404
- throw new Error(
1405
- `@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`
1406
- );
1407
- }
1408
- const listTraits = listMember.getMergedTraits();
1409
- const listValueSchema = listMember.getValueSchema();
1410
- const listValueTraits = listValueSchema.getMergedTraits();
1411
- const sparse = !!listValueTraits.sparse;
1412
- const flat = !!listTraits.xmlFlattened;
1413
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
1414
- const writeItem = /* @__PURE__ */ __name((container2, value) => {
1415
- if (listValueSchema.isListSchema()) {
1416
- this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container2, xmlns);
1417
- } else if (listValueSchema.isMapSchema()) {
1418
- this.writeMap(listValueSchema, value, container2, xmlns);
1419
- } else if (listValueSchema.isStructSchema()) {
1420
- const struct = this.writeStruct(listValueSchema, value, xmlns);
1421
- container2.addChildNode(
1422
- struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member")
1423
- );
1424
- } else {
1425
- const listItemNode = import_xml_builder.XmlNode.of(
1426
- flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"
1427
- );
1428
- this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
1429
- container2.addChildNode(listItemNode);
1430
- }
1431
- }, "writeItem");
1432
- if (flat) {
1433
- for (const value of array) {
1434
- if (sparse || value != null) {
1435
- writeItem(container, value);
1436
- }
1437
- }
1438
- } else {
1439
- const listNode = import_xml_builder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
1440
- if (xmlns) {
1441
- listNode.addAttribute(xmlnsAttr, xmlns);
1442
- }
1443
- for (const value of array) {
1444
- if (sparse || value != null) {
1445
- writeItem(listNode, value);
1446
- }
1447
- }
1448
- container.addChildNode(listNode);
1449
- }
1450
- }
1451
- writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
1452
- if (!mapMember.isMemberSchema()) {
1453
- throw new Error(
1454
- `@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`
1455
- );
1456
- }
1457
- const mapTraits = mapMember.getMergedTraits();
1458
- const mapKeySchema = mapMember.getKeySchema();
1459
- const mapKeyTraits = mapKeySchema.getMergedTraits();
1460
- const keyTag = mapKeyTraits.xmlName ?? "key";
1461
- const mapValueSchema = mapMember.getValueSchema();
1462
- const mapValueTraits = mapValueSchema.getMergedTraits();
1463
- const valueTag = mapValueTraits.xmlName ?? "value";
1464
- const sparse = !!mapValueTraits.sparse;
1465
- const flat = !!mapTraits.xmlFlattened;
1466
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
1467
- const addKeyValue = /* @__PURE__ */ __name((entry, key, val) => {
1468
- const keyNode = import_xml_builder.XmlNode.of(keyTag, key);
1469
- const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
1470
- if (keyXmlns) {
1471
- keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
1472
- }
1473
- entry.addChildNode(keyNode);
1474
- let valueNode = import_xml_builder.XmlNode.of(valueTag);
1475
- if (mapValueSchema.isListSchema()) {
1476
- this.writeList(mapValueSchema, val, valueNode, xmlns);
1477
- } else if (mapValueSchema.isMapSchema()) {
1478
- this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
1479
- } else if (mapValueSchema.isStructSchema()) {
1480
- valueNode = this.writeStruct(mapValueSchema, val, xmlns);
1481
- } else {
1482
- this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
1483
- }
1484
- entry.addChildNode(valueNode);
1485
- }, "addKeyValue");
1486
- if (flat) {
1487
- for (const [key, val] of Object.entries(map)) {
1488
- if (sparse || val != null) {
1489
- const entry = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1490
- addKeyValue(entry, key, val);
1491
- container.addChildNode(entry);
1492
- }
1493
- }
1494
- } else {
1495
- let mapNode;
1496
- if (!containerIsMap) {
1497
- mapNode = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1241
+ class XmlShapeSerializer extends SerdeContextConfig {
1242
+ settings;
1243
+ stringBuffer;
1244
+ byteBuffer;
1245
+ buffer;
1246
+ constructor(settings) {
1247
+ super();
1248
+ this.settings = settings;
1249
+ }
1250
+ write(schema$1, value) {
1251
+ const ns = schema.NormalizedSchema.of(schema$1);
1252
+ if (ns.isStringSchema() && typeof value === "string") {
1253
+ this.stringBuffer = value;
1254
+ }
1255
+ else if (ns.isBlobSchema()) {
1256
+ this.byteBuffer =
1257
+ "byteLength" in value
1258
+ ? value
1259
+ : (this.serdeContext?.base64Decoder ?? utilBase64.fromBase64)(value);
1260
+ }
1261
+ else {
1262
+ this.buffer = this.writeStruct(ns, value, undefined);
1263
+ const traits = ns.getMergedTraits();
1264
+ if (traits.httpPayload && !traits.xmlName) {
1265
+ this.buffer.withName(ns.getName());
1266
+ }
1267
+ }
1268
+ }
1269
+ flush() {
1270
+ if (this.byteBuffer !== undefined) {
1271
+ const bytes = this.byteBuffer;
1272
+ delete this.byteBuffer;
1273
+ return bytes;
1274
+ }
1275
+ if (this.stringBuffer !== undefined) {
1276
+ const str = this.stringBuffer;
1277
+ delete this.stringBuffer;
1278
+ return str;
1279
+ }
1280
+ const buffer = this.buffer;
1281
+ if (this.settings.xmlNamespace) {
1282
+ if (!buffer?.attributes?.["xmlns"]) {
1283
+ buffer.addAttribute("xmlns", this.settings.xmlNamespace);
1284
+ }
1285
+ }
1286
+ delete this.buffer;
1287
+ return buffer.toString();
1288
+ }
1289
+ writeStruct(ns, value, parentXmlns) {
1290
+ const traits = ns.getMergedTraits();
1291
+ const name = ns.isMemberSchema() && !traits.httpPayload
1292
+ ? ns.getMemberTraits().xmlName ?? ns.getMemberName()
1293
+ : traits.xmlName ?? ns.getName();
1294
+ if (!name || !ns.isStructSchema()) {
1295
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`);
1296
+ }
1297
+ const structXmlNode = xmlBuilder.XmlNode.of(name);
1298
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1299
+ for (const [memberName, memberSchema] of ns.structIterator()) {
1300
+ const val = value[memberName];
1301
+ if (val != null || memberSchema.isIdempotencyToken()) {
1302
+ if (memberSchema.getMergedTraits().xmlAttribute) {
1303
+ structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val));
1304
+ continue;
1305
+ }
1306
+ if (memberSchema.isListSchema()) {
1307
+ this.writeList(memberSchema, val, structXmlNode, xmlns);
1308
+ }
1309
+ else if (memberSchema.isMapSchema()) {
1310
+ this.writeMap(memberSchema, val, structXmlNode, xmlns);
1311
+ }
1312
+ else if (memberSchema.isStructSchema()) {
1313
+ structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
1314
+ }
1315
+ else {
1316
+ const memberNode = xmlBuilder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
1317
+ this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
1318
+ structXmlNode.addChildNode(memberNode);
1319
+ }
1320
+ }
1321
+ }
1498
1322
  if (xmlns) {
1499
- mapNode.addAttribute(xmlnsAttr, xmlns);
1500
- }
1501
- container.addChildNode(mapNode);
1502
- }
1503
- for (const [key, val] of Object.entries(map)) {
1504
- if (sparse || val != null) {
1505
- const entry = import_xml_builder.XmlNode.of("entry");
1506
- addKeyValue(entry, key, val);
1507
- (containerIsMap ? container : mapNode).addChildNode(entry);
1508
- }
1509
- }
1510
- }
1511
- }
1512
- writeSimple(_schema, value) {
1513
- if (null === value) {
1514
- throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
1515
- }
1516
- const ns = import_schema8.NormalizedSchema.of(_schema);
1517
- let nodeContents = null;
1518
- if (value && typeof value === "object") {
1519
- if (ns.isBlobSchema()) {
1520
- nodeContents = (this.serdeContext?.base64Encoder ?? import_util_base643.toBase64)(value);
1521
- } else if (ns.isTimestampSchema() && value instanceof Date) {
1522
- const options = this.settings.timestampFormat;
1523
- const format = options.useTrait ? ns.getSchema() === import_schema8.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
1524
- switch (format) {
1525
- case import_schema8.SCHEMA.TIMESTAMP_DATE_TIME:
1526
- nodeContents = value.toISOString().replace(".000Z", "Z");
1527
- break;
1528
- case import_schema8.SCHEMA.TIMESTAMP_HTTP_DATE:
1529
- nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
1530
- break;
1531
- case import_schema8.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
1532
- nodeContents = String(value.getTime() / 1e3);
1533
- break;
1534
- default:
1535
- console.warn("Missing timestamp format, using http date", value);
1536
- nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
1537
- break;
1538
- }
1539
- } else if (ns.isBigDecimalSchema() && value) {
1540
- if (value instanceof import_serde6.NumericValue) {
1541
- return value.string;
1542
- }
1543
- return String(value);
1544
- } else if (ns.isMapSchema() || ns.isListSchema()) {
1545
- throw new Error(
1546
- "@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."
1547
- );
1548
- } else {
1549
- throw new Error(
1550
- `@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(
1551
- true
1552
- )}`
1553
- );
1554
- }
1555
- }
1556
- if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
1557
- nodeContents = String(value);
1558
- }
1559
- if (ns.isStringSchema()) {
1560
- if (value === void 0 && ns.isIdempotencyToken()) {
1561
- nodeContents = (0, import_serde6.generateIdempotencyToken)();
1562
- } else {
1563
- nodeContents = String(value);
1564
- }
1565
- }
1566
- if (nodeContents === null) {
1567
- throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
1568
- }
1569
- return nodeContents;
1570
- }
1571
- writeSimpleInto(_schema, value, into, parentXmlns) {
1572
- const nodeContents = this.writeSimple(_schema, value);
1573
- const ns = import_schema8.NormalizedSchema.of(_schema);
1574
- const content = new import_xml_builder.XmlText(nodeContents);
1575
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1576
- if (xmlns) {
1577
- into.addAttribute(xmlnsAttr, xmlns);
1578
- }
1579
- into.addChildNode(content);
1580
- }
1581
- getXmlnsAttribute(ns, parentXmlns) {
1582
- const traits = ns.getMergedTraits();
1583
- const [prefix, xmlns] = traits.xmlNamespace ?? [];
1584
- if (xmlns && xmlns !== parentXmlns) {
1585
- return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns];
1586
- }
1587
- return [void 0, void 0];
1588
- }
1589
- };
1323
+ structXmlNode.addAttribute(xmlnsAttr, xmlns);
1324
+ }
1325
+ return structXmlNode;
1326
+ }
1327
+ writeList(listMember, array, container, parentXmlns) {
1328
+ if (!listMember.isMemberSchema()) {
1329
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`);
1330
+ }
1331
+ const listTraits = listMember.getMergedTraits();
1332
+ const listValueSchema = listMember.getValueSchema();
1333
+ const listValueTraits = listValueSchema.getMergedTraits();
1334
+ const sparse = !!listValueTraits.sparse;
1335
+ const flat = !!listTraits.xmlFlattened;
1336
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
1337
+ const writeItem = (container, value) => {
1338
+ if (listValueSchema.isListSchema()) {
1339
+ this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container, xmlns);
1340
+ }
1341
+ else if (listValueSchema.isMapSchema()) {
1342
+ this.writeMap(listValueSchema, value, container, xmlns);
1343
+ }
1344
+ else if (listValueSchema.isStructSchema()) {
1345
+ const struct = this.writeStruct(listValueSchema, value, xmlns);
1346
+ container.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"));
1347
+ }
1348
+ else {
1349
+ const listItemNode = xmlBuilder.XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member");
1350
+ this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
1351
+ container.addChildNode(listItemNode);
1352
+ }
1353
+ };
1354
+ if (flat) {
1355
+ for (const value of array) {
1356
+ if (sparse || value != null) {
1357
+ writeItem(container, value);
1358
+ }
1359
+ }
1360
+ }
1361
+ else {
1362
+ const listNode = xmlBuilder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
1363
+ if (xmlns) {
1364
+ listNode.addAttribute(xmlnsAttr, xmlns);
1365
+ }
1366
+ for (const value of array) {
1367
+ if (sparse || value != null) {
1368
+ writeItem(listNode, value);
1369
+ }
1370
+ }
1371
+ container.addChildNode(listNode);
1372
+ }
1373
+ }
1374
+ writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
1375
+ if (!mapMember.isMemberSchema()) {
1376
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`);
1377
+ }
1378
+ const mapTraits = mapMember.getMergedTraits();
1379
+ const mapKeySchema = mapMember.getKeySchema();
1380
+ const mapKeyTraits = mapKeySchema.getMergedTraits();
1381
+ const keyTag = mapKeyTraits.xmlName ?? "key";
1382
+ const mapValueSchema = mapMember.getValueSchema();
1383
+ const mapValueTraits = mapValueSchema.getMergedTraits();
1384
+ const valueTag = mapValueTraits.xmlName ?? "value";
1385
+ const sparse = !!mapValueTraits.sparse;
1386
+ const flat = !!mapTraits.xmlFlattened;
1387
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
1388
+ const addKeyValue = (entry, key, val) => {
1389
+ const keyNode = xmlBuilder.XmlNode.of(keyTag, key);
1390
+ const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
1391
+ if (keyXmlns) {
1392
+ keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
1393
+ }
1394
+ entry.addChildNode(keyNode);
1395
+ let valueNode = xmlBuilder.XmlNode.of(valueTag);
1396
+ if (mapValueSchema.isListSchema()) {
1397
+ this.writeList(mapValueSchema, val, valueNode, xmlns);
1398
+ }
1399
+ else if (mapValueSchema.isMapSchema()) {
1400
+ this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
1401
+ }
1402
+ else if (mapValueSchema.isStructSchema()) {
1403
+ valueNode = this.writeStruct(mapValueSchema, val, xmlns);
1404
+ }
1405
+ else {
1406
+ this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
1407
+ }
1408
+ entry.addChildNode(valueNode);
1409
+ };
1410
+ if (flat) {
1411
+ for (const [key, val] of Object.entries(map)) {
1412
+ if (sparse || val != null) {
1413
+ const entry = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1414
+ addKeyValue(entry, key, val);
1415
+ container.addChildNode(entry);
1416
+ }
1417
+ }
1418
+ }
1419
+ else {
1420
+ let mapNode;
1421
+ if (!containerIsMap) {
1422
+ mapNode = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1423
+ if (xmlns) {
1424
+ mapNode.addAttribute(xmlnsAttr, xmlns);
1425
+ }
1426
+ container.addChildNode(mapNode);
1427
+ }
1428
+ for (const [key, val] of Object.entries(map)) {
1429
+ if (sparse || val != null) {
1430
+ const entry = xmlBuilder.XmlNode.of("entry");
1431
+ addKeyValue(entry, key, val);
1432
+ (containerIsMap ? container : mapNode).addChildNode(entry);
1433
+ }
1434
+ }
1435
+ }
1436
+ }
1437
+ writeSimple(_schema, value) {
1438
+ if (null === value) {
1439
+ throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
1440
+ }
1441
+ const ns = schema.NormalizedSchema.of(_schema);
1442
+ let nodeContents = null;
1443
+ if (value && typeof value === "object") {
1444
+ if (ns.isBlobSchema()) {
1445
+ nodeContents = (this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value);
1446
+ }
1447
+ else if (ns.isTimestampSchema() && value instanceof Date) {
1448
+ const format = protocols.determineTimestampFormat(ns, this.settings);
1449
+ switch (format) {
1450
+ case 5:
1451
+ nodeContents = value.toISOString().replace(".000Z", "Z");
1452
+ break;
1453
+ case 6:
1454
+ nodeContents = smithyClient.dateToUtcString(value);
1455
+ break;
1456
+ case 7:
1457
+ nodeContents = String(value.getTime() / 1000);
1458
+ break;
1459
+ default:
1460
+ console.warn("Missing timestamp format, using http date", value);
1461
+ nodeContents = smithyClient.dateToUtcString(value);
1462
+ break;
1463
+ }
1464
+ }
1465
+ else if (ns.isBigDecimalSchema() && value) {
1466
+ if (value instanceof serde.NumericValue) {
1467
+ return value.string;
1468
+ }
1469
+ return String(value);
1470
+ }
1471
+ else if (ns.isMapSchema() || ns.isListSchema()) {
1472
+ throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");
1473
+ }
1474
+ else {
1475
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`);
1476
+ }
1477
+ }
1478
+ if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
1479
+ nodeContents = String(value);
1480
+ }
1481
+ if (ns.isStringSchema()) {
1482
+ if (value === undefined && ns.isIdempotencyToken()) {
1483
+ nodeContents = serde.generateIdempotencyToken();
1484
+ }
1485
+ else {
1486
+ nodeContents = String(value);
1487
+ }
1488
+ }
1489
+ if (nodeContents === null) {
1490
+ throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
1491
+ }
1492
+ return nodeContents;
1493
+ }
1494
+ writeSimpleInto(_schema, value, into, parentXmlns) {
1495
+ const nodeContents = this.writeSimple(_schema, value);
1496
+ const ns = schema.NormalizedSchema.of(_schema);
1497
+ const content = new xmlBuilder.XmlText(nodeContents);
1498
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1499
+ if (xmlns) {
1500
+ into.addAttribute(xmlnsAttr, xmlns);
1501
+ }
1502
+ into.addChildNode(content);
1503
+ }
1504
+ getXmlnsAttribute(ns, parentXmlns) {
1505
+ const traits = ns.getMergedTraits();
1506
+ const [prefix, xmlns] = traits.xmlNamespace ?? [];
1507
+ if (xmlns && xmlns !== parentXmlns) {
1508
+ return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns];
1509
+ }
1510
+ return [void 0, void 0];
1511
+ }
1512
+ }
1590
1513
 
1591
- // src/submodules/protocols/xml/XmlCodec.ts
1592
- var XmlCodec = class extends SerdeContextConfig {
1593
- constructor(settings) {
1594
- super();
1595
- this.settings = settings;
1596
- }
1597
- static {
1598
- __name(this, "XmlCodec");
1599
- }
1600
- createSerializer() {
1601
- const serializer = new XmlShapeSerializer(this.settings);
1602
- serializer.setSerdeContext(this.serdeContext);
1603
- return serializer;
1604
- }
1605
- createDeserializer() {
1606
- const deserializer = new XmlShapeDeserializer(this.settings);
1607
- deserializer.setSerdeContext(this.serdeContext);
1608
- return deserializer;
1609
- }
1610
- };
1514
+ class XmlCodec extends SerdeContextConfig {
1515
+ settings;
1516
+ constructor(settings) {
1517
+ super();
1518
+ this.settings = settings;
1519
+ }
1520
+ createSerializer() {
1521
+ const serializer = new XmlShapeSerializer(this.settings);
1522
+ serializer.setSerdeContext(this.serdeContext);
1523
+ return serializer;
1524
+ }
1525
+ createDeserializer() {
1526
+ const deserializer = new XmlShapeDeserializer(this.settings);
1527
+ deserializer.setSerdeContext(this.serdeContext);
1528
+ return deserializer;
1529
+ }
1530
+ }
1611
1531
 
1612
- // src/submodules/protocols/xml/AwsRestXmlProtocol.ts
1613
- var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
1614
- static {
1615
- __name(this, "AwsRestXmlProtocol");
1616
- }
1617
- codec;
1618
- serializer;
1619
- deserializer;
1620
- constructor(options) {
1621
- super(options);
1622
- const settings = {
1623
- timestampFormat: {
1624
- useTrait: true,
1625
- default: import_schema9.SCHEMA.TIMESTAMP_DATE_TIME
1626
- },
1627
- httpBindings: true,
1628
- xmlNamespace: options.xmlNamespace,
1629
- serviceNamespace: options.defaultNamespace
1630
- };
1631
- this.codec = new XmlCodec(settings);
1632
- this.serializer = new import_protocols6.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
1633
- this.deserializer = new import_protocols6.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
1634
- }
1635
- getPayloadCodec() {
1636
- return this.codec;
1637
- }
1638
- getShapeId() {
1639
- return "aws.protocols#restXml";
1640
- }
1641
- async serializeRequest(operationSchema, input, context) {
1642
- const request = await super.serializeRequest(operationSchema, input, context);
1643
- const ns = import_schema9.NormalizedSchema.of(operationSchema.input);
1644
- const members = ns.getMemberSchemas();
1645
- request.path = String(request.path).split("/").filter((segment) => {
1646
- return segment !== "{Bucket}";
1647
- }).join("/") || "/";
1648
- if (!request.headers["content-type"]) {
1649
- const httpPayloadMember = Object.values(members).find((m) => {
1650
- return !!m.getMergedTraits().httpPayload;
1651
- });
1652
- if (httpPayloadMember) {
1653
- const mediaType = httpPayloadMember.getMergedTraits().mediaType;
1654
- if (mediaType) {
1655
- request.headers["content-type"] = mediaType;
1656
- } else if (httpPayloadMember.isStringSchema()) {
1657
- request.headers["content-type"] = "text/plain";
1658
- } else if (httpPayloadMember.isBlobSchema()) {
1659
- request.headers["content-type"] = "application/octet-stream";
1660
- } else {
1661
- request.headers["content-type"] = this.getDefaultContentType();
1662
- }
1663
- } else if (!ns.isUnitSchema()) {
1664
- const hasBody = Object.values(members).find((m) => {
1665
- const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
1666
- return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
1667
- });
1668
- if (hasBody) {
1669
- request.headers["content-type"] = this.getDefaultContentType();
1670
- }
1671
- }
1672
- }
1673
- if (request.headers["content-type"] === this.getDefaultContentType()) {
1674
- if (typeof request.body === "string") {
1675
- request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
1676
- }
1677
- }
1678
- if (request.body) {
1679
- try {
1680
- request.headers["content-length"] = String((0, import_util_body_length_browser4.calculateBodyLength)(request.body));
1681
- } catch (e) {
1682
- }
1683
- }
1684
- return request;
1685
- }
1686
- async deserializeResponse(operationSchema, context, response) {
1687
- return super.deserializeResponse(operationSchema, context, response);
1688
- }
1689
- async handleError(operationSchema, context, response, dataObject, metadata) {
1690
- const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
1691
- let namespace = this.options.defaultNamespace;
1692
- let errorName = errorIdentifier;
1693
- if (errorIdentifier.includes("#")) {
1694
- [namespace, errorName] = errorIdentifier.split("#");
1695
- }
1696
- const registry = import_schema9.TypeRegistry.for(namespace);
1697
- let errorSchema;
1698
- try {
1699
- errorSchema = registry.getSchema(errorIdentifier);
1700
- } catch (e) {
1701
- const baseExceptionSchema = import_schema9.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
1702
- if (baseExceptionSchema) {
1703
- const ErrorCtor = baseExceptionSchema.ctor;
1704
- throw Object.assign(new ErrorCtor(errorName), dataObject);
1705
- }
1706
- throw new Error(errorName);
1707
- }
1708
- const ns = import_schema9.NormalizedSchema.of(errorSchema);
1709
- const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
1710
- const exception = new errorSchema.ctor(message);
1711
- await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1712
- const output = {};
1713
- for (const [name, member] of ns.structIterator()) {
1714
- const target = member.getMergedTraits().xmlName ?? name;
1715
- const value = dataObject.Error?.[target] ?? dataObject[target];
1716
- output[name] = this.codec.createDeserializer().readSchema(member, value);
1717
- }
1718
- Object.assign(exception, {
1719
- $metadata: metadata,
1720
- $response: response,
1721
- $fault: ns.getMergedTraits().error,
1722
- message,
1723
- ...output
1724
- });
1725
- throw exception;
1726
- }
1727
- /**
1728
- * @override
1729
- */
1730
- getDefaultContentType() {
1731
- return "application/xml";
1732
- }
1733
- };
1734
- // Annotate the CommonJS export names for ESM import in node:
1735
- 0 && (module.exports = {
1736
- AwsEc2QueryProtocol,
1737
- AwsJson1_0Protocol,
1738
- AwsJson1_1Protocol,
1739
- AwsJsonRpcProtocol,
1740
- AwsQueryProtocol,
1741
- AwsRestJsonProtocol,
1742
- AwsRestXmlProtocol,
1743
- JsonCodec,
1744
- JsonShapeDeserializer,
1745
- JsonShapeSerializer,
1746
- XmlCodec,
1747
- XmlShapeDeserializer,
1748
- XmlShapeSerializer,
1749
- _toBool,
1750
- _toNum,
1751
- _toStr,
1752
- awsExpectUnion,
1753
- loadRestJsonErrorCode,
1754
- loadRestXmlErrorCode,
1755
- parseJsonBody,
1756
- parseJsonErrorBody,
1757
- parseXmlBody,
1758
- parseXmlErrorBody
1759
- });
1532
+ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
1533
+ codec;
1534
+ serializer;
1535
+ deserializer;
1536
+ mixin = new ProtocolLib();
1537
+ constructor(options) {
1538
+ super(options);
1539
+ const settings = {
1540
+ timestampFormat: {
1541
+ useTrait: true,
1542
+ default: 5,
1543
+ },
1544
+ httpBindings: true,
1545
+ xmlNamespace: options.xmlNamespace,
1546
+ serviceNamespace: options.defaultNamespace,
1547
+ };
1548
+ this.codec = new XmlCodec(settings);
1549
+ this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
1550
+ this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
1551
+ }
1552
+ getPayloadCodec() {
1553
+ return this.codec;
1554
+ }
1555
+ getShapeId() {
1556
+ return "aws.protocols#restXml";
1557
+ }
1558
+ async serializeRequest(operationSchema, input, context) {
1559
+ const request = await super.serializeRequest(operationSchema, input, context);
1560
+ const inputSchema = schema.NormalizedSchema.of(operationSchema.input);
1561
+ if (!request.headers["content-type"]) {
1562
+ const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
1563
+ if (contentType) {
1564
+ request.headers["content-type"] = contentType;
1565
+ }
1566
+ }
1567
+ if (request.headers["content-type"] === this.getDefaultContentType()) {
1568
+ if (typeof request.body === "string") {
1569
+ request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
1570
+ }
1571
+ }
1572
+ return request;
1573
+ }
1574
+ async deserializeResponse(operationSchema, context, response) {
1575
+ return super.deserializeResponse(operationSchema, context, response);
1576
+ }
1577
+ async handleError(operationSchema, context, response, dataObject, metadata) {
1578
+ const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
1579
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
1580
+ const ns = schema.NormalizedSchema.of(errorSchema);
1581
+ const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
1582
+ const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
1583
+ const exception = new ErrorCtor(message);
1584
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1585
+ const output = {};
1586
+ for (const [name, member] of ns.structIterator()) {
1587
+ const target = member.getMergedTraits().xmlName ?? name;
1588
+ const value = dataObject.Error?.[target] ?? dataObject[target];
1589
+ output[name] = this.codec.createDeserializer().readSchema(member, value);
1590
+ }
1591
+ throw Object.assign(exception, errorMetadata, {
1592
+ $fault: ns.getMergedTraits().error,
1593
+ message,
1594
+ }, output);
1595
+ }
1596
+ getDefaultContentType() {
1597
+ return "application/xml";
1598
+ }
1599
+ }
1600
+
1601
+ exports.AwsEc2QueryProtocol = AwsEc2QueryProtocol;
1602
+ exports.AwsJson1_0Protocol = AwsJson1_0Protocol;
1603
+ exports.AwsJson1_1Protocol = AwsJson1_1Protocol;
1604
+ exports.AwsJsonRpcProtocol = AwsJsonRpcProtocol;
1605
+ exports.AwsQueryProtocol = AwsQueryProtocol;
1606
+ exports.AwsRestJsonProtocol = AwsRestJsonProtocol;
1607
+ exports.AwsRestXmlProtocol = AwsRestXmlProtocol;
1608
+ exports.AwsSmithyRpcV2CborProtocol = AwsSmithyRpcV2CborProtocol;
1609
+ exports.JsonCodec = JsonCodec;
1610
+ exports.JsonShapeDeserializer = JsonShapeDeserializer;
1611
+ exports.JsonShapeSerializer = JsonShapeSerializer;
1612
+ exports.XmlCodec = XmlCodec;
1613
+ exports.XmlShapeDeserializer = XmlShapeDeserializer;
1614
+ exports.XmlShapeSerializer = XmlShapeSerializer;
1615
+ exports._toBool = _toBool;
1616
+ exports._toNum = _toNum;
1617
+ exports._toStr = _toStr;
1618
+ exports.awsExpectUnion = awsExpectUnion;
1619
+ exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
1620
+ exports.loadRestXmlErrorCode = loadRestXmlErrorCode;
1621
+ exports.parseJsonBody = parseJsonBody;
1622
+ exports.parseJsonErrorBody = parseJsonErrorBody;
1623
+ exports.parseXmlBody = parseXmlBody;
1624
+ exports.parseXmlErrorBody = parseXmlErrorBody;