@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.
- package/.jsii +10 -9
- package/.jsii.tabl.json +1 -1
- package/lib/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +7 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
- package/node_modules/@aws-sdk/client-connect/README.md +7 -0
- package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +26 -1
- package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +2 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/UpdateContactTaskTemplateCommand.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +7 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +3 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/AssociateContactWithUserCommand.d.ts +5 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DeleteContactDataCommand.d.ts +9 -7
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactFlowsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchDataTablesCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartAttachedFileUploadCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateContactTaskTemplateCommand.d.ts +131 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/errors.d.ts +3 -3
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +15 -7
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +19 -10
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +3 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +36 -73
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +71 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +17 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +6 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactFlowsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchDataTablesCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateContactTaskTemplateCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +6 -15
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +18 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/package.json +6 -6
- package/node_modules/@aws-sdk/client-glue/README.md +21 -0
- package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +366 -118
- package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/BatchGetDataQualityRulesetEvaluationRunCommand.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetDataCatalogExportConfigurationCommand.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutDataCatalogExportConfigurationCommand.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +41 -13
- package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +284 -104
- package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +22 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityResultCommand.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +202 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateClassifierCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCrawlerCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DescribeConnectionTypeCommand.d.ts +68 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataCatalogExportConfigurationCommand.d.ts +89 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelResultCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityResultCommand.d.ts +12 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataflowGraphCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityRuleRecommendationRunsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityStatisticsCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutDataCatalogExportConfigurationCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/RegisterConnectionTypeCommand.d.ts +67 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/RunStatementCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchAssetsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartBlueprintRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +101 -25
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +305 -439
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +3890 -3703
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +3722 -3652
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +430 -4
- package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +23 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateClassifierCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCrawlerCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataCatalogExportConfigurationCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelResultCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityResultCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRulesetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataflowGraphCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutDataCatalogExportConfigurationCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/RunStatementCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchAssetsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchTablesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartBlueprintRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +51 -16
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +74 -76
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +113 -101
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +133 -136
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +133 -5
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
- package/node_modules/@aws-sdk/client-glue/package.json +6 -6
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-lakeformation/package.json +6 -6
- package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ram/package.json +6 -6
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sts/package.json +8 -8
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1328 -411
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +8 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.js → codec-v2/JsonShapeDeserializer2.js} +38 -18
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.js → codec-v2/JsonShapeSerializer2.js} +107 -71
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +93 -9
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +4 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +5 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.d.ts → codec-v2/JsonShapeDeserializer2.d.ts} +4 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.d.ts → codec-v2/JsonShapeSerializer2.d.ts} +19 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +61 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +8 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +29 -56
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +6 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +12 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +18 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +13 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +17 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +30 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +50 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +52 -36
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +14 -32
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +35 -28
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +35 -28
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/LoginCredentialsFetcher.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1561 -337
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
- package/node_modules/@smithy/core/package.json +2 -1
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/js-yaml/dist/js-yaml.js +4 -4
- package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
- package/node_modules/js-yaml/lib/js-yaml/type/omap.js +3 -3
- package/node_modules/js-yaml/package.json +1 -1
- package/package.json +10 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -19
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/LICENSE +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/README.md +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/index.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append/constant.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/append.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/count.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/help.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/constant.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/false.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store/true.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/store.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/subparsers.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action/version.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/action_container.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argparse.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/error.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/exclusive.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument/group.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/argument_parser.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/const.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/added_formatters.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/help/formatter.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/namespace.js +0 -0
- /package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/utils.js +0 -0
- /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,
|
|
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:
|
|
70
|
-
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
|
-
...
|
|
99
|
+
...freshToken,
|
|
88
100
|
accessToken: {
|
|
89
|
-
...
|
|
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
|
-
|
|
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, {
|
|
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
|
-
|
|
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
|
|
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:
|
|
68
|
-
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
|
-
...
|
|
97
|
+
...freshToken,
|
|
86
98
|
accessToken: {
|
|
87
|
-
...
|
|
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
|
-
|
|
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, {
|
|
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
|
-
|
|
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) {
|
|
@@ -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.
|
|
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.
|
|
49
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
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.
|
|
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.
|
|
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.
|
|
49
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
50
|
-
"@aws-sdk/credential-provider-ini": "^3.973.
|
|
51
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
52
|
-
"@aws-sdk/credential-provider-sso": "^3.973.
|
|
53
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
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.
|
|
56
|
-
"@smithy/credential-provider-imds": "^4.4.
|
|
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.
|
|
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.
|
|
46
|
+
"@aws-sdk/core": "^3.977.6",
|
|
47
47
|
"@aws-sdk/types": "^3.974.2",
|
|
48
|
-
"@smithy/core": "^3.
|
|
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.
|
|
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.
|
|
49
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
50
|
-
"@aws-sdk/token-providers": "3.
|
|
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.
|
|
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.
|
|
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.
|
|
54
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
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.
|
|
56
|
+
"@smithy/core": "^3.31.1",
|
|
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/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
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.
|
|
104
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
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.
|
|
107
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
108
|
-
"@smithy/node-http-handler": "^4.9.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
52
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
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.
|
|
54
|
+
"@smithy/core": "^3.31.1",
|
|
55
55
|
"@smithy/types": "^4.16.1",
|
|
56
56
|
"tslib": "^2.6.2"
|
|
57
57
|
},
|