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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/.jsii +10 -9
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +2 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +1 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +7 -3
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  11. package/node_modules/@aws-sdk/client-connect/README.md +7 -0
  12. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +26 -1
  13. package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +2 -0
  14. package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateContactTaskTemplateCommand.js +4 -0
  15. package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +1 -0
  16. package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +1 -0
  17. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +16 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +7 -0
  19. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +3 -2
  20. package/node_modules/@aws-sdk/client-connect/dist-types/commands/AssociateContactWithUserCommand.d.ts +5 -1
  21. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DeleteContactDataCommand.d.ts +9 -7
  22. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactFlowsCommand.d.ts +1 -1
  23. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchDataTablesCommand.d.ts +2 -1
  24. package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartAttachedFileUploadCommand.d.ts +2 -1
  25. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateContactTaskTemplateCommand.d.ts +131 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +1 -0
  27. package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +1 -0
  28. package/node_modules/@aws-sdk/client-connect/dist-types/models/errors.d.ts +3 -3
  29. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +15 -7
  30. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +19 -10
  31. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +3 -1
  32. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +36 -73
  33. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +71 -1
  34. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +3 -0
  35. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +17 -0
  36. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +6 -0
  37. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactFlowsCommand.d.ts +1 -1
  38. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchDataTablesCommand.d.ts +2 -1
  39. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateContactTaskTemplateCommand.d.ts +42 -0
  40. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +1 -0
  41. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +1 -0
  42. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +6 -15
  43. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +18 -0
  44. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
  45. package/node_modules/@aws-sdk/client-connect/package.json +6 -6
  46. package/node_modules/@aws-sdk/client-glue/README.md +21 -0
  47. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +366 -118
  48. package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +6 -0
  49. package/node_modules/@aws-sdk/client-glue/dist-es/commands/BatchGetDataQualityRulesetEvaluationRunCommand.js +4 -0
  50. package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetDataCatalogExportConfigurationCommand.js +4 -0
  51. package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutDataCatalogExportConfigurationCommand.js +4 -0
  52. package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +3 -0
  53. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +41 -13
  54. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +284 -104
  55. package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +22 -0
  56. package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +5 -2
  57. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityResultCommand.d.ts +11 -0
  58. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +202 -0
  59. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateClassifierCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateConnectionCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCrawlerCommand.d.ts +1 -2
  63. package/node_modules/@aws-sdk/client-glue/dist-types/commands/DescribeConnectionTypeCommand.d.ts +68 -0
  64. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -1
  65. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataCatalogExportConfigurationCommand.d.ts +89 -0
  66. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelCommand.d.ts +1 -1
  67. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelResultCommand.d.ts +1 -1
  68. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityResultCommand.d.ts +12 -1
  69. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +4 -1
  70. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetCommand.d.ts +1 -1
  71. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
  72. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataflowGraphCommand.d.ts +1 -1
  73. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityRuleRecommendationRunsCommand.d.ts +4 -0
  74. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityStatisticsCommand.d.ts +9 -0
  75. package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutDataCatalogExportConfigurationCommand.d.ts +95 -0
  76. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RegisterConnectionTypeCommand.d.ts +67 -0
  77. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RunStatementCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchAssetsCommand.d.ts +1 -2
  79. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +1 -2
  80. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartBlueprintRunCommand.d.ts +1 -1
  81. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
  82. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
  83. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartCrawlerCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +3 -0
  85. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
  86. package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +3 -0
  87. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +101 -25
  88. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +305 -439
  89. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +3890 -3703
  90. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +3722 -3652
  91. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +430 -4
  92. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +23 -0
  93. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +52 -0
  94. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +18 -0
  95. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +42 -0
  96. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateClassifierCommand.d.ts +1 -1
  97. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
  98. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +1 -1
  99. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCrawlerCommand.d.ts +1 -2
  100. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -4
  101. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataCatalogExportConfigurationCommand.d.ts +42 -0
  102. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelCommand.d.ts +1 -1
  103. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelResultCommand.d.ts +1 -1
  104. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityResultCommand.d.ts +1 -1
  105. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +1 -1
  106. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRulesetCommand.d.ts +1 -1
  107. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataflowGraphCommand.d.ts +1 -1
  108. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutDataCatalogExportConfigurationCommand.d.ts +42 -0
  109. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/RunStatementCommand.d.ts +1 -1
  110. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchAssetsCommand.d.ts +1 -2
  111. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchTablesCommand.d.ts +1 -2
  112. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartBlueprintRunCommand.d.ts +1 -1
  113. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
  114. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
  115. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartCrawlerCommand.d.ts +1 -1
  116. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +3 -0
  117. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +51 -16
  118. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +74 -76
  119. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +113 -101
  120. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +133 -136
  121. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +133 -5
  122. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
  123. package/node_modules/@aws-sdk/client-glue/package.json +6 -6
  124. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
  125. package/node_modules/@aws-sdk/client-lakeformation/package.json +6 -6
  126. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
  127. package/node_modules/@aws-sdk/client-ram/package.json +6 -6
  128. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  129. package/node_modules/@aws-sdk/client-sts/package.json +8 -8
  130. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1328 -411
  131. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
  132. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
  133. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +3 -3
  134. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
  135. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
  136. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
  137. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
  138. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +8 -5
  139. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
  140. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
  141. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.js → codec-v2/JsonShapeDeserializer2.js} +38 -18
  142. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.js → codec-v2/JsonShapeSerializer2.js} +107 -71
  143. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +93 -9
  144. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
  145. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -2
  146. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -2
  147. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +4 -3
  148. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +5 -3
  149. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
  150. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
  151. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
  152. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
  153. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
  154. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  155. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
  156. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.d.ts → codec-v2/JsonShapeDeserializer2.d.ts} +4 -3
  157. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.d.ts → codec-v2/JsonShapeSerializer2.d.ts} +19 -16
  158. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
  159. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +61 -21
  160. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
  161. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
  162. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
  163. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
  164. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
  165. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
  166. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
  167. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
  168. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
  169. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
  170. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
  171. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
  172. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
  173. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
  174. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
  175. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
  176. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
  177. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
  178. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
  179. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  180. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +2 -5
  181. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  182. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +8 -11
  183. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
  184. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
  185. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
  186. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
  187. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
  188. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
  189. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
  190. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  191. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -5
  192. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
  193. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
  194. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
  195. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  196. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +29 -56
  197. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  198. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  199. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +6 -1
  200. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  201. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  202. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  203. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +12 -1
  204. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
  205. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
  206. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
  207. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +18 -27
  208. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +13 -18
  209. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
  210. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +17 -28
  211. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
  212. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
  213. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
  214. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
  215. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
  216. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
  217. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
  218. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
  219. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
  220. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
  221. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
  222. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
  223. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
  224. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
  225. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
  226. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
  227. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
  228. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
  229. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
  230. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
  231. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -9
  232. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
  233. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
  234. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
  235. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
  236. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
  237. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
  238. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +30 -22
  239. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -22
  240. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -22
  241. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +50 -29
  242. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +52 -36
  243. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
  244. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
  245. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
  246. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
  247. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
  248. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
  249. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
  250. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
  251. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
  252. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
  253. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
  254. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -21
  255. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
  256. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
  257. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
  258. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
  259. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
  260. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
  261. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
  262. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
  263. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
  264. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
  265. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
  266. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  267. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +4 -13
  268. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
  269. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  270. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +14 -32
  271. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
  272. package/node_modules/@aws-sdk/core/package.json +3 -3
  273. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  274. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  275. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  276. package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +35 -28
  277. package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +35 -28
  278. package/node_modules/@aws-sdk/credential-provider-login/dist-types/LoginCredentialsFetcher.d.ts +1 -0
  279. package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +1 -0
  280. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  281. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  282. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  283. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  284. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  285. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  286. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  287. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  288. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  289. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  290. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  291. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  292. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  293. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1561 -337
  294. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
  295. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
  296. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
  297. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
  298. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
  299. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
  300. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
  301. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
  302. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  303. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  304. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  305. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  306. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  307. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
  308. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
  309. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  310. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  311. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  312. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  313. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  314. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
  315. package/node_modules/@smithy/core/package.json +2 -1
  316. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  317. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  318. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  319. package/node_modules/@smithy/signature-v4/package.json +2 -2
  320. package/node_modules/js-yaml/dist/js-yaml.js +4 -4
  321. package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
  322. package/node_modules/js-yaml/lib/js-yaml/type/omap.js +3 -3
  323. package/node_modules/js-yaml/package.json +1 -1
  324. package/package.json +10 -10
  325. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -19
  326. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
  327. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
  328. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
  329. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
  330. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/LICENSE +0 -0
  331. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/README.md +0 -0
  332. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/index.js +0 -0
  333. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append/constant.js +0 -0
  334. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append.js +0 -0
  335. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/count.js +0 -0
  336. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/help.js +0 -0
  337. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/constant.js +0 -0
  338. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/false.js +0 -0
  339. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/true.js +0 -0
  340. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store.js +0 -0
  341. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/subparsers.js +0 -0
  342. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/version.js +0 -0
  343. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action.js +0 -0
  344. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action_container.js +0 -0
  345. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argparse.js +0 -0
  346. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/error.js +0 -0
  347. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/exclusive.js +0 -0
  348. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/group.js +0 -0
  349. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument_parser.js +0 -0
  350. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/const.js +0 -0
  351. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/added_formatters.js +0 -0
  352. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/formatter.js +0 -0
  353. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/namespace.js +0 -0
  354. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/utils.js +0 -0
  355. /package/node_modules/{argparse → js-yaml/node_modules/argparse}/package.json +0 -0
@@ -1,5 +1,5 @@
1
1
  const { setCredentialFeature } = require("@aws-sdk/core/client");
2
- const { CredentialsProviderError, readFile, parseKnownFiles, getProfileName } = require("@smithy/core/config");
2
+ const { CredentialsProviderError, parseKnownFiles, getProfileName } = require("@smithy/core/config");
3
3
  const { HttpRequest } = require("@smithy/core/protocols");
4
4
  const { createHash, createPrivateKey, createPublicKey, sign } = require("node:crypto");
5
5
  const { promises } = require("node:fs");
@@ -28,13 +28,7 @@ class LoginCredentialsFetcher {
28
28
  if (timeUntilExpiry <= LoginCredentialsFetcher.REFRESH_THRESHOLD) {
29
29
  return this.refresh(token);
30
30
  }
31
- return {
32
- accessKeyId: accessToken.accessKeyId,
33
- secretAccessKey: accessToken.secretAccessKey,
34
- sessionToken: accessToken.sessionToken,
35
- accountId: accessToken.accountId,
36
- expiration: new Date(accessToken.expiresAt),
37
- };
31
+ return this.toCredentials(token.accessToken);
38
32
  }
39
33
  get logger() {
40
34
  return this.init?.logger;
@@ -42,7 +36,25 @@ class LoginCredentialsFetcher {
42
36
  get loginSession() {
43
37
  return this.profileData.login_session;
44
38
  }
39
+ toCredentials(token) {
40
+ return {
41
+ accessKeyId: token.accessKeyId,
42
+ secretAccessKey: token.secretAccessKey,
43
+ sessionToken: token.sessionToken,
44
+ accountId: token.accountId,
45
+ expiration: new Date(token.expiresAt),
46
+ };
47
+ }
45
48
  async refresh(token) {
49
+ const diskToken = await this.loadToken().catch(() => token);
50
+ const now = Date.now();
51
+ const diskExpiry = new Date(diskToken.accessToken.expiresAt).getTime();
52
+ const tokenExpiry = new Date(token.accessToken.expiresAt).getTime();
53
+ const freshToken = diskExpiry <= now && tokenExpiry > now ? token : diskToken;
54
+ const freshExpiry = new Date(freshToken.accessToken.expiresAt).getTime();
55
+ if (freshExpiry - Date.now() > LoginCredentialsFetcher.REFRESH_THRESHOLD) {
56
+ return this.toCredentials(freshToken.accessToken);
57
+ }
46
58
  const { SigninClient, CreateOAuth2TokenCommand } = require('@aws-sdk/nested-clients/signin');
47
59
  const { logger, userAgentAppId } = this.callerClientConfig ?? {};
48
60
  const isH2 = (requestHandler) => {
@@ -66,8 +78,8 @@ class LoginCredentialsFetcher {
66
78
  this.createDPoPInterceptor(client.middlewareStack);
67
79
  const commandInput = {
68
80
  tokenInput: {
69
- clientId: token.clientId,
70
- refreshToken: token.refreshToken,
81
+ clientId: freshToken.clientId,
82
+ refreshToken: freshToken.refreshToken,
71
83
  grantType: "refresh_token",
72
84
  },
73
85
  };
@@ -84,9 +96,9 @@ class LoginCredentialsFetcher {
84
96
  const expiresInMs = (expiresIn ?? 900) * 1000;
85
97
  const expiration = new Date(Date.now() + expiresInMs);
86
98
  const updatedToken = {
87
- ...token,
99
+ ...freshToken,
88
100
  accessToken: {
89
- ...token.accessToken,
101
+ ...freshToken.accessToken,
90
102
  accessKeyId,
91
103
  secretAccessKey,
92
104
  sessionToken,
@@ -95,14 +107,7 @@ class LoginCredentialsFetcher {
95
107
  refreshToken,
96
108
  };
97
109
  await this.saveToken(updatedToken);
98
- const newAccessToken = updatedToken.accessToken;
99
- return {
100
- accessKeyId: newAccessToken.accessKeyId,
101
- secretAccessKey: newAccessToken.secretAccessKey,
102
- sessionToken: newAccessToken.sessionToken,
103
- accountId: newAccessToken.accountId,
104
- expiration,
105
- };
110
+ return this.toCredentials(updatedToken.accessToken);
106
111
  }
107
112
  catch (error) {
108
113
  if (error.name === "AccessDeniedException") {
@@ -123,7 +128,15 @@ class LoginCredentialsFetcher {
123
128
  default:
124
129
  message = `Failed to refresh token: ${String(error)}. Please re-authenticate using \`aws login\``;
125
130
  }
126
- throw new CredentialsProviderError(message, { logger: this.logger, tryNextLink: false });
131
+ throw new CredentialsProviderError(message, {
132
+ logger: this.logger,
133
+ tryNextLink: false,
134
+ });
135
+ }
136
+ const tokenExpiry = new Date(freshToken.accessToken.expiresAt).getTime();
137
+ if (tokenExpiry > Date.now()) {
138
+ this.logger?.warn?.(`Failed to refresh token: ${String(error)}. Using existing token until expiry.`);
139
+ return this.toCredentials(freshToken.accessToken);
127
140
  }
128
141
  throw new CredentialsProviderError(`Failed to refresh token: ${String(error)}. Please re-authenticate using aws login`, { logger: this.logger });
129
142
  }
@@ -131,13 +144,7 @@ class LoginCredentialsFetcher {
131
144
  async loadToken() {
132
145
  const tokenFilePath = this.getTokenFilePath();
133
146
  try {
134
- let tokenData;
135
- try {
136
- tokenData = await readFile(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
137
- }
138
- catch {
139
- tokenData = await promises.readFile(tokenFilePath, "utf8");
140
- }
147
+ const tokenData = await promises.readFile(tokenFilePath, "utf8");
141
148
  const token = JSON.parse(tokenData);
142
149
  const missingFields = ["accessToken", "clientId", "refreshToken", "dpopKey"].filter((k) => !token[k]);
143
150
  if (!token.accessToken?.accountId) {
@@ -1,4 +1,4 @@
1
- import { CredentialsProviderError, readFile } from "@smithy/core/config";
1
+ import { CredentialsProviderError } from "@smithy/core/config";
2
2
  import { HttpRequest } from "@smithy/core/protocols";
3
3
  import { createHash, createPrivateKey, createPublicKey, sign } from "node:crypto";
4
4
  import { promises as fs } from "node:fs";
@@ -26,13 +26,7 @@ export class LoginCredentialsFetcher {
26
26
  if (timeUntilExpiry <= LoginCredentialsFetcher.REFRESH_THRESHOLD) {
27
27
  return this.refresh(token);
28
28
  }
29
- return {
30
- accessKeyId: accessToken.accessKeyId,
31
- secretAccessKey: accessToken.secretAccessKey,
32
- sessionToken: accessToken.sessionToken,
33
- accountId: accessToken.accountId,
34
- expiration: new Date(accessToken.expiresAt),
35
- };
29
+ return this.toCredentials(token.accessToken);
36
30
  }
37
31
  get logger() {
38
32
  return this.init?.logger;
@@ -40,7 +34,25 @@ export class LoginCredentialsFetcher {
40
34
  get loginSession() {
41
35
  return this.profileData.login_session;
42
36
  }
37
+ toCredentials(token) {
38
+ return {
39
+ accessKeyId: token.accessKeyId,
40
+ secretAccessKey: token.secretAccessKey,
41
+ sessionToken: token.sessionToken,
42
+ accountId: token.accountId,
43
+ expiration: new Date(token.expiresAt),
44
+ };
45
+ }
43
46
  async refresh(token) {
47
+ const diskToken = await this.loadToken().catch(() => token);
48
+ const now = Date.now();
49
+ const diskExpiry = new Date(diskToken.accessToken.expiresAt).getTime();
50
+ const tokenExpiry = new Date(token.accessToken.expiresAt).getTime();
51
+ const freshToken = diskExpiry <= now && tokenExpiry > now ? token : diskToken;
52
+ const freshExpiry = new Date(freshToken.accessToken.expiresAt).getTime();
53
+ if (freshExpiry - Date.now() > LoginCredentialsFetcher.REFRESH_THRESHOLD) {
54
+ return this.toCredentials(freshToken.accessToken);
55
+ }
44
56
  const { SigninClient, CreateOAuth2TokenCommand } = await import("@aws-sdk/nested-clients/signin");
45
57
  const { logger, userAgentAppId } = this.callerClientConfig ?? {};
46
58
  const isH2 = (requestHandler) => {
@@ -64,8 +76,8 @@ export class LoginCredentialsFetcher {
64
76
  this.createDPoPInterceptor(client.middlewareStack);
65
77
  const commandInput = {
66
78
  tokenInput: {
67
- clientId: token.clientId,
68
- refreshToken: token.refreshToken,
79
+ clientId: freshToken.clientId,
80
+ refreshToken: freshToken.refreshToken,
69
81
  grantType: "refresh_token",
70
82
  },
71
83
  };
@@ -82,9 +94,9 @@ export class LoginCredentialsFetcher {
82
94
  const expiresInMs = (expiresIn ?? 900) * 1000;
83
95
  const expiration = new Date(Date.now() + expiresInMs);
84
96
  const updatedToken = {
85
- ...token,
97
+ ...freshToken,
86
98
  accessToken: {
87
- ...token.accessToken,
99
+ ...freshToken.accessToken,
88
100
  accessKeyId,
89
101
  secretAccessKey,
90
102
  sessionToken,
@@ -93,14 +105,7 @@ export class LoginCredentialsFetcher {
93
105
  refreshToken,
94
106
  };
95
107
  await this.saveToken(updatedToken);
96
- const newAccessToken = updatedToken.accessToken;
97
- return {
98
- accessKeyId: newAccessToken.accessKeyId,
99
- secretAccessKey: newAccessToken.secretAccessKey,
100
- sessionToken: newAccessToken.sessionToken,
101
- accountId: newAccessToken.accountId,
102
- expiration,
103
- };
108
+ return this.toCredentials(updatedToken.accessToken);
104
109
  }
105
110
  catch (error) {
106
111
  if (error.name === "AccessDeniedException") {
@@ -121,7 +126,15 @@ export class LoginCredentialsFetcher {
121
126
  default:
122
127
  message = `Failed to refresh token: ${String(error)}. Please re-authenticate using \`aws login\``;
123
128
  }
124
- throw new CredentialsProviderError(message, { logger: this.logger, tryNextLink: false });
129
+ throw new CredentialsProviderError(message, {
130
+ logger: this.logger,
131
+ tryNextLink: false,
132
+ });
133
+ }
134
+ const tokenExpiry = new Date(freshToken.accessToken.expiresAt).getTime();
135
+ if (tokenExpiry > Date.now()) {
136
+ this.logger?.warn?.(`Failed to refresh token: ${String(error)}. Using existing token until expiry.`);
137
+ return this.toCredentials(freshToken.accessToken);
125
138
  }
126
139
  throw new CredentialsProviderError(`Failed to refresh token: ${String(error)}. Please re-authenticate using aws login`, { logger: this.logger });
127
140
  }
@@ -129,13 +142,7 @@ export class LoginCredentialsFetcher {
129
142
  async loadToken() {
130
143
  const tokenFilePath = this.getTokenFilePath();
131
144
  try {
132
- let tokenData;
133
- try {
134
- tokenData = await readFile(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
135
- }
136
- catch {
137
- tokenData = await fs.readFile(tokenFilePath, "utf8");
138
- }
145
+ const tokenData = await fs.readFile(tokenFilePath, "utf8");
139
146
  const token = JSON.parse(tokenData);
140
147
  const missingFields = ["accessToken", "clientId", "refreshToken", "dpopKey"].filter((k) => !token[k]);
141
148
  if (!token.accessToken?.accountId) {
@@ -17,6 +17,7 @@ export declare class LoginCredentialsFetcher {
17
17
  loadCredentials(): Promise<AwsCredentialIdentity>;
18
18
  private get logger();
19
19
  private get loginSession();
20
+ private toCredentials;
20
21
  private refresh;
21
22
  private loadToken;
22
23
  private saveToken;
@@ -14,6 +14,7 @@ export declare class LoginCredentialsFetcher {
14
14
  loadCredentials(): Promise<AwsCredentialIdentity>;
15
15
  private readonly logger: any;
16
16
  private readonly loginSession: any;
17
+ private toCredentials;
17
18
  private refresh;
18
19
  private loadToken;
19
20
  private saveToken;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.972.68",
3
+ "version": "3.972.74",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,10 +45,10 @@
45
45
  "test:watch": "yarn g:vitest watch"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.977.0",
49
- "@aws-sdk/nested-clients": "^3.997.35",
48
+ "@aws-sdk/core": "^3.977.6",
49
+ "@aws-sdk/nested-clients": "^3.997.41",
50
50
  "@aws-sdk/types": "^3.974.2",
51
- "@smithy/core": "^3.29.8",
51
+ "@smithy/core": "^3.31.1",
52
52
  "@smithy/types": "^4.16.1",
53
53
  "tslib": "^2.6.2"
54
54
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.72",
3
+ "version": "3.972.78",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,15 +45,15 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/credential-provider-env": "^3.972.61",
49
- "@aws-sdk/credential-provider-http": "^3.972.63",
50
- "@aws-sdk/credential-provider-ini": "^3.973.6",
51
- "@aws-sdk/credential-provider-process": "^3.972.61",
52
- "@aws-sdk/credential-provider-sso": "^3.973.5",
53
- "@aws-sdk/credential-provider-web-identity": "^3.972.67",
48
+ "@aws-sdk/credential-provider-env": "^3.972.67",
49
+ "@aws-sdk/credential-provider-http": "^3.972.69",
50
+ "@aws-sdk/credential-provider-ini": "^3.973.12",
51
+ "@aws-sdk/credential-provider-process": "^3.972.67",
52
+ "@aws-sdk/credential-provider-sso": "^3.973.11",
53
+ "@aws-sdk/credential-provider-web-identity": "^3.972.73",
54
54
  "@aws-sdk/types": "^3.974.2",
55
- "@smithy/core": "^3.29.8",
56
- "@smithy/credential-provider-imds": "^4.4.13",
55
+ "@smithy/core": "^3.31.1",
56
+ "@smithy/credential-provider-imds": "^4.4.16",
57
57
  "@smithy/types": "^4.16.1",
58
58
  "tslib": "^2.6.2"
59
59
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.972.61",
3
+ "version": "3.972.67",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -43,9 +43,9 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-sdk/core": "^3.977.0",
46
+ "@aws-sdk/core": "^3.977.6",
47
47
  "@aws-sdk/types": "^3.974.2",
48
- "@smithy/core": "^3.29.8",
48
+ "@smithy/core": "^3.31.1",
49
49
  "@smithy/types": "^4.16.1",
50
50
  "tslib": "^2.6.2"
51
51
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.973.5",
3
+ "version": "3.973.11",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,11 +45,11 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.977.0",
49
- "@aws-sdk/nested-clients": "^3.997.35",
50
- "@aws-sdk/token-providers": "3.1095.0",
48
+ "@aws-sdk/core": "^3.977.6",
49
+ "@aws-sdk/nested-clients": "^3.997.41",
50
+ "@aws-sdk/token-providers": "3.1103.0",
51
51
  "@aws-sdk/types": "^3.974.2",
52
- "@smithy/core": "^3.29.8",
52
+ "@smithy/core": "^3.31.1",
53
53
  "@smithy/types": "^4.16.1",
54
54
  "tslib": "^2.6.2"
55
55
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.972.67",
3
+ "version": "3.972.73",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -50,10 +50,10 @@
50
50
  "test:watch": "yarn g:vitest watch"
51
51
  },
52
52
  "dependencies": {
53
- "@aws-sdk/core": "^3.977.0",
54
- "@aws-sdk/nested-clients": "^3.997.35",
53
+ "@aws-sdk/core": "^3.977.6",
54
+ "@aws-sdk/nested-clients": "^3.997.41",
55
55
  "@aws-sdk/types": "^3.974.2",
56
- "@smithy/core": "^3.29.8",
56
+ "@smithy/core": "^3.31.1",
57
57
  "@smithy/types": "^4.16.1",
58
58
  "tslib": "^2.6.2"
59
59
  },
@@ -83,7 +83,7 @@ const commonParams = {
83
83
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
84
84
  };
85
85
 
86
- var version = "3.997.34";
86
+ var version = "3.997.40";
87
87
  var packageInfo = {
88
88
  version: version};
89
89
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.34";
81
+ var version = "3.997.40";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.34";
81
+ var version = "3.997.40";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.34";
81
+ var version = "3.997.40";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -258,7 +258,7 @@ const commonParams = {
258
258
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
259
259
  };
260
260
 
261
- var version = "3.997.34";
261
+ var version = "3.997.40";
262
262
  var packageInfo = {
263
263
  version: version};
264
264
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.35",
3
+ "version": "3.997.41",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
6
6
  "license": "Apache-2.0",
@@ -100,12 +100,12 @@
100
100
  "test:watch": "yarn g:vitest watch"
101
101
  },
102
102
  "dependencies": {
103
- "@aws-sdk/core": "^3.977.0",
104
- "@aws-sdk/signature-v4-multi-region": "^3.996.42",
103
+ "@aws-sdk/core": "^3.977.6",
104
+ "@aws-sdk/signature-v4-multi-region": "^3.996.43",
105
105
  "@aws-sdk/types": "^3.974.2",
106
- "@smithy/core": "^3.29.8",
107
- "@smithy/fetch-http-handler": "^5.6.10",
108
- "@smithy/node-http-handler": "^4.9.10",
106
+ "@smithy/core": "^3.31.1",
107
+ "@smithy/fetch-http-handler": "^5.6.13",
108
+ "@smithy/node-http-handler": "^4.9.13",
109
109
  "@smithy/types": "^4.16.1",
110
110
  "tslib": "^2.6.2"
111
111
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.996.42",
3
+ "version": "3.996.43",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/signature-v4-multi-region",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@aws-sdk/types": "^3.974.2",
46
- "@smithy/signature-v4": "^5.6.9",
46
+ "@smithy/signature-v4": "^5.6.12",
47
47
  "@smithy/types": "^4.16.1",
48
48
  "tslib": "^2.6.2"
49
49
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1095.0",
3
+ "version": "3.1103.0",
4
4
  "description": "A collection of token providers",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,10 +48,10 @@
48
48
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.977.0",
52
- "@aws-sdk/nested-clients": "^3.997.35",
51
+ "@aws-sdk/core": "^3.977.6",
52
+ "@aws-sdk/nested-clients": "^3.997.41",
53
53
  "@aws-sdk/types": "^3.974.2",
54
- "@smithy/core": "^3.29.8",
54
+ "@smithy/core": "^3.31.1",
55
55
  "@smithy/types": "^4.16.1",
56
56
  "tslib": "^2.6.2"
57
57
  },