@mavogel/awscdk-rootmail 0.0.303 → 0.0.305
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 +3 -3
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/models/models_0.js +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/AssociateKmsKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/CreateExportTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/CreateLogGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/DescribeAccountPoliciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/DescribeLogGroupsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/PutLogEventsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/StartLiveTailCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/models_0.d.ts +21 -5
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +12 -12
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-route-53/package.json +12 -12
- package/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +20 -20
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +20 -20
- package/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-s3/package.json +16 -16
- package/node_modules/@aws-sdk/client-ses/dist-cjs/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-ses/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-es/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-ses/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-ses/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ses/package.json +12 -12
- package/node_modules/@aws-sdk/client-ssm/README.md +16 -0
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +333 -71
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-es/SSM.js +4 -0
- package/node_modules/@aws-sdk/client-ssm/dist-es/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetAccessTokenCommand.js +23 -0
- package/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterTargetWithMaintenanceWindowCommand.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterTaskWithMaintenanceWindowCommand.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartAccessRequestCommand.js +22 -0
- package/node_modules/@aws-sdk/client-ssm/dist-es/commands/index.js +2 -0
- package/node_modules/@aws-sdk/client-ssm/dist-es/models/models_0.js +24 -4
- package/node_modules/@aws-sdk/client-ssm/dist-es/models/models_1.js +57 -27
- package/node_modules/@aws-sdk/client-ssm/dist-es/models/models_2.js +50 -16
- package/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js +94 -6
- package/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/SSM.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateDocumentCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeOpsItemsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAccessTokenCommand.d.ts +94 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAutomationExecutionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDocumentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsItemCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendAutomationSignalCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAccessRequestCommand.d.ts +105 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsItemCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +31 -51
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +163 -348
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +413 -21
- package/node_modules/@aws-sdk/client-ssm/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSM.d.ts +34 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetAccessTokenCommand.d.ts +50 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAccessRequestCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +20 -14
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +61 -58
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts +81 -9
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ssm/package.json +12 -12
- package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +33 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +16 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -11
- package/node_modules/@aws-sdk/signature-v4-multi-region/README.md +8 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +55 -22
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +62 -25
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +5 -1
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -3
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/index.js +27 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +1 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +4 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +4 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js +20 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +3 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/resolveAuthOptions.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/resolveAuthOptions.d.ts +10 -0
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +4 -4
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +22 -1
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +15 -0
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +5 -0
- package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@smithy/service-error-classification/package.json +1 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +1 -0
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +196 -92
- package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +1 -0
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +17 -73
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +73 -0
- package/node_modules/@smithy/signature-v4/dist-es/index.js +4 -0
- package/node_modules/@smithy/signature-v4/dist-es/signature-v4a-container.js +3 -0
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -59
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4Base.d.ts +69 -0
- package/node_modules/@smithy/signature-v4/dist-types/index.d.ts +4 -0
- package/node_modules/@smithy/signature-v4/dist-types/signature-v4a-container.d.ts +24 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +3 -59
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4Base.d.ts +69 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/index.d.ts +4 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/signature-v4a-container.d.ts +24 -0
- package/node_modules/@smithy/signature-v4/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +2 -2
- package/node_modules/axios/CHANGELOG.md +27 -0
- package/node_modules/axios/README.md +5 -5
- package/node_modules/axios/dist/axios.js +32 -16
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +31 -13
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +31 -13
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +32 -14
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +2 -2
- package/node_modules/axios/index.d.ts +4 -2
- package/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/node_modules/axios/lib/core/Axios.js +1 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +15 -3
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
- package/node_modules/axios/lib/utils.js +12 -6
- package/node_modules/axios/package.json +4 -4
- package/node_modules/cdk-nag/.jsii +3 -3
- package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
- package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
- package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
- package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
- package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
- package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
- package/node_modules/cdk-nag/package.json +2 -2
- package/package.json +1 -1
- /package/node_modules/{mime-db → form-data/node_modules/mime-db}/HISTORY.md +0 -0
- /package/node_modules/{mime-db → form-data/node_modules/mime-db}/LICENSE +0 -0
- /package/node_modules/{mime-db → form-data/node_modules/mime-db}/README.md +0 -0
- /package/node_modules/{mime-db → form-data/node_modules/mime-db}/db.json +0 -0
- /package/node_modules/{mime-db → form-data/node_modules/mime-db}/index.js +0 -0
- /package/node_modules/{mime-db → form-data/node_modules/mime-db}/package.json +0 -0
- /package/node_modules/{mime-types → form-data/node_modules/mime-types}/HISTORY.md +0 -0
- /package/node_modules/{mime-types → form-data/node_modules/mime-types}/LICENSE +0 -0
- /package/node_modules/{mime-types → form-data/node_modules/mime-types}/README.md +0 -0
- /package/node_modules/{mime-types → form-data/node_modules/mime-types}/index.js +0 -0
- /package/node_modules/{mime-types → form-data/node_modules/mime-types}/package.json +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SignatureV4S3Express } from "@aws-sdk/middleware-sdk-s3";
|
|
2
|
+
import { signatureV4aContainer, } from "@smithy/signature-v4";
|
|
2
3
|
import { signatureV4CrtContainer } from "./signature-v4-crt-container";
|
|
3
4
|
export class SignatureV4MultiRegion {
|
|
4
5
|
sigv4aSigner;
|
|
@@ -10,25 +11,41 @@ export class SignatureV4MultiRegion {
|
|
|
10
11
|
}
|
|
11
12
|
async sign(requestToSign, options = {}) {
|
|
12
13
|
if (options.signingRegion === "*") {
|
|
13
|
-
if (this.signerOptions.runtime !== "node")
|
|
14
|
-
throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");
|
|
15
14
|
return this.getSigv4aSigner().sign(requestToSign, options);
|
|
16
15
|
}
|
|
17
16
|
return this.sigv4Signer.sign(requestToSign, options);
|
|
18
17
|
}
|
|
19
18
|
async signWithCredentials(requestToSign, credentials, options = {}) {
|
|
20
19
|
if (options.signingRegion === "*") {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const signer = this.getSigv4aSigner();
|
|
21
|
+
const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
|
|
22
|
+
if (CrtSignerV4 && signer instanceof CrtSignerV4) {
|
|
23
|
+
return signer.signWithCredentials(requestToSign, credentials, options);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. ` +
|
|
27
|
+
`Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. ` +
|
|
28
|
+
`You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] ` +
|
|
29
|
+
`or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. ` +
|
|
30
|
+
`For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);
|
|
31
|
+
}
|
|
24
32
|
}
|
|
25
33
|
return this.sigv4Signer.signWithCredentials(requestToSign, credentials, options);
|
|
26
34
|
}
|
|
27
35
|
async presign(originalRequest, options = {}) {
|
|
28
36
|
if (options.signingRegion === "*") {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
const signer = this.getSigv4aSigner();
|
|
38
|
+
const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
|
|
39
|
+
if (CrtSignerV4 && signer instanceof CrtSignerV4) {
|
|
40
|
+
return signer.presign(originalRequest, options);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. ` +
|
|
44
|
+
`Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. ` +
|
|
45
|
+
`You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] ` +
|
|
46
|
+
`or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. ` +
|
|
47
|
+
`For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);
|
|
48
|
+
}
|
|
32
49
|
}
|
|
33
50
|
return this.sigv4Signer.presign(originalRequest, options);
|
|
34
51
|
}
|
|
@@ -40,26 +57,46 @@ export class SignatureV4MultiRegion {
|
|
|
40
57
|
}
|
|
41
58
|
getSigv4aSigner() {
|
|
42
59
|
if (!this.sigv4aSigner) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (
|
|
47
|
-
throw new Error(
|
|
60
|
+
const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
|
|
61
|
+
const JsSigV4aSigner = signatureV4aContainer.SignatureV4a;
|
|
62
|
+
if (this.signerOptions.runtime === "node") {
|
|
63
|
+
if (!CrtSignerV4 && !JsSigV4aSigner) {
|
|
64
|
+
throw new Error("Neither CRT nor JS SigV4a implementation is available. " +
|
|
65
|
+
"Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. " +
|
|
66
|
+
"For more information please go to " +
|
|
67
|
+
"https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");
|
|
68
|
+
}
|
|
69
|
+
if (CrtSignerV4 && typeof CrtSignerV4 === "function") {
|
|
70
|
+
this.sigv4aSigner = new CrtSignerV4({
|
|
71
|
+
...this.signerOptions,
|
|
72
|
+
signingAlgorithm: 1,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
else if (JsSigV4aSigner && typeof JsSigV4aSigner === "function") {
|
|
76
|
+
this.sigv4aSigner = new JsSigV4aSigner({
|
|
77
|
+
...this.signerOptions,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
throw new Error("Available SigV4a implementation is not a valid constructor. " +
|
|
82
|
+
"Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a." +
|
|
83
|
+
"For more information please go to " +
|
|
84
|
+
"https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");
|
|
85
|
+
}
|
|
48
86
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
87
|
+
else {
|
|
88
|
+
if (!JsSigV4aSigner || typeof JsSigV4aSigner !== "function") {
|
|
89
|
+
throw new Error("JS SigV4a implementation is not available or not a valid constructor. " +
|
|
90
|
+
"Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. " +
|
|
91
|
+
"You must also register the package by calling [require('@aws-sdk/signature-v4a');] " +
|
|
92
|
+
"or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. " +
|
|
55
93
|
"For more information please go to " +
|
|
56
|
-
"https://github.com/aws/aws-sdk-js-v3#
|
|
57
|
-
|
|
94
|
+
"https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");
|
|
95
|
+
}
|
|
96
|
+
this.sigv4aSigner = new JsSigV4aSigner({
|
|
97
|
+
...this.signerOptions,
|
|
98
|
+
});
|
|
58
99
|
}
|
|
59
|
-
this.sigv4aSigner = new CrtSignerV4({
|
|
60
|
-
...this.signerOptions,
|
|
61
|
-
signingAlgorithm: 1,
|
|
62
|
-
});
|
|
63
100
|
}
|
|
64
101
|
return this.sigv4aSigner;
|
|
65
102
|
}
|
package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export type SignatureV4MultiRegionInit = SignatureV4Init & SignatureV4CryptoInit
|
|
|
11
11
|
* dynamically, the signer wraps native module SigV4a signer and JS SigV4 signer. It signs the request with SigV4a
|
|
12
12
|
* algorithm if the request needs to be signed with `*` region. Otherwise, it signs the request with normal SigV4
|
|
13
13
|
* signer.
|
|
14
|
-
* Note that SigV4a signer is only supported in Node.js now because it depends on a native dependency.
|
|
15
14
|
* @internal
|
|
16
15
|
*/
|
|
17
16
|
export declare class SignatureV4MultiRegion implements RequestPresigner, RequestSigner {
|
|
@@ -22,8 +21,13 @@ export declare class SignatureV4MultiRegion implements RequestPresigner, Request
|
|
|
22
21
|
sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise<HttpRequest>;
|
|
23
22
|
/**
|
|
24
23
|
* Sign with alternate credentials to the ones provided in the constructor.
|
|
24
|
+
* Note: This is only supported for SigV4a when using the CRT implementation.
|
|
25
25
|
*/
|
|
26
26
|
signWithCredentials(requestToSign: HttpRequest, credentials: AwsCredentialIdentity, options?: RequestSigningArguments): Promise<HttpRequest>;
|
|
27
|
+
/**
|
|
28
|
+
* Presign a request.
|
|
29
|
+
* Note: This is only supported for SigV4a when using the CRT implementation.
|
|
30
|
+
*/
|
|
27
31
|
presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise<HttpRequest>;
|
|
28
32
|
presignWithCredentials(originalRequest: HttpRequest, credentials: AwsCredentialIdentity, options?: RequestPresigningArguments): Promise<HttpRequest>;
|
|
29
33
|
private getSigv4aSigner;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.803.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline signature-v4-multi-region",
|
|
7
7
|
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:browser": "node ./test-browser/browser-build/esbuild",
|
|
8
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
9
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
12
13
|
"test": "yarn g:vitest run",
|
|
14
|
+
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts",
|
|
15
|
+
"test:browser": "yarn build:browser && yarn g:vitest run -c vitest.config.browser.ts",
|
|
13
16
|
"test:watch": "yarn g:vitest watch"
|
|
14
17
|
},
|
|
15
18
|
"main": "./dist-cjs/index.js",
|
|
@@ -21,10 +24,10 @@
|
|
|
21
24
|
},
|
|
22
25
|
"license": "Apache-2.0",
|
|
23
26
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
27
|
+
"@aws-sdk/middleware-sdk-s3": "3.799.0",
|
|
25
28
|
"@aws-sdk/types": "3.775.0",
|
|
26
29
|
"@smithy/protocol-http": "^5.1.0",
|
|
27
|
-
"@smithy/signature-v4": "^5.0
|
|
30
|
+
"@smithy/signature-v4": "^5.1.0",
|
|
28
31
|
"@smithy/types": "^4.2.0",
|
|
29
32
|
"tslib": "^2.6.2"
|
|
30
33
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.803.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/nested-clients": "3.
|
|
30
|
+
"@aws-sdk/nested-clients": "3.803.0",
|
|
31
31
|
"@aws-sdk/types": "3.775.0",
|
|
32
32
|
"@smithy/property-provider": "^4.0.2",
|
|
33
33
|
"@smithy/shared-ini-file-loader": "^4.0.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.799.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
24
|
+
"@aws-sdk/middleware-user-agent": "3.799.0",
|
|
25
25
|
"@aws-sdk/types": "3.775.0",
|
|
26
26
|
"@smithy/node-config-provider": "^4.0.2",
|
|
27
27
|
"@smithy/types": "^4.2.0",
|
|
@@ -51,6 +51,30 @@ var getSmithyContext = /* @__PURE__ */ __name((context) => context[import_types.
|
|
|
51
51
|
|
|
52
52
|
// src/middleware-http-auth-scheme/httpAuthSchemeMiddleware.ts
|
|
53
53
|
var import_util_middleware = require("@smithy/util-middleware");
|
|
54
|
+
|
|
55
|
+
// src/middleware-http-auth-scheme/resolveAuthOptions.ts
|
|
56
|
+
var resolveAuthOptions = /* @__PURE__ */ __name((candidateAuthOptions, authSchemePreference) => {
|
|
57
|
+
if (!authSchemePreference || authSchemePreference.length === 0) {
|
|
58
|
+
return candidateAuthOptions;
|
|
59
|
+
}
|
|
60
|
+
const preferredAuthOptions = [];
|
|
61
|
+
for (const preferredSchemeName of authSchemePreference) {
|
|
62
|
+
for (const candidateAuthOption of candidateAuthOptions) {
|
|
63
|
+
const candidateAuthSchemeName = candidateAuthOption.schemeId.split("#")[1];
|
|
64
|
+
if (candidateAuthSchemeName === preferredSchemeName) {
|
|
65
|
+
preferredAuthOptions.push(candidateAuthOption);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
for (const candidateAuthOption of candidateAuthOptions) {
|
|
70
|
+
if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) {
|
|
71
|
+
preferredAuthOptions.push(candidateAuthOption);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return preferredAuthOptions;
|
|
75
|
+
}, "resolveAuthOptions");
|
|
76
|
+
|
|
77
|
+
// src/middleware-http-auth-scheme/httpAuthSchemeMiddleware.ts
|
|
54
78
|
function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
55
79
|
const map = /* @__PURE__ */ new Map();
|
|
56
80
|
for (const scheme of httpAuthSchemes) {
|
|
@@ -63,10 +87,12 @@ var httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config, mwOptions) => (ne
|
|
|
63
87
|
const options = config.httpAuthSchemeProvider(
|
|
64
88
|
await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)
|
|
65
89
|
);
|
|
90
|
+
const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : [];
|
|
91
|
+
const resolvedOptions = resolveAuthOptions(options, authSchemePreference);
|
|
66
92
|
const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
|
|
67
93
|
const smithyContext = (0, import_util_middleware.getSmithyContext)(context);
|
|
68
94
|
const failureReasons = [];
|
|
69
|
-
for (const option of
|
|
95
|
+
for (const option of resolvedOptions) {
|
|
70
96
|
const scheme = authSchemes.get(option.schemeId);
|
|
71
97
|
if (!scheme) {
|
|
72
98
|
failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -702,7 +702,10 @@ var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body)
|
|
|
702
702
|
port,
|
|
703
703
|
method: "POST",
|
|
704
704
|
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
705
|
-
headers
|
|
705
|
+
headers: {
|
|
706
|
+
// intentional copy.
|
|
707
|
+
...headers
|
|
708
|
+
}
|
|
706
709
|
};
|
|
707
710
|
if (resolvedHostname !== void 0) {
|
|
708
711
|
contents.hostname = resolvedHostname;
|
package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
2
2
|
import { getSmithyContext } from "@smithy/util-middleware";
|
|
3
|
+
import { resolveAuthOptions } from "./resolveAuthOptions";
|
|
3
4
|
function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
4
5
|
const map = new Map();
|
|
5
6
|
for (const scheme of httpAuthSchemes) {
|
|
@@ -9,10 +10,12 @@ function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
|
9
10
|
}
|
|
10
11
|
export const httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => {
|
|
11
12
|
const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input));
|
|
13
|
+
const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : [];
|
|
14
|
+
const resolvedOptions = resolveAuthOptions(options, authSchemePreference);
|
|
12
15
|
const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
|
|
13
16
|
const smithyContext = getSmithyContext(context);
|
|
14
17
|
const failureReasons = [];
|
|
15
|
-
for (const option of
|
|
18
|
+
for (const option of resolvedOptions) {
|
|
16
19
|
const scheme = authSchemes.get(option.schemeId);
|
|
17
20
|
if (!scheme) {
|
|
18
21
|
failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
|
|
2
|
+
if (!authSchemePreference || authSchemePreference.length === 0) {
|
|
3
|
+
return candidateAuthOptions;
|
|
4
|
+
}
|
|
5
|
+
const preferredAuthOptions = [];
|
|
6
|
+
for (const preferredSchemeName of authSchemePreference) {
|
|
7
|
+
for (const candidateAuthOption of candidateAuthOptions) {
|
|
8
|
+
const candidateAuthSchemeName = candidateAuthOption.schemeId.split("#")[1];
|
|
9
|
+
if (candidateAuthSchemeName === preferredSchemeName) {
|
|
10
|
+
preferredAuthOptions.push(candidateAuthOption);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
for (const candidateAuthOption of candidateAuthOptions) {
|
|
15
|
+
if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) {
|
|
16
|
+
preferredAuthOptions.push(candidateAuthOption);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return preferredAuthOptions;
|
|
20
|
+
};
|
|
@@ -67,7 +67,9 @@ export const buildHttpRpcRequest = async (context, headers, path, resolvedHostna
|
|
|
67
67
|
port,
|
|
68
68
|
method: "POST",
|
|
69
69
|
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
70
|
-
headers
|
|
70
|
+
headers: {
|
|
71
|
+
...headers,
|
|
72
|
+
},
|
|
71
73
|
};
|
|
72
74
|
if (resolvedHostname !== undefined) {
|
|
73
75
|
contents.hostname = resolvedHostname;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, IdentityProviderConfig, SelectedHttpAuthScheme, SerializeMiddleware, SMITHY_CONTEXT_KEY } from "@smithy/types";
|
|
1
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, IdentityProviderConfig, Provider, SelectedHttpAuthScheme, SerializeMiddleware, SMITHY_CONTEXT_KEY } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export interface PreviouslyResolved<TParameters extends HttpAuthSchemeParameters> {
|
|
6
|
+
authSchemePreference?: Provider<string[]>;
|
|
6
7
|
httpAuthSchemes: HttpAuthScheme[];
|
|
7
8
|
httpAuthSchemeProvider: HttpAuthSchemeProvider<TParameters>;
|
|
8
9
|
}
|
package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/resolveAuthOptions.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpAuthOption } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves list of auth options based on the supported ones, vs the preference list.
|
|
4
|
+
*
|
|
5
|
+
* @param candidateAuthOptions list of supported auth options selected by the standard
|
|
6
|
+
* resolution process (model-based, endpoints 2.0, etc.)
|
|
7
|
+
* @param authSchemePreference list of auth schemes preferred by user.
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const resolveAuthOptions: (candidateAuthOptions: HttpAuthOption[], authSchemePreference: string[]) => HttpAuthOption[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, IdentityProviderConfig, SelectedHttpAuthScheme, SerializeMiddleware, SMITHY_CONTEXT_KEY } from "@smithy/types";
|
|
1
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, IdentityProviderConfig, Provider, SelectedHttpAuthScheme, SerializeMiddleware, SMITHY_CONTEXT_KEY } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export interface PreviouslyResolved<TParameters extends HttpAuthSchemeParameters> {
|
|
6
|
+
authSchemePreference?: Provider<string[]>;
|
|
6
7
|
httpAuthSchemes: HttpAuthScheme[];
|
|
7
8
|
httpAuthSchemeProvider: HttpAuthSchemeProvider<TParameters>;
|
|
8
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpAuthOption } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves list of auth options based on the supported ones, vs the preference list.
|
|
4
|
+
*
|
|
5
|
+
* @param candidateAuthOptions list of supported auth options selected by the standard
|
|
6
|
+
* resolution process (model-based, endpoints 2.0, etc.)
|
|
7
|
+
* @param authSchemePreference list of auth schemes preferred by user.
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const resolveAuthOptions: (candidateAuthOptions: HttpAuthOption[], authSchemePreference: string[]) => HttpAuthOption[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-endpoint",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/core": "^3.
|
|
27
|
+
"@smithy/core": "^3.3.1",
|
|
28
28
|
"@smithy/middleware-serde": "^4.0.3",
|
|
29
29
|
"@smithy/node-config-provider": "^4.0.2",
|
|
30
30
|
"@smithy/shared-ini-file-loader": "^4.0.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@smithy/node-config-provider": "^4.0.2",
|
|
37
37
|
"@smithy/protocol-http": "^5.1.0",
|
|
38
|
-
"@smithy/service-error-classification": "^4.0.
|
|
39
|
-
"@smithy/smithy-client": "^4.2.
|
|
38
|
+
"@smithy/service-error-classification": "^4.0.3",
|
|
39
|
+
"@smithy/smithy-client": "^4.2.2",
|
|
40
40
|
"@smithy/types": "^4.2.0",
|
|
41
41
|
"@smithy/util-middleware": "^4.0.2",
|
|
42
|
-
"@smithy/util-retry": "^4.0.
|
|
42
|
+
"@smithy/util-retry": "^4.0.3",
|
|
43
43
|
"tslib": "^2.6.2",
|
|
44
44
|
"uuid": "^9.0.1"
|
|
45
45
|
},
|
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
|
+
isBrowserNetworkError: () => isBrowserNetworkError,
|
|
23
24
|
isClockSkewCorrectedError: () => isClockSkewCorrectedError,
|
|
24
25
|
isClockSkewError: () => isClockSkewError,
|
|
25
26
|
isRetryableByTrait: () => isRetryableByTrait,
|
|
@@ -63,8 +64,27 @@ var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMED
|
|
|
63
64
|
var isRetryableByTrait = /* @__PURE__ */ __name((error) => error.$retryable !== void 0, "isRetryableByTrait");
|
|
64
65
|
var isClockSkewError = /* @__PURE__ */ __name((error) => CLOCK_SKEW_ERROR_CODES.includes(error.name), "isClockSkewError");
|
|
65
66
|
var isClockSkewCorrectedError = /* @__PURE__ */ __name((error) => error.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError");
|
|
67
|
+
var isBrowserNetworkError = /* @__PURE__ */ __name((error) => {
|
|
68
|
+
const errorMessages = /* @__PURE__ */ new Set([
|
|
69
|
+
"Failed to fetch",
|
|
70
|
+
// Chrome
|
|
71
|
+
"NetworkError when attempting to fetch resource",
|
|
72
|
+
// Firefox
|
|
73
|
+
"The Internet connection appears to be offline",
|
|
74
|
+
// Safari 16
|
|
75
|
+
"Load failed",
|
|
76
|
+
// Safari 17+
|
|
77
|
+
"Network request failed"
|
|
78
|
+
// `cross-fetch`
|
|
79
|
+
]);
|
|
80
|
+
const isValid = error && error instanceof TypeError;
|
|
81
|
+
if (!isValid) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return errorMessages.has(error.message);
|
|
85
|
+
}, "isBrowserNetworkError");
|
|
66
86
|
var isThrottlingError = /* @__PURE__ */ __name((error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true, "isThrottlingError");
|
|
67
|
-
var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
|
|
87
|
+
var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
|
|
68
88
|
var isServerError = /* @__PURE__ */ __name((error) => {
|
|
69
89
|
if (error.$metadata?.httpStatusCode !== void 0) {
|
|
70
90
|
const statusCode = error.$metadata.httpStatusCode;
|
|
@@ -81,6 +101,7 @@ var isServerError = /* @__PURE__ */ __name((error) => {
|
|
|
81
101
|
isRetryableByTrait,
|
|
82
102
|
isClockSkewError,
|
|
83
103
|
isClockSkewCorrectedError,
|
|
104
|
+
isBrowserNetworkError,
|
|
84
105
|
isThrottlingError,
|
|
85
106
|
isTransientError,
|
|
86
107
|
isServerError
|
|
@@ -2,6 +2,20 @@ import { CLOCK_SKEW_ERROR_CODES, NODEJS_TIMEOUT_ERROR_CODES, THROTTLING_ERROR_CO
|
|
|
2
2
|
export const isRetryableByTrait = (error) => error.$retryable !== undefined;
|
|
3
3
|
export const isClockSkewError = (error) => CLOCK_SKEW_ERROR_CODES.includes(error.name);
|
|
4
4
|
export const isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
|
|
5
|
+
export const isBrowserNetworkError = (error) => {
|
|
6
|
+
const errorMessages = new Set([
|
|
7
|
+
"Failed to fetch",
|
|
8
|
+
"NetworkError when attempting to fetch resource",
|
|
9
|
+
"The Internet connection appears to be offline",
|
|
10
|
+
"Load failed",
|
|
11
|
+
"Network request failed",
|
|
12
|
+
]);
|
|
13
|
+
const isValid = error && error instanceof TypeError;
|
|
14
|
+
if (!isValid) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
return errorMessages.has(error.message);
|
|
18
|
+
};
|
|
5
19
|
export const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 ||
|
|
6
20
|
THROTTLING_ERROR_CODES.includes(error.name) ||
|
|
7
21
|
error.$retryable?.throttling == true;
|
|
@@ -9,6 +23,7 @@ export const isTransientError = (error, depth = 0) => isClockSkewCorrectedError(
|
|
|
9
23
|
TRANSIENT_ERROR_CODES.includes(error.name) ||
|
|
10
24
|
NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
|
|
11
25
|
TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
|
|
26
|
+
isBrowserNetworkError(error) ||
|
|
12
27
|
(error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
|
|
13
28
|
export const isServerError = (error) => {
|
|
14
29
|
if (error.$metadata?.httpStatusCode !== undefined) {
|
|
@@ -8,6 +8,11 @@ export declare const isClockSkewError: (error: SdkError) => boolean;
|
|
|
8
8
|
* @returns whether the error resulted in a systemClockOffset aka clock skew correction.
|
|
9
9
|
*/
|
|
10
10
|
export declare const isClockSkewCorrectedError: (error: SdkError) => true | undefined;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare const isBrowserNetworkError: (error: SdkError) => boolean;
|
|
11
16
|
export declare const isThrottlingError: (error: SdkError) => boolean;
|
|
12
17
|
/**
|
|
13
18
|
* Though NODEJS_TIMEOUT_ERROR_CODES are platform specific, they are
|
|
@@ -8,6 +8,11 @@ export declare const isClockSkewError: (error: SdkError) => boolean;
|
|
|
8
8
|
* @returns whether the error resulted in a systemClockOffset aka clock skew correction.
|
|
9
9
|
*/
|
|
10
10
|
export declare const isClockSkewCorrectedError: (error: SdkError) => true | undefined;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare const isBrowserNetworkError: (error: SdkError) => boolean;
|
|
11
16
|
export declare const isThrottlingError: (error: SdkError) => boolean;
|
|
12
17
|
/**
|
|
13
18
|
* Though NODEJS_TIMEOUT_ERROR_CODES are platform specific, they are
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/service-error-classification",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline service-error-classification",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./index.js");
|