@cdk8s/awscdk-resolver 0.0.409 → 0.0.411

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 (279) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/README.md +8 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +736 -533
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +2 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeEventsCommand.js +16 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +1 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-es/index.js +2 -1
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +520 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/errors.js +407 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +1 -805
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeChangeSetPaginator.js +4 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeEventsPaginator.js +4 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/index.js +2 -0
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +162 -29
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +8 -0
  17. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +3 -2
  18. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateChangeSetCommand.d.ts +1 -0
  19. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackCommand.d.ts +1 -0
  20. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +20 -3
  21. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetHooksCommand.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeEventsCommand.d.ts +143 -0
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackEventsCommand.d.ts +1 -0
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourceCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourceDriftsCommand.d.ts +2 -2
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourcesCommand.d.ts +1 -1
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStacksCommand.d.ts +6 -0
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DetectStackResourceDriftCommand.d.ts +1 -1
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetHookResultCommand.d.ts +5 -0
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackInstanceResourceDriftsCommand.d.ts +2 -2
  31. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackResourcesCommand.d.ts +1 -1
  32. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationResultsCommand.d.ts +1 -1
  33. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationsCommand.d.ts +1 -1
  34. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetsCommand.d.ts +1 -1
  35. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStacksCommand.d.ts +6 -0
  36. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypeRegistrationsCommand.d.ts +1 -1
  37. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypeVersionsCommand.d.ts +1 -1
  38. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypesCommand.d.ts +1 -1
  39. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/PublishTypeCommand.d.ts +1 -1
  40. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RecordHandlerProgressCommand.d.ts +1 -1
  41. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RegisterPublisherCommand.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RegisterTypeCommand.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RollbackStackCommand.d.ts +2 -1
  44. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetStackPolicyCommand.d.ts +1 -1
  45. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetTypeConfigurationCommand.d.ts +1 -1
  46. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetTypeDefaultVersionCommand.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SignalResourceCommand.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +1 -1
  49. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
  50. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +1 -1
  52. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +2 -1
  53. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +1 -1
  54. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
  55. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
  56. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +1 -1
  57. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +1 -0
  58. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +3 -1
  59. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1200 -0
  60. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/errors.d.ts +413 -0
  61. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +2950 -1454
  62. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeChangeSetPaginator.d.ts +7 -0
  63. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeEventsPaginator.d.ts +7 -0
  64. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/index.d.ts +2 -0
  65. package/node_modules/@aws-sdk/client-cloudformation/dist-types/schemas/schemas_0.d.ts +11 -0
  66. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +18 -0
  67. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +6 -0
  68. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +47 -0
  69. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetOperationResultsCommand.d.ts +1 -1
  70. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetOperationsCommand.d.ts +1 -1
  71. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetsCommand.d.ts +1 -1
  72. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypeRegistrationsCommand.d.ts +1 -1
  73. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypeVersionsCommand.d.ts +1 -1
  74. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypesCommand.d.ts +1 -1
  75. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/PublishTypeCommand.d.ts +1 -1
  76. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RecordHandlerProgressCommand.d.ts +1 -1
  77. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RegisterPublisherCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RegisterTypeCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RollbackStackCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetStackPolicyCommand.d.ts +1 -1
  81. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetTypeConfigurationCommand.d.ts +1 -1
  82. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetTypeDefaultVersionCommand.d.ts +1 -1
  83. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SignalResourceCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +1 -1
  85. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +1 -1
  87. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +1 -1
  88. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +1 -1
  89. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +1 -1
  90. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +1 -1
  91. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
  92. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +1 -0
  94. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +3 -1
  95. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +669 -0
  96. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/errors.d.ts +264 -0
  97. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +479 -798
  98. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeChangeSetPaginator.d.ts +11 -0
  99. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +11 -0
  100. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/index.d.ts +2 -0
  101. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
  102. package/node_modules/@aws-sdk/client-cloudformation/package.json +19 -19
  103. package/node_modules/@aws-sdk/client-sso/dist-es/index.js +1 -1
  104. package/node_modules/@aws-sdk/client-sso/dist-es/models/errors.js +49 -0
  105. package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +1 -49
  106. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +1 -1
  107. package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +2 -1
  108. package/node_modules/@aws-sdk/client-sso/dist-types/models/errors.d.ts +53 -0
  109. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -53
  110. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +2 -1
  111. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/errors.d.ts +30 -0
  112. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -30
  113. package/node_modules/@aws-sdk/client-sso/package.json +18 -18
  114. package/node_modules/@aws-sdk/core/package.json +4 -4
  115. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  116. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  117. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +15 -0
  118. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js +12 -0
  119. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +4 -0
  120. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +4 -3
  121. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveLoginCredentials.d.ts +10 -0
  122. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +3 -1
  123. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveLoginCredentials.d.ts +7 -0
  124. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -9
  125. package/node_modules/@aws-sdk/credential-provider-login/README.md +7 -0
  126. package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +286 -0
  127. package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +262 -0
  128. package/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js +21 -0
  129. package/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js +2 -0
  130. package/node_modules/@aws-sdk/credential-provider-login/dist-es/types.js +1 -0
  131. package/node_modules/@aws-sdk/credential-provider-login/dist-types/LoginCredentialsFetcher.d.ts +42 -0
  132. package/node_modules/@aws-sdk/credential-provider-login/dist-types/fromLoginCredentials.d.ts +7 -0
  133. package/node_modules/@aws-sdk/credential-provider-login/dist-types/index.d.ts +8 -0
  134. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +24 -0
  135. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/fromLoginCredentials.d.ts +5 -0
  136. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/index.d.ts +2 -0
  137. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/types.d.ts +39 -0
  138. package/node_modules/@aws-sdk/credential-provider-login/dist-types/types.d.ts +59 -0
  139. package/node_modules/@aws-sdk/credential-provider-login/package.json +68 -0
  140. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  141. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  142. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  143. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  144. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  145. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  146. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  147. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  148. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
  149. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
  150. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +7 -0
  151. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +439 -0
  152. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.browser.js +39 -0
  153. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +54 -0
  154. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.native.js +15 -0
  155. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +42 -0
  156. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +10 -9
  157. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +9 -0
  158. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +50 -0
  159. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js +38 -0
  160. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +50 -0
  161. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +16 -0
  162. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
  163. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js +13 -0
  164. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +14 -0
  165. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +4 -0
  166. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/extensionConfiguration.js +1 -0
  167. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js +6 -0
  168. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +8 -0
  169. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +8 -0
  170. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +57 -0
  171. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js +1 -0
  172. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +34 -0
  173. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +49 -0
  174. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +11 -0
  175. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +38 -0
  176. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js +9 -0
  177. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +221 -0
  178. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js +2 -1
  179. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js +9 -0
  180. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +181 -0
  181. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +1 -190
  182. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -1
  183. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js +1 -1
  184. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +85 -0
  185. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js +1 -85
  186. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +1 -1
  187. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +18 -0
  188. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +198 -0
  189. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  190. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +75 -0
  191. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +157 -0
  192. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
  193. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +38 -0
  194. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/endpointResolver.d.ts +5 -0
  195. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +2 -0
  196. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/extensionConfiguration.d.ts +9 -0
  197. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +16 -0
  198. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +14 -0
  199. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +34 -0
  200. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +102 -0
  201. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +142 -0
  202. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +59 -0
  203. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +59 -0
  204. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +58 -0
  205. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +33 -0
  206. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeExtensions.d.ts +17 -0
  207. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +14 -0
  208. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +3 -1
  209. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/enums.d.ts +25 -0
  210. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +279 -0
  211. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -303
  212. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +2 -1
  213. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +108 -0
  214. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +0 -108
  215. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +22 -0
  216. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +127 -0
  217. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  218. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +47 -0
  219. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +47 -0
  220. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
  221. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +51 -0
  222. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
  223. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +2 -0
  224. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +9 -0
  225. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/index.d.ts +10 -0
  226. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +9 -0
  227. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +10 -0
  228. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +35 -0
  229. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +26 -0
  230. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +121 -0
  231. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +114 -0
  232. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +125 -0
  233. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +53 -0
  234. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +11 -0
  235. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +19 -0
  236. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +3 -1
  237. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/enums.d.ts +13 -0
  238. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +105 -0
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -114
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/index.d.ts +2 -1
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +54 -0
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +0 -54
  243. package/node_modules/@aws-sdk/nested-clients/package.json +29 -18
  244. package/node_modules/@aws-sdk/nested-clients/signin.d.ts +7 -0
  245. package/node_modules/@aws-sdk/nested-clients/signin.js +5 -0
  246. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  247. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  248. package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +2 -0
  249. package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +2 -0
  250. package/node_modules/@aws-sdk/types/package.json +1 -1
  251. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  252. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  253. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  254. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +6 -0
  255. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +6 -0
  256. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +6 -2
  257. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +6 -2
  258. package/node_modules/@smithy/core/package.json +1 -1
  259. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  260. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  261. package/node_modules/@smithy/smithy-client/package.json +3 -3
  262. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  263. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  264. package/package.json +5 -5
  265. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/index.js +0 -2
  266. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +0 -81
  267. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/index.d.ts +0 -2
  268. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +0 -2571
  269. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/index.d.ts +0 -2
  270. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +0 -433
  271. package/node_modules/@aws-sdk/client-sso/dist-es/models/index.js +0 -1
  272. package/node_modules/@aws-sdk/client-sso/dist-types/models/index.d.ts +0 -1
  273. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/index.d.ts +0 -1
  274. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js +0 -1
  275. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js +0 -1
  276. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/index.d.ts +0 -1
  277. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/index.d.ts +0 -1
  278. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/index.d.ts +0 -1
  279. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/index.d.ts +0 -1
@@ -0,0 +1,262 @@
1
+ import { CredentialsProviderError } from "@smithy/property-provider";
2
+ import { HttpRequest } from "@smithy/protocol-http";
3
+ import { readFile } from "@smithy/shared-ini-file-loader";
4
+ import { createHash, createPrivateKey, createPublicKey, sign } from "node:crypto";
5
+ import { promises as fs } from "node:fs";
6
+ import { homedir } from "node:os";
7
+ import { dirname, join } from "node:path";
8
+ export class LoginCredentialsFetcher {
9
+ profileData;
10
+ init;
11
+ callerClientConfig;
12
+ static REFRESH_THRESHOLD = 5 * 60 * 1000;
13
+ constructor(profileData, init, callerClientConfig) {
14
+ this.profileData = profileData;
15
+ this.init = init;
16
+ this.callerClientConfig = callerClientConfig;
17
+ }
18
+ async loadCredentials() {
19
+ const token = await this.loadToken();
20
+ if (!token) {
21
+ throw new CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`, { tryNextLink: false, logger: this.logger });
22
+ }
23
+ const accessToken = token.accessToken;
24
+ const now = Date.now();
25
+ const expiryTime = new Date(accessToken.expiresAt).getTime();
26
+ const timeUntilExpiry = expiryTime - now;
27
+ if (timeUntilExpiry <= LoginCredentialsFetcher.REFRESH_THRESHOLD) {
28
+ return this.refresh(token);
29
+ }
30
+ return {
31
+ accessKeyId: accessToken.accessKeyId,
32
+ secretAccessKey: accessToken.secretAccessKey,
33
+ sessionToken: accessToken.sessionToken,
34
+ accountId: accessToken.accountId,
35
+ expiration: new Date(accessToken.expiresAt),
36
+ };
37
+ }
38
+ get logger() {
39
+ return this.init?.logger;
40
+ }
41
+ get loginSession() {
42
+ return this.profileData.login_session;
43
+ }
44
+ async refresh(token) {
45
+ const { SigninClient, CreateOAuth2TokenCommand } = await import("@aws-sdk/nested-clients/signin");
46
+ const { logger, userAgentAppId } = this.callerClientConfig ?? {};
47
+ const isH2 = (requestHandler) => {
48
+ return requestHandler?.metadata?.handlerProtocol === "h2";
49
+ };
50
+ const requestHandler = isH2(this.callerClientConfig?.requestHandler)
51
+ ? undefined
52
+ : this.callerClientConfig?.requestHandler;
53
+ const region = this.profileData.region ?? (await this.callerClientConfig?.region?.()) ?? process.env.AWS_REGION;
54
+ const client = new SigninClient({
55
+ credentials: {
56
+ accessKeyId: "",
57
+ secretAccessKey: "",
58
+ },
59
+ region,
60
+ requestHandler,
61
+ logger,
62
+ userAgentAppId,
63
+ ...this.init?.clientConfig,
64
+ });
65
+ this.createDPoPInterceptor(client.middlewareStack);
66
+ const commandInput = {
67
+ tokenInput: {
68
+ clientId: token.clientId,
69
+ refreshToken: token.refreshToken,
70
+ grantType: "refresh_token",
71
+ },
72
+ };
73
+ try {
74
+ const response = await client.send(new CreateOAuth2TokenCommand(commandInput));
75
+ const { accessKeyId, secretAccessKey, sessionToken } = response.tokenOutput?.accessToken ?? {};
76
+ const { refreshToken, expiresIn } = response.tokenOutput ?? {};
77
+ if (!accessKeyId || !secretAccessKey || !sessionToken || !refreshToken) {
78
+ throw new CredentialsProviderError("Token refresh response missing required fields", {
79
+ logger: this.logger,
80
+ tryNextLink: false,
81
+ });
82
+ }
83
+ const expiresInMs = (expiresIn ?? 900) * 1000;
84
+ const expiration = new Date(Date.now() + expiresInMs);
85
+ const updatedToken = {
86
+ ...token,
87
+ accessToken: {
88
+ ...token.accessToken,
89
+ accessKeyId: accessKeyId,
90
+ secretAccessKey: secretAccessKey,
91
+ sessionToken: sessionToken,
92
+ expiresAt: expiration.toISOString(),
93
+ },
94
+ refreshToken: refreshToken,
95
+ };
96
+ await this.saveToken(updatedToken);
97
+ const newAccessToken = updatedToken.accessToken;
98
+ return {
99
+ accessKeyId: newAccessToken.accessKeyId,
100
+ secretAccessKey: newAccessToken.secretAccessKey,
101
+ sessionToken: newAccessToken.sessionToken,
102
+ accountId: newAccessToken.accountId,
103
+ expiration,
104
+ };
105
+ }
106
+ catch (error) {
107
+ if (error.name === "AccessDeniedException") {
108
+ const errorType = error.error;
109
+ let message;
110
+ switch (errorType) {
111
+ case "TOKEN_EXPIRED":
112
+ message = "Your session has expired. Please reauthenticate.";
113
+ break;
114
+ case "USER_CREDENTIALS_CHANGED":
115
+ message =
116
+ "Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";
117
+ break;
118
+ case "INSUFFICIENT_PERMISSIONS":
119
+ message =
120
+ "Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";
121
+ break;
122
+ default:
123
+ message = `Failed to refresh token: ${String(error)}. Please re-authenticate using \`aws login\``;
124
+ }
125
+ throw new CredentialsProviderError(message, { logger: this.logger, tryNextLink: false });
126
+ }
127
+ throw new CredentialsProviderError(`Failed to refresh token: ${String(error)}. Please re-authenticate using aws login`, { logger: this.logger });
128
+ }
129
+ }
130
+ async loadToken() {
131
+ const tokenFilePath = this.getTokenFilePath();
132
+ try {
133
+ let tokenData;
134
+ try {
135
+ tokenData = await readFile(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
136
+ }
137
+ catch {
138
+ tokenData = await fs.readFile(tokenFilePath, "utf8");
139
+ }
140
+ const token = JSON.parse(tokenData);
141
+ const missingFields = ["accessToken", "clientId", "refreshToken", "dpopKey"].filter((k) => !token[k]);
142
+ if (!token.accessToken?.accountId) {
143
+ missingFields.push("accountId");
144
+ }
145
+ if (missingFields.length > 0) {
146
+ throw new CredentialsProviderError(`Token validation failed, missing fields: ${missingFields.join(", ")}`, {
147
+ logger: this.logger,
148
+ tryNextLink: false,
149
+ });
150
+ }
151
+ return token;
152
+ }
153
+ catch (error) {
154
+ throw new CredentialsProviderError(`Failed to load token from ${tokenFilePath}: ${String(error)}`, {
155
+ logger: this.logger,
156
+ tryNextLink: false,
157
+ });
158
+ }
159
+ }
160
+ async saveToken(token) {
161
+ const tokenFilePath = this.getTokenFilePath();
162
+ const directory = dirname(tokenFilePath);
163
+ try {
164
+ await fs.mkdir(directory, { recursive: true });
165
+ }
166
+ catch (error) {
167
+ }
168
+ await fs.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
169
+ }
170
+ getTokenFilePath() {
171
+ const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join(homedir(), ".aws", "login", "cache");
172
+ const loginSessionBytes = Buffer.from(this.loginSession, "utf8");
173
+ const loginSessionSha256 = createHash("sha256").update(loginSessionBytes).digest("hex");
174
+ return join(directory, `${loginSessionSha256}.json`);
175
+ }
176
+ derToRawSignature(derSignature) {
177
+ let offset = 2;
178
+ if (derSignature[offset] !== 0x02) {
179
+ throw new Error("Invalid DER signature");
180
+ }
181
+ offset++;
182
+ const rLength = derSignature[offset++];
183
+ let r = derSignature.subarray(offset, offset + rLength);
184
+ offset += rLength;
185
+ if (derSignature[offset] !== 0x02) {
186
+ throw new Error("Invalid DER signature");
187
+ }
188
+ offset++;
189
+ const sLength = derSignature[offset++];
190
+ let s = derSignature.subarray(offset, offset + sLength);
191
+ r = r[0] === 0x00 ? r.subarray(1) : r;
192
+ s = s[0] === 0x00 ? s.subarray(1) : s;
193
+ const rPadded = Buffer.concat([Buffer.alloc(32 - r.length), r]);
194
+ const sPadded = Buffer.concat([Buffer.alloc(32 - s.length), s]);
195
+ return Buffer.concat([rPadded, sPadded]);
196
+ }
197
+ createDPoPInterceptor(middlewareStack) {
198
+ middlewareStack.add((next) => async (args) => {
199
+ if (HttpRequest.isInstance(args.request)) {
200
+ const request = args.request;
201
+ const actualEndpoint = `${request.protocol}//${request.hostname}${request.port ? `:${request.port}` : ""}${request.path}`;
202
+ const dpop = await this.generateDpop(request.method, actualEndpoint);
203
+ request.headers = {
204
+ ...request.headers,
205
+ DPoP: dpop,
206
+ };
207
+ }
208
+ return next(args);
209
+ }, {
210
+ step: "finalizeRequest",
211
+ name: "dpopInterceptor",
212
+ override: true,
213
+ });
214
+ }
215
+ async generateDpop(method = "POST", endpoint) {
216
+ const token = await this.loadToken();
217
+ try {
218
+ const privateKey = createPrivateKey({
219
+ key: token.dpopKey,
220
+ format: "pem",
221
+ type: "sec1",
222
+ });
223
+ const publicKey = createPublicKey(privateKey);
224
+ const publicDer = publicKey.export({ format: "der", type: "spki" });
225
+ let pointStart = -1;
226
+ for (let i = 0; i < publicDer.length; i++) {
227
+ if (publicDer[i] === 0x04) {
228
+ pointStart = i;
229
+ break;
230
+ }
231
+ }
232
+ const x = publicDer.slice(pointStart + 1, pointStart + 33);
233
+ const y = publicDer.slice(pointStart + 33, pointStart + 65);
234
+ const header = {
235
+ alg: "ES256",
236
+ typ: "dpop+jwt",
237
+ jwk: {
238
+ kty: "EC",
239
+ crv: "P-256",
240
+ x: x.toString("base64url"),
241
+ y: y.toString("base64url"),
242
+ },
243
+ };
244
+ const payload = {
245
+ jti: crypto.randomUUID(),
246
+ htm: method,
247
+ htu: endpoint,
248
+ iat: Math.floor(Date.now() / 1000),
249
+ };
250
+ const headerB64 = Buffer.from(JSON.stringify(header)).toString("base64url");
251
+ const payloadB64 = Buffer.from(JSON.stringify(payload)).toString("base64url");
252
+ const message = `${headerB64}.${payloadB64}`;
253
+ const asn1Signature = sign("sha256", Buffer.from(message), privateKey);
254
+ const rawSignature = this.derToRawSignature(asn1Signature);
255
+ const signatureB64 = rawSignature.toString("base64url");
256
+ return `${message}.${signatureB64}`;
257
+ }
258
+ catch (error) {
259
+ throw new CredentialsProviderError(`Failed to generate Dpop proof: ${error instanceof Error ? error.message : String(error)}`, { logger: this.logger, tryNextLink: false });
260
+ }
261
+ }
262
+ }
@@ -0,0 +1,21 @@
1
+ import { setCredentialFeature } from "@aws-sdk/core/client";
2
+ import { CredentialsProviderError } from "@smithy/property-provider";
3
+ import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
4
+ import { LoginCredentialsFetcher } from "./LoginCredentialsFetcher";
5
+ export const fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
6
+ init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
7
+ const profiles = await parseKnownFiles(init || {});
8
+ const profileName = getProfileName({
9
+ profile: init?.profile ?? callerClientConfig?.profile,
10
+ });
11
+ const profile = profiles[profileName];
12
+ if (!profile?.login_session) {
13
+ throw new CredentialsProviderError(`Profile ${profileName} does not contain login_session.`, {
14
+ tryNextLink: true,
15
+ logger: init?.logger,
16
+ });
17
+ }
18
+ const fetcher = new LoginCredentialsFetcher(profile, init, callerClientConfig);
19
+ const credentials = await fetcher.loadCredentials();
20
+ return setCredentialFeature(credentials, "CREDENTIALS_LOGIN", "AD");
21
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./fromLoginCredentials";
2
+ export * from "./types";
@@ -0,0 +1,42 @@
1
+ import type { AwsCredentialIdentity, AwsIdentityProperties } from "@aws-sdk/types";
2
+ import type { IniSection } from "@smithy/types";
3
+ import type { FromLoginCredentialsInit } from "./types";
4
+ /**
5
+ * Handles loading and refreshing Sign-In credentials from cached tokens.
6
+ * @internal
7
+ */
8
+ export declare class LoginCredentialsFetcher {
9
+ private readonly profileData;
10
+ private readonly init?;
11
+ private readonly callerClientConfig?;
12
+ private static readonly REFRESH_THRESHOLD;
13
+ constructor(profileData: IniSection, init?: FromLoginCredentialsInit | undefined, callerClientConfig?: AwsIdentityProperties["callerClientConfig"]);
14
+ /**
15
+ * Loads credentials and refreshes if necessary
16
+ */
17
+ loadCredentials(): Promise<AwsCredentialIdentity>;
18
+ private get logger();
19
+ private get loginSession();
20
+ private refresh;
21
+ private loadToken;
22
+ private saveToken;
23
+ private getTokenFilePath;
24
+ /**
25
+ * Converts ASN.1 DER encoded ECDSA signature to raw r||s format.
26
+ * raw format is a fixed 64-byte concatenation of r and s values (32 bytes each).
27
+ *
28
+ * References:
29
+ * - ECDSA algorithm: https://thecopenhagenbook.com/cryptography/ecdsa
30
+ * - ASN.1 DER encoding: https://www.rfc-editor.org/rfc/rfc5480#section-2.2
31
+ *
32
+ * @param derSignature - ASN.1 DER encoded signature from crypto.sign()
33
+ * @returns Raw signature as 64-byte buffer (32-byte r + 32-byte s)
34
+ */
35
+ private derToRawSignature;
36
+ /**
37
+ * Creates a DPoP interceptor that updates the DPoP header with the actual resolved endpoint
38
+ * @internal
39
+ */
40
+ private createDPoPInterceptor;
41
+ private generateDpop;
42
+ }
@@ -0,0 +1,7 @@
1
+ import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
2
+ import type { FromLoginCredentialsInit } from "./types";
3
+ /**
4
+ * Creates a credential provider that sources credentials from aws login cached tokens
5
+ * @internal
6
+ */
7
+ export declare const fromLoginCredentials: (init?: FromLoginCredentialsInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export * from "./fromLoginCredentials";
5
+ /**
6
+ * @internal
7
+ */
8
+ export * from "./types";
@@ -0,0 +1,24 @@
1
+ import { AwsCredentialIdentity, AwsIdentityProperties } from "@aws-sdk/types";
2
+ import { IniSection } from "@smithy/types";
3
+ import { FromLoginCredentialsInit } from "./types";
4
+ export declare class LoginCredentialsFetcher {
5
+ private readonly profileData;
6
+ private readonly init?;
7
+ private readonly callerClientConfig?;
8
+ private static readonly REFRESH_THRESHOLD;
9
+ constructor(
10
+ profileData: IniSection,
11
+ init?: FromLoginCredentialsInit | undefined,
12
+ callerClientConfig?: AwsIdentityProperties["callerClientConfig"]
13
+ );
14
+ loadCredentials(): Promise<AwsCredentialIdentity>;
15
+ private readonly logger: any;
16
+ private readonly loginSession: any;
17
+ private refresh;
18
+ private loadToken;
19
+ private saveToken;
20
+ private getTokenFilePath;
21
+ private derToRawSignature;
22
+ private createDPoPInterceptor;
23
+ private generateDpop;
24
+ }
@@ -0,0 +1,5 @@
1
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
2
+ import { FromLoginCredentialsInit } from "./types";
3
+ export declare const fromLoginCredentials: (
4
+ init?: FromLoginCredentialsInit
5
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -0,0 +1,2 @@
1
+ export * from "./fromLoginCredentials";
2
+ export * from "./types";
@@ -0,0 +1,39 @@
1
+ import { SigninClientConfig } from "@aws-sdk/nested-clients/signin";
2
+ import { CredentialProviderOptions } from "@aws-sdk/types";
3
+ import { SharedConfigInit } from "@smithy/shared-ini-file-loader";
4
+ export interface FromLoginCredentialsInit
5
+ extends CredentialProviderOptions,
6
+ SharedConfigInit {
7
+ profile?: string;
8
+ clientConfig?: SigninClientConfig;
9
+ }
10
+ export interface LoginToken {
11
+ accessToken: {
12
+ accessKeyId: string;
13
+ secretAccessKey: string;
14
+ sessionToken: string;
15
+ accountId?: string;
16
+ expiresAt: string;
17
+ };
18
+ tokenType: string;
19
+ clientId: string;
20
+ refreshToken: string;
21
+ idToken: string;
22
+ dpopKey: string;
23
+ }
24
+ export interface DpopHeader {
25
+ typ: "dpop+jwt";
26
+ alg: "ES256";
27
+ jwk: {
28
+ kty: "EC";
29
+ crv: "P-256";
30
+ x: string;
31
+ y: string;
32
+ };
33
+ }
34
+ export interface DpopPayload {
35
+ jti: string;
36
+ htm: string;
37
+ htu: string;
38
+ iat: number;
39
+ }
@@ -0,0 +1,59 @@
1
+ import type { SigninClientConfig } from "@aws-sdk/nested-clients/signin";
2
+ import type { CredentialProviderOptions } from "@aws-sdk/types";
3
+ import type { SharedConfigInit } from "@smithy/shared-ini-file-loader";
4
+ /**
5
+ * Configuration options for the Login credential provider
6
+ * @public
7
+ */
8
+ export interface FromLoginCredentialsInit extends CredentialProviderOptions, SharedConfigInit {
9
+ /**
10
+ * Profile name to use for Login credentials
11
+ */
12
+ profile?: string;
13
+ /**
14
+ * Login client configuration for token refresh operations
15
+ */
16
+ clientConfig?: SigninClientConfig;
17
+ }
18
+ /**
19
+ * Login token structure stored on disk
20
+ * @internal
21
+ */
22
+ export interface LoginToken {
23
+ accessToken: {
24
+ accessKeyId: string;
25
+ secretAccessKey: string;
26
+ sessionToken: string;
27
+ accountId?: string;
28
+ expiresAt: string;
29
+ };
30
+ tokenType: string;
31
+ clientId: string;
32
+ refreshToken: string;
33
+ idToken: string;
34
+ dpopKey: string;
35
+ }
36
+ /**
37
+ * DPoP header structure for OAuth 2.0 Demonstrating Proof of Possession
38
+ * @internal
39
+ */
40
+ export interface DpopHeader {
41
+ typ: "dpop+jwt";
42
+ alg: "ES256";
43
+ jwk: {
44
+ kty: "EC";
45
+ crv: "P-256";
46
+ x: string;
47
+ y: string;
48
+ };
49
+ }
50
+ /**
51
+ * DPoP payload structure
52
+ * @internal
53
+ */
54
+ export interface DpopPayload {
55
+ jti: string;
56
+ htm: string;
57
+ htu: string;
58
+ iat: number;
59
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@aws-sdk/credential-provider-login",
3
+ "version": "3.936.0",
4
+ "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
+ "main": "./dist-cjs/index.js",
6
+ "module": "./dist-es/index.js",
7
+ "scripts": {
8
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
9
+ "build:cjs": "node ../../scripts/compilation/inline credential-provider-login",
10
+ "build:es": "tsc -p tsconfig.es.json",
11
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
12
+ "build:types": "tsc -p tsconfig.types.json",
13
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
15
+ "test": "yarn g:vitest run",
16
+ "test:watch": "yarn g:vitest watch"
17
+ },
18
+ "keywords": [
19
+ "aws",
20
+ "credentials",
21
+ "signin",
22
+ "login"
23
+ ],
24
+ "sideEffects": false,
25
+ "author": {
26
+ "name": "AWS SDK for JavaScript Team",
27
+ "url": "https://aws.amazon.com/javascript/"
28
+ },
29
+ "license": "Apache-2.0",
30
+ "dependencies": {
31
+ "@aws-sdk/core": "3.936.0",
32
+ "@aws-sdk/nested-clients": "3.936.0",
33
+ "@aws-sdk/types": "3.936.0",
34
+ "@smithy/property-provider": "^4.2.5",
35
+ "@smithy/protocol-http": "^5.3.5",
36
+ "@smithy/shared-ini-file-loader": "^4.4.0",
37
+ "@smithy/types": "^4.9.0",
38
+ "tslib": "^2.6.2"
39
+ },
40
+ "devDependencies": {
41
+ "@tsconfig/recommended": "1.0.1",
42
+ "@types/node": "^18.19.69",
43
+ "concurrently": "7.0.0",
44
+ "downlevel-dts": "0.10.1",
45
+ "rimraf": "3.0.2",
46
+ "typescript": "~5.8.3"
47
+ },
48
+ "types": "./dist-types/index.d.ts",
49
+ "engines": {
50
+ "node": ">=18.0.0"
51
+ },
52
+ "typesVersions": {
53
+ "<4.0": {
54
+ "dist-types/*": [
55
+ "dist-types/ts3.4/*"
56
+ ]
57
+ }
58
+ },
59
+ "files": [
60
+ "dist-*/**"
61
+ ],
62
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-login",
63
+ "repository": {
64
+ "type": "git",
65
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
66
+ "directory": "packages/credential-provider-login"
67
+ }
68
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.933.0",
3
+ "version": "3.936.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/credential-provider-env": "3.932.0",
35
- "@aws-sdk/credential-provider-http": "3.932.0",
36
- "@aws-sdk/credential-provider-ini": "3.933.0",
37
- "@aws-sdk/credential-provider-process": "3.932.0",
38
- "@aws-sdk/credential-provider-sso": "3.933.0",
39
- "@aws-sdk/credential-provider-web-identity": "3.933.0",
40
- "@aws-sdk/types": "3.930.0",
34
+ "@aws-sdk/credential-provider-env": "3.936.0",
35
+ "@aws-sdk/credential-provider-http": "3.936.0",
36
+ "@aws-sdk/credential-provider-ini": "3.936.0",
37
+ "@aws-sdk/credential-provider-process": "3.936.0",
38
+ "@aws-sdk/credential-provider-sso": "3.936.0",
39
+ "@aws-sdk/credential-provider-web-identity": "3.936.0",
40
+ "@aws-sdk/types": "3.936.0",
41
41
  "@smithy/credential-provider-imds": "^4.2.5",
42
42
  "@smithy/property-provider": "^4.2.5",
43
43
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.932.0",
3
+ "version": "3.936.0",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.932.0",
30
- "@aws-sdk/types": "3.930.0",
29
+ "@aws-sdk/core": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
31
  "@smithy/property-provider": "^4.2.5",
32
32
  "@smithy/shared-ini-file-loader": "^4.4.0",
33
33
  "@smithy/types": "^4.9.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.933.0",
3
+ "version": "3.936.0",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/client-sso": "3.933.0",
30
- "@aws-sdk/core": "3.932.0",
31
- "@aws-sdk/token-providers": "3.933.0",
32
- "@aws-sdk/types": "3.930.0",
29
+ "@aws-sdk/client-sso": "3.936.0",
30
+ "@aws-sdk/core": "3.936.0",
31
+ "@aws-sdk/token-providers": "3.936.0",
32
+ "@aws-sdk/types": "3.936.0",
33
33
  "@smithy/property-provider": "^4.2.5",
34
34
  "@smithy/shared-ini-file-loader": "^4.4.0",
35
35
  "@smithy/types": "^4.9.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.933.0",
3
+ "version": "3.936.0",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "3.932.0",
38
- "@aws-sdk/nested-clients": "3.933.0",
39
- "@aws-sdk/types": "3.930.0",
37
+ "@aws-sdk/core": "3.936.0",
38
+ "@aws-sdk/nested-clients": "3.936.0",
39
+ "@aws-sdk/types": "3.936.0",
40
40
  "@smithy/property-provider": "^4.2.5",
41
41
  "@smithy/shared-ini-file-loader": "^4.4.0",
42
42
  "@smithy/types": "^4.9.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.930.0",
3
+ "version": "3.936.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "3.930.0",
28
+ "@aws-sdk/types": "3.936.0",
29
29
  "@smithy/protocol-http": "^5.3.5",
30
30
  "@smithy/types": "^4.9.0",
31
31
  "tslib": "^2.6.2"