@mavogel/awscdk-rootmail 0.0.332 → 0.0.333

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 (521) hide show
  1. package/.jsii +3 -3
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/schemas/schemas_0.js +6 -4
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/schemas/schemas_0.js +6 -4
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/DescribeQueriesCommand.d.ts +3 -0
  7. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/GetTransformerCommand.d.ts +1 -0
  8. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/PutTransformerCommand.d.ts +1 -0
  9. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/TestTransformerCommand.d.ts +1 -0
  10. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/models_0.d.ts +34 -2
  11. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/models/models_0.d.ts +4 -0
  12. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +6 -6
  13. package/node_modules/@aws-sdk/client-route-53/package.json +6 -6
  14. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -0
  15. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +1 -0
  16. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +4 -0
  17. package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +39 -8
  18. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +39 -8
  19. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +39 -8
  20. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +39 -8
  21. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +51 -0
  22. package/node_modules/@aws-sdk/client-s3/package.json +7 -7
  23. package/node_modules/@aws-sdk/client-ses/package.json +6 -6
  24. package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
  25. package/node_modules/@aws-sdk/credential-provider-ini/package.json +5 -5
  26. package/node_modules/@aws-sdk/credential-provider-login/package.json +2 -2
  27. package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
  28. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  29. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
  30. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  31. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  32. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  33. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  34. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +6 -0
  35. package/node_modules/@smithy/core/dist-cjs/index.js +1 -1
  36. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +21 -0
  37. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +21 -0
  38. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +46 -0
  39. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +6 -0
  40. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +24 -0
  41. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +19 -0
  42. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +27 -0
  43. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +5 -0
  44. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +10 -0
  45. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +44 -0
  46. package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +5 -0
  47. package/node_modules/@smithy/core/dist-cjs/setFeature.js +14 -0
  48. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +17 -0
  49. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +38 -0
  50. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +15 -0
  51. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +6 -0
  52. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +9 -0
  53. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +6 -0
  54. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +61 -0
  55. package/node_modules/@smithy/core/package.json +15 -16
  56. package/node_modules/@smithy/fetch-http-handler/package.json +12 -13
  57. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +2 -2
  58. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/LICENSE +201 -0
  59. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/README.md +105 -0
  60. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
  61. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
  62. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +15 -0
  63. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +196 -0
  64. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
  65. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  66. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
  67. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +18 -0
  68. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +4 -0
  69. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +4 -0
  70. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +22 -0
  71. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +3 -0
  72. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +8 -0
  73. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +11 -0
  74. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +5 -0
  75. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +10 -0
  76. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +39 -0
  77. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +9 -0
  78. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +14 -0
  79. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +52 -0
  80. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +6 -0
  81. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +12 -0
  82. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  83. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
  84. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
  85. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +2 -0
  86. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +2 -0
  87. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +6 -0
  88. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +15 -0
  89. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +5 -0
  90. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +52 -0
  91. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +6 -0
  92. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +10 -0
  93. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +33 -0
  94. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +17 -0
  95. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +7 -0
  96. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +2 -0
  97. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +18 -0
  98. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +21 -0
  99. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +16 -0
  100. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/package.json +72 -0
  101. package/node_modules/@smithy/middleware-endpoint/package.json +13 -14
  102. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +70 -29
  103. package/node_modules/@smithy/middleware-retry/dist-es/index.js +5 -4
  104. package/node_modules/@smithy/middleware-retry/dist-es/longPollMiddleware.js +15 -0
  105. package/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js +49 -0
  106. package/node_modules/@smithy/middleware-retry/dist-es/{StandardRetryStrategy.js → retry-pre-sra-deprecated/StandardRetryStrategy.js} +1 -1
  107. package/node_modules/@smithy/middleware-retry/dist-es/retry-pre-sra-deprecated/types.js +1 -0
  108. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +13 -20
  109. package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +3 -1
  110. package/node_modules/@smithy/middleware-retry/dist-types/index.d.ts +5 -4
  111. package/node_modules/@smithy/middleware-retry/dist-types/longPollMiddleware.d.ts +15 -0
  112. package/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts +2 -0
  113. package/node_modules/@smithy/middleware-retry/dist-types/parseRetryAfterHeader.d.ts +10 -0
  114. package/node_modules/@smithy/middleware-retry/dist-types/{AdaptiveRetryStrategy.d.ts → retry-pre-sra-deprecated/AdaptiveRetryStrategy.d.ts} +2 -1
  115. package/node_modules/@smithy/middleware-retry/dist-types/{defaultRetryQuota.d.ts → retry-pre-sra-deprecated/defaultRetryQuota.d.ts} +2 -0
  116. package/node_modules/@smithy/middleware-retry/dist-types/{delayDecider.d.ts → retry-pre-sra-deprecated/delayDecider.d.ts} +2 -1
  117. package/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts +0 -4
  118. package/node_modules/@smithy/middleware-retry/package.json +16 -16
  119. package/node_modules/@smithy/middleware-serde/package.json +10 -11
  120. package/node_modules/@smithy/middleware-stack/README.md +13 -0
  121. package/node_modules/@smithy/middleware-stack/package.json +7 -8
  122. package/node_modules/@smithy/node-config-provider/README.md +10 -3
  123. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/LICENSE +201 -0
  124. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/README.md +17 -0
  125. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/index.js +117 -0
  126. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +8 -0
  127. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/ProviderError.js +23 -0
  128. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +8 -0
  129. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/chain.js +21 -0
  130. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/fromStatic.js +1 -0
  131. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/index.js +6 -0
  132. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/memoize.js +45 -0
  133. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +31 -0
  134. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +39 -0
  135. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +31 -0
  136. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/chain.d.ts +13 -0
  137. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +5 -0
  138. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/index.d.ts +24 -0
  139. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +40 -0
  140. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/package.json +60 -0
  141. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/LICENSE +201 -0
  142. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/README.md +105 -0
  143. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
  144. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
  145. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +15 -0
  146. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +196 -0
  147. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
  148. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  149. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
  150. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +18 -0
  151. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +4 -0
  152. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +4 -0
  153. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +22 -0
  154. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +3 -0
  155. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +8 -0
  156. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +11 -0
  157. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +5 -0
  158. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +10 -0
  159. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +39 -0
  160. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +9 -0
  161. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +14 -0
  162. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +52 -0
  163. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +6 -0
  164. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +12 -0
  165. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +1 -0
  166. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  167. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
  168. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
  169. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +2 -0
  170. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +2 -0
  171. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +6 -0
  172. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +15 -0
  173. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +5 -0
  174. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +52 -0
  175. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +6 -0
  176. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +10 -0
  177. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +33 -0
  178. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +17 -0
  179. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +7 -0
  180. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +2 -0
  181. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +18 -0
  182. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +21 -0
  183. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +16 -0
  184. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/package.json +72 -0
  185. package/node_modules/@smithy/node-config-provider/package.json +8 -9
  186. package/node_modules/@smithy/node-http-handler/package.json +10 -11
  187. package/node_modules/@smithy/protocol-http/README.md +13 -0
  188. package/node_modules/@smithy/protocol-http/package.json +6 -7
  189. package/node_modules/@smithy/querystring-builder/README.md +10 -3
  190. package/node_modules/@smithy/querystring-builder/package.json +6 -7
  191. package/node_modules/@smithy/querystring-parser/README.md +10 -3
  192. package/node_modules/@smithy/querystring-parser/package.json +6 -7
  193. package/node_modules/@smithy/service-error-classification/README.md +13 -0
  194. package/node_modules/@smithy/service-error-classification/package.json +6 -7
  195. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
  196. package/node_modules/@smithy/smithy-client/package.json +14 -15
  197. package/node_modules/@smithy/types/dist-types/middleware.d.ts +6 -0
  198. package/node_modules/@smithy/types/dist-types/retry.d.ts +4 -0
  199. package/node_modules/@smithy/types/package.json +7 -8
  200. package/node_modules/@smithy/url-parser/README.md +10 -3
  201. package/node_modules/@smithy/url-parser/package.json +7 -8
  202. package/node_modules/@smithy/util-middleware/README.md +9 -4
  203. package/node_modules/@smithy/util-middleware/package.json +6 -7
  204. package/node_modules/@smithy/util-retry/dist-cjs/index.js +129 -80
  205. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +7 -4
  206. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +2 -2
  207. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +30 -29
  208. package/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js +14 -0
  209. package/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js +25 -0
  210. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +39 -26
  211. package/node_modules/@smithy/util-retry/dist-es/index.js +1 -0
  212. package/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js +18 -0
  213. package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +8 -8
  214. package/node_modules/@smithy/util-retry/dist-types/ConfiguredRetryStrategy.d.ts +2 -2
  215. package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +78 -8
  216. package/node_modules/@smithy/util-retry/dist-types/DefaultRetryBackoffStrategy.d.ts +12 -0
  217. package/node_modules/@smithy/util-retry/dist-types/DefaultRetryToken.d.ts +15 -0
  218. package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +21 -4
  219. package/node_modules/@smithy/util-retry/dist-types/config.d.ts +4 -4
  220. package/node_modules/@smithy/util-retry/dist-types/constants.d.ts +15 -14
  221. package/node_modules/@smithy/util-retry/dist-types/index.d.ts +1 -0
  222. package/node_modules/@smithy/util-retry/dist-types/retries-2026-config.d.ts +11 -0
  223. package/node_modules/@smithy/util-retry/dist-types/types.d.ts +1 -1
  224. package/node_modules/@smithy/util-retry/package.json +10 -11
  225. package/node_modules/@smithy/util-stream/package.json +12 -13
  226. package/package.json +1 -1
  227. package/node_modules/@smithy/core/dist-types/ts3.4/getSmithyContext.d.ts +0 -5
  228. package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +0 -8
  229. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +0 -18
  230. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +0 -18
  231. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +0 -33
  232. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/index.d.ts +0 -3
  233. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/resolveAuthOptions.d.ts +0 -10
  234. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-signing/getHttpSigningMiddleware.d.ts +0 -9
  235. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-signing/httpSigningMiddleware.d.ts +0 -5
  236. package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-signing/index.d.ts +0 -2
  237. package/node_modules/@smithy/core/dist-types/ts3.4/normalizeProvider.d.ts +0 -7
  238. package/node_modules/@smithy/core/dist-types/ts3.4/pagination/createPaginator.d.ts +0 -7
  239. package/node_modules/@smithy/core/dist-types/ts3.4/request-builder/requestBuilder.d.ts +0 -5
  240. package/node_modules/@smithy/core/dist-types/ts3.4/setFeature.d.ts +0 -12
  241. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +0 -33
  242. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +0 -28
  243. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/byte-printer.d.ts +0 -6
  244. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-decode.d.ts +0 -17
  245. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-encode.d.ts +0 -9
  246. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +0 -65
  247. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor.d.ts +0 -26
  248. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +0 -5
  249. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +0 -31
  250. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +0 -1
  251. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +0 -6
  252. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +0 -60
  253. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/index.d.ts +0 -1
  254. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +0 -31
  255. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +0 -89
  256. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +0 -16
  257. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +0 -16
  258. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/collect-stream-body.d.ts +0 -10
  259. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/extended-encode-uri-component.d.ts +0 -7
  260. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +0 -13
  261. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/requestBuilder.d.ts +0 -51
  262. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/resolve-path.d.ts +0 -4
  263. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +0 -13
  264. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +0 -21
  265. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +0 -23
  266. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +0 -14
  267. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts +0 -9
  268. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +0 -71
  269. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/deref.d.ts +0 -6
  270. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +0 -14
  271. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +0 -14
  272. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schema-middleware-types.d.ts +0 -11
  273. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +0 -9
  274. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +0 -6
  275. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +0 -37
  276. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +0 -23
  277. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +0 -24
  278. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -146
  279. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +0 -23
  280. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +0 -16
  281. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +0 -28
  282. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +0 -23
  283. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +0 -7
  284. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +0 -23
  285. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +0 -13
  286. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +0 -6
  287. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/date-utils.d.ts +0 -73
  288. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts +0 -2
  289. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +0 -10
  290. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/lazy-json.d.ts +0 -45
  291. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +0 -270
  292. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/quote-header.d.ts +0 -6
  293. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +0 -47
  294. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/split-every.d.ts +0 -11
  295. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/split-header.d.ts +0 -5
  296. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/value/NumericValue.d.ts +0 -33
  297. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +0 -15
  298. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +0 -8
  299. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +0 -8
  300. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/httpAuthSchemes/index.d.ts +0 -3
  301. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +0 -8
  302. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/index.d.ts +0 -3
  303. package/node_modules/@smithy/core/dist-types/ts3.4/util-identity-and-auth/memoizeIdentityProvider.d.ts +0 -30
  304. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/create-request.d.ts +0 -6
  305. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +0 -42
  306. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/index.d.ts +0 -2
  307. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +0 -1
  308. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/stream-collector.d.ts +0 -2
  309. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/createConfigValueProvider.d.ts +0 -14
  310. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.browser.d.ts +0 -1
  311. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.d.ts +0 -4
  312. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromInstructions.d.ts +0 -28
  313. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointUrlConfig.d.ts +0 -2
  314. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/index.d.ts +0 -8
  315. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +0 -6
  316. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/endpointMiddleware.d.ts +0 -10
  317. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/getEndpointPlugin.d.ts +0 -11
  318. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts +0 -18
  319. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +0 -109
  320. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointRequiredConfig.d.ts +0 -32
  321. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/index.d.ts +0 -4
  322. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/s3.d.ts +0 -26
  323. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/types.d.ts +0 -41
  324. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +0 -23
  325. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +0 -33
  326. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/configurations.d.ts +0 -66
  327. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/defaultRetryQuota.d.ts +0 -24
  328. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/delayDecider.d.ts +0 -5
  329. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/index.d.ts +0 -7
  330. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/isStreamingPayload/isStreamingPayload.browser.d.ts +0 -5
  331. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/isStreamingPayload/isStreamingPayload.d.ts +0 -5
  332. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/omitRetryHeadersMiddleware.d.ts +0 -13
  333. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryDecider.d.ts +0 -6
  334. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryMiddleware.d.ts +0 -18
  335. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/types.d.ts +0 -65
  336. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/util.d.ts +0 -2
  337. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +0 -6
  338. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/index.d.ts +0 -3
  339. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +0 -24
  340. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +0 -6
  341. package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts +0 -5
  342. package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/index.d.ts +0 -1
  343. package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/types.d.ts +0 -22
  344. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +0 -31
  345. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromEnv.d.ts +0 -20
  346. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +0 -22
  347. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts +0 -9
  348. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/getSelectorName.d.ts +0 -9
  349. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/index.d.ts +0 -4
  350. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +0 -10
  351. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -5
  352. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -4
  353. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +0 -3
  354. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -46
  355. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -24
  356. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +0 -12
  357. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -63
  358. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -13
  359. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +0 -12
  360. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
  361. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +0 -6
  362. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
  363. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
  364. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -5
  365. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +0 -6
  366. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -13
  367. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +0 -8
  368. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -12
  369. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +0 -50
  370. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -44
  371. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -33
  372. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts +0 -1
  373. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -35
  374. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -56
  375. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -29
  376. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +0 -8
  377. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -1
  378. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +0 -21
  379. package/node_modules/@smithy/querystring-builder/dist-types/ts3.4/index.d.ts +0 -5
  380. package/node_modules/@smithy/querystring-parser/dist-types/ts3.4/index.d.ts +0 -5
  381. package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts +0 -30
  382. package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +0 -24
  383. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/NoOpLogger.d.ts +0 -11
  384. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +0 -87
  385. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/collect-stream-body.d.ts +0 -5
  386. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +0 -119
  387. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/constants.d.ts +0 -4
  388. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +0 -18
  389. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/default-error-handler.d.ts +0 -15
  390. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/defaults-mode.d.ts +0 -28
  391. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/emitWarningIfUnsupportedVersion.d.ts +0 -8
  392. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/exceptions.d.ts +0 -42
  393. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extended-encode-uri-component.d.ts +0 -5
  394. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +0 -26
  395. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -38
  396. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/index.d.ts +0 -1
  397. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/retry.d.ts +0 -18
  398. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-array-if-single-item.d.ts +0 -7
  399. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-value-from-text-node.d.ts +0 -7
  400. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +0 -21
  401. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/is-serializable-header-value.d.ts +0 -5
  402. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/object-mapping.d.ts +0 -178
  403. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/resolve-path.d.ts +0 -5
  404. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/schemaLogFilter.d.ts +0 -9
  405. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/ser-utils.d.ts +0 -15
  406. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/serde-json.d.ts +0 -12
  407. package/node_modules/@smithy/types/dist-types/ts3.4/abort-handler.d.ts +0 -7
  408. package/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +0 -50
  409. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +0 -7
  410. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +0 -49
  411. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +0 -20
  412. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +0 -41
  413. package/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +0 -14
  414. package/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +0 -57
  415. package/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +0 -6
  416. package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -40
  417. package/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +0 -63
  418. package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +0 -57
  419. package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +0 -28
  420. package/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +0 -10
  421. package/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +0 -3
  422. package/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +0 -34
  423. package/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +0 -32
  424. package/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +0 -60
  425. package/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +0 -41
  426. package/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +0 -31
  427. package/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +0 -77
  428. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +0 -27
  429. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +0 -10
  430. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +0 -28
  431. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +0 -16
  432. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +0 -5
  433. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +0 -55
  434. package/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +0 -137
  435. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +0 -58
  436. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +0 -33
  437. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -9
  438. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +0 -4
  439. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +0 -18
  440. package/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +0 -35
  441. package/node_modules/@smithy/types/dist-types/ts3.4/feature-ids.d.ts +0 -16
  442. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -128
  443. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +0 -113
  444. package/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +0 -14
  445. package/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +0 -31
  446. package/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +0 -15
  447. package/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +0 -4
  448. package/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +0 -14
  449. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +0 -43
  450. package/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +0 -13
  451. package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +0 -534
  452. package/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +0 -33
  453. package/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +0 -30
  454. package/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +0 -40
  455. package/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +0 -133
  456. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +0 -149
  457. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +0 -251
  458. package/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +0 -65
  459. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +0 -118
  460. package/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +0 -46
  461. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +0 -114
  462. package/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +0 -82
  463. package/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +0 -155
  464. package/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +0 -22
  465. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -32
  466. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -60
  467. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -51
  468. package/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +0 -41
  469. package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +0 -26
  470. package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -81
  471. package/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +0 -14
  472. package/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +0 -6
  473. package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +0 -88
  474. package/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +0 -41
  475. package/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +0 -17
  476. package/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +0 -192
  477. package/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +0 -35
  478. package/node_modules/@smithy/url-parser/dist-types/ts3.4/index.d.ts +0 -5
  479. package/node_modules/@smithy/util-middleware/dist-types/ts3.4/getSmithyContext.d.ts +0 -5
  480. package/node_modules/@smithy/util-middleware/dist-types/ts3.4/index.d.ts +0 -8
  481. package/node_modules/@smithy/util-middleware/dist-types/ts3.4/normalizeProvider.d.ts +0 -7
  482. package/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +0 -14
  483. package/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +0 -11
  484. package/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +0 -5
  485. package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +0 -9
  486. package/node_modules/@smithy/util-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +0 -33
  487. package/node_modules/@smithy/util-retry/dist-types/ts3.4/ConfiguredRetryStrategy.d.ts +0 -32
  488. package/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +0 -49
  489. package/node_modules/@smithy/util-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +0 -26
  490. package/node_modules/@smithy/util-retry/dist-types/ts3.4/config.d.ts +0 -20
  491. package/node_modules/@smithy/util-retry/dist-types/ts3.4/constants.d.ts +0 -59
  492. package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryBackoffStrategy.d.ts +0 -5
  493. package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +0 -9
  494. package/node_modules/@smithy/util-retry/dist-types/ts3.4/index.d.ts +0 -7
  495. package/node_modules/@smithy/util-retry/dist-types/ts3.4/types.d.ts +0 -19
  496. package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +0 -13
  497. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +0 -22
  498. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.browser.d.ts +0 -37
  499. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +0 -61
  500. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +0 -14
  501. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +0 -13
  502. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +0 -15
  503. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadableStream.d.ts +0 -54
  504. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.browser.d.ts +0 -5
  505. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +0 -10
  506. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +0 -7
  507. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +0 -9
  508. package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +0 -12
  509. package/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.browser.d.ts +0 -7
  510. package/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts +0 -8
  511. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.browser.d.ts +0 -8
  512. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +0 -17
  513. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +0 -17
  514. /package/node_modules/@smithy/{middleware-retry → middleware-endpoint/node_modules/@smithy/shared-ini-file-loader}/dist-es/types.js +0 -0
  515. /package/node_modules/@smithy/middleware-retry/dist-es/{AdaptiveRetryStrategy.js → retry-pre-sra-deprecated/AdaptiveRetryStrategy.js} +0 -0
  516. /package/node_modules/@smithy/middleware-retry/dist-es/{defaultRetryQuota.js → retry-pre-sra-deprecated/defaultRetryQuota.js} +0 -0
  517. /package/node_modules/@smithy/middleware-retry/dist-es/{delayDecider.js → retry-pre-sra-deprecated/delayDecider.js} +0 -0
  518. /package/node_modules/@smithy/middleware-retry/dist-es/{retryDecider.js → retry-pre-sra-deprecated/retryDecider.js} +0 -0
  519. /package/node_modules/@smithy/middleware-retry/dist-types/{StandardRetryStrategy.d.ts → retry-pre-sra-deprecated/StandardRetryStrategy.d.ts} +0 -0
  520. /package/node_modules/@smithy/middleware-retry/dist-types/{retryDecider.d.ts → retry-pre-sra-deprecated/retryDecider.d.ts} +0 -0
  521. /package/node_modules/@smithy/middleware-retry/dist-types/{types.d.ts → retry-pre-sra-deprecated/types.d.ts} +0 -0
@@ -0,0 +1,105 @@
1
+ # @smithy/shared-ini-file-loader
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@smithy/shared-ini-file-loader/latest.svg)](https://www.npmjs.com/package/@smithy/shared-ini-file-loader)
4
+ [![NPM downloads](https://img.shields.io/npm/dm/@smithy/shared-ini-file-loader.svg)](https://www.npmjs.com/package/@smithy/shared-ini-file-loader)
5
+
6
+ ## AWS Shared Configuration File Loader
7
+
8
+ This module provides a function that reads from AWS SDK configuration files and
9
+ returns a promise that will resolve with a hash of the parsed contents of the
10
+ AWS credentials file and of the AWS config file. Given the [sample
11
+ files](#sample-files) below, the promise returned by `loadSharedConfigFiles`
12
+ would resolve with:
13
+
14
+ ```javascript
15
+ {
16
+ configFile: {
17
+ 'default': {
18
+ aws_access_key_id: 'foo',
19
+ aws_secret_access_key: 'bar',
20
+ },
21
+ dev: {
22
+ aws_access_key_id: 'foo1',
23
+ aws_secret_access_key: 'bar1',
24
+ },
25
+ prod: {
26
+ aws_access_key_id: 'foo2',
27
+ aws_secret_access_key: 'bar2',
28
+ },
29
+ 'testing host': {
30
+ aws_access_key_id: 'foo4',
31
+ aws_secret_access_key: 'bar4',
32
+ }
33
+ },
34
+ credentialsFile: {
35
+ 'default': {
36
+ aws_access_key_id: 'foo',
37
+ aws_secret_access_key: 'bar',
38
+ },
39
+ dev: {
40
+ aws_access_key_id: 'foo1',
41
+ aws_secret_access_key: 'bar1',
42
+ },
43
+ prod: {
44
+ aws_access_key_id: 'foo2',
45
+ aws_secret_access_key: 'bar2',
46
+ }
47
+ },
48
+ }
49
+ ```
50
+
51
+ If a file is not found, its key (`configFile` or `credentialsFile`) will instead
52
+ have a value of an empty object.
53
+
54
+ ## Supported configuration
55
+
56
+ You may customize how the files are loaded by providing an options hash to the
57
+ `loadSharedConfigFiles` function. The following options are supported:
58
+
59
+ - `filepath` - The path to the shared credentials file. If not specified, the
60
+ provider will use the value in the `AWS_SHARED_CREDENTIALS_FILE` environment
61
+ variable or a default of `~/.aws/credentials`.
62
+ - `configFilepath` - The path to the shared config file. If not specified, the
63
+ provider will use the value in the `AWS_CONFIG_FILE` environment variable or a
64
+ default of `~/.aws/config`.
65
+ - `ignoreCache` - The provider will normally cache the contents of the files it
66
+ loads. This option will force the provider to reload the files from disk.
67
+ Defaults to `false`.
68
+
69
+ ## Sample files
70
+
71
+ ### `~/.aws/credentials`
72
+
73
+ ```ini
74
+ [default]
75
+ aws_access_key_id=foo
76
+ aws_secret_access_key=bar
77
+
78
+ [dev]
79
+ aws_access_key_id=foo2
80
+ aws_secret_access_key=bar2
81
+
82
+ [prod]
83
+ aws_access_key_id=foo3
84
+ aws_secret_access_key=bar3
85
+ ```
86
+
87
+ ### `~/.aws/config`
88
+
89
+ ```ini
90
+ [default]
91
+ aws_access_key_id=foo
92
+ aws_secret_access_key=bar
93
+
94
+ [profile dev]
95
+ aws_access_key_id=foo2
96
+ aws_secret_access_key=bar2
97
+
98
+ [profile prod]
99
+ aws_access_key_id=foo3
100
+ aws_secret_access_key=bar3
101
+
102
+ [profile "testing host"]
103
+ aws_access_key_id=foo4
104
+ aws_secret_access_key=bar4
105
+ ```
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getHomeDir = void 0;
4
+ const os_1 = require("os");
5
+ const path_1 = require("path");
6
+ const homeDirCache = {};
7
+ const getHomeDirCacheKey = () => {
8
+ if (process && process.geteuid) {
9
+ return `${process.geteuid()}`;
10
+ }
11
+ return "DEFAULT";
12
+ };
13
+ const getHomeDir = () => {
14
+ const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env;
15
+ if (HOME)
16
+ return HOME;
17
+ if (USERPROFILE)
18
+ return USERPROFILE;
19
+ if (HOMEPATH)
20
+ return `${HOMEDRIVE}${HOMEPATH}`;
21
+ const homeDirCacheKey = getHomeDirCacheKey();
22
+ if (!homeDirCache[homeDirCacheKey])
23
+ homeDirCache[homeDirCacheKey] = (0, os_1.homedir)();
24
+ return homeDirCache[homeDirCacheKey];
25
+ };
26
+ exports.getHomeDir = getHomeDir;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSSOTokenFilepath = void 0;
4
+ const crypto_1 = require("crypto");
5
+ const path_1 = require("path");
6
+ const getHomeDir_1 = require("./getHomeDir");
7
+ const getSSOTokenFilepath = (id) => {
8
+ const hasher = (0, crypto_1.createHash)("sha1");
9
+ const cacheName = hasher.update(id).digest("hex");
10
+ return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`);
11
+ };
12
+ exports.getSSOTokenFilepath = getSSOTokenFilepath;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSSOTokenFromFile = exports.tokenIntercept = void 0;
4
+ const promises_1 = require("fs/promises");
5
+ const getSSOTokenFilepath_1 = require("./getSSOTokenFilepath");
6
+ exports.tokenIntercept = {};
7
+ const getSSOTokenFromFile = async (id) => {
8
+ if (exports.tokenIntercept[id]) {
9
+ return exports.tokenIntercept[id];
10
+ }
11
+ const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
12
+ const ssoTokenText = await (0, promises_1.readFile)(ssoTokenFilepath, "utf8");
13
+ return JSON.parse(ssoTokenText);
14
+ };
15
+ exports.getSSOTokenFromFile = getSSOTokenFromFile;
@@ -0,0 +1,196 @@
1
+ 'use strict';
2
+
3
+ var getHomeDir = require('./getHomeDir');
4
+ var getSSOTokenFilepath = require('./getSSOTokenFilepath');
5
+ var getSSOTokenFromFile = require('./getSSOTokenFromFile');
6
+ var path = require('path');
7
+ var types = require('@smithy/types');
8
+ var readFile = require('./readFile');
9
+
10
+ const ENV_PROFILE = "AWS_PROFILE";
11
+ const DEFAULT_PROFILE = "default";
12
+ const getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
13
+
14
+ const CONFIG_PREFIX_SEPARATOR = ".";
15
+
16
+ const getConfigData = (data) => Object.entries(data)
17
+ .filter(([key]) => {
18
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
19
+ if (indexOfSeparator === -1) {
20
+ return false;
21
+ }
22
+ return Object.values(types.IniSectionType).includes(key.substring(0, indexOfSeparator));
23
+ })
24
+ .reduce((acc, [key, value]) => {
25
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
26
+ const updatedKey = key.substring(0, indexOfSeparator) === types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
27
+ acc[updatedKey] = value;
28
+ return acc;
29
+ }, {
30
+ ...(data.default && { default: data.default }),
31
+ });
32
+
33
+ const ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
34
+ const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path.join(getHomeDir.getHomeDir(), ".aws", "config");
35
+
36
+ const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
37
+ const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path.join(getHomeDir.getHomeDir(), ".aws", "credentials");
38
+
39
+ const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
40
+ const profileNameBlockList = ["__proto__", "profile __proto__"];
41
+ const parseIni = (iniData) => {
42
+ const map = {};
43
+ let currentSection;
44
+ let currentSubSection;
45
+ for (const iniLine of iniData.split(/\r?\n/)) {
46
+ const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
47
+ const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
48
+ if (isSection) {
49
+ currentSection = undefined;
50
+ currentSubSection = undefined;
51
+ const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
52
+ const matches = prefixKeyRegex.exec(sectionName);
53
+ if (matches) {
54
+ const [, prefix, , name] = matches;
55
+ if (Object.values(types.IniSectionType).includes(prefix)) {
56
+ currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
57
+ }
58
+ }
59
+ else {
60
+ currentSection = sectionName;
61
+ }
62
+ if (profileNameBlockList.includes(sectionName)) {
63
+ throw new Error(`Found invalid profile name "${sectionName}"`);
64
+ }
65
+ }
66
+ else if (currentSection) {
67
+ const indexOfEqualsSign = trimmedLine.indexOf("=");
68
+ if (![0, -1].includes(indexOfEqualsSign)) {
69
+ const [name, value] = [
70
+ trimmedLine.substring(0, indexOfEqualsSign).trim(),
71
+ trimmedLine.substring(indexOfEqualsSign + 1).trim(),
72
+ ];
73
+ if (value === "") {
74
+ currentSubSection = name;
75
+ }
76
+ else {
77
+ if (currentSubSection && iniLine.trimStart() === iniLine) {
78
+ currentSubSection = undefined;
79
+ }
80
+ map[currentSection] = map[currentSection] || {};
81
+ const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
82
+ map[currentSection][key] = value;
83
+ }
84
+ }
85
+ }
86
+ }
87
+ return map;
88
+ };
89
+
90
+ const swallowError$1 = () => ({});
91
+ const loadSharedConfigFiles = async (init = {}) => {
92
+ const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
93
+ const homeDir = getHomeDir.getHomeDir();
94
+ const relativeHomeDirPrefix = "~/";
95
+ let resolvedFilepath = filepath;
96
+ if (filepath.startsWith(relativeHomeDirPrefix)) {
97
+ resolvedFilepath = path.join(homeDir, filepath.slice(2));
98
+ }
99
+ let resolvedConfigFilepath = configFilepath;
100
+ if (configFilepath.startsWith(relativeHomeDirPrefix)) {
101
+ resolvedConfigFilepath = path.join(homeDir, configFilepath.slice(2));
102
+ }
103
+ const parsedFiles = await Promise.all([
104
+ readFile.readFile(resolvedConfigFilepath, {
105
+ ignoreCache: init.ignoreCache,
106
+ })
107
+ .then(parseIni)
108
+ .then(getConfigData)
109
+ .catch(swallowError$1),
110
+ readFile.readFile(resolvedFilepath, {
111
+ ignoreCache: init.ignoreCache,
112
+ })
113
+ .then(parseIni)
114
+ .catch(swallowError$1),
115
+ ]);
116
+ return {
117
+ configFile: parsedFiles[0],
118
+ credentialsFile: parsedFiles[1],
119
+ };
120
+ };
121
+
122
+ const getSsoSessionData = (data) => Object.entries(data)
123
+ .filter(([key]) => key.startsWith(types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR))
124
+ .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
125
+
126
+ const swallowError = () => ({});
127
+ const loadSsoSessionData = async (init = {}) => readFile.readFile(init.configFilepath ?? getConfigFilepath())
128
+ .then(parseIni)
129
+ .then(getSsoSessionData)
130
+ .catch(swallowError);
131
+
132
+ const mergeConfigFiles = (...files) => {
133
+ const merged = {};
134
+ for (const file of files) {
135
+ for (const [key, values] of Object.entries(file)) {
136
+ if (merged[key] !== undefined) {
137
+ Object.assign(merged[key], values);
138
+ }
139
+ else {
140
+ merged[key] = values;
141
+ }
142
+ }
143
+ }
144
+ return merged;
145
+ };
146
+
147
+ const parseKnownFiles = async (init) => {
148
+ const parsedFiles = await loadSharedConfigFiles(init);
149
+ return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
150
+ };
151
+
152
+ const externalDataInterceptor = {
153
+ getFileRecord() {
154
+ return readFile.fileIntercept;
155
+ },
156
+ interceptFile(path, contents) {
157
+ readFile.fileIntercept[path] = Promise.resolve(contents);
158
+ },
159
+ getTokenRecord() {
160
+ return getSSOTokenFromFile.tokenIntercept;
161
+ },
162
+ interceptToken(id, contents) {
163
+ getSSOTokenFromFile.tokenIntercept[id] = contents;
164
+ },
165
+ };
166
+
167
+ exports.getSSOTokenFromFile = getSSOTokenFromFile.getSSOTokenFromFile;
168
+ exports.readFile = readFile.readFile;
169
+ exports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR;
170
+ exports.DEFAULT_PROFILE = DEFAULT_PROFILE;
171
+ exports.ENV_PROFILE = ENV_PROFILE;
172
+ exports.externalDataInterceptor = externalDataInterceptor;
173
+ exports.getProfileName = getProfileName;
174
+ exports.loadSharedConfigFiles = loadSharedConfigFiles;
175
+ exports.loadSsoSessionData = loadSsoSessionData;
176
+ exports.parseKnownFiles = parseKnownFiles;
177
+ Object.prototype.hasOwnProperty.call(getHomeDir, '__proto__') &&
178
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
179
+ Object.defineProperty(exports, '__proto__', {
180
+ enumerable: true,
181
+ value: getHomeDir['__proto__']
182
+ });
183
+
184
+ Object.keys(getHomeDir).forEach(function (k) {
185
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getHomeDir[k];
186
+ });
187
+ Object.prototype.hasOwnProperty.call(getSSOTokenFilepath, '__proto__') &&
188
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
189
+ Object.defineProperty(exports, '__proto__', {
190
+ enumerable: true,
191
+ value: getSSOTokenFilepath['__proto__']
192
+ });
193
+
194
+ Object.keys(getSSOTokenFilepath).forEach(function (k) {
195
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getSSOTokenFilepath[k];
196
+ });
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readFile = exports.fileIntercept = exports.filePromises = void 0;
4
+ const promises_1 = require("node:fs/promises");
5
+ exports.filePromises = {};
6
+ exports.fileIntercept = {};
7
+ const readFile = (path, options) => {
8
+ if (exports.fileIntercept[path] !== undefined) {
9
+ return exports.fileIntercept[path];
10
+ }
11
+ if (!exports.filePromises[path] || options?.ignoreCache) {
12
+ exports.filePromises[path] = (0, promises_1.readFile)(path, "utf8");
13
+ }
14
+ return exports.filePromises[path];
15
+ };
16
+ exports.readFile = readFile;
@@ -0,0 +1,16 @@
1
+ import { tokenIntercept } from "./getSSOTokenFromFile";
2
+ import { fileIntercept } from "./readFile";
3
+ export const externalDataInterceptor = {
4
+ getFileRecord() {
5
+ return fileIntercept;
6
+ },
7
+ interceptFile(path, contents) {
8
+ fileIntercept[path] = Promise.resolve(contents);
9
+ },
10
+ getTokenRecord() {
11
+ return tokenIntercept;
12
+ },
13
+ interceptToken(id, contents) {
14
+ tokenIntercept[id] = contents;
15
+ },
16
+ };
@@ -0,0 +1,18 @@
1
+ import { IniSectionType } from "@smithy/types";
2
+ import { CONFIG_PREFIX_SEPARATOR } from "./constants";
3
+ export const getConfigData = (data) => Object.entries(data)
4
+ .filter(([key]) => {
5
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
6
+ if (indexOfSeparator === -1) {
7
+ return false;
8
+ }
9
+ return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
10
+ })
11
+ .reduce((acc, [key, value]) => {
12
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
13
+ const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
14
+ acc[updatedKey] = value;
15
+ return acc;
16
+ }, {
17
+ ...(data.default && { default: data.default }),
18
+ });
@@ -0,0 +1,4 @@
1
+ import { join } from "path";
2
+ import { getHomeDir } from "./getHomeDir";
3
+ export const ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
4
+ export const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
@@ -0,0 +1,4 @@
1
+ import { join } from "path";
2
+ import { getHomeDir } from "./getHomeDir";
3
+ export const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
4
+ export const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), ".aws", "credentials");
@@ -0,0 +1,22 @@
1
+ import { homedir } from "os";
2
+ import { sep } from "path";
3
+ const homeDirCache = {};
4
+ const getHomeDirCacheKey = () => {
5
+ if (process && process.geteuid) {
6
+ return `${process.geteuid()}`;
7
+ }
8
+ return "DEFAULT";
9
+ };
10
+ export const getHomeDir = () => {
11
+ const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
12
+ if (HOME)
13
+ return HOME;
14
+ if (USERPROFILE)
15
+ return USERPROFILE;
16
+ if (HOMEPATH)
17
+ return `${HOMEDRIVE}${HOMEPATH}`;
18
+ const homeDirCacheKey = getHomeDirCacheKey();
19
+ if (!homeDirCache[homeDirCacheKey])
20
+ homeDirCache[homeDirCacheKey] = homedir();
21
+ return homeDirCache[homeDirCacheKey];
22
+ };
@@ -0,0 +1,3 @@
1
+ export const ENV_PROFILE = "AWS_PROFILE";
2
+ export const DEFAULT_PROFILE = "default";
3
+ export const getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
@@ -0,0 +1,8 @@
1
+ import { createHash } from "crypto";
2
+ import { join } from "path";
3
+ import { getHomeDir } from "./getHomeDir";
4
+ export const getSSOTokenFilepath = (id) => {
5
+ const hasher = createHash("sha1");
6
+ const cacheName = hasher.update(id).digest("hex");
7
+ return join(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
8
+ };
@@ -0,0 +1,11 @@
1
+ import { readFile } from "fs/promises";
2
+ import { getSSOTokenFilepath } from "./getSSOTokenFilepath";
3
+ export const tokenIntercept = {};
4
+ export const getSSOTokenFromFile = async (id) => {
5
+ if (tokenIntercept[id]) {
6
+ return tokenIntercept[id];
7
+ }
8
+ const ssoTokenFilepath = getSSOTokenFilepath(id);
9
+ const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
10
+ return JSON.parse(ssoTokenText);
11
+ };
@@ -0,0 +1,5 @@
1
+ import { IniSectionType } from "@smithy/types";
2
+ import { CONFIG_PREFIX_SEPARATOR } from "./loadSharedConfigFiles";
3
+ export const getSsoSessionData = (data) => Object.entries(data)
4
+ .filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR))
5
+ .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
@@ -0,0 +1,10 @@
1
+ export * from "./getHomeDir";
2
+ export * from "./getProfileName";
3
+ export * from "./getSSOTokenFilepath";
4
+ export { getSSOTokenFromFile } from "./getSSOTokenFromFile";
5
+ export * from "./loadSharedConfigFiles";
6
+ export * from "./loadSsoSessionData";
7
+ export * from "./parseKnownFiles";
8
+ export { externalDataInterceptor } from "./externalDataInterceptor";
9
+ export * from "./types";
10
+ export { readFile } from "./readFile";
@@ -0,0 +1,39 @@
1
+ import { join } from "path";
2
+ import { getConfigData } from "./getConfigData";
3
+ import { getConfigFilepath } from "./getConfigFilepath";
4
+ import { getCredentialsFilepath } from "./getCredentialsFilepath";
5
+ import { getHomeDir } from "./getHomeDir";
6
+ import { parseIni } from "./parseIni";
7
+ import { readFile } from "./readFile";
8
+ const swallowError = () => ({});
9
+ export { CONFIG_PREFIX_SEPARATOR } from "./constants";
10
+ export const loadSharedConfigFiles = async (init = {}) => {
11
+ const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
12
+ const homeDir = getHomeDir();
13
+ const relativeHomeDirPrefix = "~/";
14
+ let resolvedFilepath = filepath;
15
+ if (filepath.startsWith(relativeHomeDirPrefix)) {
16
+ resolvedFilepath = join(homeDir, filepath.slice(2));
17
+ }
18
+ let resolvedConfigFilepath = configFilepath;
19
+ if (configFilepath.startsWith(relativeHomeDirPrefix)) {
20
+ resolvedConfigFilepath = join(homeDir, configFilepath.slice(2));
21
+ }
22
+ const parsedFiles = await Promise.all([
23
+ readFile(resolvedConfigFilepath, {
24
+ ignoreCache: init.ignoreCache,
25
+ })
26
+ .then(parseIni)
27
+ .then(getConfigData)
28
+ .catch(swallowError),
29
+ readFile(resolvedFilepath, {
30
+ ignoreCache: init.ignoreCache,
31
+ })
32
+ .then(parseIni)
33
+ .catch(swallowError),
34
+ ]);
35
+ return {
36
+ configFile: parsedFiles[0],
37
+ credentialsFile: parsedFiles[1],
38
+ };
39
+ };
@@ -0,0 +1,9 @@
1
+ import { getConfigFilepath } from "./getConfigFilepath";
2
+ import { getSsoSessionData } from "./getSsoSessionData";
3
+ import { parseIni } from "./parseIni";
4
+ import { readFile } from "./readFile";
5
+ const swallowError = () => ({});
6
+ export const loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath())
7
+ .then(parseIni)
8
+ .then(getSsoSessionData)
9
+ .catch(swallowError);
@@ -0,0 +1,14 @@
1
+ export const mergeConfigFiles = (...files) => {
2
+ const merged = {};
3
+ for (const file of files) {
4
+ for (const [key, values] of Object.entries(file)) {
5
+ if (merged[key] !== undefined) {
6
+ Object.assign(merged[key], values);
7
+ }
8
+ else {
9
+ merged[key] = values;
10
+ }
11
+ }
12
+ }
13
+ return merged;
14
+ };
@@ -0,0 +1,52 @@
1
+ import { IniSectionType } from "@smithy/types";
2
+ import { CONFIG_PREFIX_SEPARATOR } from "./constants";
3
+ const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
4
+ const profileNameBlockList = ["__proto__", "profile __proto__"];
5
+ export const parseIni = (iniData) => {
6
+ const map = {};
7
+ let currentSection;
8
+ let currentSubSection;
9
+ for (const iniLine of iniData.split(/\r?\n/)) {
10
+ const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
11
+ const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
12
+ if (isSection) {
13
+ currentSection = undefined;
14
+ currentSubSection = undefined;
15
+ const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
16
+ const matches = prefixKeyRegex.exec(sectionName);
17
+ if (matches) {
18
+ const [, prefix, , name] = matches;
19
+ if (Object.values(IniSectionType).includes(prefix)) {
20
+ currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
21
+ }
22
+ }
23
+ else {
24
+ currentSection = sectionName;
25
+ }
26
+ if (profileNameBlockList.includes(sectionName)) {
27
+ throw new Error(`Found invalid profile name "${sectionName}"`);
28
+ }
29
+ }
30
+ else if (currentSection) {
31
+ const indexOfEqualsSign = trimmedLine.indexOf("=");
32
+ if (![0, -1].includes(indexOfEqualsSign)) {
33
+ const [name, value] = [
34
+ trimmedLine.substring(0, indexOfEqualsSign).trim(),
35
+ trimmedLine.substring(indexOfEqualsSign + 1).trim(),
36
+ ];
37
+ if (value === "") {
38
+ currentSubSection = name;
39
+ }
40
+ else {
41
+ if (currentSubSection && iniLine.trimStart() === iniLine) {
42
+ currentSubSection = undefined;
43
+ }
44
+ map[currentSection] = map[currentSection] || {};
45
+ const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
46
+ map[currentSection][key] = value;
47
+ }
48
+ }
49
+ }
50
+ }
51
+ return map;
52
+ };
@@ -0,0 +1,6 @@
1
+ import { loadSharedConfigFiles } from "./loadSharedConfigFiles";
2
+ import { mergeConfigFiles } from "./mergeConfigFiles";
3
+ export const parseKnownFiles = async (init) => {
4
+ const parsedFiles = await loadSharedConfigFiles(init);
5
+ return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
6
+ };
@@ -0,0 +1,12 @@
1
+ import { readFile as fsReadFile } from "node:fs/promises";
2
+ export const filePromises = {};
3
+ export const fileIntercept = {};
4
+ export const readFile = (path, options) => {
5
+ if (fileIntercept[path] !== undefined) {
6
+ return fileIntercept[path];
7
+ }
8
+ if (!filePromises[path] || options?.ignoreCache) {
9
+ filePromises[path] = fsReadFile(path, "utf8");
10
+ }
11
+ return filePromises[path];
12
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const CONFIG_PREFIX_SEPARATOR = ".";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const externalDataInterceptor: {
5
+ getFileRecord(): Record<string, Promise<string>>;
6
+ interceptFile(path: string, contents: string): void;
7
+ getTokenRecord(): Record<string, any>;
8
+ interceptToken(id: string, contents: any): void;
9
+ };
@@ -0,0 +1,8 @@
1
+ import type { ParsedIniData } from "@smithy/types";
2
+ /**
3
+ * Returns the config data from parsed ini data.
4
+ * * Returns data for `default`
5
+ * * Returns profile name without prefix.
6
+ * * Returns non-profiles as is.
7
+ */
8
+ export declare const getConfigData: (data: ParsedIniData) => ParsedIniData;