@mavogel/awscdk-rootmail 0.0.320 → 0.0.321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +17 -17
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +3 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/models/models_0.js +3 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHealthCheckCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHostedZoneCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateVPCAssociationAuthorizationCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/DeleteVPCAssociationAuthorizationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/DisassociateVPCFromHostedZoneCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHealthCheckCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHostedZoneCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHealthChecksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZonesByVPCCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListResourceRecordSetsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListVPCAssociationAuthorizationsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHealthCheckCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +7 -4
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/node_modules/@aws-sdk/client-route-53/package.json +19 -19
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/package.json +32 -32
- package/node_modules/@aws-sdk/client-ses/package.json +17 -17
- package/node_modules/@aws-sdk/client-ssm/package.json +17 -17
- package/node_modules/@aws-sdk/client-sso/package.json +16 -16
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +366 -226
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +95 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +39 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +19 -29
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +10 -54
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +13 -34
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +11 -62
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +3 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +57 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +23 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +6 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +39 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +33 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +5 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +3 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +3 -1
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +3 -1
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +13 -9
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-middleware.js +15 -10
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +9 -9
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/package.json +16 -16
- package/node_modules/@aws-sdk/region-config-resolver/package.json +1 -1
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +5 -5
- package/node_modules/@aws-sdk/util-arn-parser/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +36 -33
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +36 -33
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +36 -33
- package/node_modules/@aws-sdk/util-endpoints/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +15 -15
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +2 -2
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +3 -3
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/LICENSE +201 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/README.md +4 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +1 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-cjs/index.js +60 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +1 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-cjs/types.js +1 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js +9 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-es/index.js +3 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-es/numberSelector.js +9 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-es/types.js +5 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts +10 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-types/index.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-types/numberSelector.d.ts +9 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-types/ts3.4/booleanSelector.d.ts +10 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-types/ts3.4/numberSelector.d.ts +9 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-types/ts3.4/types.d.ts +4 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/dist-types/types.d.ts +4 -0
- package/node_modules/@smithy/config-resolver/node_modules/@smithy/util-config-provider/package.json +63 -0
- package/node_modules/@smithy/config-resolver/package.json +6 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +47 -18
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +261 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +137 -42
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +28 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -5
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +36 -15
- package/node_modules/@smithy/core/dist-es/submodules/cbor/byte-printer.js +35 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +200 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +11 -26
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +36 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +36 -10
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +4 -2
- package/node_modules/@smithy/core/dist-types/getSmithyContext.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/resolveAuthOptions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-signing/getHttpSigningMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-signing/httpSigningMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/normalizeProvider.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +6 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +60 -0
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +39 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/collect-stream-body.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +60 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +39 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/memoizeIdentityProvider.d.ts +1 -1
- package/node_modules/@smithy/core/event-streams.d.ts +7 -0
- package/node_modules/@smithy/core/event-streams.js +6 -0
- package/node_modules/@smithy/core/package.json +19 -9
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/fetch-http-handler/dist-types/create-request.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +3 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +2 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +9 -8
- package/node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/README.md +10 -0
- package/node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +47 -0
- package/node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +13 -0
- package/node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +13 -0
- package/node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/package.json +61 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +5 -5
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/LICENSE +201 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/README.md +105 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +12 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +206 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +13 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +18 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +4 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +4 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +22 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +3 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +8 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +8 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +5 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +8 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +39 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +14 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +52 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +6 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +6 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +15 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +5 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +46 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +6 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +8 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +36 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +17 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +18 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +5 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +6 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +15 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +5 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +46 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +6 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +8 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +36 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +17 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +18 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +5 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +16 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +16 -0
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/package.json +73 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +33 -47
- package/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts +4 -3
- package/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +2 -1
- package/node_modules/@smithy/middleware-retry/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/util.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/package.json +11 -10
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +5 -5
- package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/package.json +6 -5
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +25 -30
- package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +1 -1
- package/node_modules/@smithy/middleware-stack/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/middleware-stack/package.json +3 -2
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +4 -4
- package/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +1 -1
- package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +1 -1
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/LICENSE +201 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/README.md +10 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/chain.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/index.js +170 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/memoize.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/ProviderError.js +22 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/chain.js +21 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/fromStatic.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/index.js +6 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/memoize.js +45 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +31 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +39 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +31 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/chain.d.ts +13 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +5 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/index.d.ts +24 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +40 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +31 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +39 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +31 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +13 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +5 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +24 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +40 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/package.json +61 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/LICENSE +201 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/README.md +105 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +12 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +206 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +13 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +18 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +4 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +4 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +22 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +3 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +5 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +39 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +9 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +14 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +52 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +6 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +9 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +1 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +2 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +2 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +15 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +5 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +46 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +36 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +17 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +2 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +18 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +5 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +2 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +2 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +15 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +5 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +46 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +8 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +36 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +17 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +2 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +18 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +5 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +16 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +16 -0
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/package.json +73 -0
- package/node_modules/@smithy/node-config-provider/package.json +5 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +5 -5
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +3 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +3 -2
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/LICENSE +201 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/README.md +4 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +1 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +1 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-cjs/index.js +84 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/AbortController.js +9 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +20 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/index.js +2 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +21 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/index.d.ts +9 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +21 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/package.json +63 -0
- package/node_modules/@smithy/node-http-handler/package.json +6 -5
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +4 -5
- package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +2 -2
- package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/package.json +3 -2
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/querystring-builder/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/LICENSE +201 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/README.md +10 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +1 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +1 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +43 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-es/escape-uri-path.js +2 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js +2 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-es/index.js +2 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-types/escape-uri-path.d.ts +4 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-types/escape-uri.d.ts +4 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-types/index.d.ts +8 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri-path.d.ts +4 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri.d.ts +4 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/index.d.ts +8 -0
- package/node_modules/@smithy/querystring-builder/node_modules/@smithy/util-uri-escape/package.json +60 -0
- package/node_modules/@smithy/querystring-builder/package.json +4 -3
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/querystring-parser/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/querystring-parser/package.json +3 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/service-error-classification/package.json +3 -2
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +55 -21
- package/node_modules/@smithy/smithy-client/dist-cjs/schemaLogFilter.js +1 -0
- package/node_modules/@smithy/smithy-client/dist-es/command.js +7 -4
- package/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js +34 -0
- package/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
- package/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/schemaLogFilter.d.ts +9 -0
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/schemaLogFilter.d.ts +9 -0
- package/node_modules/@smithy/smithy-client/package.json +8 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +7 -7
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +4 -4
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/checksum.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/client.d.ts +4 -4
- package/node_modules/@smithy/types/dist-types/command.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/encode.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/eventStream.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/http.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/retry.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +4 -4
- package/node_modules/@smithy/types/dist-types/shapes.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/signature.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/stream.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/uri.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/util.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/waiter.d.ts +1 -1
- package/node_modules/@smithy/types/package.json +2 -1
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/url-parser/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/url-parser/package.json +4 -3
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +4 -4
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +1 -2
- package/node_modules/@smithy/util-base64/package.json +7 -6
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +6 -9
- package/node_modules/@smithy/util-body-length-browser/package.json +5 -4
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/README.md +10 -0
- package/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +32 -0
- package/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +4 -0
- package/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +4 -0
- package/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/node_modules/@smithy/util-buffer-from/package.json +6 -5
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/LICENSE +201 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/README.md +10 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/chain.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/index.js +170 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/memoize.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +8 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/ProviderError.js +22 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +8 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/chain.js +21 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/fromStatic.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/index.js +6 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/memoize.js +45 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +31 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +39 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +31 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/chain.d.ts +13 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +5 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/index.d.ts +24 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +40 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +31 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +39 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +31 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +13 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +5 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +24 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +40 -0
- package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/package.json +61 -0
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -4
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +7 -7
- package/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/LICENSE +201 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/README.md +11 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +444 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js +5 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js +5 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js +8 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +9 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +77 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +134 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/index.js +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js +13 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js +3 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +36 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +2 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/types.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +17 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js +19 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js +25 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/Endpoint.d.ts +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +13 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointMode.d.ts +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +13 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts +12 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +21 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +10 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +28 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +19 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +40 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +6 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +8 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/retry.d.ts +10 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts +13 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts +13 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +12 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts +21 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts +10 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +28 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +19 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +40 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +6 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/index.d.ts +8 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts +10 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts +6 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts +21 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +16 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +7 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +6 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +21 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +16 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/package.json +70 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/LICENSE +201 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/README.md +10 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/chain.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/index.js +170 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/memoize.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +8 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/ProviderError.js +22 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +8 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/chain.js +21 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/fromStatic.js +1 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/index.js +6 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/memoize.js +45 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +31 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +39 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +31 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/chain.d.ts +13 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +5 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/index.d.ts +24 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +40 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +31 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +39 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +31 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +13 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +5 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +24 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +40 -0
- package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/package.json +61 -0
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -7
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +4 -5
- package/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts +1 -1
- package/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts +1 -1
- package/node_modules/@smithy/util-middleware/package.json +3 -2
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +2 -2
- package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/package.json +4 -3
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +11 -11
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +3 -2
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +3 -3
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +2 -1
- package/node_modules/@smithy/util-stream/node_modules/@smithy/util-hex-encoding/LICENSE +201 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/util-hex-encoding/README.md +4 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +67 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/util-hex-encoding/dist-es/index.js +33 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/util-hex-encoding/dist-types/index.d.ts +12 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/util-hex-encoding/dist-types/ts3.4/index.d.ts +12 -0
- package/node_modules/@smithy/util-stream/node_modules/@smithy/util-hex-encoding/package.json +61 -0
- package/node_modules/@smithy/util-stream/package.json +13 -12
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-utf8/package.json +6 -5
- package/node_modules/cdk-nag/.jsii +4 -4
- package/node_modules/cdk-nag/README.md +1 -1
- package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
- package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
- package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
- package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
- package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
- package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
- package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
- package/node_modules/cdk-nag/package.json +4 -4
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
AwsQueryProtocol: () => AwsQueryProtocol,
|
|
29
29
|
AwsRestJsonProtocol: () => AwsRestJsonProtocol,
|
|
30
30
|
AwsRestXmlProtocol: () => AwsRestXmlProtocol,
|
|
31
|
+
AwsSmithyRpcV2CborProtocol: () => AwsSmithyRpcV2CborProtocol,
|
|
31
32
|
JsonCodec: () => JsonCodec,
|
|
32
33
|
JsonShapeDeserializer: () => JsonShapeDeserializer,
|
|
33
34
|
JsonShapeSerializer: () => JsonShapeSerializer,
|
|
@@ -47,6 +48,198 @@ __export(index_exports, {
|
|
|
47
48
|
});
|
|
48
49
|
module.exports = __toCommonJS(index_exports);
|
|
49
50
|
|
|
51
|
+
// src/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.ts
|
|
52
|
+
var import_cbor = require("@smithy/core/cbor");
|
|
53
|
+
var import_schema2 = require("@smithy/core/schema");
|
|
54
|
+
|
|
55
|
+
// src/submodules/protocols/ProtocolLib.ts
|
|
56
|
+
var import_schema = require("@smithy/core/schema");
|
|
57
|
+
var import_util_body_length_browser = require("@smithy/util-body-length-browser");
|
|
58
|
+
var ProtocolLib = class {
|
|
59
|
+
static {
|
|
60
|
+
__name(this, "ProtocolLib");
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @param body - to be inspected.
|
|
64
|
+
* @param serdeContext - this is a subset type but in practice is the client.config having a property called bodyLengthChecker.
|
|
65
|
+
*
|
|
66
|
+
* @returns content-length value for the body if possible.
|
|
67
|
+
* @throws Error and should be caught and handled if not possible to determine length.
|
|
68
|
+
*/
|
|
69
|
+
calculateContentLength(body, serdeContext) {
|
|
70
|
+
const bodyLengthCalculator = serdeContext?.bodyLengthChecker ?? import_util_body_length_browser.calculateBodyLength;
|
|
71
|
+
return String(bodyLengthCalculator(body));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* This is only for REST protocols.
|
|
75
|
+
*
|
|
76
|
+
* @param defaultContentType - of the protocol.
|
|
77
|
+
* @param inputSchema - schema for which to determine content type.
|
|
78
|
+
*
|
|
79
|
+
* @returns content-type header value or undefined when not applicable.
|
|
80
|
+
*/
|
|
81
|
+
resolveRestContentType(defaultContentType, inputSchema) {
|
|
82
|
+
const members = inputSchema.getMemberSchemas();
|
|
83
|
+
const httpPayloadMember = Object.values(members).find((m) => {
|
|
84
|
+
return !!m.getMergedTraits().httpPayload;
|
|
85
|
+
});
|
|
86
|
+
if (httpPayloadMember) {
|
|
87
|
+
const mediaType = httpPayloadMember.getMergedTraits().mediaType;
|
|
88
|
+
if (mediaType) {
|
|
89
|
+
return mediaType;
|
|
90
|
+
} else if (httpPayloadMember.isStringSchema()) {
|
|
91
|
+
return "text/plain";
|
|
92
|
+
} else if (httpPayloadMember.isBlobSchema()) {
|
|
93
|
+
return "application/octet-stream";
|
|
94
|
+
} else {
|
|
95
|
+
return defaultContentType;
|
|
96
|
+
}
|
|
97
|
+
} else if (!inputSchema.isUnitSchema()) {
|
|
98
|
+
const hasBody = Object.values(members).find((m) => {
|
|
99
|
+
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
|
|
100
|
+
const noPrefixHeaders = httpPrefixHeaders === void 0;
|
|
101
|
+
return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders;
|
|
102
|
+
});
|
|
103
|
+
if (hasBody) {
|
|
104
|
+
return defaultContentType;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Shared code for finding error schema or throwing an unmodeled base error.
|
|
110
|
+
* @returns error schema and error metadata.
|
|
111
|
+
*
|
|
112
|
+
* @throws ServiceBaseException or generic Error if no error schema could be found.
|
|
113
|
+
*/
|
|
114
|
+
async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
|
|
115
|
+
let namespace = defaultNamespace;
|
|
116
|
+
let errorName = errorIdentifier;
|
|
117
|
+
if (errorIdentifier.includes("#")) {
|
|
118
|
+
[namespace, errorName] = errorIdentifier.split("#");
|
|
119
|
+
}
|
|
120
|
+
const errorMetadata = {
|
|
121
|
+
$metadata: metadata,
|
|
122
|
+
$response: response,
|
|
123
|
+
$fault: response.statusCode < 500 ? "client" : "server"
|
|
124
|
+
};
|
|
125
|
+
const registry = import_schema.TypeRegistry.for(namespace);
|
|
126
|
+
try {
|
|
127
|
+
const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
|
|
128
|
+
return { errorSchema, errorMetadata };
|
|
129
|
+
} catch (e) {
|
|
130
|
+
if (dataObject.Message) {
|
|
131
|
+
dataObject.message = dataObject.Message;
|
|
132
|
+
}
|
|
133
|
+
const baseExceptionSchema = import_schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
|
|
134
|
+
if (baseExceptionSchema) {
|
|
135
|
+
const ErrorCtor = baseExceptionSchema.ctor;
|
|
136
|
+
throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
|
|
137
|
+
}
|
|
138
|
+
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Reads the x-amzn-query-error header for awsQuery compatibility.
|
|
143
|
+
*
|
|
144
|
+
* @param output - values that will be assigned to an error object.
|
|
145
|
+
* @param response - from which to read awsQueryError headers.
|
|
146
|
+
*/
|
|
147
|
+
setQueryCompatError(output, response) {
|
|
148
|
+
const queryErrorHeader = response.headers?.["x-amzn-query-error"];
|
|
149
|
+
if (output !== void 0 && queryErrorHeader != null) {
|
|
150
|
+
const [Code, Type] = queryErrorHeader.split(";");
|
|
151
|
+
const entries = Object.entries(output);
|
|
152
|
+
const Error2 = {
|
|
153
|
+
Code,
|
|
154
|
+
Type
|
|
155
|
+
};
|
|
156
|
+
Object.assign(output, Error2);
|
|
157
|
+
for (const [k, v] of entries) {
|
|
158
|
+
Error2[k] = v;
|
|
159
|
+
}
|
|
160
|
+
delete Error2.__type;
|
|
161
|
+
output.Error = Error2;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Assigns Error, Type, Code from the awsQuery error object to the output error object.
|
|
166
|
+
* @param queryCompatErrorData - query compat error object.
|
|
167
|
+
* @param errorData - canonical error object returned to the caller.
|
|
168
|
+
*/
|
|
169
|
+
queryCompatOutput(queryCompatErrorData, errorData) {
|
|
170
|
+
if (queryCompatErrorData.Error) {
|
|
171
|
+
errorData.Error = queryCompatErrorData.Error;
|
|
172
|
+
}
|
|
173
|
+
if (queryCompatErrorData.Type) {
|
|
174
|
+
errorData.Type = queryCompatErrorData.Type;
|
|
175
|
+
}
|
|
176
|
+
if (queryCompatErrorData.Code) {
|
|
177
|
+
errorData.Code = queryCompatErrorData.Code;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
// src/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.ts
|
|
183
|
+
var AwsSmithyRpcV2CborProtocol = class extends import_cbor.SmithyRpcV2CborProtocol {
|
|
184
|
+
static {
|
|
185
|
+
__name(this, "AwsSmithyRpcV2CborProtocol");
|
|
186
|
+
}
|
|
187
|
+
awsQueryCompatible;
|
|
188
|
+
mixin = new ProtocolLib();
|
|
189
|
+
constructor({
|
|
190
|
+
defaultNamespace,
|
|
191
|
+
awsQueryCompatible
|
|
192
|
+
}) {
|
|
193
|
+
super({ defaultNamespace });
|
|
194
|
+
this.awsQueryCompatible = !!awsQueryCompatible;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @override
|
|
198
|
+
*/
|
|
199
|
+
async serializeRequest(operationSchema, input, context) {
|
|
200
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
201
|
+
if (this.awsQueryCompatible) {
|
|
202
|
+
request.headers["x-amzn-query-mode"] = "true";
|
|
203
|
+
}
|
|
204
|
+
return request;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @override
|
|
208
|
+
*/
|
|
209
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
210
|
+
if (this.awsQueryCompatible) {
|
|
211
|
+
this.mixin.setQueryCompatError(dataObject, response);
|
|
212
|
+
}
|
|
213
|
+
const errorName = (0, import_cbor.loadSmithyRpcV2CborErrorCode)(response, dataObject) ?? "Unknown";
|
|
214
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
215
|
+
errorName,
|
|
216
|
+
this.options.defaultNamespace,
|
|
217
|
+
response,
|
|
218
|
+
dataObject,
|
|
219
|
+
metadata
|
|
220
|
+
);
|
|
221
|
+
const ns = import_schema2.NormalizedSchema.of(errorSchema);
|
|
222
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
223
|
+
const exception = new errorSchema.ctor(message);
|
|
224
|
+
const output = {};
|
|
225
|
+
for (const [name, member] of ns.structIterator()) {
|
|
226
|
+
output[name] = this.deserializer.readValue(member, dataObject[name]);
|
|
227
|
+
}
|
|
228
|
+
if (this.awsQueryCompatible) {
|
|
229
|
+
this.mixin.queryCompatOutput(dataObject, output);
|
|
230
|
+
}
|
|
231
|
+
throw Object.assign(
|
|
232
|
+
exception,
|
|
233
|
+
errorMetadata,
|
|
234
|
+
{
|
|
235
|
+
$fault: ns.getMergedTraits().error,
|
|
236
|
+
message
|
|
237
|
+
},
|
|
238
|
+
output
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
|
|
50
243
|
// src/submodules/protocols/coercing-serializers.ts
|
|
51
244
|
var _toStr = /* @__PURE__ */ __name((val) => {
|
|
52
245
|
if (val == null) {
|
|
@@ -104,8 +297,7 @@ var _toNum = /* @__PURE__ */ __name((val) => {
|
|
|
104
297
|
|
|
105
298
|
// src/submodules/protocols/json/AwsJsonRpcProtocol.ts
|
|
106
299
|
var import_protocols = require("@smithy/core/protocols");
|
|
107
|
-
var
|
|
108
|
-
var import_util_body_length_browser = require("@smithy/util-body-length-browser");
|
|
300
|
+
var import_schema5 = require("@smithy/core/schema");
|
|
109
301
|
|
|
110
302
|
// src/submodules/protocols/ConfigurableSerdeContext.ts
|
|
111
303
|
var SerdeContextConfig = class {
|
|
@@ -119,7 +311,7 @@ var SerdeContextConfig = class {
|
|
|
119
311
|
};
|
|
120
312
|
|
|
121
313
|
// src/submodules/protocols/json/JsonShapeDeserializer.ts
|
|
122
|
-
var
|
|
314
|
+
var import_schema3 = require("@smithy/core/schema");
|
|
123
315
|
var import_serde2 = require("@smithy/core/serde");
|
|
124
316
|
var import_util_base64 = require("@smithy/util-base64");
|
|
125
317
|
|
|
@@ -145,7 +337,8 @@ __name(jsonReviver, "jsonReviver");
|
|
|
145
337
|
|
|
146
338
|
// src/submodules/protocols/common.ts
|
|
147
339
|
var import_smithy_client = require("@smithy/smithy-client");
|
|
148
|
-
var
|
|
340
|
+
var import_util_utf8 = require("@smithy/util-utf8");
|
|
341
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => (context?.utf8Encoder ?? import_util_utf8.toUtf8)(body)), "collectBodyString");
|
|
149
342
|
|
|
150
343
|
// src/submodules/protocols/json/parseJsonBody.ts
|
|
151
344
|
var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
@@ -221,7 +414,7 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
|
221
414
|
}
|
|
222
415
|
_read(schema, value) {
|
|
223
416
|
const isObject = value !== null && typeof value === "object";
|
|
224
|
-
const ns =
|
|
417
|
+
const ns = import_schema3.NormalizedSchema.of(schema);
|
|
225
418
|
if (ns.isListSchema() && Array.isArray(value)) {
|
|
226
419
|
const listMember = ns.getValueSchema();
|
|
227
420
|
const out = [];
|
|
@@ -265,13 +458,13 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
|
265
458
|
}
|
|
266
459
|
if (ns.isTimestampSchema()) {
|
|
267
460
|
const options = this.settings.timestampFormat;
|
|
268
|
-
const format = options.useTrait ? ns.getSchema() ===
|
|
461
|
+
const format = options.useTrait ? ns.getSchema() === import_schema3.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
269
462
|
switch (format) {
|
|
270
|
-
case
|
|
463
|
+
case import_schema3.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
271
464
|
return (0, import_serde2.parseRfc3339DateTimeWithOffset)(value);
|
|
272
|
-
case
|
|
465
|
+
case import_schema3.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
273
466
|
return (0, import_serde2.parseRfc7231DateTime)(value);
|
|
274
|
-
case
|
|
467
|
+
case import_schema3.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
275
468
|
return (0, import_serde2.parseEpochTimestamp)(value);
|
|
276
469
|
default:
|
|
277
470
|
console.warn("Missing timestamp format, parsing value with Date constructor:", value);
|
|
@@ -302,7 +495,7 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
|
302
495
|
};
|
|
303
496
|
|
|
304
497
|
// src/submodules/protocols/json/JsonShapeSerializer.ts
|
|
305
|
-
var
|
|
498
|
+
var import_schema4 = require("@smithy/core/schema");
|
|
306
499
|
var import_serde4 = require("@smithy/core/serde");
|
|
307
500
|
|
|
308
501
|
// src/submodules/protocols/json/jsonReplacer.ts
|
|
@@ -378,7 +571,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
378
571
|
buffer;
|
|
379
572
|
rootSchema;
|
|
380
573
|
write(schema, value) {
|
|
381
|
-
this.rootSchema =
|
|
574
|
+
this.rootSchema = import_schema4.NormalizedSchema.of(schema);
|
|
382
575
|
this.buffer = this._write(this.rootSchema, value);
|
|
383
576
|
}
|
|
384
577
|
flush() {
|
|
@@ -390,7 +583,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
390
583
|
}
|
|
391
584
|
_write(schema, value, container) {
|
|
392
585
|
const isObject = value !== null && typeof value === "object";
|
|
393
|
-
const ns =
|
|
586
|
+
const ns = import_schema4.NormalizedSchema.of(schema);
|
|
394
587
|
if (ns.isListSchema() && Array.isArray(value)) {
|
|
395
588
|
const listMember = ns.getValueSchema();
|
|
396
589
|
const out = [];
|
|
@@ -436,13 +629,13 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
436
629
|
}
|
|
437
630
|
if (ns.isTimestampSchema() && value instanceof Date) {
|
|
438
631
|
const options = this.settings.timestampFormat;
|
|
439
|
-
const format = options.useTrait ? ns.getSchema() ===
|
|
632
|
+
const format = options.useTrait ? ns.getSchema() === import_schema4.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
440
633
|
switch (format) {
|
|
441
|
-
case
|
|
634
|
+
case import_schema4.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
442
635
|
return value.toISOString().replace(".000Z", "Z");
|
|
443
|
-
case
|
|
636
|
+
case import_schema4.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
444
637
|
return (0, import_serde4.dateToUtcString)(value);
|
|
445
|
-
case
|
|
638
|
+
case import_schema4.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
446
639
|
return value.getTime() / 1e3;
|
|
447
640
|
default:
|
|
448
641
|
console.warn("Missing timestamp format, using epoch seconds", value);
|
|
@@ -500,7 +693,13 @@ var AwsJsonRpcProtocol = class extends import_protocols.RpcProtocol {
|
|
|
500
693
|
deserializer;
|
|
501
694
|
serviceTarget;
|
|
502
695
|
codec;
|
|
503
|
-
|
|
696
|
+
mixin = new ProtocolLib();
|
|
697
|
+
awsQueryCompatible;
|
|
698
|
+
constructor({
|
|
699
|
+
defaultNamespace,
|
|
700
|
+
serviceTarget,
|
|
701
|
+
awsQueryCompatible
|
|
702
|
+
}) {
|
|
504
703
|
super({
|
|
505
704
|
defaultNamespace
|
|
506
705
|
});
|
|
@@ -508,12 +707,13 @@ var AwsJsonRpcProtocol = class extends import_protocols.RpcProtocol {
|
|
|
508
707
|
this.codec = new JsonCodec({
|
|
509
708
|
timestampFormat: {
|
|
510
709
|
useTrait: true,
|
|
511
|
-
default:
|
|
710
|
+
default: import_schema5.SCHEMA.TIMESTAMP_EPOCH_SECONDS
|
|
512
711
|
},
|
|
513
712
|
jsonName: false
|
|
514
713
|
});
|
|
515
714
|
this.serializer = this.codec.createSerializer();
|
|
516
715
|
this.deserializer = this.codec.createDeserializer();
|
|
716
|
+
this.awsQueryCompatible = !!awsQueryCompatible;
|
|
517
717
|
}
|
|
518
718
|
async serializeRequest(operationSchema, input, context) {
|
|
519
719
|
const request = await super.serializeRequest(operationSchema, input, context);
|
|
@@ -522,13 +722,16 @@ var AwsJsonRpcProtocol = class extends import_protocols.RpcProtocol {
|
|
|
522
722
|
}
|
|
523
723
|
Object.assign(request.headers, {
|
|
524
724
|
"content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
|
|
525
|
-
"x-amz-target": `${this.serviceTarget}.${
|
|
725
|
+
"x-amz-target": `${this.serviceTarget}.${import_schema5.NormalizedSchema.of(operationSchema).getName()}`
|
|
526
726
|
});
|
|
527
|
-
if (
|
|
727
|
+
if (this.awsQueryCompatible) {
|
|
728
|
+
request.headers["x-amzn-query-mode"] = "true";
|
|
729
|
+
}
|
|
730
|
+
if ((0, import_schema5.deref)(operationSchema.input) === "unit" || !request.body) {
|
|
528
731
|
request.body = "{}";
|
|
529
732
|
}
|
|
530
733
|
try {
|
|
531
|
-
request.headers["content-length"] =
|
|
734
|
+
request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
|
|
532
735
|
} catch (e) {
|
|
533
736
|
}
|
|
534
737
|
return request;
|
|
@@ -537,41 +740,37 @@ var AwsJsonRpcProtocol = class extends import_protocols.RpcProtocol {
|
|
|
537
740
|
return this.codec;
|
|
538
741
|
}
|
|
539
742
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
let errorName = errorIdentifier;
|
|
543
|
-
if (errorIdentifier.includes("#")) {
|
|
544
|
-
[namespace, errorName] = errorIdentifier.split("#");
|
|
545
|
-
}
|
|
546
|
-
const registry = import_schema3.TypeRegistry.for(namespace);
|
|
547
|
-
let errorSchema;
|
|
548
|
-
try {
|
|
549
|
-
errorSchema = registry.getSchema(errorIdentifier);
|
|
550
|
-
} catch (e) {
|
|
551
|
-
const baseExceptionSchema = import_schema3.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
|
|
552
|
-
if (baseExceptionSchema) {
|
|
553
|
-
const ErrorCtor = baseExceptionSchema.ctor;
|
|
554
|
-
throw Object.assign(new ErrorCtor(errorName), dataObject);
|
|
555
|
-
}
|
|
556
|
-
throw new Error(errorName);
|
|
743
|
+
if (this.awsQueryCompatible) {
|
|
744
|
+
this.mixin.setQueryCompatError(dataObject, response);
|
|
557
745
|
}
|
|
558
|
-
const
|
|
746
|
+
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
747
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
748
|
+
errorIdentifier,
|
|
749
|
+
this.options.defaultNamespace,
|
|
750
|
+
response,
|
|
751
|
+
dataObject,
|
|
752
|
+
metadata
|
|
753
|
+
);
|
|
754
|
+
const ns = import_schema5.NormalizedSchema.of(errorSchema);
|
|
559
755
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
560
756
|
const exception = new errorSchema.ctor(message);
|
|
561
|
-
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
562
757
|
const output = {};
|
|
563
758
|
for (const [name, member] of ns.structIterator()) {
|
|
564
759
|
const target = member.getMergedTraits().jsonName ?? name;
|
|
565
760
|
output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
|
|
566
761
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
762
|
+
if (this.awsQueryCompatible) {
|
|
763
|
+
this.mixin.queryCompatOutput(dataObject, output);
|
|
764
|
+
}
|
|
765
|
+
throw Object.assign(
|
|
766
|
+
exception,
|
|
767
|
+
errorMetadata,
|
|
768
|
+
{
|
|
769
|
+
$fault: ns.getMergedTraits().error,
|
|
770
|
+
message
|
|
771
|
+
},
|
|
772
|
+
output
|
|
773
|
+
);
|
|
575
774
|
}
|
|
576
775
|
};
|
|
577
776
|
|
|
@@ -580,10 +779,15 @@ var AwsJson1_0Protocol = class extends AwsJsonRpcProtocol {
|
|
|
580
779
|
static {
|
|
581
780
|
__name(this, "AwsJson1_0Protocol");
|
|
582
781
|
}
|
|
583
|
-
constructor({
|
|
782
|
+
constructor({
|
|
783
|
+
defaultNamespace,
|
|
784
|
+
serviceTarget,
|
|
785
|
+
awsQueryCompatible
|
|
786
|
+
}) {
|
|
584
787
|
super({
|
|
585
788
|
defaultNamespace,
|
|
586
|
-
serviceTarget
|
|
789
|
+
serviceTarget,
|
|
790
|
+
awsQueryCompatible
|
|
587
791
|
});
|
|
588
792
|
}
|
|
589
793
|
getShapeId() {
|
|
@@ -605,10 +809,15 @@ var AwsJson1_1Protocol = class extends AwsJsonRpcProtocol {
|
|
|
605
809
|
static {
|
|
606
810
|
__name(this, "AwsJson1_1Protocol");
|
|
607
811
|
}
|
|
608
|
-
constructor({
|
|
812
|
+
constructor({
|
|
813
|
+
defaultNamespace,
|
|
814
|
+
serviceTarget,
|
|
815
|
+
awsQueryCompatible
|
|
816
|
+
}) {
|
|
609
817
|
super({
|
|
610
818
|
defaultNamespace,
|
|
611
|
-
serviceTarget
|
|
819
|
+
serviceTarget,
|
|
820
|
+
awsQueryCompatible
|
|
612
821
|
});
|
|
613
822
|
}
|
|
614
823
|
getShapeId() {
|
|
@@ -627,8 +836,7 @@ var AwsJson1_1Protocol = class extends AwsJsonRpcProtocol {
|
|
|
627
836
|
|
|
628
837
|
// src/submodules/protocols/json/AwsRestJsonProtocol.ts
|
|
629
838
|
var import_protocols2 = require("@smithy/core/protocols");
|
|
630
|
-
var
|
|
631
|
-
var import_util_body_length_browser2 = require("@smithy/util-body-length-browser");
|
|
839
|
+
var import_schema6 = require("@smithy/core/schema");
|
|
632
840
|
var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
|
|
633
841
|
static {
|
|
634
842
|
__name(this, "AwsRestJsonProtocol");
|
|
@@ -636,6 +844,7 @@ var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
|
|
|
636
844
|
serializer;
|
|
637
845
|
deserializer;
|
|
638
846
|
codec;
|
|
847
|
+
mixin = new ProtocolLib();
|
|
639
848
|
constructor({ defaultNamespace }) {
|
|
640
849
|
super({
|
|
641
850
|
defaultNamespace
|
|
@@ -643,7 +852,7 @@ var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
|
|
|
643
852
|
const settings = {
|
|
644
853
|
timestampFormat: {
|
|
645
854
|
useTrait: true,
|
|
646
|
-
default:
|
|
855
|
+
default: import_schema6.SCHEMA.TIMESTAMP_EPOCH_SECONDS
|
|
647
856
|
},
|
|
648
857
|
httpBindings: true,
|
|
649
858
|
jsonName: true
|
|
@@ -664,31 +873,11 @@ var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
|
|
|
664
873
|
}
|
|
665
874
|
async serializeRequest(operationSchema, input, context) {
|
|
666
875
|
const request = await super.serializeRequest(operationSchema, input, context);
|
|
667
|
-
const inputSchema =
|
|
668
|
-
const members = inputSchema.getMemberSchemas();
|
|
876
|
+
const inputSchema = import_schema6.NormalizedSchema.of(operationSchema.input);
|
|
669
877
|
if (!request.headers["content-type"]) {
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
if (httpPayloadMember) {
|
|
674
|
-
const mediaType = httpPayloadMember.getMergedTraits().mediaType;
|
|
675
|
-
if (mediaType) {
|
|
676
|
-
request.headers["content-type"] = mediaType;
|
|
677
|
-
} else if (httpPayloadMember.isStringSchema()) {
|
|
678
|
-
request.headers["content-type"] = "text/plain";
|
|
679
|
-
} else if (httpPayloadMember.isBlobSchema()) {
|
|
680
|
-
request.headers["content-type"] = "application/octet-stream";
|
|
681
|
-
} else {
|
|
682
|
-
request.headers["content-type"] = this.getDefaultContentType();
|
|
683
|
-
}
|
|
684
|
-
} else if (!inputSchema.isUnitSchema()) {
|
|
685
|
-
const hasBody = Object.values(members).find((m) => {
|
|
686
|
-
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
|
|
687
|
-
return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
|
|
688
|
-
});
|
|
689
|
-
if (hasBody) {
|
|
690
|
-
request.headers["content-type"] = this.getDefaultContentType();
|
|
691
|
-
}
|
|
878
|
+
const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
|
|
879
|
+
if (contentType) {
|
|
880
|
+
request.headers["content-type"] = contentType;
|
|
692
881
|
}
|
|
693
882
|
}
|
|
694
883
|
if (request.headers["content-type"] && !request.body) {
|
|
@@ -696,7 +885,7 @@ var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
|
|
|
696
885
|
}
|
|
697
886
|
if (request.body) {
|
|
698
887
|
try {
|
|
699
|
-
request.headers["content-length"] =
|
|
888
|
+
request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
|
|
700
889
|
} catch (e) {
|
|
701
890
|
}
|
|
702
891
|
}
|
|
@@ -704,24 +893,14 @@ var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
|
|
|
704
893
|
}
|
|
705
894
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
706
895
|
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
errorSchema = registry.getSchema(errorIdentifier);
|
|
716
|
-
} catch (e) {
|
|
717
|
-
const baseExceptionSchema = import_schema4.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
|
|
718
|
-
if (baseExceptionSchema) {
|
|
719
|
-
const ErrorCtor = baseExceptionSchema.ctor;
|
|
720
|
-
throw Object.assign(new ErrorCtor(errorName), dataObject);
|
|
721
|
-
}
|
|
722
|
-
throw new Error(errorName);
|
|
723
|
-
}
|
|
724
|
-
const ns = import_schema4.NormalizedSchema.of(errorSchema);
|
|
896
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
897
|
+
errorIdentifier,
|
|
898
|
+
this.options.defaultNamespace,
|
|
899
|
+
response,
|
|
900
|
+
dataObject,
|
|
901
|
+
metadata
|
|
902
|
+
);
|
|
903
|
+
const ns = import_schema6.NormalizedSchema.of(errorSchema);
|
|
725
904
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
726
905
|
const exception = new errorSchema.ctor(message);
|
|
727
906
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
@@ -730,14 +909,15 @@ var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
|
|
|
730
909
|
const target = member.getMergedTraits().jsonName ?? name;
|
|
731
910
|
output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
|
|
732
911
|
}
|
|
733
|
-
Object.assign(
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
912
|
+
throw Object.assign(
|
|
913
|
+
exception,
|
|
914
|
+
errorMetadata,
|
|
915
|
+
{
|
|
916
|
+
$fault: ns.getMergedTraits().error,
|
|
917
|
+
message
|
|
918
|
+
},
|
|
919
|
+
output
|
|
920
|
+
);
|
|
741
921
|
}
|
|
742
922
|
/**
|
|
743
923
|
* @override
|
|
@@ -761,14 +941,13 @@ var awsExpectUnion = /* @__PURE__ */ __name((value) => {
|
|
|
761
941
|
|
|
762
942
|
// src/submodules/protocols/query/AwsQueryProtocol.ts
|
|
763
943
|
var import_protocols5 = require("@smithy/core/protocols");
|
|
764
|
-
var
|
|
765
|
-
var import_util_body_length_browser3 = require("@smithy/util-body-length-browser");
|
|
944
|
+
var import_schema9 = require("@smithy/core/schema");
|
|
766
945
|
|
|
767
946
|
// src/submodules/protocols/xml/XmlShapeDeserializer.ts
|
|
768
947
|
var import_protocols3 = require("@smithy/core/protocols");
|
|
769
|
-
var
|
|
948
|
+
var import_schema7 = require("@smithy/core/schema");
|
|
770
949
|
var import_smithy_client3 = require("@smithy/smithy-client");
|
|
771
|
-
var
|
|
950
|
+
var import_util_utf82 = require("@smithy/util-utf8");
|
|
772
951
|
var import_fast_xml_parser = require("fast-xml-parser");
|
|
773
952
|
var XmlShapeDeserializer = class extends SerdeContextConfig {
|
|
774
953
|
constructor(settings) {
|
|
@@ -790,7 +969,7 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
|
|
|
790
969
|
* @param key - used by AwsQuery to step one additional depth into the object before reading it.
|
|
791
970
|
*/
|
|
792
971
|
read(schema, bytes, key) {
|
|
793
|
-
const ns =
|
|
972
|
+
const ns = import_schema7.NormalizedSchema.of(schema);
|
|
794
973
|
const memberSchemas = ns.getMemberSchemas();
|
|
795
974
|
const isEventPayload = ns.isStructSchema() && ns.isMemberSchema() && !!Object.values(memberSchemas).find((memberNs) => {
|
|
796
975
|
return !!memberNs.getMemberTraits().eventPayload;
|
|
@@ -806,12 +985,12 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
|
|
|
806
985
|
}
|
|
807
986
|
return output;
|
|
808
987
|
}
|
|
809
|
-
const xmlString = (this.serdeContext?.utf8Encoder ??
|
|
988
|
+
const xmlString = (this.serdeContext?.utf8Encoder ?? import_util_utf82.toUtf8)(bytes);
|
|
810
989
|
const parsedObject = this.parseXml(xmlString);
|
|
811
990
|
return this.readSchema(schema, key ? parsedObject[key] : parsedObject);
|
|
812
991
|
}
|
|
813
992
|
readSchema(_schema, value) {
|
|
814
|
-
const ns =
|
|
993
|
+
const ns = import_schema7.NormalizedSchema.of(_schema);
|
|
815
994
|
const traits = ns.getMergedTraits();
|
|
816
995
|
if (ns.isListSchema() && !Array.isArray(value)) {
|
|
817
996
|
return this.readSchema(ns, [value]);
|
|
@@ -918,7 +1097,7 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
|
|
|
918
1097
|
|
|
919
1098
|
// src/submodules/protocols/query/QueryShapeSerializer.ts
|
|
920
1099
|
var import_protocols4 = require("@smithy/core/protocols");
|
|
921
|
-
var
|
|
1100
|
+
var import_schema8 = require("@smithy/core/schema");
|
|
922
1101
|
var import_serde5 = require("@smithy/core/serde");
|
|
923
1102
|
var import_smithy_client4 = require("@smithy/smithy-client");
|
|
924
1103
|
var import_util_base642 = require("@smithy/util-base64");
|
|
@@ -935,7 +1114,7 @@ var QueryShapeSerializer = class extends SerdeContextConfig {
|
|
|
935
1114
|
if (this.buffer === void 0) {
|
|
936
1115
|
this.buffer = "";
|
|
937
1116
|
}
|
|
938
|
-
const ns =
|
|
1117
|
+
const ns = import_schema8.NormalizedSchema.of(schema);
|
|
939
1118
|
if (prefix && !prefix.endsWith(".")) {
|
|
940
1119
|
prefix += ".";
|
|
941
1120
|
}
|
|
@@ -967,13 +1146,13 @@ var QueryShapeSerializer = class extends SerdeContextConfig {
|
|
|
967
1146
|
this.writeKey(prefix);
|
|
968
1147
|
const format = (0, import_protocols4.determineTimestampFormat)(ns, this.settings);
|
|
969
1148
|
switch (format) {
|
|
970
|
-
case
|
|
1149
|
+
case import_schema8.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
971
1150
|
this.writeValue(value.toISOString().replace(".000Z", "Z"));
|
|
972
1151
|
break;
|
|
973
|
-
case
|
|
1152
|
+
case import_schema8.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
974
1153
|
this.writeValue((0, import_smithy_client4.dateToUtcString)(value));
|
|
975
1154
|
break;
|
|
976
|
-
case
|
|
1155
|
+
case import_schema8.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
977
1156
|
this.writeValue(String(value.getTime() / 1e3));
|
|
978
1157
|
break;
|
|
979
1158
|
}
|
|
@@ -1073,7 +1252,7 @@ var AwsQueryProtocol = class extends import_protocols5.RpcProtocol {
|
|
|
1073
1252
|
const settings = {
|
|
1074
1253
|
timestampFormat: {
|
|
1075
1254
|
useTrait: true,
|
|
1076
|
-
default:
|
|
1255
|
+
default: import_schema9.SCHEMA.TIMESTAMP_DATE_TIME
|
|
1077
1256
|
},
|
|
1078
1257
|
httpBindings: false,
|
|
1079
1258
|
xmlNamespace: options.xmlNamespace,
|
|
@@ -1088,6 +1267,7 @@ var AwsQueryProtocol = class extends import_protocols5.RpcProtocol {
|
|
|
1088
1267
|
}
|
|
1089
1268
|
serializer;
|
|
1090
1269
|
deserializer;
|
|
1270
|
+
mixin = new ProtocolLib();
|
|
1091
1271
|
getShapeId() {
|
|
1092
1272
|
return "aws.protocols#awsQuery";
|
|
1093
1273
|
}
|
|
@@ -1106,27 +1286,28 @@ var AwsQueryProtocol = class extends import_protocols5.RpcProtocol {
|
|
|
1106
1286
|
Object.assign(request.headers, {
|
|
1107
1287
|
"content-type": `application/x-www-form-urlencoded`
|
|
1108
1288
|
});
|
|
1109
|
-
if ((0,
|
|
1289
|
+
if ((0, import_schema9.deref)(operationSchema.input) === "unit" || !request.body) {
|
|
1110
1290
|
request.body = "";
|
|
1111
1291
|
}
|
|
1112
|
-
|
|
1292
|
+
const action = operationSchema.name.split("#")[1] ?? operationSchema.name;
|
|
1293
|
+
request.body = `Action=${action}&Version=${this.options.version}` + request.body;
|
|
1113
1294
|
if (request.body.endsWith("&")) {
|
|
1114
1295
|
request.body = request.body.slice(-1);
|
|
1115
1296
|
}
|
|
1116
1297
|
try {
|
|
1117
|
-
request.headers["content-length"] =
|
|
1298
|
+
request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
|
|
1118
1299
|
} catch (e) {
|
|
1119
1300
|
}
|
|
1120
1301
|
return request;
|
|
1121
1302
|
}
|
|
1122
1303
|
async deserializeResponse(operationSchema, context, response) {
|
|
1123
1304
|
const deserializer = this.deserializer;
|
|
1124
|
-
const ns =
|
|
1305
|
+
const ns = import_schema9.NormalizedSchema.of(operationSchema.output);
|
|
1125
1306
|
const dataObject = {};
|
|
1126
1307
|
if (response.statusCode >= 300) {
|
|
1127
1308
|
const bytes2 = await (0, import_protocols5.collectBody)(response.body, context);
|
|
1128
1309
|
if (bytes2.byteLength > 0) {
|
|
1129
|
-
Object.assign(dataObject, await deserializer.read(
|
|
1310
|
+
Object.assign(dataObject, await deserializer.read(import_schema9.SCHEMA.DOCUMENT, bytes2));
|
|
1130
1311
|
}
|
|
1131
1312
|
await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
|
|
1132
1313
|
}
|
|
@@ -1135,7 +1316,8 @@ var AwsQueryProtocol = class extends import_protocols5.RpcProtocol {
|
|
|
1135
1316
|
delete response.headers[header];
|
|
1136
1317
|
response.headers[header.toLowerCase()] = value;
|
|
1137
1318
|
}
|
|
1138
|
-
const
|
|
1319
|
+
const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name;
|
|
1320
|
+
const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : void 0;
|
|
1139
1321
|
const bytes = await (0, import_protocols5.collectBody)(response.body, context);
|
|
1140
1322
|
if (bytes.byteLength > 0) {
|
|
1141
1323
|
Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
|
|
@@ -1154,46 +1336,35 @@ var AwsQueryProtocol = class extends import_protocols5.RpcProtocol {
|
|
|
1154
1336
|
}
|
|
1155
1337
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1156
1338
|
const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
if (!errorSchema) {
|
|
1170
|
-
errorSchema = registry.getSchema(errorIdentifier);
|
|
1171
|
-
}
|
|
1172
|
-
} catch (e) {
|
|
1173
|
-
const baseExceptionSchema = import_schema7.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
|
|
1174
|
-
if (baseExceptionSchema) {
|
|
1175
|
-
const ErrorCtor = baseExceptionSchema.ctor;
|
|
1176
|
-
throw Object.assign(new ErrorCtor(errorName), errorDataSource);
|
|
1177
|
-
}
|
|
1178
|
-
throw new Error(errorName);
|
|
1179
|
-
}
|
|
1180
|
-
const ns = import_schema7.NormalizedSchema.of(errorSchema);
|
|
1339
|
+
const errorData = this.loadQueryError(dataObject);
|
|
1340
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
1341
|
+
errorIdentifier,
|
|
1342
|
+
this.options.defaultNamespace,
|
|
1343
|
+
response,
|
|
1344
|
+
errorData,
|
|
1345
|
+
metadata,
|
|
1346
|
+
(registry, errorName) => registry.find(
|
|
1347
|
+
(schema) => import_schema9.NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName
|
|
1348
|
+
)
|
|
1349
|
+
);
|
|
1350
|
+
const ns = import_schema9.NormalizedSchema.of(errorSchema);
|
|
1181
1351
|
const message = this.loadQueryErrorMessage(dataObject);
|
|
1182
1352
|
const exception = new errorSchema.ctor(message);
|
|
1183
1353
|
const output = {};
|
|
1184
1354
|
for (const [name, member] of ns.structIterator()) {
|
|
1185
1355
|
const target = member.getMergedTraits().xmlName ?? name;
|
|
1186
|
-
const value =
|
|
1356
|
+
const value = errorData[target] ?? dataObject[target];
|
|
1187
1357
|
output[name] = this.deserializer.readSchema(member, value);
|
|
1188
1358
|
}
|
|
1189
|
-
Object.assign(
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1359
|
+
throw Object.assign(
|
|
1360
|
+
exception,
|
|
1361
|
+
errorMetadata,
|
|
1362
|
+
{
|
|
1363
|
+
$fault: ns.getMergedTraits().error,
|
|
1364
|
+
message
|
|
1365
|
+
},
|
|
1366
|
+
output
|
|
1367
|
+
);
|
|
1197
1368
|
}
|
|
1198
1369
|
/**
|
|
1199
1370
|
* The variations in the error and error message locations are attributed to
|
|
@@ -1248,8 +1419,7 @@ var AwsEc2QueryProtocol = class extends AwsQueryProtocol {
|
|
|
1248
1419
|
|
|
1249
1420
|
// src/submodules/protocols/xml/AwsRestXmlProtocol.ts
|
|
1250
1421
|
var import_protocols6 = require("@smithy/core/protocols");
|
|
1251
|
-
var
|
|
1252
|
-
var import_util_body_length_browser4 = require("@smithy/util-body-length-browser");
|
|
1422
|
+
var import_schema11 = require("@smithy/core/schema");
|
|
1253
1423
|
|
|
1254
1424
|
// src/submodules/protocols/xml/parseXmlBody.ts
|
|
1255
1425
|
var import_smithy_client5 = require("@smithy/smithy-client");
|
|
@@ -1310,7 +1480,7 @@ var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
|
1310
1480
|
|
|
1311
1481
|
// src/submodules/protocols/xml/XmlShapeSerializer.ts
|
|
1312
1482
|
var import_xml_builder = require("@aws-sdk/xml-builder");
|
|
1313
|
-
var
|
|
1483
|
+
var import_schema10 = require("@smithy/core/schema");
|
|
1314
1484
|
var import_serde6 = require("@smithy/core/serde");
|
|
1315
1485
|
var import_smithy_client6 = require("@smithy/smithy-client");
|
|
1316
1486
|
var import_util_base643 = require("@smithy/util-base64");
|
|
@@ -1326,7 +1496,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
|
|
|
1326
1496
|
byteBuffer;
|
|
1327
1497
|
buffer;
|
|
1328
1498
|
write(schema, value) {
|
|
1329
|
-
const ns =
|
|
1499
|
+
const ns = import_schema10.NormalizedSchema.of(schema);
|
|
1330
1500
|
if (ns.isStringSchema() && typeof value === "string") {
|
|
1331
1501
|
this.stringBuffer = value;
|
|
1332
1502
|
} else if (ns.isBlobSchema()) {
|
|
@@ -1371,9 +1541,6 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
|
|
|
1371
1541
|
}
|
|
1372
1542
|
const structXmlNode = import_xml_builder.XmlNode.of(name);
|
|
1373
1543
|
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
1374
|
-
if (xmlns) {
|
|
1375
|
-
structXmlNode.addAttribute(xmlnsAttr, xmlns);
|
|
1376
|
-
}
|
|
1377
1544
|
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
1378
1545
|
const val = value[memberName];
|
|
1379
1546
|
if (val != null || memberSchema.isIdempotencyToken()) {
|
|
@@ -1397,6 +1564,9 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
|
|
|
1397
1564
|
}
|
|
1398
1565
|
}
|
|
1399
1566
|
}
|
|
1567
|
+
if (xmlns) {
|
|
1568
|
+
structXmlNode.addAttribute(xmlnsAttr, xmlns);
|
|
1569
|
+
}
|
|
1400
1570
|
return structXmlNode;
|
|
1401
1571
|
}
|
|
1402
1572
|
writeList(listMember, array, container, parentXmlns) {
|
|
@@ -1513,22 +1683,22 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
|
|
|
1513
1683
|
if (null === value) {
|
|
1514
1684
|
throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
|
|
1515
1685
|
}
|
|
1516
|
-
const ns =
|
|
1686
|
+
const ns = import_schema10.NormalizedSchema.of(_schema);
|
|
1517
1687
|
let nodeContents = null;
|
|
1518
1688
|
if (value && typeof value === "object") {
|
|
1519
1689
|
if (ns.isBlobSchema()) {
|
|
1520
1690
|
nodeContents = (this.serdeContext?.base64Encoder ?? import_util_base643.toBase64)(value);
|
|
1521
1691
|
} else if (ns.isTimestampSchema() && value instanceof Date) {
|
|
1522
1692
|
const options = this.settings.timestampFormat;
|
|
1523
|
-
const format = options.useTrait ? ns.getSchema() ===
|
|
1693
|
+
const format = options.useTrait ? ns.getSchema() === import_schema10.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
1524
1694
|
switch (format) {
|
|
1525
|
-
case
|
|
1695
|
+
case import_schema10.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
1526
1696
|
nodeContents = value.toISOString().replace(".000Z", "Z");
|
|
1527
1697
|
break;
|
|
1528
|
-
case
|
|
1698
|
+
case import_schema10.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
1529
1699
|
nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
|
|
1530
1700
|
break;
|
|
1531
|
-
case
|
|
1701
|
+
case import_schema10.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
1532
1702
|
nodeContents = String(value.getTime() / 1e3);
|
|
1533
1703
|
break;
|
|
1534
1704
|
default:
|
|
@@ -1570,7 +1740,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
|
|
|
1570
1740
|
}
|
|
1571
1741
|
writeSimpleInto(_schema, value, into, parentXmlns) {
|
|
1572
1742
|
const nodeContents = this.writeSimple(_schema, value);
|
|
1573
|
-
const ns =
|
|
1743
|
+
const ns = import_schema10.NormalizedSchema.of(_schema);
|
|
1574
1744
|
const content = new import_xml_builder.XmlText(nodeContents);
|
|
1575
1745
|
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
1576
1746
|
if (xmlns) {
|
|
@@ -1617,12 +1787,13 @@ var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
|
|
|
1617
1787
|
codec;
|
|
1618
1788
|
serializer;
|
|
1619
1789
|
deserializer;
|
|
1790
|
+
mixin = new ProtocolLib();
|
|
1620
1791
|
constructor(options) {
|
|
1621
1792
|
super(options);
|
|
1622
1793
|
const settings = {
|
|
1623
1794
|
timestampFormat: {
|
|
1624
1795
|
useTrait: true,
|
|
1625
|
-
default:
|
|
1796
|
+
default: import_schema11.SCHEMA.TIMESTAMP_DATE_TIME
|
|
1626
1797
|
},
|
|
1627
1798
|
httpBindings: true,
|
|
1628
1799
|
xmlNamespace: options.xmlNamespace,
|
|
@@ -1640,34 +1811,11 @@ var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
|
|
|
1640
1811
|
}
|
|
1641
1812
|
async serializeRequest(operationSchema, input, context) {
|
|
1642
1813
|
const request = await super.serializeRequest(operationSchema, input, context);
|
|
1643
|
-
const
|
|
1644
|
-
const members = ns.getMemberSchemas();
|
|
1645
|
-
request.path = String(request.path).split("/").filter((segment) => {
|
|
1646
|
-
return segment !== "{Bucket}";
|
|
1647
|
-
}).join("/") || "/";
|
|
1814
|
+
const inputSchema = import_schema11.NormalizedSchema.of(operationSchema.input);
|
|
1648
1815
|
if (!request.headers["content-type"]) {
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
if (httpPayloadMember) {
|
|
1653
|
-
const mediaType = httpPayloadMember.getMergedTraits().mediaType;
|
|
1654
|
-
if (mediaType) {
|
|
1655
|
-
request.headers["content-type"] = mediaType;
|
|
1656
|
-
} else if (httpPayloadMember.isStringSchema()) {
|
|
1657
|
-
request.headers["content-type"] = "text/plain";
|
|
1658
|
-
} else if (httpPayloadMember.isBlobSchema()) {
|
|
1659
|
-
request.headers["content-type"] = "application/octet-stream";
|
|
1660
|
-
} else {
|
|
1661
|
-
request.headers["content-type"] = this.getDefaultContentType();
|
|
1662
|
-
}
|
|
1663
|
-
} else if (!ns.isUnitSchema()) {
|
|
1664
|
-
const hasBody = Object.values(members).find((m) => {
|
|
1665
|
-
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
|
|
1666
|
-
return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
|
|
1667
|
-
});
|
|
1668
|
-
if (hasBody) {
|
|
1669
|
-
request.headers["content-type"] = this.getDefaultContentType();
|
|
1670
|
-
}
|
|
1816
|
+
const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
|
|
1817
|
+
if (contentType) {
|
|
1818
|
+
request.headers["content-type"] = contentType;
|
|
1671
1819
|
}
|
|
1672
1820
|
}
|
|
1673
1821
|
if (request.headers["content-type"] === this.getDefaultContentType()) {
|
|
@@ -1677,7 +1825,7 @@ var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
|
|
|
1677
1825
|
}
|
|
1678
1826
|
if (request.body) {
|
|
1679
1827
|
try {
|
|
1680
|
-
request.headers["content-length"] =
|
|
1828
|
+
request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
|
|
1681
1829
|
} catch (e) {
|
|
1682
1830
|
}
|
|
1683
1831
|
}
|
|
@@ -1688,24 +1836,14 @@ var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
|
|
|
1688
1836
|
}
|
|
1689
1837
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1690
1838
|
const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
errorSchema = registry.getSchema(errorIdentifier);
|
|
1700
|
-
} catch (e) {
|
|
1701
|
-
const baseExceptionSchema = import_schema9.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
|
|
1702
|
-
if (baseExceptionSchema) {
|
|
1703
|
-
const ErrorCtor = baseExceptionSchema.ctor;
|
|
1704
|
-
throw Object.assign(new ErrorCtor(errorName), dataObject);
|
|
1705
|
-
}
|
|
1706
|
-
throw new Error(errorName);
|
|
1707
|
-
}
|
|
1708
|
-
const ns = import_schema9.NormalizedSchema.of(errorSchema);
|
|
1839
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
1840
|
+
errorIdentifier,
|
|
1841
|
+
this.options.defaultNamespace,
|
|
1842
|
+
response,
|
|
1843
|
+
dataObject,
|
|
1844
|
+
metadata
|
|
1845
|
+
);
|
|
1846
|
+
const ns = import_schema11.NormalizedSchema.of(errorSchema);
|
|
1709
1847
|
const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
1710
1848
|
const exception = new errorSchema.ctor(message);
|
|
1711
1849
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
@@ -1715,14 +1853,15 @@ var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
|
|
|
1715
1853
|
const value = dataObject.Error?.[target] ?? dataObject[target];
|
|
1716
1854
|
output[name] = this.codec.createDeserializer().readSchema(member, value);
|
|
1717
1855
|
}
|
|
1718
|
-
Object.assign(
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1856
|
+
throw Object.assign(
|
|
1857
|
+
exception,
|
|
1858
|
+
errorMetadata,
|
|
1859
|
+
{
|
|
1860
|
+
$fault: ns.getMergedTraits().error,
|
|
1861
|
+
message
|
|
1862
|
+
},
|
|
1863
|
+
output
|
|
1864
|
+
);
|
|
1726
1865
|
}
|
|
1727
1866
|
/**
|
|
1728
1867
|
* @override
|
|
@@ -1740,6 +1879,7 @@ var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
|
|
|
1740
1879
|
AwsQueryProtocol,
|
|
1741
1880
|
AwsRestJsonProtocol,
|
|
1742
1881
|
AwsRestXmlProtocol,
|
|
1882
|
+
AwsSmithyRpcV2CborProtocol,
|
|
1743
1883
|
JsonCodec,
|
|
1744
1884
|
JsonShapeDeserializer,
|
|
1745
1885
|
JsonShapeSerializer,
|