lambda-live-debugger 1.12.7 → 1.12.9
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/dist/extension/extension.zip +0 -0
- package/dist/extension/nodejs/node_modules/interceptor.js +9871 -8929
- package/dist/extension/nodejs/node_modules/interceptor.js.map +4 -4
- package/node_modules/@aws-sdk/checksums/dist-cjs/submodules/flexible-checksums/index.js +2 -1
- package/node_modules/@aws-sdk/checksums/dist-cjs/submodules/sha/index.js +464 -40
- package/node_modules/@aws-sdk/checksums/dist-cjs/submodules/xxh/index.js +914 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringUnionSelector.js +2 -1
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/index.browser.js +2 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/index.js +3 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512.js +71 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512Js.js +276 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512WebCrypto.js +76 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/U64.js +190 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/Xxh3.js +274 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/index.js +3 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash3_128/Xxh3_128.js +179 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash3_64/Xxh3_64.js +117 -0
- package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash64/Xxh64.js +150 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/index.browser.d.ts +2 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/index.d.ts +3 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512.d.ts +17 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512Js.d.ts +29 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512WebCrypto.d.ts +22 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/U64.d.ts +110 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/Xxh3.d.ts +139 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/index.d.ts +3 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash3_128/Xxh3_128.d.ts +37 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash3_64/Xxh3_64.d.ts +27 -0
- package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash64/Xxh64.d.ts +41 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/index.browser.d.ts +2 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/index.d.ts +3 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512.d.ts +12 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512Js.d.ts +22 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512WebCrypto.d.ts +14 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/U64.d.ts +27 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/Xxh3.d.ts +65 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/index.d.ts +3 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash3_128/Xxh3_128.d.ts +12 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash3_64/Xxh3_64.d.ts +10 -0
- package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash64/Xxh64.d.ts +17 -0
- package/node_modules/@aws-sdk/checksums/package.json +16 -6
- package/node_modules/@aws-sdk/checksums/xxh.d.ts +5 -0
- package/node_modules/@aws-sdk/checksums/xxh.js +5 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +38 -6
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/CloudFormationServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/errors.js +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +5 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +187 -181
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/CloudFormationServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/errors.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +27 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +184 -180
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/CloudFormationServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/errors.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +44 -4
- package/node_modules/@aws-sdk/client-iam/dist-es/models/IAMServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/models/errors.js +38 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +2 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/IAM.d.ts +367 -361
- package/node_modules/@aws-sdk/client-iam/dist-types/IAMClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/models/IAMServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/models/errors.d.ts +38 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAM.d.ts +364 -363
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/IAMServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/errors.d.ts +38 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/package.json +9 -9
- package/node_modules/@aws-sdk/client-iot/dist-cjs/index.js +109 -12
- package/node_modules/@aws-sdk/client-iot/dist-es/models/IoTServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-iot/dist-es/models/enums.js +14 -0
- package/node_modules/@aws-sdk/client-iot/dist-es/models/errors.js +33 -0
- package/node_modules/@aws-sdk/client-iot/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-iot/dist-es/schemas/schemas_0.js +51 -10
- package/node_modules/@aws-sdk/client-iot/dist-types/IoT.d.ts +551 -545
- package/node_modules/@aws-sdk/client-iot/dist-types/IoTClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/AttachSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CancelDetectMitigationActionsTaskCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateCustomMetricCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateDimensionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateTopicRuleCommand.d.ts +34 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateTopicRuleDestinationCommand.d.ts +14 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteCustomMetricCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteDimensionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteTopicRuleDestinationCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeprecateThingTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeCustomMetricCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeDetectMitigationActionsTaskCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeDimensionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DetachSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetBehaviorModelTrainingSummariesCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetTopicRuleCommand.d.ts +34 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetTopicRuleDestinationCommand.d.ts +7 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListActiveViolationsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListCustomMetricsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDetectMitigationActionsExecutionsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDetectMitigationActionsTasksCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDimensionsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListSecurityProfilesCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListStreamsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTargetsForPolicyCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTargetsForSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTopicRuleDestinationsCommand.d.ts +7 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListViolationEventsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/PutVerificationStateOnViolationCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ReplaceTopicRuleCommand.d.ts +34 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/StartDetectMitigationActionsTaskCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateCustomMetricCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateDimensionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ValidateSecurityProfileBehaviorsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/models/IoTServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/models/enums.d.ts +38 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/models/errors.d.ts +33 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/models/models_0.d.ts +195 -45
- package/node_modules/@aws-sdk/client-iot/dist-types/models/models_1.d.ts +47 -69
- package/node_modules/@aws-sdk/client-iot/dist-types/models/models_2.d.ts +114 -3
- package/node_modules/@aws-sdk/client-iot/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/schemas/schemas_0.d.ts +5 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/IoT.d.ts +548 -547
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeleteTopicRuleDestinationCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeprecateThingTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListTargetsForPolicyCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/IoTServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/enums.d.ts +18 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/errors.d.ts +33 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_0.d.ts +36 -11
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_1.d.ts +11 -18
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_2.d.ts +28 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
- package/node_modules/@aws-sdk/client-iot/package.json +8 -8
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-cjs/index.js +18 -4
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/models/IoTDataPlaneServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/models/errors.js +12 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/schemas/schemas_0.js +2 -2
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/IoTDataPlane.d.ts +29 -23
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/IoTDataPlaneClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/models/IoTDataPlaneServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/models/errors.d.ts +12 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/IoTDataPlane.d.ts +29 -22
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/models/IoTDataPlaneServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/models/errors.d.ts +12 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/package.json +8 -8
- package/node_modules/@aws-sdk/client-lambda/README.md +22 -1
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +165 -14
- package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/LambdaServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +17 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/errors.js +56 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +64 -13
- package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +199 -172
- package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +8 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CheckpointDurableExecutionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateAliasCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateCapacityProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +9 -7
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +7 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetAliasCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetResourcePolicyCommand.d.ts +84 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +10 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListAliasesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutResourcePolicyCommand.d.ts +98 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +8 -6
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +7 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/LambdaServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +33 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +57 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +124 -23
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +225 -170
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/LambdaClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/LambdaServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +20 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/errors.d.ts +56 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +28 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +9 -9
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +63 -17
- package/node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +8 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js +21 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +30 -16
- package/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +231 -225
- package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +3 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectRetentionCommand.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/models/S3ServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +16 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/models/errors.d.ts +21 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +186 -49
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +43 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +228 -224
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/S3ServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +9 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/errors.d.ts +21 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +23 -7
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +14 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/package.json +13 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +104 -1549
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +7 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/getDefaultSocketTimeout.js +10 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/getDefaultSocketTimeout.d.ts +11 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +25 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/getDefaultSocketTimeout.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +11 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +36 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/credential-providers/README.md +1 -1
- package/node_modules/@aws-sdk/credential-providers/package.json +16 -16
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js +36 -17
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3-control/index.js +6 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketHostnameUtils.js +6 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-region-redirect/region-redirect-middleware.js +2 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.js +8 -4
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.js +18 -8
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-ssec/middleware-ssec.js +2 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-process-arnables/parse-outpost-arnables.js +4 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-redirect-from-postid/redirect-from-postid.js +2 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +15 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +17 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +10 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +17 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +24 -12
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +13 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +12 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +12 -39
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSO.d.ts +9 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSOClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +9 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +33 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +24 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +22 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +40 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +14 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSO.d.ts +9 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +9 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STS.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +44 -22
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +44 -22
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +4 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +4 -0
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@inquirer/ansi/README.md +35 -3
- package/node_modules/@inquirer/ansi/package.json +5 -4
- package/node_modules/@inquirer/checkbox/README.md +75 -5
- package/node_modules/@inquirer/checkbox/dist/index.d.ts +19 -8
- package/node_modules/@inquirer/checkbox/dist/index.js +4 -0
- package/node_modules/@inquirer/checkbox/package.json +9 -8
- package/node_modules/@inquirer/confirm/README.md +104 -5
- package/node_modules/@inquirer/confirm/dist/index.d.ts +37 -3
- package/node_modules/@inquirer/confirm/dist/index.js +66 -17
- package/node_modules/@inquirer/confirm/package.json +7 -6
- package/node_modules/@inquirer/core/README.md +44 -6
- package/node_modules/@inquirer/core/dist/index.js +12 -12
- package/node_modules/@inquirer/core/dist/lib/create-prompt.d.ts +10 -3
- package/node_modules/@inquirer/core/dist/lib/create-prompt.js +84 -55
- package/node_modules/@inquirer/core/dist/lib/hook-engine.d.ts +2 -8
- package/node_modules/@inquirer/core/dist/lib/hook-engine.js +9 -11
- package/node_modules/@inquirer/core/dist/lib/make-theme.js +3 -2
- package/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.d.ts +2 -3
- package/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js +2 -2
- package/node_modules/@inquirer/core/dist/lib/screen-manager.js +1 -1
- package/node_modules/@inquirer/core/dist/lib/theme.d.ts +1 -1
- package/node_modules/@inquirer/core/dist/lib/theme.js +1 -1
- package/node_modules/@inquirer/core/dist/lib/use-effect.js +1 -1
- package/node_modules/@inquirer/core/dist/lib/use-keypress.js +3 -3
- package/node_modules/@inquirer/core/dist/lib/use-memo.js +2 -2
- package/node_modules/@inquirer/core/dist/lib/use-prefix.js +3 -3
- package/node_modules/@inquirer/core/dist/lib/use-ref.js +1 -1
- package/node_modules/@inquirer/core/dist/lib/use-state.d.ts +5 -2
- package/node_modules/@inquirer/core/dist/lib/use-state.js +8 -3
- package/node_modules/@inquirer/core/dist/lib/utils.js +1 -1
- package/node_modules/@inquirer/core/package.json +9 -8
- package/node_modules/@inquirer/editor/README.md +75 -5
- package/node_modules/@inquirer/editor/dist/index.d.ts +10 -2
- package/node_modules/@inquirer/editor/package.json +8 -7
- package/node_modules/@inquirer/expand/README.md +76 -6
- package/node_modules/@inquirer/expand/dist/index.d.ts +15 -4
- package/node_modules/@inquirer/expand/dist/index.js +3 -3
- package/node_modules/@inquirer/expand/package.json +7 -6
- package/node_modules/@inquirer/external-editor/README.md +48 -3
- package/node_modules/@inquirer/external-editor/dist/index.js +4 -4
- package/node_modules/@inquirer/external-editor/package.json +6 -5
- package/node_modules/@inquirer/figures/package.json +5 -4
- package/node_modules/@inquirer/input/README.md +75 -5
- package/node_modules/@inquirer/input/dist/index.d.ts +13 -1
- package/node_modules/@inquirer/input/package.json +7 -6
- package/node_modules/@inquirer/number/README.md +75 -5
- package/node_modules/@inquirer/number/dist/index.d.ts +15 -5
- package/node_modules/@inquirer/number/dist/index.js +2 -7
- package/node_modules/@inquirer/number/dist/is-step-of.d.ts +1 -0
- package/node_modules/@inquirer/number/dist/is-step-of.js +22 -0
- package/node_modules/@inquirer/number/package.json +7 -6
- package/node_modules/@inquirer/password/README.md +99 -11
- package/node_modules/@inquirer/password/dist/index.d.ts +9 -1
- package/node_modules/@inquirer/password/dist/index.js +27 -8
- package/node_modules/@inquirer/password/package.json +8 -7
- package/node_modules/@inquirer/prompts/README.md +91 -13
- package/node_modules/@inquirer/prompts/package.json +16 -15
- package/node_modules/@inquirer/rawlist/README.md +75 -5
- package/node_modules/@inquirer/rawlist/dist/index.d.ts +11 -4
- package/node_modules/@inquirer/rawlist/dist/index.js +5 -4
- package/node_modules/@inquirer/rawlist/package.json +7 -6
- package/node_modules/@inquirer/search/README.md +83 -12
- package/node_modules/@inquirer/search/dist/index.d.ts +16 -4
- package/node_modules/@inquirer/search/dist/index.js +7 -2
- package/node_modules/@inquirer/search/package.json +8 -7
- package/node_modules/@inquirer/select/README.md +75 -5
- package/node_modules/@inquirer/select/dist/index.d.ts +13 -5
- package/node_modules/@inquirer/select/package.json +9 -8
- package/node_modules/@inquirer/type/dist/index.js +2 -2
- package/node_modules/@inquirer/type/dist/utils.d.ts +19 -3
- package/node_modules/@inquirer/type/dist/utils.js +15 -1
- package/node_modules/@inquirer/type/package.json +4 -3
- package/node_modules/@nodable/entities/package.json +2 -2
- package/node_modules/@nodable/entities/src/index.d.ts +5 -2
- package/node_modules/@smithy/core/CHANGELOG.md +102 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +6 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +174 -110
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +109 -21
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +6 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +14 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1792 -12
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +67 -25
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +71 -27
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +15 -7
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +18 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +35 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +18 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +12 -2
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +4 -0
- package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +34 -59
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +13 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +10 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +50 -15
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +24 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +4 -13
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +25 -3
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +44 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +8 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +10 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +15 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +13 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +56 -8
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +8 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +79 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +12 -3
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +12 -3
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +17 -4
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +20 -7
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +17 -8
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/race.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +15 -7
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.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/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
- package/node_modules/@smithy/core/dist-es/submodules/serde/writeKey.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/client.d.ts +11 -3
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/exceptions.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +17 -7
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +19 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/race.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.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/index.native.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/writeKey.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/client.d.ts +11 -3
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/exceptions.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +21 -7
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +19 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -11
- package/node_modules/{@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json → @smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +7 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -9
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/race.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.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/index.native.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/writeKey.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/errors.d.ts +5 -0
- package/node_modules/@smithy/core/errors.js +5 -0
- package/node_modules/@smithy/core/package.json +12 -2
- package/node_modules/@smithy/fetch-http-handler/CHANGELOG.md +17 -0
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +12 -5
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +8 -3
- package/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js +4 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts +12 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +12 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
- package/node_modules/@smithy/node-http-handler/CHANGELOG.md +68 -0
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +100 -33
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +4 -0
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +25 -10
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +34 -3
- package/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +30 -15
- package/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +10 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +10 -1
- package/node_modules/@smithy/node-http-handler/package.json +3 -3
- package/node_modules/@smithy/signature-v4/CHANGELOG.md +24 -0
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +39 -12
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +7 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +9 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +13 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +5 -1
- package/node_modules/@smithy/signature-v4/package.json +3 -3
- package/node_modules/@smithy/types/CHANGELOG.md +18 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/metrics.d.ts +8 -7
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +11 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/metrics.d.ts +8 -7
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +11 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/buffer.buffer.d.ts +10 -5
- package/node_modules/@types/node/buffer.d.ts +1 -0
- package/node_modules/@types/node/child_process.d.ts +1 -1
- package/node_modules/@types/node/crypto.d.ts +24 -14
- package/node_modules/@types/node/dgram.d.ts +119 -4
- package/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/node/ffi.d.ts +15 -1
- package/node_modules/@types/node/fs/promises.d.ts +61 -65
- package/node_modules/@types/node/fs.d.ts +86 -76
- package/node_modules/@types/node/http.d.ts +18 -2
- package/node_modules/@types/node/http2.d.ts +15 -6
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +2 -1
- package/node_modules/@types/node/net.d.ts +124 -20
- package/node_modules/@types/node/package.json +3 -18
- package/node_modules/@types/node/perf_hooks.d.ts +31 -19
- package/node_modules/@types/node/process.d.ts +53 -0
- package/node_modules/@types/node/quic.d.ts +290 -42
- package/node_modules/@types/node/sqlite.d.ts +6 -2
- package/node_modules/@types/node/stream/iter.d.ts +13 -16
- package/node_modules/@types/node/stream/web.d.ts +20 -0
- package/node_modules/@types/node/test/reporters.d.ts +1 -0
- package/node_modules/@types/node/test.d.ts +108 -0
- package/node_modules/@types/node/tls.d.ts +64 -25
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
- package/node_modules/@types/node/tty.d.ts +4 -3
- package/node_modules/@types/node/util.d.ts +6 -3
- package/node_modules/@types/node/vfs.d.ts +211 -0
- package/node_modules/@types/node/vm.d.ts +3 -2
- package/node_modules/@types/node/web-globals/streams.d.ts +4 -0
- package/node_modules/@types/node/worker_threads.d.ts +4 -1
- package/node_modules/@types/node/zlib.d.ts +775 -0
- package/node_modules/chalk/package.json +1 -1
- package/node_modules/chalk/source/index.js +2 -1
- package/node_modules/commander/Readme.md +6 -32
- package/node_modules/commander/index.js +1 -1
- package/node_modules/commander/lib/command.js +22 -9
- package/node_modules/commander/lib/help.js +6 -2
- package/node_modules/commander/lib/option.js +1 -1
- package/node_modules/commander/package.json +2 -1
- package/node_modules/commander/typings/index.d.ts +6 -3
- package/node_modules/fast-xml-builder/CHANGELOG.md +12 -0
- package/node_modules/fast-xml-builder/README.md +4 -1
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -1
- package/node_modules/fast-xml-builder/package.json +6 -10
- package/node_modules/fast-xml-builder/src/fxb.js +34 -24
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +18 -17
- package/node_modules/fast-xml-builder/src/util.js +10 -3
- package/node_modules/fast-xml-parser/CHANGELOG.md +23 -1
- package/node_modules/fast-xml-parser/README.md +10 -10
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +3 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +6 -6
- package/node_modules/fast-xml-parser/src/fxp.d.ts +3 -1
- package/node_modules/fast-xml-parser/src/validator.js +98 -5
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +16 -1
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +65 -7
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +7 -1
- package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +14 -0
- package/node_modules/inquirer/README.md +38 -12
- package/node_modules/inquirer/dist/index.d.ts +2 -3
- package/node_modules/inquirer/dist/index.js +3 -2
- package/node_modules/inquirer/dist/types.d.ts +3 -3
- package/node_modules/inquirer/dist/ui/prompt.js +3 -2
- package/node_modules/inquirer/package.json +9 -8
- package/node_modules/is-unsafe/README.md +34 -1
- package/node_modules/is-unsafe/package.json +3 -3
- package/node_modules/is-unsafe/src/contexts/xml.js +2 -1
- package/node_modules/is-unsafe/src/index.d.ts +9 -1
- package/node_modules/is-unsafe/src/index.js +29 -2
- package/node_modules/is-unsafe/src/util/decode-entities.js +48 -0
- package/node_modules/strnum/CHANGELOG.md +12 -0
- package/node_modules/strnum/package.json +1 -1
- package/node_modules/strnum/strnum.js +15 -10
- package/node_modules/toml/lib/compiler.js +101 -144
- package/node_modules/toml/lib/parser.js +20 -4
- package/node_modules/toml/package.json +1 -1
- package/node_modules/undici-types/client.d.ts +8 -3
- package/node_modules/undici-types/connector.d.ts +1 -0
- package/node_modules/undici-types/cookies.d.ts +1 -1
- package/node_modules/undici-types/dispatcher.d.ts +3 -3
- package/node_modules/undici-types/errors.d.ts +10 -0
- package/node_modules/undici-types/fetch.d.ts +5 -1
- package/node_modules/undici-types/handlers.d.ts +2 -0
- package/node_modules/undici-types/interceptors.d.ts +1 -1
- package/node_modules/undici-types/mock-interceptor.d.ts +5 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/proxy-agent.d.ts +7 -0
- package/node_modules/xml-naming/README.md +99 -1
- package/node_modules/xml-naming/package.json +4 -2
- package/node_modules/xml-naming/src/index.d.ts +34 -0
- package/node_modules/xml-naming/src/index.js +134 -22
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +19 -18
- package/node_modules/yaml/browser/dist/nodes/Alias.js +25 -23
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +19 -18
- package/node_modules/yaml/dist/nodes/Alias.js +25 -23
- package/node_modules/yaml/package.json +1 -1
- package/package.json +25 -25
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
- package/node_modules/@inquirer/core/dist/lib/promise-polyfill.d.ts +0 -7
- package/node_modules/@inquirer/core/dist/lib/promise-polyfill.js +0 -14
- package/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.d.ts +0 -10
- package/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.js +0 -13
- package/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.d.ts +0 -10
- package/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.js +0 -13
- package/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.d.ts +0 -10
- package/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.js +0 -13
- package/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.d.ts +0 -10
- package/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.js +0 -13
- package/node_modules/fast-xml-parser/node_modules/xml-naming/README.md +0 -287
- package/node_modules/fast-xml-parser/node_modules/xml-naming/package.json +0 -56
- package/node_modules/fast-xml-parser/node_modules/xml-naming/src/index.d.ts +0 -108
- package/node_modules/fast-xml-parser/node_modules/xml-naming/src/index.js +0 -382
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
- /package/node_modules/{@aws-sdk/core/dist-types/submodules/protocols/json → @smithy/core/dist-types/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
- /package/node_modules/{fast-xml-parser/node_modules/xml-naming → xml-naming}/LICENSE +0 -0
package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { NoOpLogger } from "@smithy/core/client";
|
|
2
2
|
import { HttpRequest } from "@smithy/core/protocols";
|
|
3
3
|
import { v4 } from "@smithy/core/serde";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY } from "@smithy/types";
|
|
4
5
|
import { isServerError, isThrottlingError, isTransientError, } from "../service-error-classification/service-error-classification";
|
|
6
|
+
import { isAbortError, race } from "../util-retry/race";
|
|
5
7
|
import { INVOCATION_ID_HEADER, REQUEST_HEADER } from "../util-retry/constants";
|
|
6
8
|
import { parseRetryAfterHeader } from "./parseRetryAfterHeader";
|
|
7
9
|
import { asSdkError } from "./util";
|
|
@@ -9,9 +11,11 @@ export function bindRetryMiddleware(isStreamingPayload) {
|
|
|
9
11
|
return (options) => (next, context) => async (args) => {
|
|
10
12
|
let retryStrategy = await options.retryStrategy();
|
|
11
13
|
const maxAttempts = await options.maxAttempts();
|
|
14
|
+
const abortSignal = context[SMITHY_CONTEXT_KEY]?.abortSignal;
|
|
12
15
|
if (isRetryStrategyV2(retryStrategy)) {
|
|
13
16
|
retryStrategy = retryStrategy;
|
|
14
|
-
|
|
17
|
+
const retryTokenScope = (context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : "");
|
|
18
|
+
let retryToken = await race(retryStrategy.acquireInitialRetryToken(retryTokenScope), abortSignal);
|
|
15
19
|
let lastError = new Error();
|
|
16
20
|
let attempts = 0;
|
|
17
21
|
let totalRetryDelay = 0;
|
|
@@ -39,9 +43,12 @@ export function bindRetryMiddleware(isStreamingPayload) {
|
|
|
39
43
|
throw lastError;
|
|
40
44
|
}
|
|
41
45
|
try {
|
|
42
|
-
retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
|
|
46
|
+
retryToken = await race(retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo), abortSignal);
|
|
43
47
|
}
|
|
44
|
-
catch (
|
|
48
|
+
catch (refreshError) {
|
|
49
|
+
if (abortSignal?.aborted && isAbortError(refreshError)) {
|
|
50
|
+
throw refreshError;
|
|
51
|
+
}
|
|
45
52
|
if (!lastError.$metadata) {
|
|
46
53
|
lastError.$metadata = {};
|
|
47
54
|
}
|
|
@@ -53,7 +60,7 @@ export function bindRetryMiddleware(isStreamingPayload) {
|
|
|
53
60
|
const delay = retryToken.getRetryDelay();
|
|
54
61
|
totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
|
|
55
62
|
if (delay > 0) {
|
|
56
|
-
await
|
|
63
|
+
await race(new Promise((resolve) => setTimeout(resolve, delay)), abortSignal);
|
|
57
64
|
}
|
|
58
65
|
}
|
|
59
66
|
}
|
|
@@ -67,7 +74,6 @@ export function bindRetryMiddleware(isStreamingPayload) {
|
|
|
67
74
|
}
|
|
68
75
|
};
|
|
69
76
|
}
|
|
70
|
-
const cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
71
77
|
const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" &&
|
|
72
78
|
typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" &&
|
|
73
79
|
typeof retryStrategy.recordSuccess !== "undefined";
|
|
@@ -83,12 +89,15 @@ const getRetryErrorInfo = (error, logger) => {
|
|
|
83
89
|
return errorInfo;
|
|
84
90
|
};
|
|
85
91
|
const getRetryErrorType = (error) => {
|
|
86
|
-
if (isThrottlingError(error))
|
|
92
|
+
if (isThrottlingError(error)) {
|
|
87
93
|
return "THROTTLING";
|
|
88
|
-
|
|
94
|
+
}
|
|
95
|
+
if (isTransientError(error)) {
|
|
89
96
|
return "TRANSIENT";
|
|
90
|
-
|
|
97
|
+
}
|
|
98
|
+
if (isServerError(error)) {
|
|
91
99
|
return "SERVER_ERROR";
|
|
100
|
+
}
|
|
92
101
|
return "CLIENT_ERROR";
|
|
93
102
|
};
|
|
94
103
|
export const retryMiddlewareOptions = {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export const asSdkError = (error) => {
|
|
2
|
-
if (error instanceof Error)
|
|
2
|
+
if (error instanceof Error) {
|
|
3
3
|
return error;
|
|
4
|
-
|
|
4
|
+
}
|
|
5
|
+
if (error instanceof Object) {
|
|
5
6
|
return Object.assign(new Error(), error);
|
|
6
|
-
|
|
7
|
+
}
|
|
8
|
+
if (typeof error === "string") {
|
|
7
9
|
return new Error(error);
|
|
10
|
+
}
|
|
8
11
|
return new Error(`AWS SDK error wrapper for ${error}`);
|
|
9
12
|
};
|
|
@@ -19,16 +19,17 @@ export const isBrowserNetworkError = (error) => {
|
|
|
19
19
|
export const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 ||
|
|
20
20
|
THROTTLING_ERROR_CODES.includes(error.name) ||
|
|
21
21
|
error.$retryable?.throttling == true;
|
|
22
|
-
export const isTransientError = (error, depth = 0) =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
export const isTransientError = (error, depth = 0) => error?.name !== "AbortError" &&
|
|
23
|
+
(isRetryableByTrait(error) ||
|
|
24
|
+
isClockSkewCorrectedError(error) ||
|
|
25
|
+
(error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
|
|
26
|
+
TRANSIENT_ERROR_CODES.includes(error.name) ||
|
|
27
|
+
NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
|
|
28
|
+
NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
|
|
29
|
+
TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
|
|
30
|
+
isBrowserNetworkError(error) ||
|
|
31
|
+
isNodeJsHttp2TransientError(error) ||
|
|
32
|
+
(error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1)));
|
|
32
33
|
export const isServerError = (error) => {
|
|
33
34
|
if (error.$metadata?.httpStatusCode !== undefined) {
|
|
34
35
|
const statusCode = error.$metadata.httpStatusCode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const race = (promise, signal) => {
|
|
2
|
+
if (!signal) {
|
|
3
|
+
return promise;
|
|
4
|
+
}
|
|
5
|
+
let cleanup = () => { };
|
|
6
|
+
const aborted = new Promise((_, reject) => {
|
|
7
|
+
const handler = () => reject(createAbortError());
|
|
8
|
+
if (signal.aborted) {
|
|
9
|
+
handler();
|
|
10
|
+
}
|
|
11
|
+
else if (typeof signal.addEventListener === "function") {
|
|
12
|
+
signal.addEventListener("abort", handler, { once: true });
|
|
13
|
+
cleanup = () => signal.removeEventListener("abort", handler);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
signal.onabort = handler;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return Promise.race([promise, aborted]).finally(cleanup);
|
|
20
|
+
};
|
|
21
|
+
const createAbortError = () => Object.assign(new Error("Request aborted"), { name: "AbortError" });
|
|
22
|
+
export const isAbortError = (error) => typeof error === "object" && error !== null && "name" in error && error.name === "AbortError";
|
|
@@ -7,12 +7,12 @@ export class TypeRegistry {
|
|
|
7
7
|
this.namespace = namespace;
|
|
8
8
|
this.schemas = schemas;
|
|
9
9
|
this.exceptions = exceptions;
|
|
10
|
-
}
|
|
11
|
-
static for(namespace) {
|
|
12
10
|
if (!TypeRegistry.registries.has(namespace)) {
|
|
13
|
-
TypeRegistry.registries.set(namespace,
|
|
11
|
+
TypeRegistry.registries.set(namespace, this);
|
|
14
12
|
}
|
|
15
|
-
|
|
13
|
+
}
|
|
14
|
+
static for(namespace) {
|
|
15
|
+
return TypeRegistry.registries.get(namespace) ?? new TypeRegistry(namespace);
|
|
16
16
|
}
|
|
17
17
|
copyFrom(other) {
|
|
18
18
|
const { schemas, exceptions } = this;
|
|
@@ -30,7 +30,9 @@ export class TypeRegistry {
|
|
|
30
30
|
register(shapeId, schema) {
|
|
31
31
|
const qualifiedName = this.normalizeShapeId(shapeId);
|
|
32
32
|
for (const r of [this, TypeRegistry.for(qualifiedName.split("#")[0])]) {
|
|
33
|
-
r.schemas.
|
|
33
|
+
if (!r.schemas.has(qualifiedName)) {
|
|
34
|
+
r.schemas.set(qualifiedName, schema);
|
|
35
|
+
}
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
getSchema(shapeId) {
|
|
@@ -55,9 +57,15 @@ export class TypeRegistry {
|
|
|
55
57
|
registerError(es, ctor) {
|
|
56
58
|
const $error = es;
|
|
57
59
|
const ns = $error[1];
|
|
60
|
+
const qualifiedName = ns + "#" + $error[2];
|
|
61
|
+
if (!ctor.hasOwnProperty?.("shapeId")) {
|
|
62
|
+
ctor.shapeId = qualifiedName;
|
|
63
|
+
}
|
|
58
64
|
for (const r of [this, TypeRegistry.for(ns)]) {
|
|
59
|
-
r.schemas.
|
|
60
|
-
|
|
65
|
+
if (!r.schemas.has(qualifiedName) && !r.exceptions.has($error)) {
|
|
66
|
+
r.schemas.set(qualifiedName, $error);
|
|
67
|
+
r.exceptions.set($error, ctor);
|
|
68
|
+
}
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
getErrorCtor(es) {
|
|
@@ -41,3 +41,5 @@ export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
|
41
41
|
const _getRandomValues = (array) => crypto.getRandomValues(array);
|
|
42
42
|
export const v4 = bindV4(_getRandomValues);
|
|
43
43
|
export const generateIdempotencyToken = v4;
|
|
44
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
45
|
+
export { writeKey } from "./writeKey";
|
|
@@ -40,3 +40,5 @@ export { streamCollector } from "./util-stream/stream-collector";
|
|
|
40
40
|
const _getRandomValues = getRandomValues;
|
|
41
41
|
export const v4 = bindV4(_getRandomValues);
|
|
42
42
|
export const generateIdempotencyToken = v4;
|
|
43
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
44
|
+
export { writeKey } from "./writeKey";
|
|
@@ -43,3 +43,5 @@ export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
|
43
43
|
const _getRandomValues = (array) => crypto.getRandomValues(array);
|
|
44
44
|
export const v4 = bindV4(_getRandomValues);
|
|
45
45
|
export const generateIdempotencyToken = v4;
|
|
46
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
47
|
+
export { writeKey } from "./writeKey";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
export const parseBoolean = (value) => {
|
|
2
3
|
switch (value) {
|
|
3
4
|
case "true":
|
|
@@ -137,6 +138,9 @@ export const expectUnion = (value) => {
|
|
|
137
138
|
const asObject = expectObject(value);
|
|
138
139
|
const setKeys = [];
|
|
139
140
|
for (const k in asObject) {
|
|
141
|
+
if (!hasOwn(asObject, k)) {
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
140
144
|
if (asObject[k] != null) {
|
|
141
145
|
setKeys.push(k);
|
|
142
146
|
}
|
|
@@ -7,12 +7,15 @@ export const calculateBodyLength = (body) => {
|
|
|
7
7
|
let len = body.length;
|
|
8
8
|
for (let i = len - 1; i >= 0; i--) {
|
|
9
9
|
const code = body.charCodeAt(i);
|
|
10
|
-
if (code > 0x7f && code <= 0x7ff)
|
|
10
|
+
if (code > 0x7f && code <= 0x7ff) {
|
|
11
11
|
len++;
|
|
12
|
-
|
|
12
|
+
}
|
|
13
|
+
else if (code > 0x7ff && code <= 0xffff) {
|
|
13
14
|
len += 2;
|
|
14
|
-
|
|
15
|
+
}
|
|
16
|
+
if (code >= 0xdc00 && code <= 0xdfff) {
|
|
15
17
|
i--;
|
|
18
|
+
}
|
|
16
19
|
}
|
|
17
20
|
return len;
|
|
18
21
|
}
|
|
@@ -6,6 +6,8 @@ export const getAwsChunkedEncodingStream = (readableStream, options) => {
|
|
|
6
6
|
checksumLocationName !== undefined &&
|
|
7
7
|
streamHasher !== undefined;
|
|
8
8
|
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
|
|
9
|
+
Promise.resolve(digest).catch(() => {
|
|
10
|
+
});
|
|
9
11
|
const reader = readableStream.getReader();
|
|
10
12
|
return new ReadableStream({
|
|
11
13
|
async pull(controller) {
|
|
@@ -13,8 +13,12 @@ export function getAwsChunkedEncodingStream(stream, options) {
|
|
|
13
13
|
checksumLocationName !== undefined &&
|
|
14
14
|
streamHasher !== undefined;
|
|
15
15
|
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
|
|
16
|
+
Promise.resolve(digest).catch(() => {
|
|
17
|
+
});
|
|
16
18
|
const awsChunkedEncodingStream = new Readable({
|
|
17
|
-
read
|
|
19
|
+
read() {
|
|
20
|
+
readable.resume();
|
|
21
|
+
},
|
|
18
22
|
});
|
|
19
23
|
readable.on("data", (data) => {
|
|
20
24
|
const length = bodyLengthChecker(data) || 0;
|
|
@@ -23,16 +27,27 @@ export function getAwsChunkedEncodingStream(stream, options) {
|
|
|
23
27
|
}
|
|
24
28
|
awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
|
|
25
29
|
awsChunkedEncodingStream.push(data);
|
|
26
|
-
awsChunkedEncodingStream.push("\r\n")
|
|
30
|
+
if (!awsChunkedEncodingStream.push("\r\n")) {
|
|
31
|
+
readable.pause();
|
|
32
|
+
}
|
|
27
33
|
});
|
|
34
|
+
readable.on("error", (err) => {
|
|
35
|
+
awsChunkedEncodingStream.destroy(err);
|
|
36
|
+
});
|
|
37
|
+
readable.pause();
|
|
28
38
|
readable.on("end", async () => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
try {
|
|
40
|
+
awsChunkedEncodingStream.push(`0\r\n`);
|
|
41
|
+
if (checksumRequired) {
|
|
42
|
+
const checksum = base64Encoder(await digest);
|
|
43
|
+
awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
|
|
44
|
+
awsChunkedEncodingStream.push(`\r\n`);
|
|
45
|
+
}
|
|
46
|
+
awsChunkedEncodingStream.push(null);
|
|
47
|
+
}
|
|
48
|
+
catch (err) {
|
|
49
|
+
awsChunkedEncodingStream.destroy(err);
|
|
34
50
|
}
|
|
35
|
-
awsChunkedEncodingStream.push(null);
|
|
36
51
|
});
|
|
37
52
|
return awsChunkedEncodingStream;
|
|
38
53
|
}
|
|
@@ -10,8 +10,9 @@ export class HttpResponse {
|
|
|
10
10
|
this.body = options.body;
|
|
11
11
|
}
|
|
12
12
|
static isInstance(response) {
|
|
13
|
-
if (!response)
|
|
13
|
+
if (!response) {
|
|
14
14
|
return false;
|
|
15
|
+
}
|
|
15
16
|
const resp = response;
|
|
16
17
|
return typeof resp.statusCode === "number" && typeof resp.headers === "object";
|
|
17
18
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "./hasOwn";
|
|
1
2
|
import { parseUrl } from "./parseUrl";
|
|
2
3
|
export const toEndpointV1 = (endpoint) => {
|
|
3
4
|
if (typeof endpoint === "object") {
|
|
@@ -6,6 +7,9 @@ export const toEndpointV1 = (endpoint) => {
|
|
|
6
7
|
if (endpoint.headers) {
|
|
7
8
|
v1Endpoint.headers = {};
|
|
8
9
|
for (const name in endpoint.headers) {
|
|
10
|
+
if (!hasOwn(endpoint.headers, name)) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
9
13
|
v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
10
14
|
}
|
|
11
15
|
}
|
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
1
|
+
import { AbstractRpcV2Protocol } from "@smithy/core/protocols";
|
|
2
|
+
import type { HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
4
3
|
import { CborCodec } from "./CborCodec";
|
|
5
4
|
/**
|
|
6
5
|
* Client protocol for Smithy RPCv2 CBOR.
|
|
7
6
|
*
|
|
8
7
|
* @public
|
|
9
8
|
*/
|
|
10
|
-
export declare class SmithyRpcV2CborProtocol extends
|
|
11
|
-
/**
|
|
12
|
-
* @override
|
|
13
|
-
*/
|
|
14
|
-
protected compositeErrorRegistry: TypeRegistry;
|
|
9
|
+
export declare class SmithyRpcV2CborProtocol extends AbstractRpcV2Protocol {
|
|
15
10
|
private codec;
|
|
16
11
|
protected serializer: import(".").CborShapeSerializer2;
|
|
17
12
|
protected deserializer: import(".").CborShapeDeserializer2;
|
|
18
|
-
constructor({ defaultNamespace, errorTypeRegistries, }: {
|
|
19
|
-
defaultNamespace: string;
|
|
20
|
-
errorTypeRegistries?: TypeRegistry[];
|
|
21
|
-
});
|
|
22
13
|
getShapeId(): string;
|
|
23
14
|
getPayloadCodec(): CborCodec;
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
protected getSmithyProtocolHeaderValue(): string;
|
|
16
|
+
protected applyEmptyBody(request: IHttpRequest): void;
|
|
26
17
|
protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
|
|
27
18
|
protected getDefaultContentType(): string;
|
|
28
19
|
}
|
|
@@ -18,6 +18,9 @@ export declare const dateToTag: (date: Date) => {
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const parseCborErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
|
|
20
20
|
/**
|
|
21
|
+
* Trims error.__type
|
|
22
|
+
* "com.a.b#Error:Sender,tag" -> "com.a.b#Error"
|
|
23
|
+
*
|
|
21
24
|
* @internal
|
|
22
25
|
*/
|
|
23
26
|
export declare const loadSmithyRpcV2CborErrorCode: (output: HttpResponse, data: any) => string | undefined;
|
|
@@ -5,7 +5,7 @@ export { invalidFunction } from "./invalid-dependency/invalidFunction";
|
|
|
5
5
|
export { invalidProvider } from "./invalid-dependency/invalidProvider";
|
|
6
6
|
export { createWaiter } from "./util-waiter/createWaiter";
|
|
7
7
|
export { waiterServiceDefaults, WaiterState, checkExceptions, type WaiterConfiguration, type WaiterOptions, type WaiterResult, } from "./util-waiter/waiter";
|
|
8
|
-
export { Client, type SmithyConfiguration, type SmithyResolvedConfiguration } from "./smithy-client/client";
|
|
8
|
+
export { Client, type SmithyClientRequestOptions, type SmithyConfiguration, type SmithyResolvedConfiguration, } from "./smithy-client/client";
|
|
9
9
|
export { Command, type CommandImpl } from "./smithy-client/command";
|
|
10
10
|
export { SENSITIVE_STRING } from "./smithy-client/constants";
|
|
11
11
|
export { createAggregatedClient } from "./smithy-client/create-aggregated-client";
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import type { $ClientProtocol, $ClientProtocolCtor, ClientProtocol, ClientProtocolCtor, Command, FetchHttpHandlerOptions, Client as IClient, MetadataBearer, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
|
|
1
|
+
import type { $ClientProtocol, $ClientProtocolCtor, ClientProtocol, ClientProtocolCtor, Command, FetchHttpHandlerOptions, Client as IClient, MetadataBearer, MetricsRecorder, MiddlewareStack, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* Options accepted for an individual Smithy client request.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export type SmithyClientRequestOptions<HandlerOptions> = unknown extends HandlerOptions ? HandlerOptions : HandlerOptions extends unknown ? keyof HandlerOptions extends never ? HandlerOptions : HandlerOptions & {
|
|
8
|
+
metricsRecorder?: MetricsRecorder<unknown>;
|
|
9
|
+
} : never;
|
|
2
10
|
/**
|
|
3
11
|
* @public
|
|
4
12
|
*/
|
|
@@ -77,8 +85,8 @@ export declare class Client<HandlerOptions, ClientInput extends object, ClientOu
|
|
|
77
85
|
*/
|
|
78
86
|
private handlers?;
|
|
79
87
|
constructor(config: ResolvedClientConfiguration);
|
|
80
|
-
send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options?: HandlerOptions): Promise<OutputType>;
|
|
88
|
+
send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options?: SmithyClientRequestOptions<HandlerOptions>): Promise<OutputType>;
|
|
81
89
|
send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, cb: (err: any, data?: OutputType) => void): void;
|
|
82
|
-
send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options: HandlerOptions
|
|
90
|
+
send<InputType extends ClientInput, OutputType extends ClientOutput>(command: Command<ClientInput, InputType, ClientOutput, OutputType, SmithyResolvedConfiguration<HandlerOptions>>, options: SmithyClientRequestOptions<HandlerOptions>, cb: (err: any, data?: OutputType) => void): void;
|
|
83
91
|
destroy(): void;
|
|
84
92
|
}
|
package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/exceptions.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface ServiceExceptionOptions extends SmithyException, MetadataBearer
|
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
20
|
export declare class ServiceException extends Error implements SmithyException, MetadataBearer {
|
|
21
|
+
static readonly shapeId: string;
|
|
21
22
|
readonly $fault: "client" | "server";
|
|
22
23
|
$response?: HttpResponse;
|
|
23
24
|
$retryable?: RetryableTrait;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A general SDK error that does not fall into a more specific category.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class SmithyError extends Error {
|
|
7
|
+
name: string;
|
|
8
|
+
readonly $source: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A value had the wrong type or could not be interpreted as the expected type.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export declare class SmithyTypeError extends TypeError {
|
|
16
|
+
name: string;
|
|
17
|
+
readonly $source: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A value was the correct type but fell outside its allowed range or bounds.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare class SmithyRangeError extends RangeError {
|
|
25
|
+
name: string;
|
|
26
|
+
readonly $source: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export type ErrorConstructor<E extends Error = Error> = new (message?: string) => E;
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export interface ErrorContainer {
|
|
36
|
+
readonly $source: string;
|
|
37
|
+
readonly Error: ErrorConstructor<SmithyError>;
|
|
38
|
+
readonly TypeError: ErrorConstructor<SmithyTypeError>;
|
|
39
|
+
readonly RangeError: ErrorConstructor<SmithyRangeError>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare const errors: ErrorContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { errors, type SmithyError, type SmithyRangeError, type SmithyTypeError } from "./errors";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, OperationSchema, SerdeFunctions } from "@smithy/types";
|
|
2
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
+
import { RpcProtocol } from "./RpcProtocol";
|
|
4
|
+
/**
|
|
5
|
+
* Shared abstract base for the Smithy RPC v2 client protocols (JSON and CBOR).
|
|
6
|
+
*
|
|
7
|
+
* Factors out the request-framing flow and response status handling that are
|
|
8
|
+
* identical across both RPC v2 protocols. Concrete protocols supply their
|
|
9
|
+
* codec, error handling, content type, shape id, and the two per-protocol
|
|
10
|
+
* request details via {@link getSmithyProtocolHeaderValue} and
|
|
11
|
+
* {@link applyEmptyBody}.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare abstract class AbstractRpcV2Protocol extends RpcProtocol {
|
|
16
|
+
/**
|
|
17
|
+
* @override
|
|
18
|
+
*/
|
|
19
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
20
|
+
constructor({ defaultNamespace, errorTypeRegistries, }: {
|
|
21
|
+
defaultNamespace: string;
|
|
22
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
23
|
+
});
|
|
24
|
+
serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
|
|
25
|
+
/**
|
|
26
|
+
* @override
|
|
27
|
+
*
|
|
28
|
+
* Per the Smithy RPC v2 specification, the only successful response status
|
|
29
|
+
* code is 200; any other status code MUST be handled as an error.
|
|
30
|
+
*/
|
|
31
|
+
protected isErrorResponse(statusCode: number): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @returns the value of the `smithy-protocol` header for this protocol,
|
|
34
|
+
* e.g. `rpc-v2-json` or `rpc-v2-cbor`.
|
|
35
|
+
*/
|
|
36
|
+
protected abstract getSmithyProtocolHeaderValue(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Applies this protocol's representation of an empty request body when the
|
|
39
|
+
* operation has a non-unit input but produced no serialized body. Called
|
|
40
|
+
* only for non-unit inputs.
|
|
41
|
+
*
|
|
42
|
+
* @param request - the request being serialized, mutated in place.
|
|
43
|
+
*/
|
|
44
|
+
protected abstract applyEmptyBody(request: IHttpRequest): void;
|
|
45
|
+
}
|
package/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare class SerdeContextConfig implements ConfigurableSerdeContext {
|
|
6
|
+
protected serdeContext?: SerdeFunctions;
|
|
7
|
+
setSerdeContext(serdeContext: SerdeFunctions): void;
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventStreamSerde } from "@smithy/core/event-streams";
|
|
2
2
|
import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
|
|
3
|
-
import type { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
3
|
+
import type { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer, StaticErrorSchema } from "@smithy/types";
|
|
4
4
|
import { SerdeContext } from "./SerdeContext";
|
|
5
5
|
/**
|
|
6
6
|
* Abstract base for HTTP-based client protocols.
|
|
@@ -43,6 +43,16 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
|
|
|
43
43
|
protected setHostPrefix<Input extends object>(request: IHttpRequest, operationSchema: OperationSchema, input: Input): void;
|
|
44
44
|
protected abstract handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
|
|
45
45
|
protected deserializeMetadata(output: IHttpResponse): ResponseMetadata;
|
|
46
|
+
/**
|
|
47
|
+
* For a given error short name, a list of preferred namespaces, and a list of preferred registries,
|
|
48
|
+
* find the error's schema and class.
|
|
49
|
+
*
|
|
50
|
+
* @param name - short error shape id.
|
|
51
|
+
* @param namespaces - must contain '*' to allow matching against an undeclared namespace.
|
|
52
|
+
* @param registries - in which to look.
|
|
53
|
+
* @returns matched error schema and constructor, with worst case being the least-descriptive DocumentSchema and native Error.
|
|
54
|
+
*/
|
|
55
|
+
protected resolveError(name: string, namespaces: string[], registries: TypeRegistry[]): [StaticErrorSchema, any, "modeled" | "synthetic" | "native"];
|
|
46
56
|
/**
|
|
47
57
|
* @param eventStream - the iterable provided by the caller.
|
|
48
58
|
* @param requestSchema - the schema of the event stream container (struct).
|
|
@@ -74,12 +84,6 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
|
|
|
74
84
|
* Loads eventStream capability async (for chunking).
|
|
75
85
|
*/
|
|
76
86
|
protected loadEventStreamCapability(): Promise<EventStreamSerde>;
|
|
77
|
-
/**
|
|
78
|
-
* Returns a platform-specific EventStreamMarshaller.
|
|
79
|
-
* Prefers user-injected marshaller from serdeContext (via client config),
|
|
80
|
-
* falls back to the dynamically imported provider.
|
|
81
|
-
*/
|
|
82
|
-
private resolveEventStreamMarshaller;
|
|
83
87
|
/**
|
|
84
88
|
* @returns content-type default header value for event stream events and other documents.
|
|
85
89
|
*/
|
|
@@ -92,4 +96,10 @@ export declare abstract class HttpProtocol extends SerdeContext implements Clien
|
|
|
92
96
|
protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[]>;
|
|
93
97
|
protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[]>;
|
|
94
98
|
protected getEventStreamMarshaller(): EventStreamMarshaller;
|
|
99
|
+
/**
|
|
100
|
+
* Returns a platform-specific EventStreamMarshaller.
|
|
101
|
+
* Prefers user-injected marshaller from serdeContext (via client config),
|
|
102
|
+
* falls back to the dynamically imported provider.
|
|
103
|
+
*/
|
|
104
|
+
private resolveEventStreamMarshaller;
|
|
95
105
|
}
|
|
@@ -13,4 +13,16 @@ export declare abstract class RpcProtocol extends HttpProtocol {
|
|
|
13
13
|
protected compositeErrorRegistry: TypeRegistry;
|
|
14
14
|
serializeRequest<Input extends object>(operationSchema: OperationSchema, _input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
|
|
15
15
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
|
|
16
|
+
/**
|
|
17
|
+
* Determines whether a response status code indicates an error response that
|
|
18
|
+
* should be routed to {@link handleError} rather than deserialized as output.
|
|
19
|
+
*
|
|
20
|
+
* The default treats any status code of 300 or greater as an error,
|
|
21
|
+
* preserving the historical behavior for RPC-over-HTTP protocols. Subclasses
|
|
22
|
+
* whose specification is stricter SHOULD override this.
|
|
23
|
+
*
|
|
24
|
+
* @param statusCode - the HTTP response status code.
|
|
25
|
+
* @returns true if the response should be handled as an error.
|
|
26
|
+
*/
|
|
27
|
+
protected isErrorResponse(statusCode: number): boolean;
|
|
16
28
|
}
|