@cdklabs/cdk-ecs-codedeploy 0.0.421 → 0.0.422
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 +4806 -80
- package/.jsii.tabl.json +1 -1
- package/API.md +96 -10
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-deployment-provider/is-complete-function.js +2 -2
- package/lib/ecs-deployment-provider/on-event-function.js +2 -2
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws/lambda-invoke-store/LICENSE +175 -0
- package/node_modules/@aws/lambda-invoke-store/README.md +198 -0
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +119 -0
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +117 -0
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.benchmark.d.ts +1 -0
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +50 -0
- package/node_modules/@aws/lambda-invoke-store/package.json +55 -0
- package/node_modules/@aws-sdk/client-codedeploy/README.md +1 -52
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +4903 -6171
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.browser.js +3 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +5 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +8 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +4 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationRevisionsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentGroupsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentInstancesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentTargetsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ContinueDeploymentCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateApplicationCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentConfigCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteApplicationCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentConfigCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteGitHubAccountTokenCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteResourcesByExternalIdCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationRevisionCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentConfigCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentInstanceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentTargetCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetOnPremisesInstanceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationRevisionsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentConfigsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentGroupsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentInstancesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentTargetsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListOnPremisesInstancesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterApplicationRevisionCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterOnPremisesInstanceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/StopDeploymentCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/TagResourceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UntagResourceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateApplicationCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateDeploymentGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/index.js +4 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/enums.js +221 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/errors.js +1321 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/models_0.js +1 -1542
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.browser.js +3 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +6 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.shared.js +8 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/schemas/schemas_0.js +2141 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/waiters/waitForDeploymentSuccessful.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeploy.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +10 -10
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/auth/httpAuthSchemeProvider.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/EndpointParameters.d.ts +13 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/endpointResolver.d.ts +5 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/extensionConfiguration.d.ts +4 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/index.d.ts +4 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/CodeDeployServiceException.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/enums.d.ts +493 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/errors.d.ts +1395 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/models_0.d.ts +116 -2003
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/Interfaces.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationRevisionsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentConfigsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentGroupsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentInstancesPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +7 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +8 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +7 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.shared.d.ts +7 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeExtensions.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/schemas/schemas_0.d.ts +299 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/index.d.ts +4 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/CodeDeployServiceException.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/enums.d.ts +281 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/errors.d.ts +964 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/models_0.d.ts +36 -1245
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +10 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/schemas/schemas_0.d.ts +303 -0
- package/node_modules/@aws-sdk/client-codedeploy/package.json +44 -41
- package/node_modules/@aws-sdk/client-sso/README.md +1 -9
- package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +27 -20
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +405 -610
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js +3 -4
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +5 -8
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +4 -2
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +27 -20
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/index.js +3 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/models/errors.js +49 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +1 -75
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js +3 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +6 -9
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +152 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +10 -10
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +13 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/endpointResolver.d.ts +5 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/extensionConfiguration.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +3 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/models/SSOServiceException.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/models/errors.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -77
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +7 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +7 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +7 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +8 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeExtensions.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +20 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +3 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/SSOServiceException.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/errors.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -48
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +9 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
- package/node_modules/@aws-sdk/client-sso/package.json +40 -39
- package/node_modules/@aws-sdk/core/LICENSE +201 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +2193 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +36 -75
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1803 -1666
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +122 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js +23 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +49 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +7 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +7 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +36 -44
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +25 -61
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +70 -37
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +115 -61
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +136 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +31 -42
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +38 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +40 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +29 -73
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +17 -13
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +38 -21
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +2 -13
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +61 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +23 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +10 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +10 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +13 -4
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +17 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +3 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +19 -6
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +27 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +10 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +11 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +47 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +33 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +13 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +13 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +15 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +8 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +10 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +17 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +4 -1
- package/node_modules/@aws-sdk/core/package.json +16 -18
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
- package/node_modules/@aws-sdk/credential-provider-env/package.json +8 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +13 -12
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +207 -259
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +3 -10
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js +12 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +4 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveLoginCredentials.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +6 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +5 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveLoginCredentials.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +3 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveWebIdentityCredentials.d.ts +3 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +19 -17
- package/node_modules/@aws-sdk/credential-provider-login/README.md +7 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +286 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +262 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js +21 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/types.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/LoginCredentialsFetcher.d.ts +42 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/fromLoginCredentials.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/index.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +24 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/fromLoginCredentials.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/types.d.ts +39 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/types.d.ts +59 -0
- package/node_modules/@aws-sdk/credential-provider-login/package.json +68 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +127 -124
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +55 -44
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +54 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/runtime/memoize-chain.d.ts +19 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +19 -17
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -106
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +9 -8
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +179 -233
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +10 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +9 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +11 -10
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +5 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +10 -8
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
- package/node_modules/@aws-sdk/middleware-host-header/package.json +9 -8
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
- package/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-logger/package.json +8 -7
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +20 -67
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +33 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.native.js +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js +7 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js +7 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +2 -37
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.browser.js +1 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js +29 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.native.js +1 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +2 -18
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/configuration.d.ts +3 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/getRecursionDetectionPlugin.d.ts +4 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +2 -18
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.native.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +15 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +1 -1
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +12 -11
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +344 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.browser.js +39 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +53 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +47 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +481 -854
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +460 -931
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.browser.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +16 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +14 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +57 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +34 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +48 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +43 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +114 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +4 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +181 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +1 -190
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +133 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +4 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +3 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +3 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +22 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +85 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js +1 -102
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +186 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +189 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +157 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +17 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +14 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +34 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +102 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +142 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +63 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +63 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +62 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +11 -11
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +13 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/endpointResolver.d.ts +5 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/extensionConfiguration.d.ts +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +5 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/enums.d.ts +25 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +279 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +1 -279
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +7 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +7 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +7 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeExtensions.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +16 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +10 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +8 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +10 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +13 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/endpointResolver.d.ts +5 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/extensionConfiguration.d.ts +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +107 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +7 -131
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +7 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +8 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +7 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeExtensions.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +20 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +22 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +123 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +51 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/index.d.ts +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +10 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +35 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +26 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +125 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +118 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +129 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +58 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +16 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/enums.d.ts +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +105 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -105
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +9 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +9 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +9 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +20 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STSClient.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/index.d.ts +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +54 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +0 -64
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +9 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +9 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +9 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +24 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +49 -37
- package/node_modules/@aws-sdk/nested-clients/signin.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/signin.js +5 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +44 -100
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +20 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.native.js +6 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +2 -1
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/awsRegionConfig.js +2 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.browser.js +3 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.js +16 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.native.js +3 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/extensions/index.d.ts +2 -2
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +2 -1
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/awsRegionConfig.d.ts +15 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.d.ts +14 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.native.d.ts +4 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +2 -1
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/awsRegionConfig.d.ts +11 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.d.ts +7 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.native.d.ts +1 -0
- package/node_modules/@aws-sdk/region-config-resolver/package.json +13 -10
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +143 -223
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +2 -9
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +4 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +3 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +3 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +3 -1
- package/node_modules/@aws-sdk/token-providers/package.json +13 -11
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +2 -0
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +2 -0
- package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +2 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +2 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +1 -0
- package/node_modules/@aws-sdk/types/package.json +5 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +398 -466
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +43 -37
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +43 -37
- package/node_modules/@aws-sdk/util-endpoints/package.json +10 -10
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +10 -38
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +6 -5
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -7
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -155
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +18 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +57 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +15 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +4 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.browser.d.ts +9 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +4 -0
- package/node_modules/@aws-sdk/xml-builder/package.json +13 -4
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +28 -80
- package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +1 -3
- package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +2 -2
- package/node_modules/@smithy/abort-controller/package.json +3 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +172 -214
- package/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js +15 -0
- package/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +5 -5
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +2 -2
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionConfig/checkRegion.d.ts +9 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +3 -3
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/checkRegion.d.ts +9 -0
- package/node_modules/@smithy/config-resolver/package.json +7 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +308 -413
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1010 -939
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +251 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +808 -799
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +585 -807
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +662 -720
- package/node_modules/@smithy/core/dist-es/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +109 -54
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +41 -19
- package/node_modules/@smithy/core/dist-es/submodules/cbor/byte-printer.js +35 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +18 -18
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +246 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +106 -18
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +52 -101
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +38 -12
- package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +9 -7
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +23 -21
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +16 -12
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +27 -11
- package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +12 -24
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +11 -22
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +13 -23
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +149 -195
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +13 -13
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +17 -3
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +17 -22
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +13 -29
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +14 -14
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -53
- package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +101 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +6 -24
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -1
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +4 -2
- package/node_modules/@smithy/core/dist-types/getSmithyContext.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/resolveAuthOptions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-signing/getHttpSigningMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-signing/httpSigningMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/normalizeProvider.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +18 -14
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +3 -3
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +60 -0
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +48 -5
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/collect-stream-body.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +7 -4
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +6 -3
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +15 -6
- package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +11 -15
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +6 -6
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +6 -10
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +38 -30
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +6 -3
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +7 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +12 -7
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +6 -7
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +4 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/serde/generateIdempotencyToken.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +18 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +3 -3
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +60 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +48 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +6 -3
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +6 -3
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +14 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +11 -15
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +6 -6
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +6 -10
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +38 -30
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +6 -3
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +7 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +11 -6
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +6 -10
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +3 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/memoizeIdentityProvider.d.ts +1 -1
- package/node_modules/@smithy/core/event-streams.d.ts +7 -0
- package/node_modules/@smithy/core/event-streams.js +6 -0
- package/node_modules/@smithy/core/package.json +23 -10
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +340 -413
- package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +2 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +2 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +3 -3
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +2 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +2 -2
- package/node_modules/@smithy/credential-provider-imds/package.json +6 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +190 -238
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -0
- package/node_modules/@smithy/fetch-http-handler/dist-types/create-request.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +3 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +2 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +9 -8
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +38 -63
- package/node_modules/@smithy/hash-node/dist-es/index.js +3 -0
- package/node_modules/@smithy/hash-node/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/hash-node/package.json +5 -4
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +7 -38
- package/node_modules/@smithy/invalid-dependency/dist-types/invalidProvider.d.ts +1 -1
- package/node_modules/@smithy/invalid-dependency/package.json +3 -2
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +4 -30
- package/node_modules/@smithy/is-array-buffer/package.json +5 -4
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +39 -64
- package/node_modules/@smithy/middleware-content-length/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/middleware-content-length/package.json +6 -5
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +226 -276
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +10 -2
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/createConfigValueProvider.d.ts +2 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/createConfigValueProvider.d.ts +2 -1
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +327 -394
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +1 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +2 -2
- package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +1 -0
- package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +6 -2
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts +4 -3
- package/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +2 -1
- package/node_modules/@smithy/middleware-retry/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/util.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/package.json +13 -13
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +92 -118
- package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +3 -0
- package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/package.json +6 -5
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +274 -302
- package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +1 -1
- package/node_modules/@smithy/middleware-stack/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/middleware-stack/package.json +3 -2
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +51 -98
- package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +4 -4
- package/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +1 -1
- package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +1 -1
- package/node_modules/@smithy/node-config-provider/package.json +5 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +694 -770
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +30 -16
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -2
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +3 -1
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -4
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +3 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -3
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +3 -2
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +5 -4
- package/node_modules/@smithy/node-http-handler/package.json +6 -5
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +105 -158
- package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +1 -1
- package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +2 -1
- package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +1 -1
- package/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +2 -1
- package/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +2 -1
- package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +2 -1
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +2 -1
- package/node_modules/@smithy/property-provider/package.json +3 -2
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +154 -247
- package/node_modules/@smithy/protocol-http/dist-es/Field.js +3 -0
- package/node_modules/@smithy/protocol-http/dist-es/Fields.js +2 -1
- package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +11 -0
- package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +4 -0
- package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +2 -2
- package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/package.json +3 -2
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +21 -47
- package/node_modules/@smithy/querystring-builder/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/querystring-builder/package.json +4 -3
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +22 -48
- package/node_modules/@smithy/querystring-parser/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/querystring-parser/package.json +3 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +70 -103
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +3 -2
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/service-error-classification/package.json +3 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +7 -4
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +177 -189
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +5 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +3 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +4 -4
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +12 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +7 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +3 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +2 -5
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +21 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +9 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +7 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +3 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/readFile.d.ts +21 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/package.json +6 -5
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +525 -651
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +1 -1
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +6 -0
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -2
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4Base.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/headerUtil.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +2 -1
- package/node_modules/@smithy/signature-v4/package.json +9 -8
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +563 -714
- package/node_modules/@smithy/smithy-client/dist-es/client.js +10 -1
- package/node_modules/@smithy/smithy-client/dist-es/command.js +23 -20
- package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +4 -0
- package/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js +34 -0
- package/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +33 -7
- package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
- package/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/schemaLogFilter.d.ts +9 -0
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +33 -7
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/schemaLogFilter.d.ts +9 -0
- package/node_modules/@smithy/smithy-client/package.json +8 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +80 -133
- package/node_modules/@smithy/types/dist-es/index.js +3 -0
- package/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +4 -4
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/checksum.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/client.d.ts +4 -4
- package/node_modules/@smithy/types/dist-types/command.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/encode.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/eventStream.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +19 -12
- package/node_modules/@smithy/types/dist-types/http.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/retry.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +143 -0
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +33 -58
- package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +97 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +5 -5
- package/node_modules/@smithy/types/dist-types/shapes.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/signature.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/stream.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +149 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +37 -62
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +116 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/uri.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/util.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/waiter.d.ts +1 -1
- package/node_modules/@smithy/types/package.json +2 -1
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +20 -46
- package/node_modules/@smithy/url-parser/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/url-parser/package.json +4 -3
- package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +16 -24
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +1 -2
- package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
- package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
- package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
- package/node_modules/@smithy/util-base64/package.json +7 -6
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +26 -53
- package/node_modules/@smithy/util-body-length-browser/package.json +5 -4
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +29 -50
- package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
- package/node_modules/@smithy/util-body-length-node/package.json +5 -4
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +17 -44
- package/node_modules/@smithy/util-buffer-from/package.json +6 -5
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +26 -60
- package/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts +1 -1
- package/node_modules/@smithy/util-config-provider/dist-types/numberSelector.d.ts +1 -1
- package/node_modules/@smithy/util-config-provider/package.json +5 -4
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +9 -22
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +13 -12
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +65 -110
- package/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +435 -507
- package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +3 -2
- package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
- package/node_modules/@smithy/util-endpoints/dist-types/debug/toDebugString.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/lib/parseURL.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +7 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +7 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/package.json +6 -5
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +29 -58
- package/node_modules/@smithy/util-hex-encoding/package.json +5 -4
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +11 -41
- package/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts +1 -1
- package/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts +1 -1
- package/node_modules/@smithy/util-middleware/package.json +3 -2
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +260 -340
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +4 -1
- package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +1 -0
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +17 -8
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +5 -3
- package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +2 -2
- package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/package.json +7 -4
- package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +3 -2
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +7 -3
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +2 -3
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +2 -3
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +4 -8
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +78 -97
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +3 -7
- package/node_modules/@smithy/util-stream/dist-es/ByteArrayCollector.js +3 -2
- package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +12 -7
- package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +5 -0
- package/node_modules/@smithy/util-stream/dist-es/headStream.js +3 -6
- package/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +3 -2
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +3 -3
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +2 -1
- package/node_modules/@smithy/util-stream/package.json +13 -12
- package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +6 -40
- package/node_modules/@smithy/util-uri-escape/package.json +5 -4
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +27 -60
- package/node_modules/@smithy/util-utf8/package.json +6 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +164 -189
- package/node_modules/@smithy/util-waiter/dist-es/circularReplacer.js +12 -0
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +2 -1
- package/node_modules/@smithy/util-waiter/dist-es/waiter.js +4 -3
- package/node_modules/@smithy/util-waiter/dist-types/circularReplacer.d.ts +6 -0
- package/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +2 -2
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/circularReplacer.d.ts +6 -0
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/utils/validate.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/package.json +4 -3
- package/node_modules/@smithy/uuid/LICENSE +201 -0
- package/node_modules/@smithy/uuid/README.md +10 -0
- package/node_modules/@smithy/uuid/dist-cjs/index.js +36 -0
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.native.js +4 -0
- package/node_modules/@smithy/uuid/dist-es/index.js +1 -0
- package/node_modules/@smithy/uuid/dist-es/randomUUID.browser.js +1 -0
- package/node_modules/@smithy/uuid/dist-es/randomUUID.js +2 -0
- package/node_modules/@smithy/uuid/dist-es/randomUUID.native.js +1 -0
- package/node_modules/@smithy/uuid/dist-es/v4.js +31 -0
- package/node_modules/@smithy/uuid/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/randomUUID.browser.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/randomUUID.d.ts +2 -0
- package/node_modules/@smithy/uuid/dist-types/randomUUID.native.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.browser.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.d.ts +2 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.native.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/v4.d.ts +19 -0
- package/node_modules/@smithy/uuid/dist-types/v4.d.ts +19 -0
- package/node_modules/@smithy/uuid/package.json +66 -0
- package/node_modules/bowser/CHANGELOG.md +1 -1
- package/node_modules/bowser/README.md +2 -4
- package/node_modules/bowser/bundled.js +1 -1
- package/node_modules/bowser/es5.js +1 -1
- package/node_modules/bowser/index.d.ts +71 -6
- package/node_modules/bowser/package.json +8 -3
- package/node_modules/bowser/src/constants.js +71 -18
- package/node_modules/bowser/src/parser-browsers.js +394 -0
- package/node_modules/bowser/src/parser-os.js +12 -0
- package/node_modules/bowser/src/parser-platforms.js +259 -1
- package/node_modules/bowser/src/parser.js +20 -5
- package/node_modules/bowser/src/utils.js +33 -15
- package/node_modules/strnum/README.md +6 -0
- package/node_modules/strnum/package.json +1 -1
- package/node_modules/strnum/strnum.js +1 -1
- package/package.json +12 -12
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/index.js +0 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +0 -2614
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/protocols/Aws_json1_1.d.ts +0 -425
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -569
- package/node_modules/@aws-sdk/client-sso/dist-es/models/index.js +0 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +0 -210
- package/node_modules/@aws-sdk/client-sso/dist-types/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -255
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js +0 -528
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/protocols/Aws_query.d.ts +0 -20
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/protocols/Aws_query.d.ts +0 -29
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js +0 -12
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js +0 -6
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js +0 -2
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js +0 -1
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +0 -24
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/config.d.ts +0 -17
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/getRealRegion.d.ts +0 -4
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/index.d.ts +0 -8
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/isFipsRegion.d.ts +0 -4
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +0 -37
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +0 -8
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +0 -1
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +0 -2
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +0 -1
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +0 -14
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/protocols/requestBuilder.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -1
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +0 -1
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointRequiredConfig.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/util.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/CHANGELOG.md +0 -274
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/CONTRIBUTING.md +0 -18
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/README.md +0 -466
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/bin/uuid +0 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/index.js +0 -9
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/md5.js +0 -215
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/native.js +0 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/parse.js +0 -35
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/rng.js +0 -18
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v1.js +0 -95
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v3.js +0 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v35.js +0 -66
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v4.js +0 -29
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v5.js +0 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/validate.js +0 -7
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/version.js +0 -11
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/index.js +0 -9
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/md5.js +0 -13
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/native.js +0 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/parse.js +0 -35
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/regex.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/rng.js +0 -12
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/sha1.js +0 -13
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/stringify.js +0 -33
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v1.js +0 -95
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v35.js +0 -66
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v4.js +0 -29
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/validate.js +0 -7
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/version.js +0 -11
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/index.js +0 -79
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/md5-browser.js +0 -223
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/md5.js +0 -23
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native-browser.js +0 -11
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native.js +0 -15
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/nil.js +0 -8
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/parse.js +0 -45
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/regex.js +0 -8
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng-browser.js +0 -25
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng.js +0 -24
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/sha1-browser.js +0 -104
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/sha1.js +0 -23
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/stringify.js +0 -44
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/uuid-bin.js +0 -85
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v1.js +0 -107
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v3.js +0 -16
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v35.js +0 -80
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v4.js +0 -43
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v5.js +0 -16
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/validate.js +0 -17
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/version.js +0 -21
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/package.json +0 -135
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/wrapper.mjs +0 -10
- package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +0 -1
- package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +0 -1
- package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/getSelectorName.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/chain.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -13
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -9
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -5
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -5
- package/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/client.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/command.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/is-serializable-header-value.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/client.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/command.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/http.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/response.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/util.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +0 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +0 -1
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +0 -1
- package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +0 -1
- package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/config.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +0 -1
- package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +0 -1
- package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
- package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +0 -1
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +0 -1
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/CHANGELOG.md +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/LICENSE +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/README.md +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxbuilder.min.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxbuilder.min.js.map +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.cjs +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.d.cts +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.min.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.min.js.map +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxparser.min.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxparser.min.js.map +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxvalidator.min.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxvalidator.min.js.map +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/package.json +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/cli.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/man.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/read.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/fxp.d.ts +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/fxp.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/ignoreAttributes.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/util.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/CharsSymbol.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/EntitiesParser.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OptionsBuilder.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsArrBuilder.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsObjBuilder.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/Report.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/TagPath.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/TagPathMatcher.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XMLParser.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/Xml2JsParser.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XmlPartReader.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XmlSpecialTagsReader.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/inputSource/BufferSource.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/inputSource/StringSource.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/EntitiesParser.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/booleanParser.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/booleanParserExt.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/currency.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/join.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/number.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/trim.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/validator.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/json2xml.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/orderedJs2Xml.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/prettifyJs2Xml.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/DocTypeReader.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/OptionsBuilder.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/OrderedObjParser.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/XMLParser.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/node2json.js +0 -0
- /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/xmlNode.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
- /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
|
@@ -1,1711 +1,1848 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
AwsRestJsonProtocol: () => AwsRestJsonProtocol,
|
|
30
|
-
AwsRestXmlProtocol: () => AwsRestXmlProtocol,
|
|
31
|
-
JsonCodec: () => JsonCodec,
|
|
32
|
-
JsonShapeDeserializer: () => JsonShapeDeserializer,
|
|
33
|
-
JsonShapeSerializer: () => JsonShapeSerializer,
|
|
34
|
-
XmlCodec: () => XmlCodec,
|
|
35
|
-
XmlShapeDeserializer: () => XmlShapeDeserializer,
|
|
36
|
-
XmlShapeSerializer: () => XmlShapeSerializer,
|
|
37
|
-
_toBool: () => _toBool,
|
|
38
|
-
_toNum: () => _toNum,
|
|
39
|
-
_toStr: () => _toStr,
|
|
40
|
-
awsExpectUnion: () => awsExpectUnion,
|
|
41
|
-
loadRestJsonErrorCode: () => loadRestJsonErrorCode,
|
|
42
|
-
loadRestXmlErrorCode: () => loadRestXmlErrorCode,
|
|
43
|
-
parseJsonBody: () => parseJsonBody,
|
|
44
|
-
parseJsonErrorBody: () => parseJsonErrorBody,
|
|
45
|
-
parseXmlBody: () => parseXmlBody,
|
|
46
|
-
parseXmlErrorBody: () => parseXmlErrorBody
|
|
47
|
-
});
|
|
48
|
-
module.exports = __toCommonJS(index_exports);
|
|
3
|
+
var cbor = require('@smithy/core/cbor');
|
|
4
|
+
var schema = require('@smithy/core/schema');
|
|
5
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
6
|
+
var protocols = require('@smithy/core/protocols');
|
|
7
|
+
var serde = require('@smithy/core/serde');
|
|
8
|
+
var utilBase64 = require('@smithy/util-base64');
|
|
9
|
+
var utilUtf8 = require('@smithy/util-utf8');
|
|
10
|
+
var xmlBuilder = require('@aws-sdk/xml-builder');
|
|
49
11
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
12
|
+
class ProtocolLib {
|
|
13
|
+
queryCompat;
|
|
14
|
+
constructor(queryCompat = false) {
|
|
15
|
+
this.queryCompat = queryCompat;
|
|
16
|
+
}
|
|
17
|
+
resolveRestContentType(defaultContentType, inputSchema) {
|
|
18
|
+
const members = inputSchema.getMemberSchemas();
|
|
19
|
+
const httpPayloadMember = Object.values(members).find((m) => {
|
|
20
|
+
return !!m.getMergedTraits().httpPayload;
|
|
21
|
+
});
|
|
22
|
+
if (httpPayloadMember) {
|
|
23
|
+
const mediaType = httpPayloadMember.getMergedTraits().mediaType;
|
|
24
|
+
if (mediaType) {
|
|
25
|
+
return mediaType;
|
|
26
|
+
}
|
|
27
|
+
else if (httpPayloadMember.isStringSchema()) {
|
|
28
|
+
return "text/plain";
|
|
29
|
+
}
|
|
30
|
+
else if (httpPayloadMember.isBlobSchema()) {
|
|
31
|
+
return "application/octet-stream";
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return defaultContentType;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else if (!inputSchema.isUnitSchema()) {
|
|
38
|
+
const hasBody = Object.values(members).find((m) => {
|
|
39
|
+
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
|
|
40
|
+
const noPrefixHeaders = httpPrefixHeaders === void 0;
|
|
41
|
+
return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders;
|
|
42
|
+
});
|
|
43
|
+
if (hasBody) {
|
|
44
|
+
return defaultContentType;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
|
|
49
|
+
let namespace = defaultNamespace;
|
|
50
|
+
let errorName = errorIdentifier;
|
|
51
|
+
if (errorIdentifier.includes("#")) {
|
|
52
|
+
[namespace, errorName] = errorIdentifier.split("#");
|
|
53
|
+
}
|
|
54
|
+
const errorMetadata = {
|
|
55
|
+
$metadata: metadata,
|
|
56
|
+
$fault: response.statusCode < 500 ? "client" : "server",
|
|
57
|
+
};
|
|
58
|
+
const registry = schema.TypeRegistry.for(namespace);
|
|
59
|
+
try {
|
|
60
|
+
const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
|
|
61
|
+
return { errorSchema, errorMetadata };
|
|
62
|
+
}
|
|
63
|
+
catch (e) {
|
|
64
|
+
dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
65
|
+
const synthetic = schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
|
|
66
|
+
const baseExceptionSchema = synthetic.getBaseException();
|
|
67
|
+
if (baseExceptionSchema) {
|
|
68
|
+
const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
|
|
69
|
+
throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
|
|
70
|
+
}
|
|
71
|
+
throw this.decorateServiceException(Object.assign(new Error(errorName), errorMetadata), dataObject);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
decorateServiceException(exception, additions = {}) {
|
|
75
|
+
if (this.queryCompat) {
|
|
76
|
+
const msg = exception.Message ?? additions.Message;
|
|
77
|
+
const error = smithyClient.decorateServiceException(exception, additions);
|
|
78
|
+
if (msg) {
|
|
79
|
+
error.message = msg;
|
|
80
|
+
}
|
|
81
|
+
error.Error = {
|
|
82
|
+
...error.Error,
|
|
83
|
+
Type: error.Error.Type,
|
|
84
|
+
Code: error.Error.Code,
|
|
85
|
+
Message: error.Error.message ?? error.Error.Message ?? msg,
|
|
86
|
+
};
|
|
87
|
+
const reqId = error.$metadata.requestId;
|
|
88
|
+
if (reqId) {
|
|
89
|
+
error.RequestId = reqId;
|
|
90
|
+
}
|
|
91
|
+
return error;
|
|
92
|
+
}
|
|
93
|
+
return smithyClient.decorateServiceException(exception, additions);
|
|
94
|
+
}
|
|
95
|
+
setQueryCompatError(output, response) {
|
|
96
|
+
const queryErrorHeader = response.headers?.["x-amzn-query-error"];
|
|
97
|
+
if (output !== undefined && queryErrorHeader != null) {
|
|
98
|
+
const [Code, Type] = queryErrorHeader.split(";");
|
|
99
|
+
const entries = Object.entries(output);
|
|
100
|
+
const Error = {
|
|
101
|
+
Code,
|
|
102
|
+
Type,
|
|
103
|
+
};
|
|
104
|
+
Object.assign(output, Error);
|
|
105
|
+
for (const [k, v] of entries) {
|
|
106
|
+
Error[k === "message" ? "Message" : k] = v;
|
|
107
|
+
}
|
|
108
|
+
delete Error.__type;
|
|
109
|
+
output.Error = Error;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
queryCompatOutput(queryCompatErrorData, errorData) {
|
|
113
|
+
if (queryCompatErrorData.Error) {
|
|
114
|
+
errorData.Error = queryCompatErrorData.Error;
|
|
115
|
+
}
|
|
116
|
+
if (queryCompatErrorData.Type) {
|
|
117
|
+
errorData.Type = queryCompatErrorData.Type;
|
|
118
|
+
}
|
|
119
|
+
if (queryCompatErrorData.Code) {
|
|
120
|
+
errorData.Code = queryCompatErrorData.Code;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
findQueryCompatibleError(registry, errorName) {
|
|
124
|
+
try {
|
|
125
|
+
return registry.getSchema(errorName);
|
|
126
|
+
}
|
|
127
|
+
catch (e) {
|
|
128
|
+
return registry.find((schema$1) => schema.NormalizedSchema.of(schema$1).getMergedTraits().awsQueryError?.[0] === errorName);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
class AwsSmithyRpcV2CborProtocol extends cbor.SmithyRpcV2CborProtocol {
|
|
134
|
+
awsQueryCompatible;
|
|
135
|
+
mixin;
|
|
136
|
+
constructor({ defaultNamespace, awsQueryCompatible, }) {
|
|
137
|
+
super({ defaultNamespace });
|
|
138
|
+
this.awsQueryCompatible = !!awsQueryCompatible;
|
|
139
|
+
this.mixin = new ProtocolLib(this.awsQueryCompatible);
|
|
140
|
+
}
|
|
141
|
+
async serializeRequest(operationSchema, input, context) {
|
|
142
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
143
|
+
if (this.awsQueryCompatible) {
|
|
144
|
+
request.headers["x-amzn-query-mode"] = "true";
|
|
145
|
+
}
|
|
146
|
+
return request;
|
|
147
|
+
}
|
|
148
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
149
|
+
if (this.awsQueryCompatible) {
|
|
150
|
+
this.mixin.setQueryCompatError(dataObject, response);
|
|
151
|
+
}
|
|
152
|
+
const errorName = (() => {
|
|
153
|
+
const compatHeader = response.headers["x-amzn-query-error"];
|
|
154
|
+
if (compatHeader && this.awsQueryCompatible) {
|
|
155
|
+
return compatHeader.split(";")[0];
|
|
156
|
+
}
|
|
157
|
+
return cbor.loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
|
|
158
|
+
})();
|
|
159
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
|
|
160
|
+
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
161
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
162
|
+
const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
163
|
+
const exception = new ErrorCtor(message);
|
|
164
|
+
const output = {};
|
|
165
|
+
for (const [name, member] of ns.structIterator()) {
|
|
166
|
+
if (dataObject[name] != null) {
|
|
167
|
+
output[name] = this.deserializer.readValue(member, dataObject[name]);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (this.awsQueryCompatible) {
|
|
171
|
+
this.mixin.queryCompatOutput(dataObject, output);
|
|
172
|
+
}
|
|
173
|
+
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
174
|
+
$fault: ns.getMergedTraits().error,
|
|
175
|
+
message,
|
|
176
|
+
}, output), dataObject);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const _toStr = (val) => {
|
|
181
|
+
if (val == null) {
|
|
182
|
+
return val;
|
|
183
|
+
}
|
|
184
|
+
if (typeof val === "number" || typeof val === "bigint") {
|
|
185
|
+
const warning = new Error(`Received number ${val} where a string was expected.`);
|
|
186
|
+
warning.name = "Warning";
|
|
187
|
+
console.warn(warning);
|
|
188
|
+
return String(val);
|
|
189
|
+
}
|
|
190
|
+
if (typeof val === "boolean") {
|
|
191
|
+
const warning = new Error(`Received boolean ${val} where a string was expected.`);
|
|
192
|
+
warning.name = "Warning";
|
|
193
|
+
console.warn(warning);
|
|
194
|
+
return String(val);
|
|
195
|
+
}
|
|
53
196
|
return val;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, "_toStr");
|
|
69
|
-
var _toBool = /* @__PURE__ */ __name((val) => {
|
|
70
|
-
if (val == null) {
|
|
197
|
+
};
|
|
198
|
+
const _toBool = (val) => {
|
|
199
|
+
if (val == null) {
|
|
200
|
+
return val;
|
|
201
|
+
}
|
|
202
|
+
if (typeof val === "string") {
|
|
203
|
+
const lowercase = val.toLowerCase();
|
|
204
|
+
if (val !== "" && lowercase !== "false" && lowercase !== "true") {
|
|
205
|
+
const warning = new Error(`Received string "${val}" where a boolean was expected.`);
|
|
206
|
+
warning.name = "Warning";
|
|
207
|
+
console.warn(warning);
|
|
208
|
+
}
|
|
209
|
+
return val !== "" && lowercase !== "false";
|
|
210
|
+
}
|
|
71
211
|
return val;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (val
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (val == null) {
|
|
212
|
+
};
|
|
213
|
+
const _toNum = (val) => {
|
|
214
|
+
if (val == null) {
|
|
215
|
+
return val;
|
|
216
|
+
}
|
|
217
|
+
if (typeof val === "string") {
|
|
218
|
+
const num = Number(val);
|
|
219
|
+
if (num.toString() !== val) {
|
|
220
|
+
const warning = new Error(`Received string "${val}" where a number was expected.`);
|
|
221
|
+
warning.name = "Warning";
|
|
222
|
+
console.warn(warning);
|
|
223
|
+
return val;
|
|
224
|
+
}
|
|
225
|
+
return num;
|
|
226
|
+
}
|
|
88
227
|
return val;
|
|
89
|
-
|
|
90
|
-
if (typeof val === "boolean") {
|
|
91
|
-
}
|
|
92
|
-
if (typeof val === "string") {
|
|
93
|
-
const num = Number(val);
|
|
94
|
-
if (num.toString() !== val) {
|
|
95
|
-
const warning = new Error(`Received string "${val}" where a number was expected.`);
|
|
96
|
-
warning.name = "Warning";
|
|
97
|
-
console.warn(warning);
|
|
98
|
-
return val;
|
|
99
|
-
}
|
|
100
|
-
return num;
|
|
101
|
-
}
|
|
102
|
-
return val;
|
|
103
|
-
}, "_toNum");
|
|
228
|
+
};
|
|
104
229
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
230
|
+
class SerdeContextConfig {
|
|
231
|
+
serdeContext;
|
|
232
|
+
setSerdeContext(serdeContext) {
|
|
233
|
+
this.serdeContext = serdeContext;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
109
236
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
237
|
+
function* serializingStructIterator(ns, sourceObject) {
|
|
238
|
+
if (ns.isUnitSchema()) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
const struct = ns.getSchema();
|
|
242
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
243
|
+
const key = struct[4][i];
|
|
244
|
+
const memberSchema = struct[5][i];
|
|
245
|
+
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
|
246
|
+
if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
yield [key, memberNs];
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
function* deserializingStructIterator(ns, sourceObject, nameTrait) {
|
|
253
|
+
if (ns.isUnitSchema()) {
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
const struct = ns.getSchema();
|
|
257
|
+
let keysRemaining = Object.keys(sourceObject).filter((k) => k !== "__type").length;
|
|
258
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
259
|
+
if (keysRemaining === 0) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
const key = struct[4][i];
|
|
263
|
+
const memberSchema = struct[5][i];
|
|
264
|
+
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
|
265
|
+
let serializationKey = key;
|
|
266
|
+
if (nameTrait) {
|
|
267
|
+
serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
|
|
268
|
+
}
|
|
269
|
+
if (!(serializationKey in sourceObject)) {
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
yield [key, memberNs];
|
|
273
|
+
keysRemaining -= 1;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
120
276
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
277
|
+
class UnionSerde {
|
|
278
|
+
from;
|
|
279
|
+
to;
|
|
280
|
+
keys;
|
|
281
|
+
constructor(from, to) {
|
|
282
|
+
this.from = from;
|
|
283
|
+
this.to = to;
|
|
284
|
+
this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type"));
|
|
285
|
+
}
|
|
286
|
+
mark(key) {
|
|
287
|
+
this.keys.delete(key);
|
|
288
|
+
}
|
|
289
|
+
hasUnknown() {
|
|
290
|
+
return this.keys.size === 1 && Object.keys(this.to).length === 0;
|
|
291
|
+
}
|
|
292
|
+
writeUnknown() {
|
|
293
|
+
if (this.hasUnknown()) {
|
|
294
|
+
const k = this.keys.values().next().value;
|
|
295
|
+
const v = this.from[k];
|
|
296
|
+
this.to.$unknown = [k, v];
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
125
300
|
|
|
126
|
-
// src/submodules/protocols/json/jsonReviver.ts
|
|
127
|
-
var import_serde = require("@smithy/core/serde");
|
|
128
301
|
function jsonReviver(key, value, context) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
302
|
+
if (context?.source) {
|
|
303
|
+
const numericString = context.source;
|
|
304
|
+
if (typeof value === "number") {
|
|
305
|
+
if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
|
|
306
|
+
const isFractional = numericString.includes(".");
|
|
307
|
+
if (isFractional) {
|
|
308
|
+
return new serde.NumericValue(numericString, "bigDecimal");
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
return BigInt(numericString);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return value;
|
|
143
317
|
}
|
|
144
|
-
__name(jsonReviver, "jsonReviver");
|
|
145
|
-
|
|
146
|
-
// src/submodules/protocols/common.ts
|
|
147
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
148
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
149
318
|
|
|
150
|
-
|
|
151
|
-
var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
152
|
-
if (encoded.length) {
|
|
153
|
-
try {
|
|
154
|
-
return JSON.parse(encoded);
|
|
155
|
-
} catch (e) {
|
|
156
|
-
if (e?.name === "SyntaxError") {
|
|
157
|
-
Object.defineProperty(e, "$responseBodyText", {
|
|
158
|
-
value: encoded
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
throw e;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
return {};
|
|
165
|
-
}), "parseJsonBody");
|
|
166
|
-
var parseJsonErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
167
|
-
const value = await parseJsonBody(errorBody, context);
|
|
168
|
-
value.message = value.message ?? value.Message;
|
|
169
|
-
return value;
|
|
170
|
-
}, "parseJsonErrorBody");
|
|
171
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
172
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
173
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
174
|
-
let cleanValue = rawValue;
|
|
175
|
-
if (typeof cleanValue === "number") {
|
|
176
|
-
cleanValue = cleanValue.toString();
|
|
177
|
-
}
|
|
178
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
179
|
-
cleanValue = cleanValue.split(",")[0];
|
|
180
|
-
}
|
|
181
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
182
|
-
cleanValue = cleanValue.split(":")[0];
|
|
183
|
-
}
|
|
184
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
185
|
-
cleanValue = cleanValue.split("#")[1];
|
|
186
|
-
}
|
|
187
|
-
return cleanValue;
|
|
188
|
-
}, "sanitizeErrorCode");
|
|
189
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
190
|
-
if (headerKey !== void 0) {
|
|
191
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
192
|
-
}
|
|
193
|
-
if (data && typeof data === "object") {
|
|
194
|
-
const codeKey = findKey(data, "code");
|
|
195
|
-
if (codeKey && data[codeKey] !== void 0) {
|
|
196
|
-
return sanitizeErrorCode(data[codeKey]);
|
|
197
|
-
}
|
|
198
|
-
if (data["__type"] !== void 0) {
|
|
199
|
-
return sanitizeErrorCode(data["__type"]);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}, "loadRestJsonErrorCode");
|
|
319
|
+
const collectBodyString = (streamBody, context) => smithyClient.collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? utilUtf8.toUtf8)(body));
|
|
203
320
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
readObject(schema, data) {
|
|
220
|
-
return this._read(schema, data);
|
|
221
|
-
}
|
|
222
|
-
_read(schema, value) {
|
|
223
|
-
const isObject = value !== null && typeof value === "object";
|
|
224
|
-
const ns = import_schema.NormalizedSchema.of(schema);
|
|
225
|
-
if (ns.isListSchema() && Array.isArray(value)) {
|
|
226
|
-
const listMember = ns.getValueSchema();
|
|
227
|
-
const out = [];
|
|
228
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
229
|
-
for (const item of value) {
|
|
230
|
-
if (sparse || item != null) {
|
|
231
|
-
out.push(this._read(listMember, item));
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
return out;
|
|
235
|
-
} else if (ns.isMapSchema() && isObject) {
|
|
236
|
-
const mapMember = ns.getValueSchema();
|
|
237
|
-
const out = {};
|
|
238
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
239
|
-
for (const [_k, _v] of Object.entries(value)) {
|
|
240
|
-
if (sparse || _v != null) {
|
|
241
|
-
out[_k] = this._read(mapMember, _v);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return out;
|
|
245
|
-
} else if (ns.isStructSchema() && isObject) {
|
|
246
|
-
const out = {};
|
|
247
|
-
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
248
|
-
const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
249
|
-
const deserializedValue = this._read(memberSchema, value[fromKey]);
|
|
250
|
-
if (deserializedValue != null) {
|
|
251
|
-
out[memberName] = deserializedValue;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return out;
|
|
255
|
-
}
|
|
256
|
-
if (ns.isBlobSchema() && typeof value === "string") {
|
|
257
|
-
return (0, import_util_base64.fromBase64)(value);
|
|
258
|
-
}
|
|
259
|
-
const mediaType = ns.getMergedTraits().mediaType;
|
|
260
|
-
if (ns.isStringSchema() && typeof value === "string" && mediaType) {
|
|
261
|
-
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
262
|
-
if (isJson) {
|
|
263
|
-
return import_serde2.LazyJsonString.from(value);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
if (ns.isTimestampSchema()) {
|
|
267
|
-
const options = this.settings.timestampFormat;
|
|
268
|
-
const format = options.useTrait ? ns.getSchema() === import_schema.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
269
|
-
switch (format) {
|
|
270
|
-
case import_schema.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
271
|
-
return (0, import_serde2.parseRfc3339DateTimeWithOffset)(value);
|
|
272
|
-
case import_schema.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
273
|
-
return (0, import_serde2.parseRfc7231DateTime)(value);
|
|
274
|
-
case import_schema.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
275
|
-
return (0, import_serde2.parseEpochTimestamp)(value);
|
|
276
|
-
default:
|
|
277
|
-
console.warn("Missing timestamp format, parsing value with Date constructor:", value);
|
|
278
|
-
return new Date(value);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
|
|
282
|
-
return BigInt(value);
|
|
283
|
-
}
|
|
284
|
-
if (ns.isBigDecimalSchema() && value != void 0) {
|
|
285
|
-
if (value instanceof import_serde2.NumericValue) {
|
|
286
|
-
return value;
|
|
287
|
-
}
|
|
288
|
-
return new import_serde2.NumericValue(String(value), "bigDecimal");
|
|
289
|
-
}
|
|
290
|
-
if (ns.isNumericSchema() && typeof value === "string") {
|
|
291
|
-
switch (value) {
|
|
292
|
-
case "Infinity":
|
|
293
|
-
return Infinity;
|
|
294
|
-
case "-Infinity":
|
|
295
|
-
return -Infinity;
|
|
296
|
-
case "NaN":
|
|
297
|
-
return NaN;
|
|
298
|
-
}
|
|
321
|
+
const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
322
|
+
if (encoded.length) {
|
|
323
|
+
try {
|
|
324
|
+
return JSON.parse(encoded);
|
|
325
|
+
}
|
|
326
|
+
catch (e) {
|
|
327
|
+
if (e?.name === "SyntaxError") {
|
|
328
|
+
Object.defineProperty(e, "$responseBodyText", {
|
|
329
|
+
value: encoded,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
throw e;
|
|
333
|
+
}
|
|
299
334
|
}
|
|
335
|
+
return {};
|
|
336
|
+
});
|
|
337
|
+
const parseJsonErrorBody = async (errorBody, context) => {
|
|
338
|
+
const value = await parseJsonBody(errorBody, context);
|
|
339
|
+
value.message = value.message ?? value.Message;
|
|
300
340
|
return value;
|
|
301
|
-
}
|
|
302
341
|
};
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
counter = 0;
|
|
321
|
-
stage = 0;
|
|
322
|
-
/**
|
|
323
|
-
* Creates a jsonReplacer function that reserves big integer and big decimal values
|
|
324
|
-
* for later replacement.
|
|
325
|
-
*/
|
|
326
|
-
createReplacer() {
|
|
327
|
-
if (this.stage === 1) {
|
|
328
|
-
throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
|
|
329
|
-
}
|
|
330
|
-
if (this.stage === 2) {
|
|
331
|
-
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
332
|
-
}
|
|
333
|
-
this.stage = 1;
|
|
334
|
-
return (key, value) => {
|
|
335
|
-
if (value instanceof import_serde3.NumericValue) {
|
|
336
|
-
const v = `${NUMERIC_CONTROL_CHAR + +"nv" + this.counter++}_` + value.string;
|
|
337
|
-
this.values.set(`"${v}"`, value.string);
|
|
338
|
-
return v;
|
|
339
|
-
}
|
|
340
|
-
if (typeof value === "bigint") {
|
|
341
|
-
const s = value.toString();
|
|
342
|
-
const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
|
|
343
|
-
this.values.set(`"${v}"`, s);
|
|
344
|
-
return v;
|
|
345
|
-
}
|
|
346
|
-
return value;
|
|
342
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
343
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
344
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
345
|
+
let cleanValue = rawValue;
|
|
346
|
+
if (typeof cleanValue === "number") {
|
|
347
|
+
cleanValue = cleanValue.toString();
|
|
348
|
+
}
|
|
349
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
350
|
+
cleanValue = cleanValue.split(",")[0];
|
|
351
|
+
}
|
|
352
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
353
|
+
cleanValue = cleanValue.split(":")[0];
|
|
354
|
+
}
|
|
355
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
356
|
+
cleanValue = cleanValue.split("#")[1];
|
|
357
|
+
}
|
|
358
|
+
return cleanValue;
|
|
347
359
|
};
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
return json;
|
|
362
|
-
}
|
|
363
|
-
for (const [key, value] of this.values) {
|
|
364
|
-
json = json.replace(key, value);
|
|
365
|
-
}
|
|
366
|
-
return json;
|
|
367
|
-
}
|
|
360
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
361
|
+
if (headerKey !== undefined) {
|
|
362
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
363
|
+
}
|
|
364
|
+
if (data && typeof data === "object") {
|
|
365
|
+
const codeKey = findKey(data, "code");
|
|
366
|
+
if (codeKey && data[codeKey] !== undefined) {
|
|
367
|
+
return sanitizeErrorCode(data[codeKey]);
|
|
368
|
+
}
|
|
369
|
+
if (data["__type"] !== undefined) {
|
|
370
|
+
return sanitizeErrorCode(data["__type"]);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
368
373
|
};
|
|
369
374
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
375
|
+
class JsonShapeDeserializer extends SerdeContextConfig {
|
|
376
|
+
settings;
|
|
377
|
+
constructor(settings) {
|
|
378
|
+
super();
|
|
379
|
+
this.settings = settings;
|
|
380
|
+
}
|
|
381
|
+
async read(schema, data) {
|
|
382
|
+
return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
|
|
383
|
+
}
|
|
384
|
+
readObject(schema, data) {
|
|
385
|
+
return this._read(schema, data);
|
|
386
|
+
}
|
|
387
|
+
_read(schema$1, value) {
|
|
388
|
+
const isObject = value !== null && typeof value === "object";
|
|
389
|
+
const ns = schema.NormalizedSchema.of(schema$1);
|
|
390
|
+
if (isObject) {
|
|
391
|
+
if (ns.isStructSchema()) {
|
|
392
|
+
const union = ns.isUnionSchema();
|
|
393
|
+
const out = {};
|
|
394
|
+
let unionSerde;
|
|
395
|
+
if (union) {
|
|
396
|
+
unionSerde = new UnionSerde(value, out);
|
|
397
|
+
}
|
|
398
|
+
for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
|
|
399
|
+
const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
400
|
+
if (union) {
|
|
401
|
+
unionSerde.mark(fromKey);
|
|
402
|
+
}
|
|
403
|
+
if (value[fromKey] != null) {
|
|
404
|
+
out[memberName] = this._read(memberSchema, value[fromKey]);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
if (union) {
|
|
408
|
+
unionSerde.writeUnknown();
|
|
409
|
+
}
|
|
410
|
+
return out;
|
|
411
|
+
}
|
|
412
|
+
if (Array.isArray(value) && ns.isListSchema()) {
|
|
413
|
+
const listMember = ns.getValueSchema();
|
|
414
|
+
const out = [];
|
|
415
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
416
|
+
for (const item of value) {
|
|
417
|
+
if (sparse || item != null) {
|
|
418
|
+
out.push(this._read(listMember, item));
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return out;
|
|
422
|
+
}
|
|
423
|
+
if (ns.isMapSchema()) {
|
|
424
|
+
const mapMember = ns.getValueSchema();
|
|
425
|
+
const out = {};
|
|
426
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
427
|
+
for (const [_k, _v] of Object.entries(value)) {
|
|
428
|
+
if (sparse || _v != null) {
|
|
429
|
+
out[_k] = this._read(mapMember, _v);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return out;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
if (ns.isBlobSchema() && typeof value === "string") {
|
|
436
|
+
return utilBase64.fromBase64(value);
|
|
437
|
+
}
|
|
438
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
439
|
+
if (ns.isStringSchema() && typeof value === "string" && mediaType) {
|
|
440
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
441
|
+
if (isJson) {
|
|
442
|
+
return serde.LazyJsonString.from(value);
|
|
443
|
+
}
|
|
444
|
+
return value;
|
|
445
|
+
}
|
|
446
|
+
if (ns.isTimestampSchema() && value != null) {
|
|
447
|
+
const format = protocols.determineTimestampFormat(ns, this.settings);
|
|
448
|
+
switch (format) {
|
|
449
|
+
case 5:
|
|
450
|
+
return serde.parseRfc3339DateTimeWithOffset(value);
|
|
451
|
+
case 6:
|
|
452
|
+
return serde.parseRfc7231DateTime(value);
|
|
453
|
+
case 7:
|
|
454
|
+
return serde.parseEpochTimestamp(value);
|
|
455
|
+
default:
|
|
456
|
+
console.warn("Missing timestamp format, parsing value with Date constructor:", value);
|
|
457
|
+
return new Date(value);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
|
|
461
|
+
return BigInt(value);
|
|
462
|
+
}
|
|
463
|
+
if (ns.isBigDecimalSchema() && value != undefined) {
|
|
464
|
+
if (value instanceof serde.NumericValue) {
|
|
465
|
+
return value;
|
|
466
|
+
}
|
|
467
|
+
const untyped = value;
|
|
468
|
+
if (untyped.type === "bigDecimal" && "string" in untyped) {
|
|
469
|
+
return new serde.NumericValue(untyped.string, untyped.type);
|
|
470
|
+
}
|
|
471
|
+
return new serde.NumericValue(String(value), "bigDecimal");
|
|
472
|
+
}
|
|
473
|
+
if (ns.isNumericSchema() && typeof value === "string") {
|
|
474
|
+
switch (value) {
|
|
475
|
+
case "Infinity":
|
|
476
|
+
return Infinity;
|
|
477
|
+
case "-Infinity":
|
|
478
|
+
return -Infinity;
|
|
479
|
+
case "NaN":
|
|
480
|
+
return NaN;
|
|
481
|
+
}
|
|
482
|
+
return value;
|
|
483
|
+
}
|
|
484
|
+
if (ns.isDocumentSchema()) {
|
|
485
|
+
if (isObject) {
|
|
486
|
+
const out = Array.isArray(value) ? [] : {};
|
|
487
|
+
for (const [k, v] of Object.entries(value)) {
|
|
488
|
+
if (v instanceof serde.NumericValue) {
|
|
489
|
+
out[k] = v;
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
out[k] = this._read(ns, v);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return out;
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
return structuredClone(value);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
431
501
|
return value;
|
|
432
|
-
}
|
|
433
|
-
if (!this.serdeContext?.base64Encoder) {
|
|
434
|
-
throw new Error("Missing base64Encoder in serdeContext");
|
|
435
|
-
}
|
|
436
|
-
return this.serdeContext?.base64Encoder(value);
|
|
437
|
-
}
|
|
438
|
-
if (ns.isTimestampSchema() && value instanceof Date) {
|
|
439
|
-
const options = this.settings.timestampFormat;
|
|
440
|
-
const format = options.useTrait ? ns.getSchema() === import_schema2.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
441
|
-
switch (format) {
|
|
442
|
-
case import_schema2.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
443
|
-
return value.toISOString().replace(".000Z", "Z");
|
|
444
|
-
case import_schema2.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
445
|
-
return (0, import_serde4.dateToUtcString)(value);
|
|
446
|
-
case import_schema2.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
447
|
-
return value.getTime() / 1e3;
|
|
448
|
-
default:
|
|
449
|
-
console.warn("Missing timestamp format, using epoch seconds", value);
|
|
450
|
-
return value.getTime() / 1e3;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if (ns.isNumericSchema() && typeof value === "number") {
|
|
454
|
-
if (Math.abs(value) === Infinity || isNaN(value)) {
|
|
455
|
-
return String(value);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
const mediaType = ns.getMergedTraits().mediaType;
|
|
459
|
-
if (ns.isStringSchema() && typeof value === "string" && mediaType) {
|
|
460
|
-
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
461
|
-
if (isJson) {
|
|
462
|
-
return import_serde5.LazyJsonString.from(value);
|
|
463
|
-
}
|
|
464
502
|
}
|
|
465
|
-
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
// src/submodules/protocols/json/JsonCodec.ts
|
|
470
|
-
var JsonCodec = class extends SerdeContextConfig {
|
|
471
|
-
constructor(settings) {
|
|
472
|
-
super();
|
|
473
|
-
this.settings = settings;
|
|
474
|
-
}
|
|
475
|
-
static {
|
|
476
|
-
__name(this, "JsonCodec");
|
|
477
|
-
}
|
|
478
|
-
createSerializer() {
|
|
479
|
-
const serializer = new JsonShapeSerializer(this.settings);
|
|
480
|
-
serializer.setSerdeContext(this.serdeContext);
|
|
481
|
-
return serializer;
|
|
482
|
-
}
|
|
483
|
-
createDeserializer() {
|
|
484
|
-
const deserializer = new JsonShapeDeserializer(this.settings);
|
|
485
|
-
deserializer.setSerdeContext(this.serdeContext);
|
|
486
|
-
return deserializer;
|
|
487
|
-
}
|
|
488
|
-
};
|
|
503
|
+
}
|
|
489
504
|
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
let namespace = this.options.defaultNamespace;
|
|
536
|
-
let errorName = errorIdentifier;
|
|
537
|
-
if (errorIdentifier.includes("#")) {
|
|
538
|
-
[namespace, errorName] = errorIdentifier.split("#");
|
|
539
|
-
}
|
|
540
|
-
const registry = import_schema3.TypeRegistry.for(namespace);
|
|
541
|
-
let errorSchema;
|
|
542
|
-
try {
|
|
543
|
-
errorSchema = registry.getSchema(errorIdentifier);
|
|
544
|
-
} catch (e) {
|
|
545
|
-
const baseExceptionSchema = import_schema3.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
|
|
546
|
-
if (baseExceptionSchema) {
|
|
547
|
-
const ErrorCtor = baseExceptionSchema.ctor;
|
|
548
|
-
throw Object.assign(new ErrorCtor(errorName), dataObject);
|
|
549
|
-
}
|
|
550
|
-
throw new Error(errorName);
|
|
551
|
-
}
|
|
552
|
-
const ns = import_schema3.NormalizedSchema.of(errorSchema);
|
|
553
|
-
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
554
|
-
const exception = new errorSchema.ctor(message);
|
|
555
|
-
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
556
|
-
const output = {};
|
|
557
|
-
for (const [name, member] of ns.structIterator()) {
|
|
558
|
-
const target = member.getMergedTraits().jsonName ?? name;
|
|
559
|
-
output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
|
|
560
|
-
}
|
|
561
|
-
Object.assign(exception, {
|
|
562
|
-
$metadata: metadata,
|
|
563
|
-
$response: response,
|
|
564
|
-
$fault: ns.getMergedTraits().error,
|
|
565
|
-
message,
|
|
566
|
-
...output
|
|
567
|
-
});
|
|
568
|
-
throw exception;
|
|
569
|
-
}
|
|
570
|
-
};
|
|
505
|
+
const NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
|
|
506
|
+
class JsonReplacer {
|
|
507
|
+
values = new Map();
|
|
508
|
+
counter = 0;
|
|
509
|
+
stage = 0;
|
|
510
|
+
createReplacer() {
|
|
511
|
+
if (this.stage === 1) {
|
|
512
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
|
|
513
|
+
}
|
|
514
|
+
if (this.stage === 2) {
|
|
515
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
516
|
+
}
|
|
517
|
+
this.stage = 1;
|
|
518
|
+
return (key, value) => {
|
|
519
|
+
if (value instanceof serde.NumericValue) {
|
|
520
|
+
const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
|
|
521
|
+
this.values.set(`"${v}"`, value.string);
|
|
522
|
+
return v;
|
|
523
|
+
}
|
|
524
|
+
if (typeof value === "bigint") {
|
|
525
|
+
const s = value.toString();
|
|
526
|
+
const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
|
|
527
|
+
this.values.set(`"${v}"`, s);
|
|
528
|
+
return v;
|
|
529
|
+
}
|
|
530
|
+
return value;
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
replaceInJson(json) {
|
|
534
|
+
if (this.stage === 0) {
|
|
535
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
|
|
536
|
+
}
|
|
537
|
+
if (this.stage === 2) {
|
|
538
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
539
|
+
}
|
|
540
|
+
this.stage = 2;
|
|
541
|
+
if (this.counter === 0) {
|
|
542
|
+
return json;
|
|
543
|
+
}
|
|
544
|
+
for (const [key, value] of this.values) {
|
|
545
|
+
json = json.replace(key, value);
|
|
546
|
+
}
|
|
547
|
+
return json;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
571
550
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
551
|
+
class JsonShapeSerializer extends SerdeContextConfig {
|
|
552
|
+
settings;
|
|
553
|
+
buffer;
|
|
554
|
+
useReplacer = false;
|
|
555
|
+
rootSchema;
|
|
556
|
+
constructor(settings) {
|
|
557
|
+
super();
|
|
558
|
+
this.settings = settings;
|
|
559
|
+
}
|
|
560
|
+
write(schema$1, value) {
|
|
561
|
+
this.rootSchema = schema.NormalizedSchema.of(schema$1);
|
|
562
|
+
this.buffer = this._write(this.rootSchema, value);
|
|
563
|
+
}
|
|
564
|
+
writeDiscriminatedDocument(schema$1, value) {
|
|
565
|
+
this.write(schema$1, value);
|
|
566
|
+
if (typeof this.buffer === "object") {
|
|
567
|
+
this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
flush() {
|
|
571
|
+
const { rootSchema, useReplacer } = this;
|
|
572
|
+
this.rootSchema = undefined;
|
|
573
|
+
this.useReplacer = false;
|
|
574
|
+
if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) {
|
|
575
|
+
if (!useReplacer) {
|
|
576
|
+
return JSON.stringify(this.buffer);
|
|
577
|
+
}
|
|
578
|
+
const replacer = new JsonReplacer();
|
|
579
|
+
return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
|
|
580
|
+
}
|
|
581
|
+
return this.buffer;
|
|
582
|
+
}
|
|
583
|
+
_write(schema$1, value, container) {
|
|
584
|
+
const isObject = value !== null && typeof value === "object";
|
|
585
|
+
const ns = schema.NormalizedSchema.of(schema$1);
|
|
586
|
+
if (isObject) {
|
|
587
|
+
if (ns.isStructSchema()) {
|
|
588
|
+
const out = {};
|
|
589
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
|
590
|
+
const serializableValue = this._write(memberSchema, value[memberName], ns);
|
|
591
|
+
if (serializableValue !== undefined) {
|
|
592
|
+
const jsonName = memberSchema.getMergedTraits().jsonName;
|
|
593
|
+
const targetKey = this.settings.jsonName ? jsonName ?? memberName : memberName;
|
|
594
|
+
out[targetKey] = serializableValue;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
if (ns.isUnionSchema() && Object.keys(out).length === 0) {
|
|
598
|
+
const { $unknown } = value;
|
|
599
|
+
if (Array.isArray($unknown)) {
|
|
600
|
+
const [k, v] = $unknown;
|
|
601
|
+
out[k] = this._write(15, v);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
return out;
|
|
605
|
+
}
|
|
606
|
+
if (Array.isArray(value) && ns.isListSchema()) {
|
|
607
|
+
const listMember = ns.getValueSchema();
|
|
608
|
+
const out = [];
|
|
609
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
610
|
+
for (const item of value) {
|
|
611
|
+
if (sparse || item != null) {
|
|
612
|
+
out.push(this._write(listMember, item));
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return out;
|
|
616
|
+
}
|
|
617
|
+
if (ns.isMapSchema()) {
|
|
618
|
+
const mapMember = ns.getValueSchema();
|
|
619
|
+
const out = {};
|
|
620
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
621
|
+
for (const [_k, _v] of Object.entries(value)) {
|
|
622
|
+
if (sparse || _v != null) {
|
|
623
|
+
out[_k] = this._write(mapMember, _v);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
return out;
|
|
627
|
+
}
|
|
628
|
+
if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
|
|
629
|
+
if (ns === this.rootSchema) {
|
|
630
|
+
return value;
|
|
631
|
+
}
|
|
632
|
+
return (this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value);
|
|
633
|
+
}
|
|
634
|
+
if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
|
|
635
|
+
const format = protocols.determineTimestampFormat(ns, this.settings);
|
|
636
|
+
switch (format) {
|
|
637
|
+
case 5:
|
|
638
|
+
return value.toISOString().replace(".000Z", "Z");
|
|
639
|
+
case 6:
|
|
640
|
+
return serde.dateToUtcString(value);
|
|
641
|
+
case 7:
|
|
642
|
+
return value.getTime() / 1000;
|
|
643
|
+
default:
|
|
644
|
+
console.warn("Missing timestamp format, using epoch seconds", value);
|
|
645
|
+
return value.getTime() / 1000;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
if (value instanceof serde.NumericValue) {
|
|
649
|
+
this.useReplacer = true;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
if (value === null && container?.isStructSchema()) {
|
|
653
|
+
return void 0;
|
|
654
|
+
}
|
|
655
|
+
if (ns.isStringSchema()) {
|
|
656
|
+
if (typeof value === "undefined" && ns.isIdempotencyToken()) {
|
|
657
|
+
return serde.generateIdempotencyToken();
|
|
658
|
+
}
|
|
659
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
660
|
+
if (value != null && mediaType) {
|
|
661
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
662
|
+
if (isJson) {
|
|
663
|
+
return serde.LazyJsonString.from(value);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return value;
|
|
667
|
+
}
|
|
668
|
+
if (typeof value === "number" && ns.isNumericSchema()) {
|
|
669
|
+
if (Math.abs(value) === Infinity || isNaN(value)) {
|
|
670
|
+
return String(value);
|
|
671
|
+
}
|
|
672
|
+
return value;
|
|
673
|
+
}
|
|
674
|
+
if (typeof value === "string" && ns.isBlobSchema()) {
|
|
675
|
+
if (ns === this.rootSchema) {
|
|
676
|
+
return value;
|
|
677
|
+
}
|
|
678
|
+
return (this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value);
|
|
679
|
+
}
|
|
680
|
+
if (typeof value === "bigint") {
|
|
681
|
+
this.useReplacer = true;
|
|
682
|
+
}
|
|
683
|
+
if (ns.isDocumentSchema()) {
|
|
684
|
+
if (isObject) {
|
|
685
|
+
const out = Array.isArray(value) ? [] : {};
|
|
686
|
+
for (const [k, v] of Object.entries(value)) {
|
|
687
|
+
if (v instanceof serde.NumericValue) {
|
|
688
|
+
this.useReplacer = true;
|
|
689
|
+
out[k] = v;
|
|
690
|
+
}
|
|
691
|
+
else {
|
|
692
|
+
out[k] = this._write(ns, v);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
return out;
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
return structuredClone(value);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
return value;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
589
704
|
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}
|
|
705
|
+
class JsonCodec extends SerdeContextConfig {
|
|
706
|
+
settings;
|
|
707
|
+
constructor(settings) {
|
|
708
|
+
super();
|
|
709
|
+
this.settings = settings;
|
|
710
|
+
}
|
|
711
|
+
createSerializer() {
|
|
712
|
+
const serializer = new JsonShapeSerializer(this.settings);
|
|
713
|
+
serializer.setSerdeContext(this.serdeContext);
|
|
714
|
+
return serializer;
|
|
715
|
+
}
|
|
716
|
+
createDeserializer() {
|
|
717
|
+
const deserializer = new JsonShapeDeserializer(this.settings);
|
|
718
|
+
deserializer.setSerdeContext(this.serdeContext);
|
|
719
|
+
return deserializer;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
607
722
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
codec;
|
|
619
|
-
constructor({ defaultNamespace }) {
|
|
620
|
-
super({
|
|
621
|
-
defaultNamespace
|
|
622
|
-
});
|
|
623
|
-
const settings = {
|
|
624
|
-
timestampFormat: {
|
|
625
|
-
useTrait: true,
|
|
626
|
-
default: import_schema4.SCHEMA.TIMESTAMP_EPOCH_SECONDS
|
|
627
|
-
},
|
|
628
|
-
httpBindings: true,
|
|
629
|
-
jsonName: true
|
|
630
|
-
};
|
|
631
|
-
this.codec = new JsonCodec(settings);
|
|
632
|
-
this.serializer = new import_protocols2.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
633
|
-
this.deserializer = new import_protocols2.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
634
|
-
}
|
|
635
|
-
getShapeId() {
|
|
636
|
-
return "aws.protocols#restJson1";
|
|
637
|
-
}
|
|
638
|
-
getPayloadCodec() {
|
|
639
|
-
return this.codec;
|
|
640
|
-
}
|
|
641
|
-
setSerdeContext(serdeContext) {
|
|
642
|
-
this.codec.setSerdeContext(serdeContext);
|
|
643
|
-
super.setSerdeContext(serdeContext);
|
|
644
|
-
}
|
|
645
|
-
async serializeRequest(operationSchema, input, context) {
|
|
646
|
-
const request = await super.serializeRequest(operationSchema, input, context);
|
|
647
|
-
const inputSchema = import_schema4.NormalizedSchema.of(operationSchema.input);
|
|
648
|
-
const members = inputSchema.getMemberSchemas();
|
|
649
|
-
if (!request.headers["content-type"]) {
|
|
650
|
-
const httpPayloadMember = Object.values(members).find((m) => {
|
|
651
|
-
return !!m.getMergedTraits().httpPayload;
|
|
652
|
-
});
|
|
653
|
-
if (httpPayloadMember) {
|
|
654
|
-
const mediaType = httpPayloadMember.getMergedTraits().mediaType;
|
|
655
|
-
if (mediaType) {
|
|
656
|
-
request.headers["content-type"] = mediaType;
|
|
657
|
-
} else if (httpPayloadMember.isStringSchema()) {
|
|
658
|
-
request.headers["content-type"] = "text/plain";
|
|
659
|
-
} else if (httpPayloadMember.isBlobSchema()) {
|
|
660
|
-
request.headers["content-type"] = "application/octet-stream";
|
|
661
|
-
} else {
|
|
662
|
-
request.headers["content-type"] = "application/json";
|
|
663
|
-
}
|
|
664
|
-
} else if (!inputSchema.isUnitSchema()) {
|
|
665
|
-
const hasBody = Object.values(members).find((m) => {
|
|
666
|
-
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
|
|
667
|
-
return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
|
|
723
|
+
class AwsJsonRpcProtocol extends protocols.RpcProtocol {
|
|
724
|
+
serializer;
|
|
725
|
+
deserializer;
|
|
726
|
+
serviceTarget;
|
|
727
|
+
codec;
|
|
728
|
+
mixin;
|
|
729
|
+
awsQueryCompatible;
|
|
730
|
+
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
731
|
+
super({
|
|
732
|
+
defaultNamespace,
|
|
668
733
|
});
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}
|
|
734
|
+
this.serviceTarget = serviceTarget;
|
|
735
|
+
this.codec =
|
|
736
|
+
jsonCodec ??
|
|
737
|
+
new JsonCodec({
|
|
738
|
+
timestampFormat: {
|
|
739
|
+
useTrait: true,
|
|
740
|
+
default: 7,
|
|
741
|
+
},
|
|
742
|
+
jsonName: false,
|
|
743
|
+
});
|
|
744
|
+
this.serializer = this.codec.createSerializer();
|
|
745
|
+
this.deserializer = this.codec.createDeserializer();
|
|
746
|
+
this.awsQueryCompatible = !!awsQueryCompatible;
|
|
747
|
+
this.mixin = new ProtocolLib(this.awsQueryCompatible);
|
|
748
|
+
}
|
|
749
|
+
async serializeRequest(operationSchema, input, context) {
|
|
750
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
751
|
+
if (!request.path.endsWith("/")) {
|
|
752
|
+
request.path += "/";
|
|
753
|
+
}
|
|
754
|
+
Object.assign(request.headers, {
|
|
755
|
+
"content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
|
|
756
|
+
"x-amz-target": `${this.serviceTarget}.${operationSchema.name}`,
|
|
757
|
+
});
|
|
758
|
+
if (this.awsQueryCompatible) {
|
|
759
|
+
request.headers["x-amzn-query-mode"] = "true";
|
|
760
|
+
}
|
|
761
|
+
if (schema.deref(operationSchema.input) === "unit" || !request.body) {
|
|
762
|
+
request.body = "{}";
|
|
763
|
+
}
|
|
764
|
+
return request;
|
|
765
|
+
}
|
|
766
|
+
getPayloadCodec() {
|
|
767
|
+
return this.codec;
|
|
768
|
+
}
|
|
769
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
770
|
+
if (this.awsQueryCompatible) {
|
|
771
|
+
this.mixin.setQueryCompatError(dataObject, response);
|
|
772
|
+
}
|
|
773
|
+
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
774
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
|
|
775
|
+
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
776
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
777
|
+
const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
778
|
+
const exception = new ErrorCtor(message);
|
|
779
|
+
const output = {};
|
|
780
|
+
for (const [name, member] of ns.structIterator()) {
|
|
781
|
+
if (dataObject[name] != null) {
|
|
782
|
+
output[name] = this.codec.createDeserializer().readObject(member, dataObject[name]);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
if (this.awsQueryCompatible) {
|
|
786
|
+
this.mixin.queryCompatOutput(dataObject, output);
|
|
787
|
+
}
|
|
788
|
+
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
789
|
+
$fault: ns.getMergedTraits().error,
|
|
790
|
+
message,
|
|
791
|
+
}, output), dataObject);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
723
794
|
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
795
|
+
class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
|
|
796
|
+
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
797
|
+
super({
|
|
798
|
+
defaultNamespace,
|
|
799
|
+
serviceTarget,
|
|
800
|
+
awsQueryCompatible,
|
|
801
|
+
jsonCodec,
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
getShapeId() {
|
|
805
|
+
return "aws.protocols#awsJson1_0";
|
|
806
|
+
}
|
|
807
|
+
getJsonRpcVersion() {
|
|
808
|
+
return "1.0";
|
|
809
|
+
}
|
|
810
|
+
getDefaultContentType() {
|
|
811
|
+
return "application/x-amz-json-1.0";
|
|
812
|
+
}
|
|
813
|
+
}
|
|
735
814
|
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
815
|
+
class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
|
|
816
|
+
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
817
|
+
super({
|
|
818
|
+
defaultNamespace,
|
|
819
|
+
serviceTarget,
|
|
820
|
+
awsQueryCompatible,
|
|
821
|
+
jsonCodec,
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
getShapeId() {
|
|
825
|
+
return "aws.protocols#awsJson1_1";
|
|
826
|
+
}
|
|
827
|
+
getJsonRpcVersion() {
|
|
828
|
+
return "1.1";
|
|
829
|
+
}
|
|
830
|
+
getDefaultContentType() {
|
|
831
|
+
return "application/x-amz-json-1.1";
|
|
832
|
+
}
|
|
833
|
+
}
|
|
740
834
|
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
835
|
+
class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
|
|
836
|
+
serializer;
|
|
837
|
+
deserializer;
|
|
838
|
+
codec;
|
|
839
|
+
mixin = new ProtocolLib();
|
|
840
|
+
constructor({ defaultNamespace }) {
|
|
841
|
+
super({
|
|
842
|
+
defaultNamespace,
|
|
843
|
+
});
|
|
844
|
+
const settings = {
|
|
845
|
+
timestampFormat: {
|
|
846
|
+
useTrait: true,
|
|
847
|
+
default: 7,
|
|
848
|
+
},
|
|
849
|
+
httpBindings: true,
|
|
850
|
+
jsonName: true,
|
|
851
|
+
};
|
|
852
|
+
this.codec = new JsonCodec(settings);
|
|
853
|
+
this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
854
|
+
this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
855
|
+
}
|
|
856
|
+
getShapeId() {
|
|
857
|
+
return "aws.protocols#restJson1";
|
|
858
|
+
}
|
|
859
|
+
getPayloadCodec() {
|
|
860
|
+
return this.codec;
|
|
861
|
+
}
|
|
862
|
+
setSerdeContext(serdeContext) {
|
|
863
|
+
this.codec.setSerdeContext(serdeContext);
|
|
864
|
+
super.setSerdeContext(serdeContext);
|
|
865
|
+
}
|
|
866
|
+
async serializeRequest(operationSchema, input, context) {
|
|
867
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
868
|
+
const inputSchema = schema.NormalizedSchema.of(operationSchema.input);
|
|
869
|
+
if (!request.headers["content-type"]) {
|
|
870
|
+
const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
|
|
871
|
+
if (contentType) {
|
|
872
|
+
request.headers["content-type"] = contentType;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) {
|
|
876
|
+
request.body = "{}";
|
|
877
|
+
}
|
|
878
|
+
return request;
|
|
879
|
+
}
|
|
880
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
881
|
+
const output = await super.deserializeResponse(operationSchema, context, response);
|
|
882
|
+
const outputSchema = schema.NormalizedSchema.of(operationSchema.output);
|
|
883
|
+
for (const [name, member] of outputSchema.structIterator()) {
|
|
884
|
+
if (member.getMemberTraits().httpPayload && !(name in output)) {
|
|
885
|
+
output[name] = null;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
return output;
|
|
889
|
+
}
|
|
890
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
891
|
+
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
892
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
893
|
+
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
894
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
895
|
+
const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
896
|
+
const exception = new ErrorCtor(message);
|
|
897
|
+
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
898
|
+
const output = {};
|
|
899
|
+
for (const [name, member] of ns.structIterator()) {
|
|
900
|
+
const target = member.getMergedTraits().jsonName ?? name;
|
|
901
|
+
output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
|
|
902
|
+
}
|
|
903
|
+
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
904
|
+
$fault: ns.getMergedTraits().error,
|
|
905
|
+
message,
|
|
906
|
+
}, output), dataObject);
|
|
792
907
|
}
|
|
908
|
+
getDefaultContentType() {
|
|
909
|
+
return "application/json";
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
const awsExpectUnion = (value) => {
|
|
793
914
|
if (value == null) {
|
|
794
|
-
|
|
795
|
-
}
|
|
796
|
-
if (typeof value === "object") {
|
|
797
|
-
const sparse = !!traits.sparse;
|
|
798
|
-
const flat = !!traits.xmlFlattened;
|
|
799
|
-
if (ns.isListSchema()) {
|
|
800
|
-
const listValue = ns.getValueSchema();
|
|
801
|
-
const buffer2 = [];
|
|
802
|
-
const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
|
|
803
|
-
const source = flat ? value : (value[0] ?? value)[sourceKey];
|
|
804
|
-
const sourceArray = Array.isArray(source) ? source : [source];
|
|
805
|
-
for (const v of sourceArray) {
|
|
806
|
-
if (v != null || sparse) {
|
|
807
|
-
buffer2.push(this.readSchema(listValue, v));
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
return buffer2;
|
|
811
|
-
}
|
|
812
|
-
const buffer = {};
|
|
813
|
-
if (ns.isMapSchema()) {
|
|
814
|
-
const keyNs = ns.getKeySchema();
|
|
815
|
-
const memberNs = ns.getValueSchema();
|
|
816
|
-
let entries;
|
|
817
|
-
if (flat) {
|
|
818
|
-
entries = Array.isArray(value) ? value : [value];
|
|
819
|
-
} else {
|
|
820
|
-
entries = Array.isArray(value.entry) ? value.entry : [value.entry];
|
|
821
|
-
}
|
|
822
|
-
const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
|
|
823
|
-
const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
|
|
824
|
-
for (const entry of entries) {
|
|
825
|
-
const key = entry[keyProperty];
|
|
826
|
-
const value2 = entry[valueProperty];
|
|
827
|
-
if (value2 != null || sparse) {
|
|
828
|
-
buffer[key] = this.readSchema(memberNs, value2);
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
return buffer;
|
|
832
|
-
}
|
|
833
|
-
if (ns.isStructSchema()) {
|
|
834
|
-
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
835
|
-
const memberTraits = memberSchema.getMergedTraits();
|
|
836
|
-
const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName();
|
|
837
|
-
if (value[xmlObjectKey] != null) {
|
|
838
|
-
buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
return buffer;
|
|
842
|
-
}
|
|
843
|
-
if (ns.isDocumentSchema()) {
|
|
844
|
-
return value;
|
|
845
|
-
}
|
|
846
|
-
throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
|
|
847
|
-
}
|
|
848
|
-
if (ns.isListSchema()) {
|
|
849
|
-
return [];
|
|
850
|
-
}
|
|
851
|
-
if (ns.isMapSchema() || ns.isStructSchema()) {
|
|
852
|
-
return {};
|
|
853
|
-
}
|
|
854
|
-
return this.stringDeserializer.read(ns, value);
|
|
855
|
-
}
|
|
856
|
-
parseXml(xml) {
|
|
857
|
-
if (xml.length) {
|
|
858
|
-
const parser = new import_fast_xml_parser.XMLParser({
|
|
859
|
-
attributeNamePrefix: "",
|
|
860
|
-
htmlEntities: true,
|
|
861
|
-
ignoreAttributes: false,
|
|
862
|
-
ignoreDeclaration: true,
|
|
863
|
-
parseTagValue: false,
|
|
864
|
-
trimValues: false,
|
|
865
|
-
tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
|
|
866
|
-
});
|
|
867
|
-
parser.addEntity("#xD", "\r");
|
|
868
|
-
parser.addEntity("#10", "\n");
|
|
869
|
-
let parsedObj;
|
|
870
|
-
try {
|
|
871
|
-
parsedObj = parser.parse(xml, true);
|
|
872
|
-
} catch (e) {
|
|
873
|
-
if (e && typeof e === "object") {
|
|
874
|
-
Object.defineProperty(e, "$responseBodyText", {
|
|
875
|
-
value: xml
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
throw e;
|
|
879
|
-
}
|
|
880
|
-
const textNodeName = "#text";
|
|
881
|
-
const key = Object.keys(parsedObj)[0];
|
|
882
|
-
const parsedObjToReturn = parsedObj[key];
|
|
883
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
884
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
885
|
-
delete parsedObjToReturn[textNodeName];
|
|
886
|
-
}
|
|
887
|
-
return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn);
|
|
915
|
+
return undefined;
|
|
888
916
|
}
|
|
889
|
-
|
|
890
|
-
|
|
917
|
+
if (typeof value === "object" && "__type" in value) {
|
|
918
|
+
delete value.__type;
|
|
919
|
+
}
|
|
920
|
+
return smithyClient.expectUnion(value);
|
|
891
921
|
};
|
|
892
922
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
this.writeValue(String(value));
|
|
925
|
-
}
|
|
926
|
-
} else if (ns.isBigIntegerSchema()) {
|
|
927
|
-
if (value != null) {
|
|
928
|
-
this.writeKey(prefix);
|
|
929
|
-
this.writeValue(String(value));
|
|
930
|
-
}
|
|
931
|
-
} else if (ns.isBigDecimalSchema()) {
|
|
932
|
-
if (value != null) {
|
|
933
|
-
this.writeKey(prefix);
|
|
934
|
-
this.writeValue(value instanceof import_serde6.NumericValue ? value.string : String(value));
|
|
935
|
-
}
|
|
936
|
-
} else if (ns.isTimestampSchema()) {
|
|
937
|
-
if (value instanceof Date) {
|
|
938
|
-
this.writeKey(prefix);
|
|
939
|
-
const format = (0, import_protocols4.determineTimestampFormat)(ns, this.settings);
|
|
940
|
-
switch (format) {
|
|
941
|
-
case import_schema6.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
942
|
-
this.writeValue(value.toISOString().replace(".000Z", "Z"));
|
|
943
|
-
break;
|
|
944
|
-
case import_schema6.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
945
|
-
this.writeValue((0, import_smithy_client4.dateToUtcString)(value));
|
|
946
|
-
break;
|
|
947
|
-
case import_schema6.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
948
|
-
this.writeValue(String(value.getTime() / 1e3));
|
|
949
|
-
break;
|
|
923
|
+
class XmlShapeDeserializer extends SerdeContextConfig {
|
|
924
|
+
settings;
|
|
925
|
+
stringDeserializer;
|
|
926
|
+
constructor(settings) {
|
|
927
|
+
super();
|
|
928
|
+
this.settings = settings;
|
|
929
|
+
this.stringDeserializer = new protocols.FromStringShapeDeserializer(settings);
|
|
930
|
+
}
|
|
931
|
+
setSerdeContext(serdeContext) {
|
|
932
|
+
this.serdeContext = serdeContext;
|
|
933
|
+
this.stringDeserializer.setSerdeContext(serdeContext);
|
|
934
|
+
}
|
|
935
|
+
read(schema$1, bytes, key) {
|
|
936
|
+
const ns = schema.NormalizedSchema.of(schema$1);
|
|
937
|
+
const memberSchemas = ns.getMemberSchemas();
|
|
938
|
+
const isEventPayload = ns.isStructSchema() &&
|
|
939
|
+
ns.isMemberSchema() &&
|
|
940
|
+
!!Object.values(memberSchemas).find((memberNs) => {
|
|
941
|
+
return !!memberNs.getMemberTraits().eventPayload;
|
|
942
|
+
});
|
|
943
|
+
if (isEventPayload) {
|
|
944
|
+
const output = {};
|
|
945
|
+
const memberName = Object.keys(memberSchemas)[0];
|
|
946
|
+
const eventMemberSchema = memberSchemas[memberName];
|
|
947
|
+
if (eventMemberSchema.isBlobSchema()) {
|
|
948
|
+
output[memberName] = bytes;
|
|
949
|
+
}
|
|
950
|
+
else {
|
|
951
|
+
output[memberName] = this.read(memberSchemas[memberName], bytes);
|
|
952
|
+
}
|
|
953
|
+
return output;
|
|
950
954
|
}
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
const
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
}
|
|
955
|
+
const xmlString = (this.serdeContext?.utf8Encoder ?? utilUtf8.toUtf8)(bytes);
|
|
956
|
+
const parsedObject = this.parseXml(xmlString);
|
|
957
|
+
return this.readSchema(schema$1, key ? parsedObject[key] : parsedObject);
|
|
958
|
+
}
|
|
959
|
+
readSchema(_schema, value) {
|
|
960
|
+
const ns = schema.NormalizedSchema.of(_schema);
|
|
961
|
+
if (ns.isUnitSchema()) {
|
|
962
|
+
return;
|
|
963
|
+
}
|
|
964
|
+
const traits = ns.getMergedTraits();
|
|
965
|
+
if (ns.isListSchema() && !Array.isArray(value)) {
|
|
966
|
+
return this.readSchema(ns, [value]);
|
|
967
|
+
}
|
|
968
|
+
if (value == null) {
|
|
969
|
+
return value;
|
|
970
|
+
}
|
|
971
|
+
if (typeof value === "object") {
|
|
972
|
+
const sparse = !!traits.sparse;
|
|
973
|
+
const flat = !!traits.xmlFlattened;
|
|
974
|
+
if (ns.isListSchema()) {
|
|
975
|
+
const listValue = ns.getValueSchema();
|
|
976
|
+
const buffer = [];
|
|
977
|
+
const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
|
|
978
|
+
const source = flat ? value : (value[0] ?? value)[sourceKey];
|
|
979
|
+
const sourceArray = Array.isArray(source) ? source : [source];
|
|
980
|
+
for (const v of sourceArray) {
|
|
981
|
+
if (v != null || sparse) {
|
|
982
|
+
buffer.push(this.readSchema(listValue, v));
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
return buffer;
|
|
986
|
+
}
|
|
987
|
+
const buffer = {};
|
|
988
|
+
if (ns.isMapSchema()) {
|
|
989
|
+
const keyNs = ns.getKeySchema();
|
|
990
|
+
const memberNs = ns.getValueSchema();
|
|
991
|
+
let entries;
|
|
992
|
+
if (flat) {
|
|
993
|
+
entries = Array.isArray(value) ? value : [value];
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
entries = Array.isArray(value.entry) ? value.entry : [value.entry];
|
|
997
|
+
}
|
|
998
|
+
const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
|
|
999
|
+
const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
|
|
1000
|
+
for (const entry of entries) {
|
|
1001
|
+
const key = entry[keyProperty];
|
|
1002
|
+
const value = entry[valueProperty];
|
|
1003
|
+
if (value != null || sparse) {
|
|
1004
|
+
buffer[key] = this.readSchema(memberNs, value);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
return buffer;
|
|
1008
|
+
}
|
|
1009
|
+
if (ns.isStructSchema()) {
|
|
1010
|
+
const union = ns.isUnionSchema();
|
|
1011
|
+
let unionSerde;
|
|
1012
|
+
if (union) {
|
|
1013
|
+
unionSerde = new UnionSerde(value, buffer);
|
|
1014
|
+
}
|
|
1015
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
1016
|
+
const memberTraits = memberSchema.getMergedTraits();
|
|
1017
|
+
const xmlObjectKey = !memberTraits.httpPayload
|
|
1018
|
+
? memberSchema.getMemberTraits().xmlName ?? memberName
|
|
1019
|
+
: memberTraits.xmlName ?? memberSchema.getName();
|
|
1020
|
+
if (union) {
|
|
1021
|
+
unionSerde.mark(xmlObjectKey);
|
|
1022
|
+
}
|
|
1023
|
+
if (value[xmlObjectKey] != null) {
|
|
1024
|
+
buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
if (union) {
|
|
1028
|
+
unionSerde.writeUnknown();
|
|
1029
|
+
}
|
|
1030
|
+
return buffer;
|
|
1031
|
+
}
|
|
1032
|
+
if (ns.isDocumentSchema()) {
|
|
1033
|
+
return value;
|
|
1034
|
+
}
|
|
1035
|
+
throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
|
|
1036
|
+
}
|
|
1037
|
+
if (ns.isListSchema()) {
|
|
1038
|
+
return [];
|
|
1039
|
+
}
|
|
1040
|
+
if (ns.isMapSchema() || ns.isStructSchema()) {
|
|
1041
|
+
return {};
|
|
1042
|
+
}
|
|
1043
|
+
return this.stringDeserializer.read(ns, value);
|
|
1044
|
+
}
|
|
1045
|
+
parseXml(xml) {
|
|
1046
|
+
if (xml.length) {
|
|
1047
|
+
let parsedObj;
|
|
1048
|
+
try {
|
|
1049
|
+
parsedObj = xmlBuilder.parseXML(xml);
|
|
1050
|
+
}
|
|
1051
|
+
catch (e) {
|
|
1052
|
+
if (e && typeof e === "object") {
|
|
1053
|
+
Object.defineProperty(e, "$responseBodyText", {
|
|
1054
|
+
value: xml,
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
throw e;
|
|
1058
|
+
}
|
|
1059
|
+
const textNodeName = "#text";
|
|
1060
|
+
const key = Object.keys(parsedObj)[0];
|
|
1061
|
+
const parsedObjToReturn = parsedObj[key];
|
|
1062
|
+
if (parsedObjToReturn[textNodeName]) {
|
|
1063
|
+
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
1064
|
+
delete parsedObjToReturn[textNodeName];
|
|
1065
|
+
}
|
|
1066
|
+
return smithyClient.getValueFromTextNode(parsedObjToReturn);
|
|
1067
|
+
}
|
|
1068
|
+
return {};
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1036
1071
|
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1072
|
+
class QueryShapeSerializer extends SerdeContextConfig {
|
|
1073
|
+
settings;
|
|
1074
|
+
buffer;
|
|
1075
|
+
constructor(settings) {
|
|
1076
|
+
super();
|
|
1077
|
+
this.settings = settings;
|
|
1078
|
+
}
|
|
1079
|
+
write(schema$1, value, prefix = "") {
|
|
1080
|
+
if (this.buffer === undefined) {
|
|
1081
|
+
this.buffer = "";
|
|
1082
|
+
}
|
|
1083
|
+
const ns = schema.NormalizedSchema.of(schema$1);
|
|
1084
|
+
if (prefix && !prefix.endsWith(".")) {
|
|
1085
|
+
prefix += ".";
|
|
1086
|
+
}
|
|
1087
|
+
if (ns.isBlobSchema()) {
|
|
1088
|
+
if (typeof value === "string" || value instanceof Uint8Array) {
|
|
1089
|
+
this.writeKey(prefix);
|
|
1090
|
+
this.writeValue((this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value));
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
|
|
1094
|
+
if (value != null) {
|
|
1095
|
+
this.writeKey(prefix);
|
|
1096
|
+
this.writeValue(String(value));
|
|
1097
|
+
}
|
|
1098
|
+
else if (ns.isIdempotencyToken()) {
|
|
1099
|
+
this.writeKey(prefix);
|
|
1100
|
+
this.writeValue(serde.generateIdempotencyToken());
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
else if (ns.isBigIntegerSchema()) {
|
|
1104
|
+
if (value != null) {
|
|
1105
|
+
this.writeKey(prefix);
|
|
1106
|
+
this.writeValue(String(value));
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
else if (ns.isBigDecimalSchema()) {
|
|
1110
|
+
if (value != null) {
|
|
1111
|
+
this.writeKey(prefix);
|
|
1112
|
+
this.writeValue(value instanceof serde.NumericValue ? value.string : String(value));
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
else if (ns.isTimestampSchema()) {
|
|
1116
|
+
if (value instanceof Date) {
|
|
1117
|
+
this.writeKey(prefix);
|
|
1118
|
+
const format = protocols.determineTimestampFormat(ns, this.settings);
|
|
1119
|
+
switch (format) {
|
|
1120
|
+
case 5:
|
|
1121
|
+
this.writeValue(value.toISOString().replace(".000Z", "Z"));
|
|
1122
|
+
break;
|
|
1123
|
+
case 6:
|
|
1124
|
+
this.writeValue(smithyClient.dateToUtcString(value));
|
|
1125
|
+
break;
|
|
1126
|
+
case 7:
|
|
1127
|
+
this.writeValue(String(value.getTime() / 1000));
|
|
1128
|
+
break;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
else if (ns.isDocumentSchema()) {
|
|
1133
|
+
if (Array.isArray(value)) {
|
|
1134
|
+
this.write(64 | 15, value, prefix);
|
|
1135
|
+
}
|
|
1136
|
+
else if (value instanceof Date) {
|
|
1137
|
+
this.write(4, value, prefix);
|
|
1138
|
+
}
|
|
1139
|
+
else if (value instanceof Uint8Array) {
|
|
1140
|
+
this.write(21, value, prefix);
|
|
1141
|
+
}
|
|
1142
|
+
else if (value && typeof value === "object") {
|
|
1143
|
+
this.write(128 | 15, value, prefix);
|
|
1144
|
+
}
|
|
1145
|
+
else {
|
|
1146
|
+
this.writeKey(prefix);
|
|
1147
|
+
this.writeValue(String(value));
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
else if (ns.isListSchema()) {
|
|
1151
|
+
if (Array.isArray(value)) {
|
|
1152
|
+
if (value.length === 0) {
|
|
1153
|
+
if (this.settings.serializeEmptyLists) {
|
|
1154
|
+
this.writeKey(prefix);
|
|
1155
|
+
this.writeValue("");
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
const member = ns.getValueSchema();
|
|
1160
|
+
const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
|
|
1161
|
+
let i = 1;
|
|
1162
|
+
for (const item of value) {
|
|
1163
|
+
if (item == null) {
|
|
1164
|
+
continue;
|
|
1165
|
+
}
|
|
1166
|
+
const suffix = this.getKey("member", member.getMergedTraits().xmlName);
|
|
1167
|
+
const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
|
|
1168
|
+
this.write(member, item, key);
|
|
1169
|
+
++i;
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
else if (ns.isMapSchema()) {
|
|
1175
|
+
if (value && typeof value === "object") {
|
|
1176
|
+
const keySchema = ns.getKeySchema();
|
|
1177
|
+
const memberSchema = ns.getValueSchema();
|
|
1178
|
+
const flat = ns.getMergedTraits().xmlFlattened;
|
|
1179
|
+
let i = 1;
|
|
1180
|
+
for (const [k, v] of Object.entries(value)) {
|
|
1181
|
+
if (v == null) {
|
|
1182
|
+
continue;
|
|
1183
|
+
}
|
|
1184
|
+
const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName);
|
|
1185
|
+
const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
|
|
1186
|
+
const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName);
|
|
1187
|
+
const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
|
|
1188
|
+
this.write(keySchema, k, key);
|
|
1189
|
+
this.write(memberSchema, v, valueKey);
|
|
1190
|
+
++i;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
else if (ns.isStructSchema()) {
|
|
1195
|
+
if (value && typeof value === "object") {
|
|
1196
|
+
let didWriteMember = false;
|
|
1197
|
+
for (const [memberName, member] of serializingStructIterator(ns, value)) {
|
|
1198
|
+
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
|
1199
|
+
continue;
|
|
1200
|
+
}
|
|
1201
|
+
const suffix = this.getKey(memberName, member.getMergedTraits().xmlName);
|
|
1202
|
+
const key = `${prefix}${suffix}`;
|
|
1203
|
+
this.write(member, value[memberName], key);
|
|
1204
|
+
didWriteMember = true;
|
|
1205
|
+
}
|
|
1206
|
+
if (!didWriteMember && ns.isUnionSchema()) {
|
|
1207
|
+
const { $unknown } = value;
|
|
1208
|
+
if (Array.isArray($unknown)) {
|
|
1209
|
+
const [k, v] = $unknown;
|
|
1210
|
+
const key = `${prefix}${k}`;
|
|
1211
|
+
this.write(15, v, key);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
else if (ns.isUnitSchema()) ;
|
|
1217
|
+
else {
|
|
1218
|
+
throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
|
|
1219
|
+
}
|
|
1177
1220
|
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1221
|
+
flush() {
|
|
1222
|
+
if (this.buffer === undefined) {
|
|
1223
|
+
throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
|
|
1224
|
+
}
|
|
1225
|
+
const str = this.buffer;
|
|
1226
|
+
delete this.buffer;
|
|
1227
|
+
return str;
|
|
1228
|
+
}
|
|
1229
|
+
getKey(memberName, xmlName) {
|
|
1230
|
+
const key = xmlName ?? memberName;
|
|
1231
|
+
if (this.settings.capitalizeKeys) {
|
|
1232
|
+
return key[0].toUpperCase() + key.slice(1);
|
|
1233
|
+
}
|
|
1234
|
+
return key;
|
|
1235
|
+
}
|
|
1236
|
+
writeKey(key) {
|
|
1237
|
+
if (key.endsWith(".")) {
|
|
1238
|
+
key = key.slice(0, key.length - 1);
|
|
1239
|
+
}
|
|
1240
|
+
this.buffer += `&${protocols.extendedEncodeURIComponent(key)}=`;
|
|
1241
|
+
}
|
|
1242
|
+
writeValue(value) {
|
|
1243
|
+
this.buffer += protocols.extendedEncodeURIComponent(value);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1190
1246
|
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1247
|
+
class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
1248
|
+
options;
|
|
1249
|
+
serializer;
|
|
1250
|
+
deserializer;
|
|
1251
|
+
mixin = new ProtocolLib();
|
|
1252
|
+
constructor(options) {
|
|
1253
|
+
super({
|
|
1254
|
+
defaultNamespace: options.defaultNamespace,
|
|
1255
|
+
});
|
|
1256
|
+
this.options = options;
|
|
1257
|
+
const settings = {
|
|
1258
|
+
timestampFormat: {
|
|
1259
|
+
useTrait: true,
|
|
1260
|
+
default: 5,
|
|
1261
|
+
},
|
|
1262
|
+
httpBindings: false,
|
|
1263
|
+
xmlNamespace: options.xmlNamespace,
|
|
1264
|
+
serviceNamespace: options.defaultNamespace,
|
|
1265
|
+
serializeEmptyLists: true,
|
|
1266
|
+
};
|
|
1267
|
+
this.serializer = new QueryShapeSerializer(settings);
|
|
1268
|
+
this.deserializer = new XmlShapeDeserializer(settings);
|
|
1269
|
+
}
|
|
1270
|
+
getShapeId() {
|
|
1271
|
+
return "aws.protocols#awsQuery";
|
|
1272
|
+
}
|
|
1273
|
+
setSerdeContext(serdeContext) {
|
|
1274
|
+
this.serializer.setSerdeContext(serdeContext);
|
|
1275
|
+
this.deserializer.setSerdeContext(serdeContext);
|
|
1276
|
+
}
|
|
1277
|
+
getPayloadCodec() {
|
|
1278
|
+
throw new Error("AWSQuery protocol has no payload codec.");
|
|
1279
|
+
}
|
|
1280
|
+
async serializeRequest(operationSchema, input, context) {
|
|
1281
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
1282
|
+
if (!request.path.endsWith("/")) {
|
|
1283
|
+
request.path += "/";
|
|
1284
|
+
}
|
|
1285
|
+
Object.assign(request.headers, {
|
|
1286
|
+
"content-type": `application/x-www-form-urlencoded`,
|
|
1287
|
+
});
|
|
1288
|
+
if (schema.deref(operationSchema.input) === "unit" || !request.body) {
|
|
1289
|
+
request.body = "";
|
|
1290
|
+
}
|
|
1291
|
+
const action = operationSchema.name.split("#")[1] ?? operationSchema.name;
|
|
1292
|
+
request.body = `Action=${action}&Version=${this.options.version}` + request.body;
|
|
1293
|
+
if (request.body.endsWith("&")) {
|
|
1294
|
+
request.body = request.body.slice(-1);
|
|
1295
|
+
}
|
|
1296
|
+
return request;
|
|
1297
|
+
}
|
|
1298
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
1299
|
+
const deserializer = this.deserializer;
|
|
1300
|
+
const ns = schema.NormalizedSchema.of(operationSchema.output);
|
|
1301
|
+
const dataObject = {};
|
|
1302
|
+
if (response.statusCode >= 300) {
|
|
1303
|
+
const bytes = await protocols.collectBody(response.body, context);
|
|
1304
|
+
if (bytes.byteLength > 0) {
|
|
1305
|
+
Object.assign(dataObject, await deserializer.read(15, bytes));
|
|
1306
|
+
}
|
|
1307
|
+
await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
|
|
1308
|
+
}
|
|
1309
|
+
for (const header in response.headers) {
|
|
1310
|
+
const value = response.headers[header];
|
|
1311
|
+
delete response.headers[header];
|
|
1312
|
+
response.headers[header.toLowerCase()] = value;
|
|
1313
|
+
}
|
|
1314
|
+
const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name;
|
|
1315
|
+
const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : undefined;
|
|
1316
|
+
const bytes = await protocols.collectBody(response.body, context);
|
|
1317
|
+
if (bytes.byteLength > 0) {
|
|
1318
|
+
Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
|
|
1319
|
+
}
|
|
1320
|
+
const output = {
|
|
1321
|
+
$metadata: this.deserializeMetadata(response),
|
|
1322
|
+
...dataObject,
|
|
1323
|
+
};
|
|
1324
|
+
return output;
|
|
1325
|
+
}
|
|
1326
|
+
useNestedResult() {
|
|
1327
|
+
return true;
|
|
1328
|
+
}
|
|
1329
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1330
|
+
const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
|
|
1331
|
+
const errorData = this.loadQueryError(dataObject);
|
|
1332
|
+
const message = this.loadQueryErrorMessage(dataObject);
|
|
1333
|
+
errorData.message = message;
|
|
1334
|
+
errorData.Error = {
|
|
1335
|
+
Type: errorData.Type,
|
|
1336
|
+
Code: errorData.Code,
|
|
1337
|
+
Message: message,
|
|
1338
|
+
};
|
|
1339
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
|
|
1340
|
+
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
1341
|
+
const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
1342
|
+
const exception = new ErrorCtor(message);
|
|
1343
|
+
const output = {
|
|
1344
|
+
Type: errorData.Error.Type,
|
|
1345
|
+
Code: errorData.Error.Code,
|
|
1346
|
+
Error: errorData.Error,
|
|
1347
|
+
};
|
|
1348
|
+
for (const [name, member] of ns.structIterator()) {
|
|
1349
|
+
const target = member.getMergedTraits().xmlName ?? name;
|
|
1350
|
+
const value = errorData[target] ?? dataObject[target];
|
|
1351
|
+
output[name] = this.deserializer.readSchema(member, value);
|
|
1352
|
+
}
|
|
1353
|
+
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
1354
|
+
$fault: ns.getMergedTraits().error,
|
|
1355
|
+
message,
|
|
1356
|
+
}, output), dataObject);
|
|
1357
|
+
}
|
|
1358
|
+
loadQueryErrorCode(output, data) {
|
|
1359
|
+
const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
|
|
1360
|
+
if (code !== undefined) {
|
|
1361
|
+
return code;
|
|
1362
|
+
}
|
|
1363
|
+
if (output.statusCode == 404) {
|
|
1364
|
+
return "NotFound";
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
loadQueryError(data) {
|
|
1368
|
+
return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
|
|
1369
|
+
}
|
|
1370
|
+
loadQueryErrorMessage(data) {
|
|
1371
|
+
const errorData = this.loadQueryError(data);
|
|
1372
|
+
return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
|
|
1373
|
+
}
|
|
1374
|
+
getDefaultContentType() {
|
|
1375
|
+
return "application/x-www-form-urlencoded";
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1213
1378
|
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1379
|
+
class AwsEc2QueryProtocol extends AwsQueryProtocol {
|
|
1380
|
+
options;
|
|
1381
|
+
constructor(options) {
|
|
1382
|
+
super(options);
|
|
1383
|
+
this.options = options;
|
|
1384
|
+
const ec2Settings = {
|
|
1385
|
+
capitalizeKeys: true,
|
|
1386
|
+
flattenLists: true,
|
|
1387
|
+
serializeEmptyLists: false,
|
|
1388
|
+
};
|
|
1389
|
+
Object.assign(this.serializer.settings, ec2Settings);
|
|
1390
|
+
}
|
|
1391
|
+
useNestedResult() {
|
|
1392
|
+
return false;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1218
1395
|
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
return value;
|
|
1263
|
-
}, "parseXmlErrorBody");
|
|
1264
|
-
var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1265
|
-
if (data?.Error?.Code !== void 0) {
|
|
1266
|
-
return data.Error.Code;
|
|
1267
|
-
}
|
|
1268
|
-
if (data?.Code !== void 0) {
|
|
1269
|
-
return data.Code;
|
|
1270
|
-
}
|
|
1271
|
-
if (output.statusCode == 404) {
|
|
1272
|
-
return "NotFound";
|
|
1273
|
-
}
|
|
1274
|
-
}, "loadRestXmlErrorCode");
|
|
1396
|
+
const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1397
|
+
if (encoded.length) {
|
|
1398
|
+
let parsedObj;
|
|
1399
|
+
try {
|
|
1400
|
+
parsedObj = xmlBuilder.parseXML(encoded);
|
|
1401
|
+
}
|
|
1402
|
+
catch (e) {
|
|
1403
|
+
if (e && typeof e === "object") {
|
|
1404
|
+
Object.defineProperty(e, "$responseBodyText", {
|
|
1405
|
+
value: encoded,
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
throw e;
|
|
1409
|
+
}
|
|
1410
|
+
const textNodeName = "#text";
|
|
1411
|
+
const key = Object.keys(parsedObj)[0];
|
|
1412
|
+
const parsedObjToReturn = parsedObj[key];
|
|
1413
|
+
if (parsedObjToReturn[textNodeName]) {
|
|
1414
|
+
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
1415
|
+
delete parsedObjToReturn[textNodeName];
|
|
1416
|
+
}
|
|
1417
|
+
return smithyClient.getValueFromTextNode(parsedObjToReturn);
|
|
1418
|
+
}
|
|
1419
|
+
return {};
|
|
1420
|
+
});
|
|
1421
|
+
const parseXmlErrorBody = async (errorBody, context) => {
|
|
1422
|
+
const value = await parseXmlBody(errorBody, context);
|
|
1423
|
+
if (value.Error) {
|
|
1424
|
+
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
1425
|
+
}
|
|
1426
|
+
return value;
|
|
1427
|
+
};
|
|
1428
|
+
const loadRestXmlErrorCode = (output, data) => {
|
|
1429
|
+
if (data?.Error?.Code !== undefined) {
|
|
1430
|
+
return data.Error.Code;
|
|
1431
|
+
}
|
|
1432
|
+
if (data?.Code !== undefined) {
|
|
1433
|
+
return data.Code;
|
|
1434
|
+
}
|
|
1435
|
+
if (output.statusCode == 404) {
|
|
1436
|
+
return "NotFound";
|
|
1437
|
+
}
|
|
1438
|
+
};
|
|
1275
1439
|
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
)
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
const listTraits = listMember.getMergedTraits();
|
|
1374
|
-
const listValueSchema = listMember.getValueSchema();
|
|
1375
|
-
const listValueTraits = listValueSchema.getMergedTraits();
|
|
1376
|
-
const sparse = !!listValueTraits.sparse;
|
|
1377
|
-
const flat = !!listTraits.xmlFlattened;
|
|
1378
|
-
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
|
|
1379
|
-
const writeItem = /* @__PURE__ */ __name((container2, value) => {
|
|
1380
|
-
if (listValueSchema.isListSchema()) {
|
|
1381
|
-
this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container2, xmlns);
|
|
1382
|
-
} else if (listValueSchema.isMapSchema()) {
|
|
1383
|
-
this.writeMap(listValueSchema, value, container2, xmlns);
|
|
1384
|
-
} else if (listValueSchema.isStructSchema()) {
|
|
1385
|
-
const struct = this.writeStruct(listValueSchema, value, xmlns);
|
|
1386
|
-
container2.addChildNode(
|
|
1387
|
-
struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member")
|
|
1388
|
-
);
|
|
1389
|
-
} else {
|
|
1390
|
-
const listItemNode = import_xml_builder.XmlNode.of(
|
|
1391
|
-
flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"
|
|
1392
|
-
);
|
|
1393
|
-
this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
|
|
1394
|
-
container2.addChildNode(listItemNode);
|
|
1395
|
-
}
|
|
1396
|
-
}, "writeItem");
|
|
1397
|
-
if (flat) {
|
|
1398
|
-
for (const value of array) {
|
|
1399
|
-
if (sparse || value != null) {
|
|
1400
|
-
writeItem(container, value);
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
} else {
|
|
1404
|
-
const listNode = import_xml_builder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
|
|
1405
|
-
if (xmlns) {
|
|
1406
|
-
listNode.addAttribute(xmlnsAttr, xmlns);
|
|
1407
|
-
}
|
|
1408
|
-
for (const value of array) {
|
|
1409
|
-
if (sparse || value != null) {
|
|
1410
|
-
writeItem(listNode, value);
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
container.addChildNode(listNode);
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
|
|
1417
|
-
if (!mapMember.isMemberSchema()) {
|
|
1418
|
-
throw new Error(
|
|
1419
|
-
`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`
|
|
1420
|
-
);
|
|
1421
|
-
}
|
|
1422
|
-
const mapTraits = mapMember.getMergedTraits();
|
|
1423
|
-
const mapKeySchema = mapMember.getKeySchema();
|
|
1424
|
-
const mapKeyTraits = mapKeySchema.getMergedTraits();
|
|
1425
|
-
const keyTag = mapKeyTraits.xmlName ?? "key";
|
|
1426
|
-
const mapValueSchema = mapMember.getValueSchema();
|
|
1427
|
-
const mapValueTraits = mapValueSchema.getMergedTraits();
|
|
1428
|
-
const valueTag = mapValueTraits.xmlName ?? "value";
|
|
1429
|
-
const sparse = !!mapValueTraits.sparse;
|
|
1430
|
-
const flat = !!mapTraits.xmlFlattened;
|
|
1431
|
-
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
|
|
1432
|
-
const addKeyValue = /* @__PURE__ */ __name((entry, key, val) => {
|
|
1433
|
-
const keyNode = import_xml_builder.XmlNode.of(keyTag, key);
|
|
1434
|
-
const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
|
|
1435
|
-
if (keyXmlns) {
|
|
1436
|
-
keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
|
|
1437
|
-
}
|
|
1438
|
-
entry.addChildNode(keyNode);
|
|
1439
|
-
let valueNode = import_xml_builder.XmlNode.of(valueTag);
|
|
1440
|
-
if (mapValueSchema.isListSchema()) {
|
|
1441
|
-
this.writeList(mapValueSchema, val, valueNode, xmlns);
|
|
1442
|
-
} else if (mapValueSchema.isMapSchema()) {
|
|
1443
|
-
this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
|
|
1444
|
-
} else if (mapValueSchema.isStructSchema()) {
|
|
1445
|
-
valueNode = this.writeStruct(mapValueSchema, val, xmlns);
|
|
1446
|
-
} else {
|
|
1447
|
-
this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
|
|
1448
|
-
}
|
|
1449
|
-
entry.addChildNode(valueNode);
|
|
1450
|
-
}, "addKeyValue");
|
|
1451
|
-
if (flat) {
|
|
1452
|
-
for (const [key, val] of Object.entries(map)) {
|
|
1453
|
-
if (sparse || val != null) {
|
|
1454
|
-
const entry = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
|
|
1455
|
-
addKeyValue(entry, key, val);
|
|
1456
|
-
container.addChildNode(entry);
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
} else {
|
|
1460
|
-
let mapNode;
|
|
1461
|
-
if (!containerIsMap) {
|
|
1462
|
-
mapNode = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
|
|
1440
|
+
class XmlShapeSerializer extends SerdeContextConfig {
|
|
1441
|
+
settings;
|
|
1442
|
+
stringBuffer;
|
|
1443
|
+
byteBuffer;
|
|
1444
|
+
buffer;
|
|
1445
|
+
constructor(settings) {
|
|
1446
|
+
super();
|
|
1447
|
+
this.settings = settings;
|
|
1448
|
+
}
|
|
1449
|
+
write(schema$1, value) {
|
|
1450
|
+
const ns = schema.NormalizedSchema.of(schema$1);
|
|
1451
|
+
if (ns.isStringSchema() && typeof value === "string") {
|
|
1452
|
+
this.stringBuffer = value;
|
|
1453
|
+
}
|
|
1454
|
+
else if (ns.isBlobSchema()) {
|
|
1455
|
+
this.byteBuffer =
|
|
1456
|
+
"byteLength" in value
|
|
1457
|
+
? value
|
|
1458
|
+
: (this.serdeContext?.base64Decoder ?? utilBase64.fromBase64)(value);
|
|
1459
|
+
}
|
|
1460
|
+
else {
|
|
1461
|
+
this.buffer = this.writeStruct(ns, value, undefined);
|
|
1462
|
+
const traits = ns.getMergedTraits();
|
|
1463
|
+
if (traits.httpPayload && !traits.xmlName) {
|
|
1464
|
+
this.buffer.withName(ns.getName());
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
flush() {
|
|
1469
|
+
if (this.byteBuffer !== undefined) {
|
|
1470
|
+
const bytes = this.byteBuffer;
|
|
1471
|
+
delete this.byteBuffer;
|
|
1472
|
+
return bytes;
|
|
1473
|
+
}
|
|
1474
|
+
if (this.stringBuffer !== undefined) {
|
|
1475
|
+
const str = this.stringBuffer;
|
|
1476
|
+
delete this.stringBuffer;
|
|
1477
|
+
return str;
|
|
1478
|
+
}
|
|
1479
|
+
const buffer = this.buffer;
|
|
1480
|
+
if (this.settings.xmlNamespace) {
|
|
1481
|
+
if (!buffer?.attributes?.["xmlns"]) {
|
|
1482
|
+
buffer.addAttribute("xmlns", this.settings.xmlNamespace);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
delete this.buffer;
|
|
1486
|
+
return buffer.toString();
|
|
1487
|
+
}
|
|
1488
|
+
writeStruct(ns, value, parentXmlns) {
|
|
1489
|
+
const traits = ns.getMergedTraits();
|
|
1490
|
+
const name = ns.isMemberSchema() && !traits.httpPayload
|
|
1491
|
+
? ns.getMemberTraits().xmlName ?? ns.getMemberName()
|
|
1492
|
+
: traits.xmlName ?? ns.getName();
|
|
1493
|
+
if (!name || !ns.isStructSchema()) {
|
|
1494
|
+
throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`);
|
|
1495
|
+
}
|
|
1496
|
+
const structXmlNode = xmlBuilder.XmlNode.of(name);
|
|
1497
|
+
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
1498
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
|
1499
|
+
const val = value[memberName];
|
|
1500
|
+
if (val != null || memberSchema.isIdempotencyToken()) {
|
|
1501
|
+
if (memberSchema.getMergedTraits().xmlAttribute) {
|
|
1502
|
+
structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val));
|
|
1503
|
+
continue;
|
|
1504
|
+
}
|
|
1505
|
+
if (memberSchema.isListSchema()) {
|
|
1506
|
+
this.writeList(memberSchema, val, structXmlNode, xmlns);
|
|
1507
|
+
}
|
|
1508
|
+
else if (memberSchema.isMapSchema()) {
|
|
1509
|
+
this.writeMap(memberSchema, val, structXmlNode, xmlns);
|
|
1510
|
+
}
|
|
1511
|
+
else if (memberSchema.isStructSchema()) {
|
|
1512
|
+
structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
|
|
1513
|
+
}
|
|
1514
|
+
else {
|
|
1515
|
+
const memberNode = xmlBuilder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
|
|
1516
|
+
this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
|
|
1517
|
+
structXmlNode.addChildNode(memberNode);
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
const { $unknown } = value;
|
|
1522
|
+
if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) {
|
|
1523
|
+
const [k, v] = $unknown;
|
|
1524
|
+
const node = xmlBuilder.XmlNode.of(k);
|
|
1525
|
+
if (typeof v !== "string") {
|
|
1526
|
+
if (value instanceof xmlBuilder.XmlNode || value instanceof xmlBuilder.XmlText) {
|
|
1527
|
+
structXmlNode.addChildNode(value);
|
|
1528
|
+
}
|
|
1529
|
+
else {
|
|
1530
|
+
throw new Error(`@aws-sdk - $unknown union member in XML requires ` +
|
|
1531
|
+
`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
this.writeSimpleInto(0, v, node, xmlns);
|
|
1535
|
+
structXmlNode.addChildNode(node);
|
|
1536
|
+
}
|
|
1463
1537
|
if (xmlns) {
|
|
1464
|
-
|
|
1465
|
-
}
|
|
1466
|
-
container.addChildNode(mapNode);
|
|
1467
|
-
}
|
|
1468
|
-
for (const [key, val] of Object.entries(map)) {
|
|
1469
|
-
if (sparse || val != null) {
|
|
1470
|
-
const entry = import_xml_builder.XmlNode.of("entry");
|
|
1471
|
-
addKeyValue(entry, key, val);
|
|
1472
|
-
(containerIsMap ? container : mapNode).addChildNode(entry);
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
writeSimple(_schema, value) {
|
|
1478
|
-
if (null === value) {
|
|
1479
|
-
throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
|
|
1480
|
-
}
|
|
1481
|
-
const ns = import_schema8.NormalizedSchema.of(_schema);
|
|
1482
|
-
let nodeContents = null;
|
|
1483
|
-
if (value && typeof value === "object") {
|
|
1484
|
-
if (ns.isBlobSchema()) {
|
|
1485
|
-
nodeContents = (this.serdeContext?.base64Encoder ?? import_util_base643.toBase64)(value);
|
|
1486
|
-
} else if (ns.isTimestampSchema() && value instanceof Date) {
|
|
1487
|
-
const options = this.settings.timestampFormat;
|
|
1488
|
-
const format = options.useTrait ? ns.getSchema() === import_schema8.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
1489
|
-
switch (format) {
|
|
1490
|
-
case import_schema8.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
1491
|
-
nodeContents = value.toISOString().replace(".000Z", "Z");
|
|
1492
|
-
break;
|
|
1493
|
-
case import_schema8.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
1494
|
-
nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
|
|
1495
|
-
break;
|
|
1496
|
-
case import_schema8.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
1497
|
-
nodeContents = String(value.getTime() / 1e3);
|
|
1498
|
-
break;
|
|
1499
|
-
default:
|
|
1500
|
-
console.warn("Missing timestamp format, using http date", value);
|
|
1501
|
-
nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
|
|
1502
|
-
break;
|
|
1538
|
+
structXmlNode.addAttribute(xmlnsAttr, xmlns);
|
|
1503
1539
|
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
);
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1540
|
+
return structXmlNode;
|
|
1541
|
+
}
|
|
1542
|
+
writeList(listMember, array, container, parentXmlns) {
|
|
1543
|
+
if (!listMember.isMemberSchema()) {
|
|
1544
|
+
throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`);
|
|
1545
|
+
}
|
|
1546
|
+
const listTraits = listMember.getMergedTraits();
|
|
1547
|
+
const listValueSchema = listMember.getValueSchema();
|
|
1548
|
+
const listValueTraits = listValueSchema.getMergedTraits();
|
|
1549
|
+
const sparse = !!listValueTraits.sparse;
|
|
1550
|
+
const flat = !!listTraits.xmlFlattened;
|
|
1551
|
+
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
|
|
1552
|
+
const writeItem = (container, value) => {
|
|
1553
|
+
if (listValueSchema.isListSchema()) {
|
|
1554
|
+
this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container, xmlns);
|
|
1555
|
+
}
|
|
1556
|
+
else if (listValueSchema.isMapSchema()) {
|
|
1557
|
+
this.writeMap(listValueSchema, value, container, xmlns);
|
|
1558
|
+
}
|
|
1559
|
+
else if (listValueSchema.isStructSchema()) {
|
|
1560
|
+
const struct = this.writeStruct(listValueSchema, value, xmlns);
|
|
1561
|
+
container.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"));
|
|
1562
|
+
}
|
|
1563
|
+
else {
|
|
1564
|
+
const listItemNode = xmlBuilder.XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member");
|
|
1565
|
+
this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
|
|
1566
|
+
container.addChildNode(listItemNode);
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1569
|
+
if (flat) {
|
|
1570
|
+
for (const value of array) {
|
|
1571
|
+
if (sparse || value != null) {
|
|
1572
|
+
writeItem(container, value);
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
else {
|
|
1577
|
+
const listNode = xmlBuilder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
|
|
1578
|
+
if (xmlns) {
|
|
1579
|
+
listNode.addAttribute(xmlnsAttr, xmlns);
|
|
1580
|
+
}
|
|
1581
|
+
for (const value of array) {
|
|
1582
|
+
if (sparse || value != null) {
|
|
1583
|
+
writeItem(listNode, value);
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
container.addChildNode(listNode);
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
|
|
1590
|
+
if (!mapMember.isMemberSchema()) {
|
|
1591
|
+
throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`);
|
|
1592
|
+
}
|
|
1593
|
+
const mapTraits = mapMember.getMergedTraits();
|
|
1594
|
+
const mapKeySchema = mapMember.getKeySchema();
|
|
1595
|
+
const mapKeyTraits = mapKeySchema.getMergedTraits();
|
|
1596
|
+
const keyTag = mapKeyTraits.xmlName ?? "key";
|
|
1597
|
+
const mapValueSchema = mapMember.getValueSchema();
|
|
1598
|
+
const mapValueTraits = mapValueSchema.getMergedTraits();
|
|
1599
|
+
const valueTag = mapValueTraits.xmlName ?? "value";
|
|
1600
|
+
const sparse = !!mapValueTraits.sparse;
|
|
1601
|
+
const flat = !!mapTraits.xmlFlattened;
|
|
1602
|
+
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
|
|
1603
|
+
const addKeyValue = (entry, key, val) => {
|
|
1604
|
+
const keyNode = xmlBuilder.XmlNode.of(keyTag, key);
|
|
1605
|
+
const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
|
|
1606
|
+
if (keyXmlns) {
|
|
1607
|
+
keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
|
|
1608
|
+
}
|
|
1609
|
+
entry.addChildNode(keyNode);
|
|
1610
|
+
let valueNode = xmlBuilder.XmlNode.of(valueTag);
|
|
1611
|
+
if (mapValueSchema.isListSchema()) {
|
|
1612
|
+
this.writeList(mapValueSchema, val, valueNode, xmlns);
|
|
1613
|
+
}
|
|
1614
|
+
else if (mapValueSchema.isMapSchema()) {
|
|
1615
|
+
this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
|
|
1616
|
+
}
|
|
1617
|
+
else if (mapValueSchema.isStructSchema()) {
|
|
1618
|
+
valueNode = this.writeStruct(mapValueSchema, val, xmlns);
|
|
1619
|
+
}
|
|
1620
|
+
else {
|
|
1621
|
+
this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
|
|
1622
|
+
}
|
|
1623
|
+
entry.addChildNode(valueNode);
|
|
1624
|
+
};
|
|
1625
|
+
if (flat) {
|
|
1626
|
+
for (const [key, val] of Object.entries(map)) {
|
|
1627
|
+
if (sparse || val != null) {
|
|
1628
|
+
const entry = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
|
|
1629
|
+
addKeyValue(entry, key, val);
|
|
1630
|
+
container.addChildNode(entry);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
else {
|
|
1635
|
+
let mapNode;
|
|
1636
|
+
if (!containerIsMap) {
|
|
1637
|
+
mapNode = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
|
|
1638
|
+
if (xmlns) {
|
|
1639
|
+
mapNode.addAttribute(xmlnsAttr, xmlns);
|
|
1640
|
+
}
|
|
1641
|
+
container.addChildNode(mapNode);
|
|
1642
|
+
}
|
|
1643
|
+
for (const [key, val] of Object.entries(map)) {
|
|
1644
|
+
if (sparse || val != null) {
|
|
1645
|
+
const entry = xmlBuilder.XmlNode.of("entry");
|
|
1646
|
+
addKeyValue(entry, key, val);
|
|
1647
|
+
(containerIsMap ? container : mapNode).addChildNode(entry);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
writeSimple(_schema, value) {
|
|
1653
|
+
if (null === value) {
|
|
1654
|
+
throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
|
|
1655
|
+
}
|
|
1656
|
+
const ns = schema.NormalizedSchema.of(_schema);
|
|
1657
|
+
let nodeContents = null;
|
|
1658
|
+
if (value && typeof value === "object") {
|
|
1659
|
+
if (ns.isBlobSchema()) {
|
|
1660
|
+
nodeContents = (this.serdeContext?.base64Encoder ?? utilBase64.toBase64)(value);
|
|
1661
|
+
}
|
|
1662
|
+
else if (ns.isTimestampSchema() && value instanceof Date) {
|
|
1663
|
+
const format = protocols.determineTimestampFormat(ns, this.settings);
|
|
1664
|
+
switch (format) {
|
|
1665
|
+
case 5:
|
|
1666
|
+
nodeContents = value.toISOString().replace(".000Z", "Z");
|
|
1667
|
+
break;
|
|
1668
|
+
case 6:
|
|
1669
|
+
nodeContents = smithyClient.dateToUtcString(value);
|
|
1670
|
+
break;
|
|
1671
|
+
case 7:
|
|
1672
|
+
nodeContents = String(value.getTime() / 1000);
|
|
1673
|
+
break;
|
|
1674
|
+
default:
|
|
1675
|
+
console.warn("Missing timestamp format, using http date", value);
|
|
1676
|
+
nodeContents = smithyClient.dateToUtcString(value);
|
|
1677
|
+
break;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
else if (ns.isBigDecimalSchema() && value) {
|
|
1681
|
+
if (value instanceof serde.NumericValue) {
|
|
1682
|
+
return value.string;
|
|
1683
|
+
}
|
|
1684
|
+
return String(value);
|
|
1685
|
+
}
|
|
1686
|
+
else if (ns.isMapSchema() || ns.isListSchema()) {
|
|
1687
|
+
throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");
|
|
1688
|
+
}
|
|
1689
|
+
else {
|
|
1690
|
+
throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`);
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
|
|
1694
|
+
nodeContents = String(value);
|
|
1695
|
+
}
|
|
1696
|
+
if (ns.isStringSchema()) {
|
|
1697
|
+
if (value === undefined && ns.isIdempotencyToken()) {
|
|
1698
|
+
nodeContents = serde.generateIdempotencyToken();
|
|
1699
|
+
}
|
|
1700
|
+
else {
|
|
1701
|
+
nodeContents = String(value);
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
if (nodeContents === null) {
|
|
1705
|
+
throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
|
|
1706
|
+
}
|
|
1707
|
+
return nodeContents;
|
|
1708
|
+
}
|
|
1709
|
+
writeSimpleInto(_schema, value, into, parentXmlns) {
|
|
1710
|
+
const nodeContents = this.writeSimple(_schema, value);
|
|
1711
|
+
const ns = schema.NormalizedSchema.of(_schema);
|
|
1712
|
+
const content = new xmlBuilder.XmlText(nodeContents);
|
|
1713
|
+
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
1714
|
+
if (xmlns) {
|
|
1715
|
+
into.addAttribute(xmlnsAttr, xmlns);
|
|
1716
|
+
}
|
|
1717
|
+
into.addChildNode(content);
|
|
1718
|
+
}
|
|
1719
|
+
getXmlnsAttribute(ns, parentXmlns) {
|
|
1720
|
+
const traits = ns.getMergedTraits();
|
|
1721
|
+
const [prefix, xmlns] = traits.xmlNamespace ?? [];
|
|
1722
|
+
if (xmlns && xmlns !== parentXmlns) {
|
|
1723
|
+
return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns];
|
|
1724
|
+
}
|
|
1725
|
+
return [void 0, void 0];
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1548
1728
|
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
return deserializer;
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1729
|
+
class XmlCodec extends SerdeContextConfig {
|
|
1730
|
+
settings;
|
|
1731
|
+
constructor(settings) {
|
|
1732
|
+
super();
|
|
1733
|
+
this.settings = settings;
|
|
1734
|
+
}
|
|
1735
|
+
createSerializer() {
|
|
1736
|
+
const serializer = new XmlShapeSerializer(this.settings);
|
|
1737
|
+
serializer.setSerdeContext(this.serdeContext);
|
|
1738
|
+
return serializer;
|
|
1739
|
+
}
|
|
1740
|
+
createDeserializer() {
|
|
1741
|
+
const deserializer = new XmlShapeDeserializer(this.settings);
|
|
1742
|
+
deserializer.setSerdeContext(this.serdeContext);
|
|
1743
|
+
return deserializer;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1569
1746
|
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
const
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
const target = member.getMergedTraits().xmlName ?? name;
|
|
1673
|
-
const value = dataObject.Error?.[target] ?? dataObject[target];
|
|
1674
|
-
output[name] = this.codec.createDeserializer().readSchema(member, value);
|
|
1675
|
-
}
|
|
1676
|
-
Object.assign(exception, {
|
|
1677
|
-
$metadata: metadata,
|
|
1678
|
-
$response: response,
|
|
1679
|
-
$fault: ns.getMergedTraits().error,
|
|
1680
|
-
message,
|
|
1681
|
-
...output
|
|
1682
|
-
});
|
|
1683
|
-
throw exception;
|
|
1684
|
-
}
|
|
1685
|
-
};
|
|
1686
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1687
|
-
0 && (module.exports = {
|
|
1688
|
-
AwsEc2QueryProtocol,
|
|
1689
|
-
AwsJson1_0Protocol,
|
|
1690
|
-
AwsJson1_1Protocol,
|
|
1691
|
-
AwsJsonRpcProtocol,
|
|
1692
|
-
AwsQueryProtocol,
|
|
1693
|
-
AwsRestJsonProtocol,
|
|
1694
|
-
AwsRestXmlProtocol,
|
|
1695
|
-
JsonCodec,
|
|
1696
|
-
JsonShapeDeserializer,
|
|
1697
|
-
JsonShapeSerializer,
|
|
1698
|
-
XmlCodec,
|
|
1699
|
-
XmlShapeDeserializer,
|
|
1700
|
-
XmlShapeSerializer,
|
|
1701
|
-
_toBool,
|
|
1702
|
-
_toNum,
|
|
1703
|
-
_toStr,
|
|
1704
|
-
awsExpectUnion,
|
|
1705
|
-
loadRestJsonErrorCode,
|
|
1706
|
-
loadRestXmlErrorCode,
|
|
1707
|
-
parseJsonBody,
|
|
1708
|
-
parseJsonErrorBody,
|
|
1709
|
-
parseXmlBody,
|
|
1710
|
-
parseXmlErrorBody
|
|
1711
|
-
});
|
|
1747
|
+
class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
|
|
1748
|
+
codec;
|
|
1749
|
+
serializer;
|
|
1750
|
+
deserializer;
|
|
1751
|
+
mixin = new ProtocolLib();
|
|
1752
|
+
constructor(options) {
|
|
1753
|
+
super(options);
|
|
1754
|
+
const settings = {
|
|
1755
|
+
timestampFormat: {
|
|
1756
|
+
useTrait: true,
|
|
1757
|
+
default: 5,
|
|
1758
|
+
},
|
|
1759
|
+
httpBindings: true,
|
|
1760
|
+
xmlNamespace: options.xmlNamespace,
|
|
1761
|
+
serviceNamespace: options.defaultNamespace,
|
|
1762
|
+
};
|
|
1763
|
+
this.codec = new XmlCodec(settings);
|
|
1764
|
+
this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
1765
|
+
this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
1766
|
+
}
|
|
1767
|
+
getPayloadCodec() {
|
|
1768
|
+
return this.codec;
|
|
1769
|
+
}
|
|
1770
|
+
getShapeId() {
|
|
1771
|
+
return "aws.protocols#restXml";
|
|
1772
|
+
}
|
|
1773
|
+
async serializeRequest(operationSchema, input, context) {
|
|
1774
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
1775
|
+
const inputSchema = schema.NormalizedSchema.of(operationSchema.input);
|
|
1776
|
+
if (!request.headers["content-type"]) {
|
|
1777
|
+
const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
|
|
1778
|
+
if (contentType) {
|
|
1779
|
+
request.headers["content-type"] = contentType;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
if (typeof request.body === "string" &&
|
|
1783
|
+
request.headers["content-type"] === this.getDefaultContentType() &&
|
|
1784
|
+
!request.body.startsWith("<?xml ") &&
|
|
1785
|
+
!this.hasUnstructuredPayloadBinding(inputSchema)) {
|
|
1786
|
+
request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
|
|
1787
|
+
}
|
|
1788
|
+
return request;
|
|
1789
|
+
}
|
|
1790
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
1791
|
+
return super.deserializeResponse(operationSchema, context, response);
|
|
1792
|
+
}
|
|
1793
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1794
|
+
const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
|
|
1795
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
1796
|
+
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
1797
|
+
const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
1798
|
+
const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
1799
|
+
const exception = new ErrorCtor(message);
|
|
1800
|
+
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
1801
|
+
const output = {};
|
|
1802
|
+
for (const [name, member] of ns.structIterator()) {
|
|
1803
|
+
const target = member.getMergedTraits().xmlName ?? name;
|
|
1804
|
+
const value = dataObject.Error?.[target] ?? dataObject[target];
|
|
1805
|
+
output[name] = this.codec.createDeserializer().readSchema(member, value);
|
|
1806
|
+
}
|
|
1807
|
+
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
1808
|
+
$fault: ns.getMergedTraits().error,
|
|
1809
|
+
message,
|
|
1810
|
+
}, output), dataObject);
|
|
1811
|
+
}
|
|
1812
|
+
getDefaultContentType() {
|
|
1813
|
+
return "application/xml";
|
|
1814
|
+
}
|
|
1815
|
+
hasUnstructuredPayloadBinding(ns) {
|
|
1816
|
+
for (const [, member] of ns.structIterator()) {
|
|
1817
|
+
if (member.getMergedTraits().httpPayload) {
|
|
1818
|
+
return !(member.isStructSchema() || member.isMapSchema() || member.isListSchema());
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
return false;
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
exports.AwsEc2QueryProtocol = AwsEc2QueryProtocol;
|
|
1826
|
+
exports.AwsJson1_0Protocol = AwsJson1_0Protocol;
|
|
1827
|
+
exports.AwsJson1_1Protocol = AwsJson1_1Protocol;
|
|
1828
|
+
exports.AwsJsonRpcProtocol = AwsJsonRpcProtocol;
|
|
1829
|
+
exports.AwsQueryProtocol = AwsQueryProtocol;
|
|
1830
|
+
exports.AwsRestJsonProtocol = AwsRestJsonProtocol;
|
|
1831
|
+
exports.AwsRestXmlProtocol = AwsRestXmlProtocol;
|
|
1832
|
+
exports.AwsSmithyRpcV2CborProtocol = AwsSmithyRpcV2CborProtocol;
|
|
1833
|
+
exports.JsonCodec = JsonCodec;
|
|
1834
|
+
exports.JsonShapeDeserializer = JsonShapeDeserializer;
|
|
1835
|
+
exports.JsonShapeSerializer = JsonShapeSerializer;
|
|
1836
|
+
exports.XmlCodec = XmlCodec;
|
|
1837
|
+
exports.XmlShapeDeserializer = XmlShapeDeserializer;
|
|
1838
|
+
exports.XmlShapeSerializer = XmlShapeSerializer;
|
|
1839
|
+
exports._toBool = _toBool;
|
|
1840
|
+
exports._toNum = _toNum;
|
|
1841
|
+
exports._toStr = _toStr;
|
|
1842
|
+
exports.awsExpectUnion = awsExpectUnion;
|
|
1843
|
+
exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
|
|
1844
|
+
exports.loadRestXmlErrorCode = loadRestXmlErrorCode;
|
|
1845
|
+
exports.parseJsonBody = parseJsonBody;
|
|
1846
|
+
exports.parseJsonErrorBody = parseJsonErrorBody;
|
|
1847
|
+
exports.parseXmlBody = parseXmlBody;
|
|
1848
|
+
exports.parseXmlErrorBody = parseXmlErrorBody;
|