From ed5f991967d6d60a7c3659965eeecaa3251e8fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kiss=20R=C3=B3bert?= Date: Sat, 14 Jun 2025 12:16:22 +0200 Subject: [PATCH] fix: bump aws-sdk 3.804.0 => 3.828.0 --- node_modules/.package-lock.json | 2840 ++++------------- .../dist-cjs/auth/httpAuthSchemeProvider.js | 2 +- .../@aws-sdk/client-s3/dist-cjs/index.js | 4 +- .../client-s3/dist-cjs/runtimeConfig.js | 26 +- .../dist-es/auth/httpAuthSchemeProvider.js | 4 +- .../PutBucketOwnershipControlsCommand.js | 1 + .../dist-es/protocols/Aws_restXml.js | 1 + .../client-s3/dist-es/runtimeConfig.js | 26 +- .../commands/GetObjectAttributesCommand.d.ts | 36 +- .../PutBucketOwnershipControlsCommand.d.ts | 1 + .../client-s3/dist-types/models/models_0.d.ts | 46 +- .../client-s3/dist-types/models/models_1.d.ts | 30 +- .../dist-types/runtimeConfig.browser.d.ts | 2 +- .../client-s3/dist-types/runtimeConfig.d.ts | 2 +- .../dist-types/runtimeConfig.native.d.ts | 2 +- .../dist-types/runtimeConfig.shared.d.ts | 2 +- .../dist-types/ts3.4/models/models_1.d.ts | 1 + .../ts3.4/runtimeConfig.browser.d.ts | 4 +- .../dist-types/ts3.4/runtimeConfig.d.ts | 4 +- .../ts3.4/runtimeConfig.native.d.ts | 4 +- .../ts3.4/runtimeConfig.shared.d.ts | 4 +- node_modules/@aws-sdk/client-s3/package.json | 102 +- .../client-sso/dist-cjs/runtimeConfig.js | 15 +- .../client-sso/dist-es/runtimeConfig.js | 15 +- node_modules/@aws-sdk/client-sso/package.json | 64 +- .../submodules/httpAuthSchemes/index.js | 11 +- .../dist-cjs/submodules/protocols/index.js | 1523 ++++++++- .../NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js | 8 +- .../submodules/httpAuthSchemes/index.js | 1 + .../utils/getBearerTokenEnvKey.js | 1 + .../protocols/ConfigurableSerdeContext.js | 6 + .../dist-es/submodules/protocols/index.js | 13 + .../protocols/json/AwsJson1_0Protocol.js | 14 + .../protocols/json/AwsJson1_1Protocol.js | 14 + .../protocols/json/AwsJsonRpcProtocol.js | 84 + .../protocols/json/AwsRestJsonProtocol.js | 118 + .../submodules/protocols/json/JsonCodec.js | 20 + .../protocols/json/JsonShapeDeserializer.js | 105 + .../protocols/json/JsonShapeSerializer.js | 106 + .../submodules/protocols/json/jsonReplacer.js | 46 + .../submodules/protocols/json/jsonReviver.js | 18 + .../protocols/json/parseJsonBody.js | 13 +- .../protocols/query/AwsEc2QueryProtocol.js | 17 + .../protocols/query/AwsQueryProtocol.js | 147 + .../query/QuerySerializerSettings.js | 1 + .../protocols/query/QueryShapeSerializer.js | 152 + .../protocols/xml/AwsRestXmlProtocol.js | 126 + .../submodules/protocols/xml/XmlCodec.js | 20 + .../protocols/xml/XmlShapeDeserializer.js | 154 + .../protocols/xml/XmlShapeSerializer.js | 279 ++ .../protocols/xml/simpleFormatXml.js | 27 + .../submodules/httpAuthSchemes/index.d.ts | 1 + .../utils/getBearerTokenEnvKey.d.ts | 6 + .../protocols/ConfigurableSerdeContext.d.ts | 8 + .../submodules/protocols/common.d.ts | 4 +- .../submodules/protocols/index.d.ts | 13 + .../protocols/json/AwsJson1_0Protocol.d.ts | 12 + .../protocols/json/AwsJson1_1Protocol.d.ts | 12 + .../protocols/json/AwsJsonRpcProtocol.d.ts | 18 + .../protocols/json/AwsRestJsonProtocol.d.ts | 19 + .../submodules/protocols/json/JsonCodec.d.ts | 19 + .../protocols/json/JsonShapeDeserializer.d.ts | 13 + .../protocols/json/JsonShapeSerializer.d.ts | 15 + .../protocols/json/jsonReplacer.d.ts | 21 + .../protocols/json/jsonReviver.d.ts | 15 + .../protocols/json/parseJsonBody.d.ts | 6 +- .../protocols/query/AwsEc2QueryProtocol.d.ts | 20 + .../protocols/query/AwsQueryProtocol.d.ts | 39 + .../query/QuerySerializerSettings.d.ts | 6 + .../protocols/query/QueryShapeSerializer.d.ts | 16 + .../protocols/xml/AwsRestXmlProtocol.d.ts | 21 + .../submodules/protocols/xml/XmlCodec.d.ts | 14 + .../protocols/xml/XmlShapeDeserializer.d.ts | 20 + .../protocols/xml/XmlShapeSerializer.d.ts | 21 + .../protocols/xml/simpleFormatXml.d.ts | 6 + .../submodules/httpAuthSchemes/index.d.ts | 1 + .../utils/getBearerTokenEnvKey.d.ts | 1 + .../protocols/ConfigurableSerdeContext.d.ts | 5 + .../ts3.4/submodules/protocols/common.d.ts | 4 +- .../ts3.4/submodules/protocols/index.d.ts | 13 + .../protocols/json/AwsJson1_0Protocol.d.ts | 6 + .../protocols/json/AwsJson1_1Protocol.d.ts | 6 + .../protocols/json/AwsJsonRpcProtocol.d.ts | 33 + .../protocols/json/AwsRestJsonProtocol.d.ts | 34 + .../submodules/protocols/json/JsonCodec.d.ts | 16 + .../protocols/json/JsonShapeDeserializer.d.ts | 13 + .../protocols/json/JsonShapeSerializer.d.ts | 15 + .../protocols/json/jsonReplacer.d.ts | 7 + .../protocols/json/jsonReviver.d.ts | 7 + .../protocols/json/parseJsonBody.d.ts | 6 +- .../protocols/query/AwsEc2QueryProtocol.d.ts | 14 + .../protocols/query/AwsQueryProtocol.d.ts | 55 + .../query/QuerySerializerSettings.d.ts | 6 + .../protocols/query/QueryShapeSerializer.d.ts | 16 + .../protocols/xml/AwsRestXmlProtocol.d.ts | 39 + .../submodules/protocols/xml/XmlCodec.d.ts | 17 + .../protocols/xml/XmlShapeDeserializer.d.ts | 15 + .../protocols/xml/XmlShapeSerializer.d.ts | 21 + .../protocols/xml/simpleFormatXml.d.ts | 1 + node_modules/@aws-sdk/core/package.json | 24 +- .../credential-provider-env/package.json | 10 +- .../credential-provider-http/package.json | 20 +- .../credential-provider-ini/package.json | 26 +- .../credential-provider-node/package.json | 24 +- .../credential-provider-process/package.json | 12 +- .../credential-provider-sso/package.json | 16 +- .../package.json | 12 +- .../@aws-sdk/lib-storage/package.json | 14 +- .../middleware-bucket-endpoint/package.json | 10 +- .../middleware-expect-continue/package.json | 8 +- .../package.json | 18 +- .../middleware-host-header/package.json | 8 +- .../package.json | 6 +- .../@aws-sdk/middleware-logger/package.json | 6 +- .../package.json | 8 +- .../@aws-sdk/middleware-sdk-s3/package.json | 22 +- .../@aws-sdk/middleware-ssec/package.json | 6 +- .../middleware-user-agent/package.json | 14 +- .../submodules/sso-oidc/runtimeConfig.js | 15 +- .../dist-cjs/submodules/sts/runtimeConfig.js | 15 +- .../submodules/sso-oidc/runtimeConfig.js | 15 +- .../dist-es/submodules/sts/runtimeConfig.js | 15 +- .../@aws-sdk/nested-clients/package.json | 64 +- .../region-config-resolver/package.json | 10 +- .../dist-cjs/index.js | 8 + .../dist-es/SignatureV4MultiRegion.js | 9 + .../dist-types/SignatureV4MultiRegion.d.ts | 1 + .../ts3.4/SignatureV4MultiRegion.d.ts | 1 + .../signature-v4-multi-region/package.json | 12 +- .../@aws-sdk/token-providers/README.md | 9 + .../token-providers/dist-cjs/index.js | 19 +- .../dist-es/fromEnvSigningName.js | 13 + .../@aws-sdk/token-providers/dist-es/index.js | 1 + .../dist-types/fromEnvSigningName.d.ts | 18 + .../token-providers/dist-types/index.d.ts | 1 + .../dist-types/ts3.4/fromEnvSigningName.d.ts | 11 + .../dist-types/ts3.4/index.d.ts | 1 + .../@aws-sdk/token-providers/package.json | 13 +- node_modules/@aws-sdk/types/package.json | 4 +- .../@aws-sdk/util-endpoints/dist-cjs/index.js | 3 + .../dist-cjs/lib/aws/partitions.json | 3 + .../dist-es/lib/aws/partitions.json | 3 + .../@aws-sdk/util-endpoints/package.json | 8 +- .../util-user-agent-browser/package.json | 6 +- .../util-user-agent-node/package.json | 10 +- .../@aws-sdk/xml-builder/package.json | 4 +- .../@smithy/abort-controller/package.json | 4 +- .../resolveCustomEndpointsConfig.d.ts | 5 + .../resolveEndpointsConfig.d.ts | 3 + .../regionInfo/EndpointVariant.d.ts | 5 +- .../regionInfo/EndpointVariantTag.d.ts | 5 +- .../dist-types/regionInfo/PartitionHash.d.ts | 5 +- .../dist-types/regionInfo/RegionHash.d.ts | 5 +- .../regionInfo/getHostnameFromVariants.d.ts | 2 + .../dist-types/regionInfo/getRegionInfo.d.ts | 2 + .../regionInfo/getResolvedHostname.d.ts | 2 + .../regionInfo/getResolvedPartition.d.ts | 2 + .../regionInfo/getResolvedSigningRegion.d.ts | 2 + .../resolveCustomEndpointsConfig.d.ts | 5 + .../resolveEndpointsConfig.d.ts | 3 + .../ts3.4/regionInfo/EndpointVariant.d.ts | 5 +- .../ts3.4/regionInfo/EndpointVariantTag.d.ts | 5 +- .../ts3.4/regionInfo/PartitionHash.d.ts | 5 +- .../ts3.4/regionInfo/RegionHash.d.ts | 5 +- .../regionInfo/getHostnameFromVariants.d.ts | 2 + .../ts3.4/regionInfo/getRegionInfo.d.ts | 2 + .../ts3.4/regionInfo/getResolvedHostname.d.ts | 2 + .../regionInfo/getResolvedPartition.d.ts | 2 + .../regionInfo/getResolvedSigningRegion.d.ts | 2 + .../@smithy/config-resolver/package.json | 8 +- .../core/dist-cjs/submodules/cbor/index.js | 214 +- .../dist-cjs/submodules/protocols/index.js | 670 +++- .../core/dist-cjs/submodules/schema/index.js | 774 +++++ .../core/dist-cjs/submodules/serde/index.js | 682 +++- .../core/dist-es/submodules/cbor/CborCodec.js | 136 + .../cbor/SmithyRpcV2CborProtocol.js | 74 + .../core/dist-es/submodules/cbor/index.js | 4 +- .../dist-es/submodules/cbor/parseCborBody.js | 5 +- .../protocols/HttpBindingProtocol.js | 178 ++ .../submodules/protocols/HttpProtocol.js | 171 + .../submodules/protocols/RpcProtocol.js | 68 + .../dist-es/submodules/protocols/index.js | 7 + .../serde/FromStringShapeDeserializer.js | 64 + .../HttpInterceptingShapeDeserializer.js | 38 + .../serde/HttpInterceptingShapeSerializer.js | 30 + .../serde/ToStringShapeSerializer.js | 87 + .../serde/determineTimestampFormat.js | 20 + .../dist-es/submodules/schema/TypeRegistry.js | 49 + .../core/dist-es/submodules/schema/deref.js | 6 + .../core/dist-es/submodules/schema/index.js | 12 + .../schema/middleware/getSchemaSerdePlugin.js | 23 + .../middleware/schema-middleware-types.js | 1 + .../schemaDeserializationMiddleware.js | 60 + .../schemaSerializationMiddleware.js | 16 + .../submodules/schema/schemas/ErrorSchema.js | 17 + .../submodules/schema/schemas/ListSchema.js | 15 + .../submodules/schema/schemas/MapSchema.js | 16 + .../schema/schemas/NormalizedSchema.js | 294 ++ .../schema/schemas/OperationSchema.js | 16 + .../submodules/schema/schemas/Schema.js | 6 + .../submodules/schema/schemas/SimpleSchema.js | 15 + .../schema/schemas/StructureSchema.js | 22 + .../submodules/schema/schemas/sentinels.js | 16 + .../serde/copyDocumentWithTransform.js | 53 + .../dist-es/submodules/serde}/date-utils.js | 0 .../core/dist-es/submodules/serde/index.js | 7 + .../dist-es/submodules/serde}/lazy-json.js | 0 .../dist-es/submodules/serde}/parse-utils.js | 0 .../dist-es/submodules/serde}/quote-header.js | 0 .../dist-es/submodules/serde}/split-every.js | 0 .../dist-es/submodules/serde}/split-header.js | 0 .../dist-types/submodules/cbor/CborCodec.d.ts | 29 + .../cbor/SmithyRpcV2CborProtocol.d.ts | 22 + .../dist-types/submodules/cbor/index.d.ts | 4 +- .../protocols/HttpBindingProtocol.d.ts | 15 + .../submodules/protocols/HttpProtocol.d.ts | 33 + .../submodules/protocols/RpcProtocol.d.ts | 11 + .../submodules/protocols/index.d.ts | 7 + .../serde/FromStringShapeDeserializer.d.ts | 14 + .../HttpInterceptingShapeDeserializer.d.ts | 18 + .../HttpInterceptingShapeSerializer.d.ts | 20 + .../serde/ToStringShapeSerializer.d.ts | 15 + .../serde/determineTimestampFormat.d.ts | 9 + .../submodules/schema/TypeRegistry.d.ts | 55 + .../dist-types/submodules/schema/deref.d.ts | 6 + .../dist-types/submodules/schema/index.d.ts | 12 + .../middleware/getSchemaSerdePlugin.d.ts | 14 + .../middleware/schema-middleware-types.d.ts | 8 + .../schemaDeserializationMiddleware.d.ts | 9 + .../schemaSerializationMiddleware.d.ts | 6 + .../schema/schemas/ErrorSchema.d.ts | 38 + .../submodules/schema/schemas/ListSchema.d.ts | 20 + .../submodules/schema/schemas/MapSchema.d.ts | 25 + .../schema/schemas/NormalizedSchema.d.ts | 122 + .../schema/schemas/OperationSchema.d.ts | 20 + .../submodules/schema/schemas/Schema.d.ts | 11 + .../schema/schemas/SimpleSchema.d.ts | 20 + .../schema/schemas/StructureSchema.d.ts | 21 + .../submodules/schema/schemas/sentinels.d.ts | 21 + .../serde/copyDocumentWithTransform.d.ts | 5 + .../submodules/serde}/date-utils.d.ts | 0 .../dist-types/submodules/serde/index.d.ts | 7 + .../submodules/serde}/lazy-json.d.ts | 0 .../submodules/serde}/parse-utils.d.ts | 0 .../submodules/serde}/quote-header.d.ts | 0 .../submodules/serde}/split-every.d.ts | 0 .../submodules/serde}/split-header.d.ts | 0 .../ts3.4/submodules/cbor/CborCodec.d.ts | 29 + .../cbor/SmithyRpcV2CborProtocol.d.ts | 22 + .../ts3.4/submodules/cbor/index.d.ts | 4 +- .../protocols/HttpBindingProtocol.d.ts | 15 + .../submodules/protocols/HttpProtocol.d.ts | 33 + .../submodules/protocols/RpcProtocol.d.ts | 11 + .../ts3.4/submodules/protocols/index.d.ts | 7 + .../serde/FromStringShapeDeserializer.d.ts | 14 + .../HttpInterceptingShapeDeserializer.d.ts | 18 + .../HttpInterceptingShapeSerializer.d.ts | 20 + .../serde/ToStringShapeSerializer.d.ts | 15 + .../serde/determineTimestampFormat.d.ts | 9 + .../ts3.4/submodules/schema/TypeRegistry.d.ts | 55 + .../ts3.4/submodules/schema/deref.d.ts | 6 + .../ts3.4/submodules/schema/index.d.ts | 12 + .../middleware/getSchemaSerdePlugin.d.ts | 14 + .../middleware/schema-middleware-types.d.ts | 11 + .../schemaDeserializationMiddleware.d.ts | 9 + .../schemaSerializationMiddleware.d.ts | 6 + .../schema/schemas/ErrorSchema.d.ts | 38 + .../submodules/schema/schemas/ListSchema.d.ts | 20 + .../submodules/schema/schemas/MapSchema.d.ts | 25 + .../schema/schemas/NormalizedSchema.d.ts | 125 + .../schema/schemas/OperationSchema.d.ts | 20 + .../submodules/schema/schemas/Schema.d.ts | 11 + .../schema/schemas/SimpleSchema.d.ts | 20 + .../schema/schemas/StructureSchema.d.ts | 24 + .../submodules/schema/schemas/sentinels.d.ts | 21 + .../serde/copyDocumentWithTransform.d.ts | 5 + .../ts3.4/submodules/serde}/date-utils.d.ts | 0 .../ts3.4/submodules/serde/index.d.ts | 7 + .../ts3.4/submodules/serde}/lazy-json.d.ts | 0 .../ts3.4/submodules/serde}/parse-utils.d.ts | 0 .../ts3.4/submodules/serde}/quote-header.d.ts | 0 .../ts3.4/submodules/serde}/split-every.d.ts | 0 .../ts3.4/submodules/serde}/split-header.d.ts | 0 node_modules/@smithy/core/package.json | 25 +- node_modules/@smithy/core/schema.d.ts | 7 + node_modules/@smithy/core/schema.js | 6 + .../credential-provider-imds/package.json | 10 +- .../dist-types/MessageEncoderStream.d.ts | 2 +- .../ts3.4/MessageEncoderStream.d.ts | 2 +- .../@smithy/eventstream-codec/package.json | 4 +- .../eventstream-serde-browser/package.json | 6 +- .../package.json | 4 +- .../dist-types/EventStreamMarshaller.d.ts | 1 - .../ts3.4/EventStreamMarshaller.d.ts | 1 - .../dist-types/ts3.4/utils.d.ts | 1 - .../dist-types/utils.d.ts | 1 - .../eventstream-serde-node/package.json | 6 +- .../eventstream-serde-universal/package.json | 6 +- .../dist-types/fetch-http-handler.d.ts | 2 +- .../dist-types/ts3.4/fetch-http-handler.d.ts | 2 +- .../@smithy/fetch-http-handler/package.json | 10 +- .../@smithy/hash-blob-browser/package.json | 4 +- node_modules/@smithy/hash-node/package.json | 4 +- .../dist-types/HashCalculator.d.ts | 3 - .../dist-types/fileStreamHasher.d.ts | 1 - .../dist-types/readableStreamHasher.d.ts | 1 - .../dist-types/ts3.4/HashCalculator.d.ts | 1 - .../dist-types/ts3.4/fileStreamHasher.d.ts | 1 - .../ts3.4/readableStreamHasher.d.ts | 1 - .../@smithy/hash-stream-node/package.json | 4 +- .../@smithy/invalid-dependency/package.json | 4 +- node_modules/@smithy/md5-js/package.json | 4 +- .../dist-cjs/index.js | 4 +- .../middleware-content-length/package.json | 6 +- .../@smithy/middleware-endpoint/package.json | 16 +- .../@smithy/middleware-retry/package.json | 16 +- .../dist-types/deserializerMiddleware.d.ts | 1 + .../dist-types/serdePlugin.d.ts | 8 +- .../dist-types/serializerMiddleware.d.ts | 1 + .../ts3.4/deserializerMiddleware.d.ts | 1 + .../dist-types/ts3.4/serdePlugin.d.ts | 8 +- .../ts3.4/serializerMiddleware.d.ts | 1 + .../@smithy/middleware-serde/package.json | 6 +- .../@smithy/middleware-stack/package.json | 4 +- .../@smithy/node-config-provider/package.json | 8 +- .../dist-types/node-http-handler.d.ts | 2 - .../node-http2-connection-manager.d.ts | 1 - .../node-http2-connection-pool.d.ts | 3 +- .../dist-types/readable.mock.d.ts | 3 - .../dist-types/set-connection-timeout.d.ts | 7 - .../dist-types/set-socket-keep-alive.d.ts | 7 - .../dist-types/set-socket-timeout.d.ts | 7 - .../stream-collector/collector.d.ts | 3 - .../stream-collector/readable.mock.d.ts | 3 - .../dist-types/ts3.4/node-http-handler.d.ts | 1 - .../ts3.4/node-http2-connection-manager.d.ts | 1 - .../ts3.4/node-http2-connection-pool.d.ts | 3 +- .../dist-types/ts3.4/readable.mock.d.ts | 1 - .../ts3.4/set-connection-timeout.d.ts | 1 - .../ts3.4/set-socket-keep-alive.d.ts | 1 - .../dist-types/ts3.4/set-socket-timeout.d.ts | 1 - .../ts3.4/stream-collector/collector.d.ts | 1 - .../ts3.4/stream-collector/readable.mock.d.ts | 1 - .../dist-types/ts3.4/write-request-body.d.ts | 1 - .../dist-types/write-request-body.d.ts | 2 - .../@smithy/node-http-handler/package.json | 10 +- .../property-provider/dist-types/chain.d.ts | 2 +- .../dist-types/ts3.4/chain.d.ts | 2 +- .../@smithy/property-provider/package.json | 4 +- .../httpExtensionConfiguration.d.ts | 10 +- .../httpExtensionConfiguration.d.ts | 10 +- .../@smithy/protocol-http/package.json | 4 +- .../@smithy/querystring-builder/package.json | 4 +- .../@smithy/querystring-parser/package.json | 4 +- .../service-error-classification/package.json | 4 +- .../shared-ini-file-loader/package.json | 4 +- .../@smithy/signature-v4/package.json | 8 +- .../smithy-client/dist-cjs/date-utils.js | 1 - .../@smithy/smithy-client/dist-cjs/index.js | 659 +--- .../smithy-client/dist-cjs/lazy-json.js | 1 - .../smithy-client/dist-cjs/parse-utils.js | 1 - .../smithy-client/dist-cjs/quote-header.js | 1 - .../smithy-client/dist-cjs/split-every.js | 1 - .../smithy-client/dist-cjs/split-header.js | 1 - .../@smithy/smithy-client/dist-es/command.js | 6 + .../@smithy/smithy-client/dist-es/index.js | 7 +- .../smithy-client/dist-types/command.d.ts | 8 +- .../smithy-client/dist-types/index.d.ts | 7 +- .../dist-types/ts3.4/command.d.ts | 8 +- .../smithy-client/dist-types/ts3.4/index.d.ts | 7 +- .../@smithy/smithy-client/package.json | 16 +- .../@smithy/types/dist-cjs/schema/schema.js | 1 + .../types/dist-cjs/schema/sentinels.js | 1 + .../@smithy/types/dist-cjs/schema/traits.js | 1 + .../types/dist-cjs/transform/mutable.js | 1 + node_modules/@smithy/types/dist-es/index.js | 3 + .../@smithy/types/dist-es/schema/schema.js | 1 + .../@smithy/types/dist-es/schema/sentinels.js | 1 + .../@smithy/types/dist-es/schema/traits.js | 1 + .../types/dist-es/transform/mutable.js | 1 + .../blob/blob-payload-input-types.d.ts | 3 - .../@smithy/types/dist-types/command.d.ts | 5 + .../http/httpHandlerInitialization.d.ts | 2 - .../@smithy/types/dist-types/index.d.ts | 3 + .../types/dist-types/schema/schema.d.ts | 261 ++ .../types/dist-types/schema/sentinels.d.ts | 65 + .../types/dist-types/schema/traits.d.ts | 46 + .../@smithy/types/dist-types/serde.d.ts | 2 + .../streaming-blob-common-types.d.ts | 1 - .../streaming-blob-payload-input-types.d.ts | 3 - .../streaming-blob-payload-output-types.d.ts | 2 - .../client-payload-blob-type-narrow.d.ts | 2 - .../types/dist-types/transform/mutable.d.ts | 6 + .../ts3.4/blob/blob-payload-input-types.d.ts | 1 - .../types/dist-types/ts3.4/command.d.ts | 5 + .../ts3.4/http/httpHandlerInitialization.d.ts | 1 - .../@smithy/types/dist-types/ts3.4/index.d.ts | 3 + .../types/dist-types/ts3.4/schema/schema.d.ts | 276 ++ .../dist-types/ts3.4/schema/sentinels.d.ts | 65 + .../types/dist-types/ts3.4/schema/traits.d.ts | 46 + .../@smithy/types/dist-types/ts3.4/serde.d.ts | 2 + .../streaming-blob-common-types.d.ts | 1 - .../streaming-blob-payload-input-types.d.ts | 1 - .../streaming-blob-payload-output-types.d.ts | 1 - .../client-payload-blob-type-narrow.d.ts | 1 - .../dist-types/ts3.4/transform/mutable.d.ts | 6 + node_modules/@smithy/types/package.json | 2 +- node_modules/@smithy/url-parser/package.json | 6 +- .../util-defaults-mode-browser/package.json | 8 +- .../util-defaults-mode-node/package.json | 14 +- .../@smithy/util-endpoints/package.json | 6 +- .../@smithy/util-middleware/package.json | 4 +- .../dist-types/defaultRetryToken.d.ts | 2 +- .../dist-types/ts3.4/defaultRetryToken.d.ts | 2 +- node_modules/@smithy/util-retry/package.json | 6 +- .../dist-cjs/checksum/createChecksumStream.js | 3 +- .../dist-cjs/createBufferedReadable.js | 3 +- .../dist-cjs/createBufferedReadableStream.js | 12 +- .../dist-cjs/headStream.browser.js | 3 +- .../dist-cjs/splitStream.browser.js | 3 +- .../util-stream/dist-cjs/splitStream.js | 3 +- .../dist-types/ByteArrayCollector.d.ts | 2 +- .../dist-types/checksum/ChecksumStream.d.ts | 3 - .../checksum/createChecksumStream.d.ts | 1 - .../dist-types/createBufferedReadable.d.ts | 1 - .../getAwsChunkedEncodingStream.d.ts | 1 - .../util-stream/dist-types/splitStream.d.ts | 1 - .../dist-types/ts3.4/ByteArrayCollector.d.ts | 2 +- .../ts3.4/checksum/ChecksumStream.d.ts | 1 - .../ts3.4/checksum/createChecksumStream.d.ts | 1 - .../ts3.4/createBufferedReadable.d.ts | 1 - .../ts3.4/getAwsChunkedEncodingStream.d.ts | 1 - .../dist-types/ts3.4/splitStream.d.ts | 1 - node_modules/@smithy/util-stream/package.json | 8 +- node_modules/@smithy/util-waiter/package.json | 6 +- package-lock.json | 1104 +++---- package.json | 4 +- 437 files changed, 11627 insertions(+), 4164 deletions(-) create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QuerySerializerSettings.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js create mode 100644 node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/simpleFormatXml.js create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/simpleFormatXml.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts create mode 100644 node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts create mode 100644 node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js create mode 100644 node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts create mode 100644 node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts create mode 100644 node_modules/@smithy/core/dist-cjs/submodules/schema/index.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/deref.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/index.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/middleware/schema-middleware-types.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js create mode 100644 node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js rename node_modules/@smithy/{smithy-client/dist-es => core/dist-es/submodules/serde}/date-utils.js (100%) rename node_modules/@smithy/{smithy-client/dist-es => core/dist-es/submodules/serde}/lazy-json.js (100%) rename node_modules/@smithy/{smithy-client/dist-es => core/dist-es/submodules/serde}/parse-utils.js (100%) rename node_modules/@smithy/{smithy-client/dist-es => core/dist-es/submodules/serde}/quote-header.js (100%) rename node_modules/@smithy/{smithy-client/dist-es => core/dist-es/submodules/serde}/split-every.js (100%) rename node_modules/@smithy/{smithy-client/dist-es => core/dist-es/submodules/serde}/split-header.js (100%) create mode 100644 node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/deref.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/middleware/schema-middleware-types.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts create mode 100644 node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts rename node_modules/@smithy/{smithy-client/dist-types => core/dist-types/submodules/serde}/date-utils.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types => core/dist-types/submodules/serde}/lazy-json.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types => core/dist-types/submodules/serde}/parse-utils.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types => core/dist-types/submodules/serde}/quote-header.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types => core/dist-types/submodules/serde}/split-every.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types => core/dist-types/submodules/serde}/split-header.d.ts (100%) create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/deref.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/getSchemaSerdePlugin.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schema-middleware-types.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaSerializationMiddleware.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts create mode 100644 node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts rename node_modules/@smithy/{smithy-client/dist-types/ts3.4 => core/dist-types/ts3.4/submodules/serde}/date-utils.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types/ts3.4 => core/dist-types/ts3.4/submodules/serde}/lazy-json.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types/ts3.4 => core/dist-types/ts3.4/submodules/serde}/parse-utils.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types/ts3.4 => core/dist-types/ts3.4/submodules/serde}/quote-header.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types/ts3.4 => core/dist-types/ts3.4/submodules/serde}/split-every.d.ts (100%) rename node_modules/@smithy/{smithy-client/dist-types/ts3.4 => core/dist-types/ts3.4/submodules/serde}/split-header.d.ts (100%) create mode 100644 node_modules/@smithy/core/schema.d.ts create mode 100644 node_modules/@smithy/core/schema.js delete mode 100644 node_modules/@smithy/smithy-client/dist-cjs/date-utils.js delete mode 100644 node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js delete mode 100644 node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js delete mode 100644 node_modules/@smithy/smithy-client/dist-cjs/quote-header.js delete mode 100644 node_modules/@smithy/smithy-client/dist-cjs/split-every.js delete mode 100644 node_modules/@smithy/smithy-client/dist-cjs/split-header.js create mode 100644 node_modules/@smithy/types/dist-cjs/schema/schema.js create mode 100644 node_modules/@smithy/types/dist-cjs/schema/sentinels.js create mode 100644 node_modules/@smithy/types/dist-cjs/schema/traits.js create mode 100644 node_modules/@smithy/types/dist-cjs/transform/mutable.js create mode 100644 node_modules/@smithy/types/dist-es/schema/schema.js create mode 100644 node_modules/@smithy/types/dist-es/schema/sentinels.js create mode 100644 node_modules/@smithy/types/dist-es/schema/traits.js create mode 100644 node_modules/@smithy/types/dist-es/transform/mutable.js create mode 100644 node_modules/@smithy/types/dist-types/schema/schema.d.ts create mode 100644 node_modules/@smithy/types/dist-types/schema/sentinels.d.ts create mode 100644 node_modules/@smithy/types/dist-types/schema/traits.d.ts create mode 100644 node_modules/@smithy/types/dist-types/transform/mutable.d.ts create mode 100644 node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts create mode 100644 node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts create mode 100644 node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts create mode 100644 node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 9feaf19..78f3e37 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "archive-release", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { @@ -267,66 +267,66 @@ } }, "node_modules/@aws-sdk/client-s3": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.804.0.tgz", - "integrity": "sha512-oLBCq/wOzMEv4HhEDxttl5km0KGuptqnl4MlzzDcxPpsDmXjQU7egZdfQtwKRlB7748F+/uTcYc7khFvX2I1DA==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.828.0.tgz", + "integrity": "sha512-TvFyrEfJkf9NN3cq5mXCgFv/sPaA8Rm5tEPgV5emuLedeGsORlWmVpdSKqfZ4lSoED1tMfNM6LY4uA9D8/RS5g==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/credential-provider-node": "3.804.0", - "@aws-sdk/middleware-bucket-endpoint": "3.804.0", - "@aws-sdk/middleware-expect-continue": "3.804.0", - "@aws-sdk/middleware-flexible-checksums": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-location-constraint": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-sdk-s3": "3.804.0", - "@aws-sdk/middleware-ssec": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/signature-v4-multi-region": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@aws-sdk/xml-builder": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/eventstream-serde-browser": "^4.0.2", - "@smithy/eventstream-serde-config-resolver": "^4.1.0", - "@smithy/eventstream-serde-node": "^4.0.2", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-blob-browser": "^4.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/hash-stream-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/md5-js": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/credential-provider-node": "3.828.0", + "@aws-sdk/middleware-bucket-endpoint": "3.821.0", + "@aws-sdk/middleware-expect-continue": "3.821.0", + "@aws-sdk/middleware-flexible-checksums": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-location-constraint": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-sdk-s3": "3.826.0", + "@aws-sdk/middleware-ssec": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/signature-v4-multi-region": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@aws-sdk/xml-builder": "3.821.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/eventstream-serde-browser": "^4.0.4", + "@smithy/eventstream-serde-config-resolver": "^4.1.2", + "@smithy/eventstream-serde-node": "^4.0.4", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-blob-browser": "^4.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/hash-stream-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/md5-js": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", - "@smithy/util-waiter": "^4.0.3", + "@smithy/util-waiter": "^4.0.5", "tslib": "^2.6.2" }, "engines": { @@ -334,47 +334,47 @@ } }, "node_modules/@aws-sdk/client-sso": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.804.0.tgz", - "integrity": "sha512-6D5iQbL0MqlJ7B5aaHdP21k9+3H/od0jHjHSXegvFd4h2KQbD+QVTdEOSLeakgBGgHYRfiQXsrdMMzUz8vcpsw==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.828.0.tgz", + "integrity": "sha512-qxw8JcPTaFaBwTBUr4YmLajaMh3En65SuBWAKEtjctbITRRekzR7tvr/TkwoyVOh+XoAtkwOn+BQeQbX+/wgHw==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -383,20 +383,24 @@ } }, "node_modules/@aws-sdk/core": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.804.0.tgz", - "integrity": "sha512-KrYDEc6HaJE+Mx5lrwq6uhJxj1RYYfggQ+X+zQeKRyrZHl2GOxFl7PdnpdwtnaQIjX0gNkDzquhZSdyT0ar5rA==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.826.0.tgz", + "integrity": "sha512-BGbQYzWj3ps+dblq33FY5tz/SsgJCcXX0zjQlSC07tYvU1jHTUvsefphyig+fY38xZ4wdKjbTop+KUmXUYrOXw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.821.0", + "@aws-sdk/xml-builder": "3.821.0", + "@smithy/core": "^3.5.3", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-utf8": "^4.0.0", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, @@ -405,15 +409,15 @@ } }, "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.804.0.tgz", - "integrity": "sha512-5mjrWPa4iaBK9/HDEIVN8lGxsnjk60eBjwGaJV0I2uqxnTo1EuQmpLV3XdY/OzQeqJdpuH/DbC6XUIdy9bXNQA==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.826.0.tgz", + "integrity": "sha512-DK3pQY8+iKK3MGDdC3uOZQ2psU01obaKlTYhEwNu4VWzgwQL4Vi3sWj4xSWGEK41vqZxiRLq6fOq7ysRI+qEZA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -421,20 +425,20 @@ } }, "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.804.0.tgz", - "integrity": "sha512-TD84TXS/iDWcf+ggCq3n6yx36p1WXB2qgyHkbP/yVbdmix/vKU1twuB5qJvaY0PJWI0TOwBa9680XfsYrzaJAA==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.826.0.tgz", + "integrity": "sha512-N+IVZBh+yx/9GbMZTKO/gErBi/FYZQtcFRItoLbY+6WU+0cSWyZYfkoeOxHmQV3iX9k65oljERIWUmL9x6OSQg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/property-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/util-stream": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-stream": "^4.2.2", "tslib": "^2.6.2" }, "engines": { @@ -442,23 +446,23 @@ } }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.804.0.tgz", - "integrity": "sha512-LfReL9TnOOunJWeZbDXPePFEnvJE+jcA7iY/ItsThUALgTy+ydLUdOiwzMZFo1f0JZN/Rfrsb9FOd/xTOoZiFw==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.828.0.tgz", + "integrity": "sha512-T3DJMo2/j7gCPpFg2+xEHWgua05t8WP89ye7PaZxA2Fc6CgScHkZsJZTri1QQIU2h+eOZ75EZWkeFLIPgN0kRQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/credential-provider-env": "3.804.0", - "@aws-sdk/credential-provider-http": "3.804.0", - "@aws-sdk/credential-provider-process": "3.804.0", - "@aws-sdk/credential-provider-sso": "3.804.0", - "@aws-sdk/credential-provider-web-identity": "3.804.0", - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/credential-provider-imds": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/credential-provider-env": "3.826.0", + "@aws-sdk/credential-provider-http": "3.826.0", + "@aws-sdk/credential-provider-process": "3.826.0", + "@aws-sdk/credential-provider-sso": "3.828.0", + "@aws-sdk/credential-provider-web-identity": "3.828.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -466,22 +470,22 @@ } }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.804.0.tgz", - "integrity": "sha512-L2EK5fy2+7El7j7TcRcuwr2lzU5tQfXsfscg+dtFkLPjOqShknnqV/lXylb3QlWx8B3K/c/KK5rcWQl6cYUiDQ==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.828.0.tgz", + "integrity": "sha512-9z3iPwVYOQYNzVZj8qycZaS/BOSKRXWA+QVNQlfEnQ4sA4sOcKR4kmV2h+rJcuBsSFfmOF62ZDxyIBGvvM4t/w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.804.0", - "@aws-sdk/credential-provider-http": "3.804.0", - "@aws-sdk/credential-provider-ini": "3.804.0", - "@aws-sdk/credential-provider-process": "3.804.0", - "@aws-sdk/credential-provider-sso": "3.804.0", - "@aws-sdk/credential-provider-web-identity": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/credential-provider-imds": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/credential-provider-env": "3.826.0", + "@aws-sdk/credential-provider-http": "3.826.0", + "@aws-sdk/credential-provider-ini": "3.828.0", + "@aws-sdk/credential-provider-process": "3.826.0", + "@aws-sdk/credential-provider-sso": "3.828.0", + "@aws-sdk/credential-provider-web-identity": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -489,16 +493,16 @@ } }, "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.804.0.tgz", - "integrity": "sha512-s6ng/rZj7WP8GGgxBXsoPZYlSu7MZAm9O8OLgSSWcw8/vaYW7hBVSEVVNMEUkJiJeEo7Lh+Y/3d6SY27S1of/g==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.826.0.tgz", + "integrity": "sha512-kURrc4amu3NLtw1yZw7EoLNEVhmOMRUTs+chaNcmS+ERm3yK0nKjaJzmKahmwlTQTSl3wJ8jjK7x962VPo+zWw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -506,18 +510,18 @@ } }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.804.0.tgz", - "integrity": "sha512-9Tt5zmhiK2nBfJv52Is5gNtW6bhK0W20GRhckg4T+BlnxOkPy//2ui23DzYacrwETH6TE3kdoyL3xgEL++HSLg==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.828.0.tgz", + "integrity": "sha512-9CEAXzUDSzOjOCb3XfM15TZhTaM+l07kumZyx2z8NC6T2U4qbCJqn4h8mFlRvYrs6cBj2SN40sD3r5Wp0Cq2Kw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.804.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/token-providers": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/client-sso": "3.828.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/token-providers": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -525,16 +529,16 @@ } }, "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.804.0.tgz", - "integrity": "sha512-eBICjQUnqaoiHl9/AHKVPt/YkrifDddAUNGWUj+9cb3bRml6PEBSHE0k/tbbCTMq1xz7CCP+gmnnAA92ChnseA==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.828.0.tgz", + "integrity": "sha512-MguDhGHlQBeK9CQ/P4NOY0whAJ4HJU4x+f1dphg3I1sGlccFqfB8Moor2vXNKu0Th2kvAwkn9pr7gGb/+NGR9g==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -542,14 +546,14 @@ } }, "node_modules/@aws-sdk/lib-storage": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/lib-storage/-/lib-storage-3.804.0.tgz", - "integrity": "sha512-o7/YYquJeIbsplqHwo78L39UigmQpsXHY3WrJ3j2kAzBBN9T6rPsBU6dPIBMHdtx06uHehcZwm/+B8GVMfMc8A==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/lib-storage/-/lib-storage-3.828.0.tgz", + "integrity": "sha512-nBJmRzveYtdqL0u76tv62JGtkUfvyyZhAKNHFlzO8lCO7lxa0muRTG/ptUSS0ruFHq1K2MXHnDtLX90xiErIsQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/smithy-client": "^4.2.2", + "@smithy/abort-controller": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/smithy-client": "^4.4.3", "buffer": "5.6.0", "events": "3.3.0", "stream-browserify": "3.0.0", @@ -559,20 +563,20 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@aws-sdk/client-s3": "^3.804.0" + "@aws-sdk/client-s3": "^3.828.0" } }, "node_modules/@aws-sdk/middleware-bucket-endpoint": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.804.0.tgz", - "integrity": "sha512-vVphifJ5Ab2JUjB27UvdNV51ezxTn3f/jNbC/Y+KF1vNcYkwWXqo+U1gD8SUsDK+NhnD3wasfVBVLOdJa7qqKw==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.821.0.tgz", + "integrity": "sha512-cebgeytKlWOgGczLo3BPvNY9XlzAzGZQANSysgJ2/8PSldmUpXRIF+GKPXDVhXeInWYHIfB8zZi3RqrPoXcNYQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", + "@aws-sdk/types": "3.821.0", "@aws-sdk/util-arn-parser": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", "tslib": "^2.6.2" }, @@ -581,14 +585,14 @@ } }, "node_modules/@aws-sdk/middleware-expect-continue": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.804.0.tgz", - "integrity": "sha512-YW1hySBolALMII6C8y7Z0CRG2UX1dGJjLEBNFeefhO/xP7ZuE1dvnmfJGaEuBMnvc3wkRS63VZ3aqX6sevM1CA==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.821.0.tgz", + "integrity": "sha512-zAOoSZKe1njOrtynvK6ZORU57YGv5I7KP4+rwOvUN3ZhJbQ7QPf8gKtFUCYAPRMegaXCKF/ADPtDZBAmM+zZ9g==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -596,22 +600,22 @@ } }, "node_modules/@aws-sdk/middleware-flexible-checksums": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.804.0.tgz", - "integrity": "sha512-bQbh3hTrp+3XEuu8G5DkPDK9u3nnIabw2N1GpqlIwv8oGM+GTtGH35gBZtbbd2WAxfSUIBOAwkc86kTS0g0mFg==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.826.0.tgz", + "integrity": "sha512-Fz9w8CFYPfSlHEB6feSsi06hdS+s+FB8k5pO4L7IV0tUa78mlhxF/VNlAJaVWYyOkZXl4HPH2K48aapACSQOXw==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", "@aws-crypto/crc32c": "5.2.0", "@aws-crypto/util": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", "@smithy/is-array-buffer": "^4.0.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -620,14 +624,14 @@ } }, "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.804.0.tgz", - "integrity": "sha512-bum1hLVBrn2lJCi423Z2fMUYtsbkGI2s4N+2RI2WSjvbaVyMSv/WcejIrjkqiiMR+2Y7m5exgoKeg4/TODLDPQ==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.821.0.tgz", + "integrity": "sha512-xSMR+sopSeWGx5/4pAGhhfMvGBHioVBbqGvDs6pG64xfNwM5vq5s5v6D04e2i+uSTj4qGa71dLUs5I0UzAK3sw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -635,13 +639,13 @@ } }, "node_modules/@aws-sdk/middleware-location-constraint": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.804.0.tgz", - "integrity": "sha512-AMtKnllIWKgoo7hiJfphLYotEwTERfjVMO2+cKAncz9w1g+bnYhHxiVhJJoR94y047c06X4PU5MsTxvdQ73Znw==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.821.0.tgz", + "integrity": "sha512-sKrm80k0t3R0on8aA/WhWFoMaAl4yvdk+riotmMElLUpcMcRXAd1+600uFVrxJqZdbrKQ0mjX0PjT68DlkYXLg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -649,13 +653,13 @@ } }, "node_modules/@aws-sdk/middleware-logger": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.804.0.tgz", - "integrity": "sha512-w/qLwL3iq0KOPQNat0Kb7sKndl9BtceigINwBU7SpkYWX9L/Lem6f8NPEKrC9Tl4wDBht3Yztub4oRTy/horJA==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.821.0.tgz", + "integrity": "sha512-0cvI0ipf2tGx7fXYEEN5fBeZDz2RnHyb9xftSgUsEq7NBxjV0yTZfLJw6Za5rjE6snC80dRN8+bTNR1tuG89zA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -663,14 +667,14 @@ } }, "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.804.0.tgz", - "integrity": "sha512-zqHOrvLRdsUdN/ehYfZ9Tf8svhbiLLz5VaWUz22YndFv6m9qaAcijkpAOlKexsv3nLBMJdSdJ6GUTAeIy3BZzw==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.821.0.tgz", + "integrity": "sha512-efmaifbhBoqKG3bAoEfDdcM8hn1psF+4qa7ykWuYmfmah59JBeqHLfz5W9m9JoTwoKPkFcVLWZxnyZzAnVBOIg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -678,23 +682,23 @@ } }, "node_modules/@aws-sdk/middleware-sdk-s3": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.804.0.tgz", - "integrity": "sha512-kiuqjV2ozoyI6w34+KMhZU+YVOLTPgh1Kp1DSpuS+tbkwkxnQCrPGziQhuSA5/Y0bUFaa2zLwUh2jpCmJQbLyA==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.826.0.tgz", + "integrity": "sha512-8F0qWaYKfvD/de1AKccXuigM+gb/IZSncCqxdnFWqd+TFzo9qI9Hh+TpUhWOMYSgxsMsYQ8ipmLzlD/lDhjrmA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", "@aws-sdk/util-arn-parser": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", + "@smithy/core": "^3.5.3", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -703,13 +707,13 @@ } }, "node_modules/@aws-sdk/middleware-ssec": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.804.0.tgz", - "integrity": "sha512-Tk8jK0gOIUBvEPTz/wwSlP1V70zVQ3QYqsLPAjQRMO6zfOK9ax31dln3MgKvFDJxBydS2tS3wsn53v+brxDxTA==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.821.0.tgz", + "integrity": "sha512-YYi1Hhr2AYiU/24cQc8HIB+SWbQo6FBkMYojVuz/zgrtkFmALxENGF/21OPg7f/QWd+eadZJRxCjmRwh5F2Cxg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -717,17 +721,17 @@ } }, "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.804.0.tgz", - "integrity": "sha512-HoBaun4t3vAFhMj/I7L/HNBKBrAYu7Sb5bTFINx8kFCxPbqsvF+jOrEE8WiljHNy7FbPjz0mPVRUwO7RZSYNiQ==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.828.0.tgz", + "integrity": "sha512-nixvI/SETXRdmrVab4D9LvXT3lrXkwAWGWk2GVvQvzlqN1/M/RfClj+o37Sn4FqRkGH9o9g7Fqb1YqZ4mqDAtA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@smithy/core": "^3.5.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -735,47 +739,47 @@ } }, "node_modules/@aws-sdk/nested-clients": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.804.0.tgz", - "integrity": "sha512-IOUcw6stjqYBMhLoAXlLVipYpAqLlA17jcyI0OzpS0pTD1RvBqEBckYibF4HJeReI+IiEHu/m0If0SKVR5WyXQ==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.828.0.tgz", + "integrity": "sha512-xmeOILiR9LvfC8MctgeRXXN8nQTwbOvO4wHvgE8tDRsjnBpyyO0j50R4+viHXdMUGtgGkHEXRv8fFNBq54RgnA==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -784,16 +788,16 @@ } }, "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.804.0.tgz", - "integrity": "sha512-Qlr8jVUL5U8Ej+84ElUTGeOok6hQXcJdx5IOSRoqKs6bCKVa8TtwgX1zZIajzjMhMgMlR3/V+M8oDVDKPB43Ug==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.821.0.tgz", + "integrity": "sha512-t8og+lRCIIy5nlId0bScNpCkif8sc0LhmtaKsbm0ZPm3sCa/WhCbSZibjbZ28FNjVCV+p0D9RYZx0VDDbtWyjw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "engines": { @@ -801,16 +805,16 @@ } }, "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.804.0.tgz", - "integrity": "sha512-6wxi+f/uvddm2PVRG1gDkjnukfwhEtu3JUAvGqQ56VWbDyM69pxPnGjcwoxCKf0dX16mU8+kHT5CpXsRIpEkkw==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.826.0.tgz", + "integrity": "sha512-3fEi/zy6tpMzomYosksGtu7jZqGFcdBXoL7YRsG7OEeQzBbOW9B+fVaQZ4jnsViSjzA/yKydLahMrfPnt+iaxg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-sdk-s3": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/middleware-sdk-s3": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -818,16 +822,17 @@ } }, "node_modules/@aws-sdk/token-providers": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.804.0.tgz", - "integrity": "sha512-ndcLGD1nHEVJdWRl0lK8SfC0dN4j3X4gcGXEJxK16KZD23veMB2adHP69ySYXNFNo5gI6W9Ct9QXnB+tJCCS1Q==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.828.0.tgz", + "integrity": "sha512-JdOjI/TxkfQpY/bWbdGMdCiePESXTbtl6MfnJxz35zZ3tfHvBnxAWCoYJirdmjzY/j/dFo5oEyS6mQuXAG9w2w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -835,12 +840,12 @@ } }, "node_modules/@aws-sdk/types": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.804.0.tgz", - "integrity": "sha512-A9qnsy9zQ8G89vrPPlNG9d1d8QcKRGqJKqwyGgS0dclJpwy6d1EWgQLIolKPl6vcFpLoe6avLOLxr+h8ur5wpg==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.821.0.tgz", + "integrity": "sha512-Znroqdai1a90TlxGaJ+FK1lwC0fHpo97Xjsp5UKGR5JODYm7f9+/fF17ebO1KdoBr/Rm0UIFiF5VmI8ts9F1eA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -860,14 +865,14 @@ } }, "node_modules/@aws-sdk/util-endpoints": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.804.0.tgz", - "integrity": "sha512-mT2R1De1fBT3vgm00ELVFoaArblW3PqGUCVteGGSUdJA525To7h6xPThrNrw3Dn8blAcR8VYGYte/JX7vKgFxw==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.828.0.tgz", + "integrity": "sha512-RvKch111SblqdkPzg3oCIdlGxlQs+k+P7Etory9FmxPHyPDvsP1j1c74PmgYqtzzMWmoXTjd+c9naUHh9xG8xg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", - "@smithy/util-endpoints": "^3.0.2", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", + "@smithy/util-endpoints": "^3.0.6", "tslib": "^2.6.2" }, "engines": { @@ -887,27 +892,27 @@ } }, "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.804.0.tgz", - "integrity": "sha512-KfW6T6nQHHM/vZBBdGn6fMyG/MgX5lq82TDdX4HRQRRuHKLgBWGpKXqqvBwqIaCdXwWHgDrg2VQups6GqOWW2A==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.821.0.tgz", + "integrity": "sha512-irWZHyM0Jr1xhC+38OuZ7JB6OXMLPZlj48thElpsO1ZSLRkLZx5+I7VV6k3sp2yZ7BYbKz/G2ojSv4wdm7XTLw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.804.0.tgz", - "integrity": "sha512-TacXL50ZHOeTUvN9LbHjS3muvvJNpzZp9cAtGRKpKXzlu8zCxPHrVU7dGOF6ONuNG30GpN2xzz81/XcCtg+8/A==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.828.0.tgz", + "integrity": "sha512-LdN6fTBzTlQmc8O8f1wiZN0qF3yBWVGis7NwpWK7FUEzP9bEZRxYfIkV9oV9zpt6iNRze1SedK3JQVB/udxBoA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -923,169 +928,18 @@ } }, "node_modules/@aws-sdk/xml-builder": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.804.0.tgz", - "integrity": "sha512-JbGWp36IG9dgxtvC6+YXwt5WDZYfuamWFtVfK6fQpnmL96dx+GUPOXPKRWdw67WLKf2comHY28iX2d3z35I53Q==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.821.0.tgz", + "integrity": "sha512-DIIotRnefVL6DiaHtO6/21DhJ4JZnnIwdNbpwiAhdt/AVbttcE4yw925gsjur0OGv5BTYXQXU3YnANBYnZjuQA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", - "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz", - "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.2.tgz", - "integrity": "sha512-+GPzk8PlG0sPpzdU5ZvIRMPidzAnZDl/s9L+y13iodqvb8leL53bTannOrQ/Im7UkpsmFU5Ily5U60LWixnmLg==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.14.0.tgz", - "integrity": "sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", - "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.27.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.27.0.tgz", - "integrity": "sha512-G5JD9Tu5HJEu4z2Uo4aHY2sLV64B7CDMXxFzqzjl3NKd6RVzSXNoE80jk7Y0lJkTTkjiIhBAqmlYwjuBY3tvpA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.1.tgz", - "integrity": "sha512-0J+zgWxHN+xXONWIyPWKFMgVuJoZuGiIFu8yxk7RJjxkzpGmyja5wRFqZIVtjDVOQpV+Rw0iOAjYPE2eQyjr0w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.14.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "node_modules/@fastify/busboy": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", @@ -1095,90 +949,6 @@ "node": ">=14" } }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@mswjs/interceptors": { - "version": "0.38.6", - "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.38.6.tgz", - "integrity": "sha512-qFlpmObPqeUs4u3oFYv/OM/xyX+pNa5TRAjqjvMhbGYlyMhzSrE5UfncL2rUcEeVfD9Gebgff73hPwqcOwJQNA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@open-draft/deferred-promise": "^2.2.0", - "@open-draft/logger": "^0.3.0", - "@open-draft/until": "^2.0.0", - "is-node-process": "^1.2.0", - "outvariant": "^1.4.3", - "strict-event-emitter": "^0.5.1" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/@octokit/auth-token": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz", @@ -1337,51 +1107,13 @@ "@octokit/openapi-types": "^24.2.0" } }, - "node_modules/@open-draft/deferred-promise": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@open-draft/deferred-promise/-/deferred-promise-2.2.0.tgz", - "integrity": "sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@open-draft/logger": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@open-draft/logger/-/logger-0.3.0.tgz", - "integrity": "sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-node-process": "^1.2.0", - "outvariant": "^1.4.0" - } - }, - "node_modules/@open-draft/until": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@open-draft/until/-/until-2.1.0.tgz", - "integrity": "sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@pkgr/core": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.4.tgz", - "integrity": "sha512-ROFF39F6ZrnzSUEmQQZUar0Jt4xVoP9WnDRdWwF4NNcXs3xBTLgBUDoOwW141y1jP+S8nahIbdxbFC7IShw9Iw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/pkgr" - } - }, "node_modules/@smithy/abort-controller": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.0.2.tgz", - "integrity": "sha512-Sl/78VDtgqKxN2+1qduaVE140XF+Xg+TafkncspwM4jFP/LHr76ZHmIY/y3V1M0mMLNk+Je6IGbzxy23RSToMw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.0.4.tgz", + "integrity": "sha512-gJnEjZMvigPDQWHrW3oPrFhQtkrgqBkyjj3pCIdF3A5M6vsZODG93KNlfJprv6bp4245bdT32fsHK4kkH3KYDA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1414,15 +1146,15 @@ } }, "node_modules/@smithy/config-resolver": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.1.2.tgz", - "integrity": "sha512-7r6mZGwb5LmLJ+zPtkLoznf2EtwEuSWdtid10pjGl/7HefCE4mueOkrfki8JCUm99W6UfP47/r3tbxx9CfBN5A==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.1.4.tgz", + "integrity": "sha512-prmU+rDddxHOH0oNcwemL+SwnzcG65sBF2yXRO7aeXIn/xTlq2pX7JLVbkBnVLowHLg4/OL4+jBmv9hVrVGS+w==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "engines": { @@ -1430,17 +1162,18 @@ } }, "node_modules/@smithy/core": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.3.3.tgz", - "integrity": "sha512-CiJNc0b/WdnttAfQ6uMkxPQ3Z8hG/ba8wF89x9KtBBLDdZk6CX52K4F8hbe94uNbc8LDUuZFtbqfdhM3T21naw==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.5.3.tgz", + "integrity": "sha512-xa5byV9fEguZNofCclv6v9ra0FYh5FATQW/da7FQUVTic94DfrN/NvmKZjrMyzbpqfot9ZjBaO8U1UeTbmSLuA==", "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^4.0.5", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -1449,15 +1182,15 @@ } }, "node_modules/@smithy/credential-provider-imds": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.4.tgz", - "integrity": "sha512-jN6M6zaGVyB8FmNGG+xOPQB4N89M1x97MMdMnm1ESjljLS3Qju/IegQizKujaNcy2vXAvrz0en8bobe6E55FEA==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.6.tgz", + "integrity": "sha512-hKMWcANhUiNbCJouYkZ9V3+/Qf9pteR1dnwgdyzR09R4ODEYx8BbUysHwRSyex4rZ9zapddZhLFTnT4ZijR4pw==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "tslib": "^2.6.2" }, "engines": { @@ -1465,13 +1198,13 @@ } }, "node_modules/@smithy/eventstream-codec": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.0.2.tgz", - "integrity": "sha512-p+f2kLSK7ZrXVfskU/f5dzksKTewZk8pJLPvER3aFHPt76C2MxD9vNatSfLzzQSQB4FNO96RK4PSXfhD1TTeMQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.0.4.tgz", + "integrity": "sha512-7XoWfZqWb/QoR/rAU4VSi0mWnO2vu9/ltS6JZ5ZSZv0eovLVfDfu0/AX4ub33RsJTOth3TiFWSHS5YdztvFnig==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-hex-encoding": "^4.0.0", "tslib": "^2.6.2" }, @@ -1480,13 +1213,13 @@ } }, "node_modules/@smithy/eventstream-serde-browser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.0.2.tgz", - "integrity": "sha512-CepZCDs2xgVUtH7ZZ7oDdZFH8e6Y2zOv8iiX6RhndH69nlojCALSKK+OXwZUgOtUZEUaZ5e1hULVCHYbCn7pug==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.0.4.tgz", + "integrity": "sha512-3fb/9SYaYqbpy/z/H3yIi0bYKyAa89y6xPmIqwr2vQiUT2St+avRt8UKwsWt9fEdEasc5d/V+QjrviRaX1JRFA==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-serde-universal": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1494,12 +1227,12 @@ } }, "node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.1.0.tgz", - "integrity": "sha512-1PI+WPZ5TWXrfj3CIoKyUycYynYJgZjuQo8U+sphneOtjsgrttYybdqESFReQrdWJ+LKt6NEdbYzmmfDBmjX2A==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.1.2.tgz", + "integrity": "sha512-JGtambizrWP50xHgbzZI04IWU7LdI0nh/wGbqH3sJesYToMi2j/DcoElqyOcqEIG/D4tNyxgRuaqBXWE3zOFhQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1507,13 +1240,13 @@ } }, "node_modules/@smithy/eventstream-serde-node": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.0.2.tgz", - "integrity": "sha512-C5bJ/C6x9ENPMx2cFOirspnF9ZsBVnBMtP6BdPl/qYSuUawdGQ34Lq0dMcf42QTjUZgWGbUIZnz6+zLxJlb9aw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.0.4.tgz", + "integrity": "sha512-RD6UwNZ5zISpOWPuhVgRz60GkSIp0dy1fuZmj4RYmqLVRtejFqQ16WmfYDdoSoAjlp1LX+FnZo+/hkdmyyGZ1w==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-serde-universal": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1521,13 +1254,13 @@ } }, "node_modules/@smithy/eventstream-serde-universal": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.0.2.tgz", - "integrity": "sha512-St8h9JqzvnbB52FtckiHPN4U/cnXcarMniXRXTKn0r4b4XesZOGiAyUdj1aXbqqn1icSqBlzzUsCl6nPB018ng==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.0.4.tgz", + "integrity": "sha512-UeJpOmLGhq1SLox79QWw/0n2PFX+oPRE1ZyRMxPIaFEfCqWaqpB7BU9C8kpPOGEhLF7AwEqfFbtwNxGy4ReENA==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-codec": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1535,14 +1268,14 @@ } }, "node_modules/@smithy/fetch-http-handler": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.2.tgz", - "integrity": "sha512-+9Dz8sakS9pe7f2cBocpJXdeVjMopUDLgZs1yWeu7h++WqSbjUYv/JAJwKwXw1HV6gq1jyWjxuyn24E2GhoEcQ==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.4.tgz", + "integrity": "sha512-AMtBR5pHppYMVD7z7G+OlHHAcgAN7v0kVKEpHuTO4Gb199Gowh0taYi9oDStFeUhetkeP55JLSVlTW1n9rFtUw==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/querystring-builder": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/querystring-builder": "^4.0.4", + "@smithy/types": "^4.3.1", "@smithy/util-base64": "^4.0.0", "tslib": "^2.6.2" }, @@ -1551,14 +1284,14 @@ } }, "node_modules/@smithy/hash-blob-browser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.0.2.tgz", - "integrity": "sha512-3g188Z3DyhtzfBRxpZjU8R9PpOQuYsbNnyStc/ZVS+9nVX1f6XeNOa9IrAh35HwwIZg+XWk8bFVtNINVscBP+g==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.0.4.tgz", + "integrity": "sha512-WszRiACJiQV3QG6XMV44i5YWlkrlsM5Yxgz4jvsksuu7LDXA6wAtypfPajtNTadzpJy3KyJPoWehYpmZGKUFIQ==", "license": "Apache-2.0", "dependencies": { "@smithy/chunked-blob-reader": "^5.0.0", "@smithy/chunked-blob-reader-native": "^4.0.0", - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1566,12 +1299,12 @@ } }, "node_modules/@smithy/hash-node": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.0.2.tgz", - "integrity": "sha512-VnTpYPnRUE7yVhWozFdlxcYknv9UN7CeOqSrMH+V877v4oqtVYuoqhIhtSjmGPvYrYnAkaM61sLMKHvxL138yg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.0.4.tgz", + "integrity": "sha512-qnbTPUhCVnCgBp4z4BUJUhOEkVwxiEi1cyFM+Zj6o+aY8OFGxUQleKWq8ltgp3dujuhXojIvJWdoqpm6dVO3lQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-buffer-from": "^4.0.0", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" @@ -1581,12 +1314,12 @@ } }, "node_modules/@smithy/hash-stream-node": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.0.2.tgz", - "integrity": "sha512-POWDuTznzbIwlEXEvvXoPMS10y0WKXK790soe57tFRfvf4zBHyzE529HpZMqmDdwG9MfFflnyzndUQ8j78ZdSg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.0.4.tgz", + "integrity": "sha512-wHo0d8GXyVmpmMh/qOR0R7Y46/G1y6OR8U+bSTB4ppEzRxd1xVAQ9xOE9hOc0bSjhz0ujCPAbfNLkLrpa6cevg==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -1595,12 +1328,12 @@ } }, "node_modules/@smithy/invalid-dependency": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.0.2.tgz", - "integrity": "sha512-GatB4+2DTpgWPday+mnUkoumP54u/MDM/5u44KF9hIu8jF0uafZtQLcdfIKkIcUNuF/fBojpLEHZS/56JqPeXQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.0.4.tgz", + "integrity": "sha512-bNYMi7WKTJHu0gn26wg8OscncTt1t2b8KcsZxvOv56XA6cyXtOAAAaNP7+m45xfppXfOatXF3Sb1MNsLUgVLTw==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1620,12 +1353,12 @@ } }, "node_modules/@smithy/md5-js": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.0.2.tgz", - "integrity": "sha512-Hc0R8EiuVunUewCse2syVgA2AfSRco3LyAv07B/zCOMa+jpXI9ll+Q21Nc6FAlYPcpNcAXqBzMhNs1CD/pP2bA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.0.4.tgz", + "integrity": "sha512-uGLBVqcOwrLvGh/v/jw423yWHq/ofUGK1W31M2TNspLQbUV1Va0F5kTxtirkoHawODAZcjXTSGi7JwbnPcDPJg==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -1634,13 +1367,13 @@ } }, "node_modules/@smithy/middleware-content-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.0.2.tgz", - "integrity": "sha512-hAfEXm1zU+ELvucxqQ7I8SszwQ4znWMbNv6PLMndN83JJN41EPuS93AIyh2N+gJ6x8QFhzSO6b7q2e6oClDI8A==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.0.4.tgz", + "integrity": "sha512-F7gDyfI2BB1Kc+4M6rpuOLne5LOcEknH1n6UQB69qv+HucXBR1rkzXBnQTB2q46sFy1PM/zuSJOB532yc8bg3w==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1648,18 +1381,18 @@ } }, "node_modules/@smithy/middleware-endpoint": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.6.tgz", - "integrity": "sha512-Zdieg07c3ua3ap5ungdcyNnY1OsxmsXXtKDTk28+/YbwIPju0Z1ZX9X5AnkjmDE3+AbqgvhtC/ZuCMSr6VSfPw==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.11.tgz", + "integrity": "sha512-zDogwtRLzKl58lVS8wPcARevFZNBOOqnmzWWxVe9XiaXU2CADFjvJ9XfNibgkOWs08sxLuSr81NrpY4mgp9OwQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.3.3", - "@smithy/middleware-serde": "^4.0.5", - "@smithy/node-config-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", - "@smithy/util-middleware": "^4.0.2", + "@smithy/core": "^3.5.3", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "engines": { @@ -1667,18 +1400,18 @@ } }, "node_modules/@smithy/middleware-retry": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.1.7.tgz", - "integrity": "sha512-lFIFUJ0E/4I0UaIDY5usNUzNKAghhxO0lDH4TZktXMmE+e4ActD9F154Si0Unc01aCPzcwd+NcOwQw6AfXXRRQ==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/protocol-http": "^5.1.0", - "@smithy/service-error-classification": "^4.0.3", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.1.12.tgz", + "integrity": "sha512-wvIH70c4e91NtRxdaLZF+mbLZ/HcC6yg7ySKUiufL6ESp6zJUSnJucZ309AvG9nqCFHSRB5I6T3Ez1Q9wCh0Ww==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/service-error-classification": "^4.0.5", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "tslib": "^2.6.2", "uuid": "^9.0.1" }, @@ -1687,13 +1420,13 @@ } }, "node_modules/@smithy/middleware-serde": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.0.5.tgz", - "integrity": "sha512-yREC3q/HXqQigq29xX3hiy6tFi+kjPKXoYUQmwQdgPORLbQ0n6V2Z/Iw9Nnlu66da9fM/WhDtGvYvqwecrCljQ==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.0.8.tgz", + "integrity": "sha512-iSSl7HJoJaGyMIoNn2B7czghOVwJ9nD7TMvLhMWeSB5vt0TnEYyRRqPJu/TqW76WScaNvYYB8nRoiBHR9S1Ddw==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1701,12 +1434,12 @@ } }, "node_modules/@smithy/middleware-stack": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.0.2.tgz", - "integrity": "sha512-eSPVcuJJGVYrFYu2hEq8g8WWdJav3sdrI4o2c6z/rjnYDd3xH9j9E7deZQCzFn4QvGPouLngH3dQ+QVTxv5bOQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.0.4.tgz", + "integrity": "sha512-kagK5ggDrBUCCzI93ft6DjteNSfY8Ulr83UtySog/h09lTIOAJ/xUSObutanlPT0nhoHAkpmW9V5K8oPyLh+QA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1714,14 +1447,14 @@ } }, "node_modules/@smithy/node-config-provider": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.1.1.tgz", - "integrity": "sha512-1slS5jf5icHETwl5hxEVBj+mh6B+LbVW4yRINsGtUKH+nxM5Pw2H59+qf+JqYFCHp9jssG4vX81f5WKnjMN3Vw==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.1.3.tgz", + "integrity": "sha512-HGHQr2s59qaU1lrVH6MbLlmOBxadtzTsoO4c+bF5asdgVik3I8o7JIOzoeqWc5MjVa+vD36/LWE0iXKpNqooRw==", "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1729,15 +1462,15 @@ } }, "node_modules/@smithy/node-http-handler": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.0.4.tgz", - "integrity": "sha512-/mdqabuAT3o/ihBGjL94PUbTSPSRJ0eeVTdgADzow0wRJ0rN4A27EOrtlK56MYiO1fDvlO3jVTCxQtQmK9dZ1g==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.0.6.tgz", + "integrity": "sha512-NqbmSz7AW2rvw4kXhKGrYTiJVDHnMsFnX4i+/FzcZAfbOBauPYs2ekuECkSbtqaxETLLTu9Rl/ex6+I2BKErPA==", "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/querystring-builder": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/abort-controller": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/querystring-builder": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1745,12 +1478,12 @@ } }, "node_modules/@smithy/property-provider": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.0.2.tgz", - "integrity": "sha512-wNRoQC1uISOuNc2s4hkOYwYllmiyrvVXWMtq+TysNRVQaHm4yoafYQyjN/goYZS+QbYlPIbb/QRjaUZMuzwQ7A==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.0.4.tgz", + "integrity": "sha512-qHJ2sSgu4FqF4U/5UUp4DhXNmdTrgmoAai6oQiM+c5RZ/sbDwJ12qxB1M6FnP+Tn/ggkPZf9ccn4jqKSINaquw==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1758,12 +1491,12 @@ } }, "node_modules/@smithy/protocol-http": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.1.0.tgz", - "integrity": "sha512-KxAOL1nUNw2JTYrtviRRjEnykIDhxc84qMBzxvu1MUfQfHTuBlCG7PA6EdVwqpJjH7glw7FqQoFxUJSyBQgu7g==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.1.2.tgz", + "integrity": "sha512-rOG5cNLBXovxIrICSBm95dLqzfvxjEmuZx4KK3hWwPFHGdW3lxY0fZNXfv2zebfRO7sJZ5pKJYHScsqopeIWtQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1771,12 +1504,12 @@ } }, "node_modules/@smithy/querystring-builder": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.2.tgz", - "integrity": "sha512-NTOs0FwHw1vimmQM4ebh+wFQvOwkEf/kQL6bSM1Lock+Bv4I89B3hGYoUEPkmvYPkDKyp5UdXJYu+PoTQ3T31Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.4.tgz", + "integrity": "sha512-SwREZcDnEYoh9tLNgMbpop+UTGq44Hl9tdj3rf+yeLcfH7+J8OXEBaMc2kDxtyRHu8BhSg9ADEx0gFHvpJgU8w==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-uri-escape": "^4.0.0", "tslib": "^2.6.2" }, @@ -1785,12 +1518,12 @@ } }, "node_modules/@smithy/querystring-parser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.0.2.tgz", - "integrity": "sha512-v6w8wnmZcVXjfVLjxw8qF7OwESD9wnpjp0Dqry/Pod0/5vcEA3qxCr+BhbOHlxS8O+29eLpT3aagxXGwIoEk7Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.0.4.tgz", + "integrity": "sha512-6yZf53i/qB8gRHH/l2ZwUG5xgkPgQF15/KxH0DdXMDHjesA9MeZje/853ifkSY0x4m5S+dfDZ+c4x439PF0M2w==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1798,24 +1531,24 @@ } }, "node_modules/@smithy/service-error-classification": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.0.3.tgz", - "integrity": "sha512-FTbcajmltovWMjj3tksDQdD23b2w6gH+A0DYA1Yz3iSpjDj8fmkwy62UnXcWMy4d5YoMoSyLFHMfkEVEzbiN8Q==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.0.5.tgz", + "integrity": "sha512-LvcfhrnCBvCmTee81pRlh1F39yTS/+kYleVeLCwNtkY8wtGg8V/ca9rbZZvYIl8OjlMtL6KIjaiL/lgVqHD2nA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0" + "@smithy/types": "^4.3.1" }, "engines": { "node": ">=18.0.0" } }, "node_modules/@smithy/shared-ini-file-loader": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", - "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.4.tgz", + "integrity": "sha512-63X0260LoFBjrHifPDs+nM9tV0VMkOTl4JRMYNuKh/f5PauSjowTfvF3LogfkWdcPoxsA9UjqEOgjeYIbhb7Nw==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1823,16 +1556,16 @@ } }, "node_modules/@smithy/signature-v4": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.1.0.tgz", - "integrity": "sha512-4t5WX60sL3zGJF/CtZsUQTs3UrZEDO2P7pEaElrekbLqkWPYkgqNW1oeiNYC6xXifBnT9dVBOnNQRvOE9riU9w==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.1.2.tgz", + "integrity": "sha512-d3+U/VpX7a60seHziWnVZOHuEgJlclufjkS6zhXvxcJgkJq4UWdH5eOBLzHRMx6gXjsdT9h6lfpmLzbrdupHgQ==", "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^4.0.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "@smithy/util-hex-encoding": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "@smithy/util-uri-escape": "^4.0.0", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" @@ -1842,17 +1575,17 @@ } }, "node_modules/@smithy/smithy-client": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.2.6.tgz", - "integrity": "sha512-WEqP0wQ1N/lVS4pwNK1Vk+0i6QIr66cq/xbu1dVy1tM0A0qYwAYyz0JhbquzM5pMa8s89lyDBtoGKxo7iG74GA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.4.3.tgz", + "integrity": "sha512-xxzNYgA0HD6ETCe5QJubsxP0hQH3QK3kbpJz3QrosBCuIWyEXLR/CO5hFb2OeawEKUxMNhz3a1nuJNN2np2RMA==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.3.3", - "@smithy/middleware-endpoint": "^4.1.6", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", - "@smithy/util-stream": "^4.2.0", + "@smithy/core": "^3.5.3", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-stream": "^4.2.2", "tslib": "^2.6.2" }, "engines": { @@ -1860,9 +1593,9 @@ } }, "node_modules/@smithy/types": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.2.0.tgz", - "integrity": "sha512-7eMk09zQKCO+E/ivsjQv+fDlOupcFUCSC/L2YUPgwhvowVGWbPQHjEFcmjt7QQ4ra5lyowS92SV53Zc6XD4+fg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.3.1.tgz", + "integrity": "sha512-UqKOQBL2x6+HWl3P+3QqFD4ncKq0I8Nuz9QItGv5WuKuMHuuwlhvqcZCoXGfc+P1QmfJE7VieykoYYmrOoFJxA==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -1872,13 +1605,13 @@ } }, "node_modules/@smithy/url-parser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.0.2.tgz", - "integrity": "sha512-Bm8n3j2ScqnT+kJaClSVCMeiSenK6jVAzZCNewsYWuZtnBehEz4r2qP0riZySZVfzB+03XZHJeqfmJDkeeSLiQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.0.4.tgz", + "integrity": "sha512-eMkc144MuN7B0TDA4U2fKs+BqczVbk3W+qIvcoCY6D1JY3hnAdCuhCZODC+GAeaxj0p6Jroz4+XMUn3PCxQQeQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/querystring-parser": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1949,14 +1682,14 @@ } }, "node_modules/@smithy/util-defaults-mode-browser": { - "version": "4.0.14", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.14.tgz", - "integrity": "sha512-l7QnMX8VcDOH6n/fBRu4zqguSlOBZxFzWqp58dXFSARFBjNlmEDk5G/z4T7BMGr+rI0Pg8MkhmMUfEtHFgpy2g==", + "version": "4.0.19", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.19.tgz", + "integrity": "sha512-mvLMh87xSmQrV5XqnUYEPoiFFeEGYeAKIDDKdhE2ahqitm8OHM3aSvhqL6rrK6wm1brIk90JhxDf5lf2hbrLbQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^4.0.2", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "bowser": "^2.11.0", "tslib": "^2.6.2" }, @@ -1965,17 +1698,17 @@ } }, "node_modules/@smithy/util-defaults-mode-node": { - "version": "4.0.14", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.14.tgz", - "integrity": "sha512-Ujs1gsWDo3m/T63VWBTBmHLTD2UlU6J6FEokLCEp7OZQv45jcjLHoxTwgWsi8ULpsYozvH4MTWkRP+bhwr0vDg==", + "version": "4.0.19", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.19.tgz", + "integrity": "sha512-8tYnx+LUfj6m+zkUUIrIQJxPM1xVxfRBvoGHua7R/i6qAxOMjqR6CpEpDwKoIs1o0+hOjGvkKE23CafKL0vJ9w==", "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^4.1.2", - "@smithy/credential-provider-imds": "^4.0.4", - "@smithy/node-config-provider": "^4.1.1", - "@smithy/property-provider": "^4.0.2", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1983,13 +1716,13 @@ } }, "node_modules/@smithy/util-endpoints": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.0.4.tgz", - "integrity": "sha512-VfFATC1bmZLV2858B/O1NpMcL32wYo8DPPhHxYxDCodDl3f3mSZ5oJheW1IF91A0EeAADz2WsakM/hGGPGNKLg==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.0.6.tgz", + "integrity": "sha512-YARl3tFL3WgPuLzljRUnrS2ngLiUtkwhQtj8PAL13XZSyUiNLQxwG3fBBq3QXFqGFUXepIN73pINp3y8c2nBmA==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -2009,12 +1742,12 @@ } }, "node_modules/@smithy/util-middleware": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.0.2.tgz", - "integrity": "sha512-6GDamTGLuBQVAEuQ4yDQ+ti/YINf/MEmIegrEeg7DdB/sld8BX1lqt9RRuIcABOhAGTA50bRbPzErez7SlDtDQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.0.4.tgz", + "integrity": "sha512-9MLKmkBmf4PRb0ONJikCbCwORACcil6gUWojwARCClT7RmLzF04hUR4WdRprIXal7XVyrddadYNfp2eF3nrvtQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -2022,13 +1755,13 @@ } }, "node_modules/@smithy/util-retry": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.0.3.tgz", - "integrity": "sha512-DPuYjZQDXmKr/sNvy9Spu8R/ESa2e22wXZzSAY6NkjOLj6spbIje/Aq8rT97iUMdDj0qHMRIe+bTxvlU74d9Ng==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.0.5.tgz", + "integrity": "sha512-V7MSjVDTlEt/plmOFBn1762Dyu5uqMrV2Pl2X0dYk4XvWfdWJNe9Bs5Bzb56wkCuiWjSfClVMGcsuKrGj7S/yg==", "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^4.0.3", - "@smithy/types": "^4.2.0", + "@smithy/service-error-classification": "^4.0.5", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -2036,14 +1769,14 @@ } }, "node_modules/@smithy/util-stream": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.2.0.tgz", - "integrity": "sha512-Vj1TtwWnuWqdgQI6YTUF5hQ/0jmFiOYsc51CSMgj7QfyO+RF4EnT2HNjoviNlOOmgzgvf3f5yno+EiC4vrnaWQ==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.2.2.tgz", + "integrity": "sha512-aI+GLi7MJoVxg24/3J1ipwLoYzgkB4kUfogZfnslcYlynj3xsQ0e7vk4TnTro9hhsS5PvX1mwmkRqqHQjwcU7w==", "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/types": "^4.2.0", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/types": "^4.3.1", "@smithy/util-base64": "^4.0.0", "@smithy/util-buffer-from": "^4.0.0", "@smithy/util-hex-encoding": "^4.0.0", @@ -2080,96 +1813,19 @@ } }, "node_modules/@smithy/util-waiter": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.0.3.tgz", - "integrity": "sha512-JtaY3FxmD+te+KSI2FJuEcfNC9T/DGGVf551babM7fAaXhjJUt7oSYurH1Devxd2+BOSUACCgt3buinx4UnmEA==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.0.5.tgz", + "integrity": "sha512-4QvC49HTteI1gfemu0I1syWovJgPvGn7CVUoN9ZFkdvr/cCFkrEL7qNCdx/2eICqDWEGnnr68oMdSIPCLAriSQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/abort-controller": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, - "node_modules/@types/estree": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", - "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -2218,39 +1874,6 @@ "concat-map": "0.0.1" } }, - "node_modules/browserslist": { - "version": "4.24.5", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.5.tgz", - "integrity": "sha512-FDToo4Wo82hIdgc1CQ+NQD0hEhmpPjrZ3hiUgwgOG6IuTdlpr8jdjyG24P6cNP1yJpTLzS5OcGgSw0xmDU1/Tw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "caniuse-lite": "^1.0.30001716", - "electron-to-chromium": "^1.5.149", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, "node_modules/buffer": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", @@ -2261,898 +1884,75 @@ "ieee754": "^1.1.4" } }, - "node_modules/builtin-modules": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-5.0.0.tgz", - "integrity": "sha512-bkXY9WsVpY7CvMhKSR6pZilZu9Ln5WDrKVBUXf2S443etkmEO4V58heTecXcUIsNsi4Rx8JUO4NfX1IcQl4deg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" + }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "license": "ISC" }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "license": "MIT", "engines": { - "node": ">=6" + "node": ">=0.8.x" } }, - "node_modules/caniuse-lite": { - "version": "1.0.30001718", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001718.tgz", - "integrity": "sha512-AflseV1ahcSunK53NfEs9gFWgOEmzr0f+kaMFA4xiLZlr9Hzt7HxcSpIFcnNCUkz6R6dWKa54rUz3HUmI3nVcw==", - "dev": true, + "node_modules/fast-xml-parser": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", + "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==", "funding": [ { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" }, { - "type": "github", - "url": "https://github.com/sponsors/ai" + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" } ], - "license": "CC-BY-4.0" - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "strnum": "^1.0.5" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "bin": { + "fxparser": "src/cli/cli.js" } }, - "node_modules/ci-info": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.2.0.tgz", - "integrity": "sha512-cYY9mypksY8NRqgDB1XD1RiJL338v/551niynFTGkZOO2LHuB2OmOYxDIe/ttN9AHwrqdum1360G3ald0W9kCg==", - "dev": true, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "funding": [ { "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/clean-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz", - "integrity": "sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/clean-regexp/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" - }, - "node_modules/core-js-compat": { - "version": "3.42.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.42.0.tgz", - "integrity": "sha512-bQasjMfyDGyaeWKBIu33lHh9qlSR0MFE/Nmc6nMjf/iU9b3rSMdAYz1Baxrv4lPdGUsTqZudHA4jIGSJy0SWZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.24.4" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/deprecation": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", - "license": "ISC" - }, - "node_modules/electron-to-chromium": { - "version": "1.5.155", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.155.tgz", - "integrity": "sha512-ps5KcGGmwL8VaeJlvlDlu4fORQpv3+GIcF5I3f9tUKUlJ/wsysh6HU8P5L1XWRYeXfA0oJd4PyM8ds8zTFf6Ng==", - "dev": true, - "license": "ISC" - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.27.0.tgz", - "integrity": "sha512-ixRawFQuMB9DZ7fjU3iGGganFDp3+45bPOdaRurcFHSXO1e/sYwUX/FtQZpLZJR6SjMoJH8hR2pPEAfDyCoU2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.20.0", - "@eslint/config-helpers": "^0.2.1", - "@eslint/core": "^0.14.0", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.27.0", - "@eslint/plugin-kit": "^0.3.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-config-prettier": { - "version": "10.1.5", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.5.tgz", - "integrity": "sha512-zc1UmCpNltmVY34vuLRV61r1K27sWuX39E+uyUnY8xS2Bex88VV9cugG+UZbRSRGtGyFboj+D8JODyme1plMpw==", - "dev": true, - "license": "MIT", - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "funding": { - "url": "https://opencollective.com/eslint-config-prettier" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.4.0.tgz", - "integrity": "sha512-BvQOvUhkVQM1i63iMETK9Hjud9QhqBnbtT1Zc642p9ynzBuCe5pybkOnvqZIBypXmMlsGcnU4HZ8sCTPfpAexA==", - "dev": true, - "license": "MIT", - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.11.0" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-unicorn": { - "version": "59.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-59.0.1.tgz", - "integrity": "sha512-EtNXYuWPUmkgSU2E7Ttn57LbRREQesIP1BiLn7OZLKodopKfDXfBUkC/0j6mpw2JExwf43Uf3qLSvrSvppgy8Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.25.9", - "@eslint-community/eslint-utils": "^4.5.1", - "@eslint/plugin-kit": "^0.2.7", - "ci-info": "^4.2.0", - "clean-regexp": "^1.0.0", - "core-js-compat": "^3.41.0", - "esquery": "^1.6.0", - "find-up-simple": "^1.0.1", - "globals": "^16.0.0", - "indent-string": "^5.0.0", - "is-builtin-module": "^5.0.0", - "jsesc": "^3.1.0", - "pluralize": "^8.0.0", - "regexp-tree": "^0.1.27", - "regjsparser": "^0.12.0", - "semver": "^7.7.1", - "strip-indent": "^4.0.0" - }, - "engines": { - "node": "^18.20.0 || ^20.10.0 || >=21.0.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" - }, - "peerDependencies": { - "eslint": ">=9.22.0" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/@eslint/core": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz", - "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/@eslint/plugin-kit": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz", - "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.13.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/globals": { - "version": "16.1.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.1.0.tgz", - "integrity": "sha512-aibexHNbb/jiUSObBgpHLj+sIuUmJnYcgXBlrfsiDZ9rt4aF2TFRbyLgZ2iFQuVZ1K5Mx3FVkbKRSgKrbK3K2g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-xml-parser": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", - "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - }, - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - } - ], - "license": "MIT", - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/find-up-simple": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.1.tgz", - "integrity": "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true, - "license": "ISC" - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", - "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/is-builtin-module": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-5.0.0.tgz", - "integrity": "sha512-f4RqJKBUe5rQkJ2eJEJBXSticB3hGbN9j0yxxMQFqIW89Jp9WYFtzfTcRlstDKVUTRzSOTLKRfO9vIztenwtxA==", - "dev": true, - "license": "MIT", - "dependencies": { - "builtin-modules": "^5.0.0" - }, - "engines": { - "node": ">=18.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-node-process": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-node-process/-/is-node-process-1.2.0.tgz", - "integrity": "sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==", - "dev": true, - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "dev": true, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "license": "ISC" }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -3165,42 +1965,6 @@ "node": "*" } }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/nock": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.4.tgz", - "integrity": "sha512-86fh+gIKH8H02+y0/HKAOZZXn6OwgzXvl6JYwfjvKkoKxUWz54wIIDU/+w24xzMvk/R8pNVXOrvTubyl+Ml6cg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@mswjs/interceptors": "^0.38.5", - "json-stringify-safe": "^5.0.1", - "propagate": "^2.0.0" - }, - "engines": { - "node": ">=18.20.0 <20 || >=20.12.1" - } - }, - "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", - "dev": true, - "license": "MIT" - }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -3210,172 +1974,6 @@ "wrappy": "1" } }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/outvariant": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.4.3.tgz", - "integrity": "sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==", - "dev": true, - "license": "MIT" - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/pluralize": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", - "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", - "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/propagate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", - "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", @@ -3390,52 +1988,6 @@ "node": ">= 6" } }, - "node_modules/regexp-tree": { - "version": "0.1.27", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", - "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", - "dev": true, - "license": "MIT", - "bin": { - "regexp-tree": "bin/regexp-tree" - } - }, - "node_modules/regjsparser": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.12.0.tgz", - "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "jsesc": "~3.0.2" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -3456,42 +2008,6 @@ ], "license": "MIT" }, - "node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/stream-browserify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", @@ -3502,13 +2018,6 @@ "readable-stream": "^3.5.0" } }, - "node_modules/strict-event-emitter": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/strict-event-emitter/-/strict-event-emitter-0.5.1.tgz", - "integrity": "sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==", - "dev": true, - "license": "MIT" - }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -3518,35 +2027,6 @@ "safe-buffer": "~5.2.0" } }, - "node_modules/strip-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz", - "integrity": "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "min-indent": "^1.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/strnum": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz", @@ -3559,35 +2039,6 @@ ], "license": "MIT" }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/synckit": { - "version": "0.11.6", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.6.tgz", - "integrity": "sha512-2pR2ubZSV64f/vqm9eLPz/KOvR9Dm+Co/5ChLgeHl0yEDRc6h5hXHoxEQH8Y5Ljycozd3p1k5TTSVdzYGkPvLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@pkgr/core": "^0.2.4" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/synckit" - } - }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -3603,19 +2054,6 @@ "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/undici": { "version": "5.29.0", "resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz", @@ -3634,47 +2072,6 @@ "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", "license": "ISC" }, - "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -3694,50 +2091,11 @@ "uuid": "dist/bin/uuid" } }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "license": "ISC" - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } } } } diff --git a/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js b/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js index ab2db5e..855040b 100644 --- a/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +++ b/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js @@ -80,7 +80,7 @@ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, de const name = s.name.toLowerCase(); return name !== "sigv4a" && name.startsWith("sigv4"); }); - if (!signature_v4_multi_region_1.signatureV4CrtContainer.CrtSignerV4 && sigv4Present) { + if (signature_v4_multi_region_1.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) { continue; } } diff --git a/node_modules/@aws-sdk/client-s3/dist-cjs/index.js b/node_modules/@aws-sdk/client-s3/dist-cjs/index.js index 2d5e846..385af98 100644 --- a/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +++ b/node_modules/@aws-sdk/client-s3/dist-cjs/index.js @@ -2673,7 +2673,8 @@ var se_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xaebo]: input[_EBO] + [_xaebo]: input[_EBO], + [_xasca]: input[_CA] }); b.bp("/"); b.p("Bucket", () => input.Bucket, "{Bucket}", false); @@ -10502,6 +10503,7 @@ var PutBucketOwnershipControlsCommand = class extends import_smithy_client.Comma (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { + requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, requestChecksumRequired: true }) ]; diff --git a/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js b/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js index a6a90a4..e60b9cf 100644 --- a/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +++ b/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js @@ -28,29 +28,31 @@ const getRuntimeConfig = (config) => { const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); (0, core_1.emitWarningIfUnsupportedVersion)(process.version); - const profileConfig = { profile: config?.profile }; + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig), + authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? - (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig), + disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, loaderConfig), eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider, maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"), region: config?.region ?? - (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), + (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestChecksumCalculation: config?.requestChecksumCalculation ?? - (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig), + (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, loaderConfig), requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), responseChecksumValidation: config?.responseChecksumValidation ?? - (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig), + (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, loaderConfig), retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, @@ -58,13 +60,13 @@ const getRuntimeConfig = (config) => { }, config), sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"), sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), - sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, profileConfig), + sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig), streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher, - useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig), - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig), + useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, loaderConfig), + useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), }; }; exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js b/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js index ecc5dc1..6991845 100644 --- a/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js +++ b/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js @@ -1,5 +1,5 @@ import { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, } from "@aws-sdk/core"; -import { signatureV4CrtContainer } from "@aws-sdk/signature-v4-multi-region"; +import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region"; import { resolveParams } from "@smithy/middleware-endpoint"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; import { defaultEndpointResolver } from "../endpoint/endpointResolver"; @@ -77,7 +77,7 @@ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, de const name = s.name.toLowerCase(); return name !== "sigv4a" && name.startsWith("sigv4"); }); - if (!signatureV4CrtContainer.CrtSignerV4 && sigv4Present) { + if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) { continue; } } diff --git a/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketOwnershipControlsCommand.js b/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketOwnershipControlsCommand.js index ce22500..6dacca0 100644 --- a/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketOwnershipControlsCommand.js +++ b/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketOwnershipControlsCommand.js @@ -17,6 +17,7 @@ export class PutBucketOwnershipControlsCommand extends $Command getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { + requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, requestChecksumRequired: true, }), ]; diff --git a/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js b/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js index 06e0f70..9d50c11 100644 --- a/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +++ b/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js @@ -1486,6 +1486,7 @@ export const se_PutBucketOwnershipControlsCommand = async (input, context) => { "content-type": "application/xml", [_cm]: input[_CMD], [_xaebo]: input[_EBO], + [_xasca]: input[_CA], }); b.bp("/"); b.p("Bucket", () => input.Bucket, "{Bucket}", false); diff --git a/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js b/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js index 5f523e1..e0f1d89 100644 --- a/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js +++ b/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js @@ -24,29 +24,31 @@ export const getRuntimeConfig = (config) => { const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); awsCheckVersion(process.version); - const profileConfig = { profile: config?.profile }; + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig), + authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), - disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? - loadNodeConfig(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig), + disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? loadNodeConfig(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, loaderConfig), eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider, maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), md5: config?.md5 ?? Hash.bind(null, "md5"), region: config?.region ?? - loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), + loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestChecksumCalculation: config?.requestChecksumCalculation ?? - loadNodeConfig(NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig), + loadNodeConfig(NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, loaderConfig), requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), responseChecksumValidation: config?.responseChecksumValidation ?? - loadNodeConfig(NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig), + loadNodeConfig(NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, loaderConfig), retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, @@ -54,12 +56,12 @@ export const getRuntimeConfig = (config) => { }, config), sha1: config?.sha1 ?? Hash.bind(null, "sha1"), sha256: config?.sha256 ?? Hash.bind(null, "sha256"), - sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, profileConfig), + sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig), streamCollector: config?.streamCollector ?? streamCollector, streamHasher: config?.streamHasher ?? streamHasher, - useArnRegion: config?.useArnRegion ?? loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig), - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig), + useArnRegion: config?.useArnRegion ?? loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS, loaderConfig), + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), }; }; diff --git a/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts index 017b951..255dcb6 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAttributesCommand.d.ts @@ -27,11 +27,11 @@ declare const GetObjectAttributesCommand_base: { getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** - *

Retrieves all the metadata from an object without returning the object itself. This + *

Retrieves all of the metadata from an object without returning the object itself. This * operation is useful if you're interested only in an object's metadata.

*

* GetObjectAttributes combines the functionality of HeadObject - * and ListParts. All of the data returned with each of those individual calls + * and ListParts. All of the data returned with both of those individual calls * can be returned with a single call to GetObjectAttributes.

* *

@@ -48,16 +48,24 @@ declare const GetObjectAttributesCommand_base: { *

  • *

    * General purpose bucket permissions - To - * use GetObjectAttributes, you must have READ access to the - * object. The permissions that you need to use this operation depend on - * whether the bucket is versioned. If the bucket is versioned, you need both - * the s3:GetObjectVersion and - * s3:GetObjectVersionAttributes permissions for this - * operation. If the bucket is not versioned, you need the + * use GetObjectAttributes, you must have READ access to the object.

    + *

    The other permissions that you need to use this operation depend on + * whether the bucket is versioned and if a version ID is passed in the GetObjectAttributes request.

    + *
      + *
    • + *

      If you pass a version ID in your request, you need both the s3:GetObjectVersion and + * s3:GetObjectVersionAttributes permissions.

      + *
    • + *
    • + *

      If you do not pass a version ID in your request, you need the * s3:GetObject and s3:GetObjectAttributes - * permissions. For more information, see Specifying + * permissions.

      + *
    • + *
    + *

    For more information, see Specifying * Permissions in a Policy in the - * Amazon S3 User Guide. If the object that you request does + * Amazon S3 User Guide.

    + *

    If the object that you request does * not exist, the error Amazon S3 returns depends on whether you also have the * s3:ListBucket permission.

    *
      @@ -105,10 +113,10 @@ declare const GetObjectAttributesCommand_base: { * error. It's because the encryption method can't be changed when you retrieve * the object.

      * - *

      If you encrypt an object by using server-side encryption with customer-provided - * encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve - * the metadata from the object, you must use the following headers to provide the - * encryption key for the server to be able to retrieve the object's metadata. The + *

      If you encrypted an object when you stored the object in Amazon S3 by using server-side encryption with customer-provided + * encryption keys (SSE-C), then when you retrieve + * the metadata from the object, you must use the following headers. These headers provide the + * server with the encryption key required to retrieve the object's metadata. The * headers are:

      *
        *
      • diff --git a/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts index c5aab53..701664a 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts @@ -66,6 +66,7 @@ declare const PutBucketOwnershipControlsCommand_base: { * }, * ], * }, + * ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256" || "CRC64NVME", * }; * const command = new PutBucketOwnershipControlsCommand(input); * const response = await client.send(command); diff --git a/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts index f9b2e6a..3e0147d 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts @@ -33,7 +33,7 @@ export type RequestCharged = (typeof RequestCharged)[keyof typeof RequestCharged export interface AbortMultipartUploadOutput { /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -495,7 +495,7 @@ export interface CompleteMultipartUploadOutput { BucketKeyEnabled?: boolean | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -897,7 +897,7 @@ export interface CopyObjectOutput { BucketKeyEnabled?: boolean | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -1935,8 +1935,8 @@ export interface CreateBucketConfiguration { *

        Specifies the location where the bucket will be created.

        *

        * Directory buckets - The location type is Availability Zone or Local Zone. - * To use the Local Zone location type, your account must be enabled for Dedicated Local Zones. Otherwise, you get an HTTP 403 Forbidden error with the - * error code AccessDenied. To learn more, see Enable accounts for Dedicated Local Zones in the Amazon S3 User Guide. + * To use the Local Zone location type, your account must be enabled for Local Zones. Otherwise, you get an HTTP 403 Forbidden error with the + * error code AccessDenied. To learn more, see Enable accounts for Local Zones in the Amazon S3 User Guide. *

        * *

        This functionality is only supported by directory buckets.

        @@ -2259,7 +2259,7 @@ export interface CreateMultipartUploadOutput { BucketKeyEnabled?: boolean | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -3347,7 +3347,7 @@ export interface DeleteObjectOutput { VersionId?: string | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -5419,7 +5419,7 @@ export interface DeleteObjectsOutput { Deleted?: DeletedObject[] | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -5704,7 +5704,7 @@ export interface GetBucketAccelerateConfigurationOutput { Status?: BucketAccelerateStatus | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -6992,8 +6992,8 @@ export interface LifecycleRule { Prefix?: string | undefined; /** *

        The Filter is used to identify objects that a Lifecycle Rule applies to. A - * Filter must have exactly one of Prefix, Tag, or - * And specified. Filter is required if the + * Filter must have exactly one of Prefix, Tag, + * ObjectSizeGreaterThan, ObjectSizeLessThan, or And specified. Filter is required if the * LifecycleRule does not contain a Prefix element.

        * *

        @@ -9286,7 +9286,7 @@ export interface GetObjectOutput { StorageClass?: StorageClass | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -9688,7 +9688,7 @@ export interface GetObjectAclOutput { Grants?: Grant[] | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -9930,7 +9930,7 @@ export interface GetObjectAttributesOutput { VersionId?: string | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -10029,13 +10029,13 @@ export interface GetObjectAttributesRequest { */ VersionId?: string | undefined; /** - *

        Sets the maximum number of parts to return.

        + *

        Sets the maximum number of parts to return. For more information, see Uploading and copying objects using multipart upload in Amazon S3 in the Amazon Simple Storage Service user guide.

        * @public */ MaxParts?: number | undefined; /** *

        Specifies the part after which listing should begin. Only parts with higher part numbers - * will be listed.

        + * will be listed. For more information, see Uploading and copying objects using multipart upload in Amazon S3 in the Amazon Simple Storage Service user guide.

        * @public */ PartNumberMarker?: string | undefined; @@ -10422,7 +10422,7 @@ export interface GetObjectTorrentOutput { Body?: StreamingBlobTypes | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -10898,7 +10898,7 @@ export interface HeadObjectOutput { StorageClass?: StorageClass | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -11785,7 +11785,7 @@ export interface ListMultipartUploadsOutput { EncodingType?: EncodingType | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -12191,7 +12191,7 @@ export interface ListObjectsOutput { EncodingType?: EncodingType | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -12429,7 +12429,7 @@ export interface ListObjectsV2Output { StartAfter?: string | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -12774,7 +12774,7 @@ export interface ListObjectVersionsOutput { EncodingType?: EncodingType | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -13038,7 +13038,7 @@ export interface ListPartsOutput { StorageClass?: StorageClass | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        diff --git a/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts index 918bc0f..4834787 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts @@ -417,6 +417,18 @@ export interface PutBucketOwnershipControlsRequest { * @public */ OwnershipControls: OwnershipControls | undefined; + /** + *

        Indicates the algorithm used to create the checksum for the object when you use the + * SDK. This header will not provide any additional functionality if you don't use the + * SDK. When you send this header, there must be a corresponding + * x-amz-checksum-algorithm + * header sent. Otherwise, Amazon S3 fails the request with the HTTP + * status code 400 Bad Request. For more information, see Checking object + * integrity in the Amazon S3 User Guide.

        + *

        If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

        + * @public + */ + ChecksumAlgorithm?: ChecksumAlgorithm | undefined; } /** * @public @@ -1020,7 +1032,7 @@ export interface PutObjectOutput { Size?: number | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -1585,7 +1597,7 @@ export declare class TooManyParts extends __BaseException { export interface PutObjectAclOutput { /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -1712,7 +1724,7 @@ export interface PutObjectAclRequest { export interface PutObjectLegalHoldOutput { /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -1791,7 +1803,7 @@ export interface PutObjectLegalHoldRequest { export interface PutObjectLockConfigurationOutput { /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -1862,7 +1874,7 @@ export interface PutObjectLockConfigurationRequest { export interface PutObjectRetentionOutput { /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -2080,7 +2092,7 @@ export declare class ObjectAlreadyInActiveTierError extends __BaseException { export interface RestoreObjectOutput { /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -3065,7 +3077,7 @@ export interface UploadPartOutput { BucketKeyEnabled?: boolean | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -3349,7 +3361,7 @@ export interface UploadPartCopyOutput { BucketKeyEnabled?: boolean | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        @@ -3894,7 +3906,7 @@ export interface WriteGetObjectResponseRequest { ReplicationStatus?: ReplicationStatus | undefined; /** *

        If present, indicates that the requester was successfully charged for the - * request.

        + * request. For more information, see Using Requester Pays buckets for storage transfers and usage in the Amazon Simple Storage Service user guide.

        * *

        This functionality is not supported for directory buckets.

        *
        diff --git a/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts index bc4300f..f79d5f8 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts @@ -56,7 +56,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => { signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise); systemClockOffset?: number; signingRegion?: string; - signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion; + signerConstructor: typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner); sigv4aSigningRegionSet?: string[] | undefined | import("@smithy/types").Provider; forcePathStyle?: (boolean & (boolean | import("@smithy/types").Provider)) | undefined; useAccelerateEndpoint?: (boolean & (boolean | import("@smithy/types").Provider)) | undefined; diff --git a/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts index f1f2db1..8be63e9 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts @@ -59,7 +59,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => { signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme) => Promise); systemClockOffset?: number; signingRegion?: string; - signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion; + signerConstructor: typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner); forcePathStyle?: (boolean & (boolean | import("@aws-sdk/types").Provider)) | undefined; useAccelerateEndpoint?: (boolean & (boolean | import("@aws-sdk/types").Provider)) | undefined; disableMultiregionAccessPoints?: (boolean & (boolean | import("@aws-sdk/types").Provider)) | undefined; diff --git a/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts index adc8caf..01fa9bf 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts @@ -55,7 +55,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => { signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise); systemClockOffset?: number; signingRegion?: string; - signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion; + signerConstructor: typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner); sigv4aSigningRegionSet?: string[] | undefined | import("@smithy/types").Provider; forcePathStyle?: (boolean & (boolean | import("@smithy/types").Provider)) | undefined; useAccelerateEndpoint?: (boolean & (boolean | import("@smithy/types").Provider)) | undefined; diff --git a/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts index f3e96dd..f6bdeb3 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts @@ -18,7 +18,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => { logger: import("@smithy/types").Logger; sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector; serviceId: string; - signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof SignatureV4MultiRegion; + signerConstructor: typeof SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner); signingEscapePath: boolean; urlParser: import("@smithy/types").UrlParser; useArnRegion: boolean | import("@smithy/types").Provider; diff --git a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts index 737f72a..08f4750 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts @@ -111,6 +111,7 @@ export interface PutBucketOwnershipControlsRequest { ContentMD5?: string | undefined; ExpectedBucketOwner?: string | undefined; OwnershipControls: OwnershipControls | undefined; + ChecksumAlgorithm?: ChecksumAlgorithm | undefined; } export interface PutBucketPolicyRequest { Bucket: string | undefined; diff --git a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts index 3c51a6c..1a22fa5 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts @@ -108,11 +108,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => { systemClockOffset?: number; signingRegion?: string; signerConstructor: + | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new ( options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion; + ) => import("@smithy/types").RequestSigner); sigv4aSigningRegionSet?: | string[] | undefined diff --git a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts index 331e485..a4f7e6c 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts @@ -118,11 +118,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => { systemClockOffset?: number; signingRegion?: string; signerConstructor: + | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new ( options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@aws-sdk/types").RequestSigner) - | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion; + ) => import("@aws-sdk/types").RequestSigner); forcePathStyle?: | (boolean & (boolean | import("@aws-sdk/types").Provider)) | undefined; diff --git a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts index 3fd13dc..99962be 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts @@ -112,11 +112,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => { systemClockOffset?: number; signingRegion?: string; signerConstructor: + | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new ( options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion; + ) => import("@smithy/types").RequestSigner); sigv4aSigningRegionSet?: | string[] | undefined diff --git a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts index bfcca21..54796b5 100644 --- a/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +++ b/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts @@ -23,11 +23,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => { sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector; serviceId: string; signerConstructor: + | typeof SignatureV4MultiRegion | (new ( options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | typeof SignatureV4MultiRegion; + ) => import("@smithy/types").RequestSigner); signingEscapePath: boolean; urlParser: import("@smithy/types").UrlParser; useArnRegion: boolean | import("@smithy/types").Provider; diff --git a/node_modules/@aws-sdk/client-s3/package.json b/node_modules/@aws-sdk/client-s3/package.json index 35cd491..2218db2 100644 --- a/node_modules/@aws-sdk/client-s3/package.json +++ b/node_modules/@aws-sdk/client-s3/package.json @@ -1,7 +1,7 @@ { "name": "@aws-sdk/client-s3", "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native", - "version": "3.804.0", + "version": "3.828.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-s3", @@ -17,6 +17,8 @@ "test:browser:watch": "node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts", "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser", "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts", "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", @@ -27,62 +29,62 @@ "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/credential-provider-node": "3.804.0", - "@aws-sdk/middleware-bucket-endpoint": "3.804.0", - "@aws-sdk/middleware-expect-continue": "3.804.0", - "@aws-sdk/middleware-flexible-checksums": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-location-constraint": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-sdk-s3": "3.804.0", - "@aws-sdk/middleware-ssec": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/signature-v4-multi-region": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@aws-sdk/xml-builder": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/eventstream-serde-browser": "^4.0.2", - "@smithy/eventstream-serde-config-resolver": "^4.1.0", - "@smithy/eventstream-serde-node": "^4.0.2", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-blob-browser": "^4.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/hash-stream-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/md5-js": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/credential-provider-node": "3.828.0", + "@aws-sdk/middleware-bucket-endpoint": "3.821.0", + "@aws-sdk/middleware-expect-continue": "3.821.0", + "@aws-sdk/middleware-flexible-checksums": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-location-constraint": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-sdk-s3": "3.826.0", + "@aws-sdk/middleware-ssec": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/signature-v4-multi-region": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@aws-sdk/xml-builder": "3.821.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/eventstream-serde-browser": "^4.0.4", + "@smithy/eventstream-serde-config-resolver": "^4.1.2", + "@smithy/eventstream-serde-node": "^4.0.4", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-blob-browser": "^4.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/hash-stream-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/md5-js": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", - "@smithy/util-waiter": "^4.0.3", + "@smithy/util-waiter": "^4.0.5", "tslib": "^2.6.2" }, "devDependencies": { - "@aws-sdk/signature-v4-crt": "3.804.0", + "@aws-sdk/signature-v4-crt": "3.828.0", "@tsconfig/node18": "18.2.4", "@types/node": "^18.19.69", "concurrently": "7.0.0", diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js b/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js index befc739..ecc8dd2 100644 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +++ b/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js @@ -22,19 +22,22 @@ const getRuntimeConfig = (config) => { const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); (0, core_1.emitWarningIfUnsupportedVersion)(process.version); - const profileConfig = { profile: config?.profile }; + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig), + authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? - (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), + (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ @@ -43,9 +46,9 @@ const getRuntimeConfig = (config) => { }, config), sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig), + useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), }; }; exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js b/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js index d8440b7..ca042b1 100644 --- a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +++ b/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js @@ -18,19 +18,22 @@ export const getRuntimeConfig = (config) => { const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); awsCheckVersion(process.version); - const profileConfig = { profile: config?.profile }; + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig), + authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? - loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), + loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? loadNodeConfig({ @@ -39,8 +42,8 @@ export const getRuntimeConfig = (config) => { }, config), sha256: config?.sha256 ?? Hash.bind(null, "sha256"), streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig), + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), }; }; diff --git a/node_modules/@aws-sdk/client-sso/package.json b/node_modules/@aws-sdk/client-sso/package.json index 7a12057..836cb77 100644 --- a/node_modules/@aws-sdk/client-sso/package.json +++ b/node_modules/@aws-sdk/client-sso/package.json @@ -1,7 +1,7 @@ { "name": "@aws-sdk/client-sso", "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", - "version": "3.804.0", + "version": "3.828.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sso", @@ -20,40 +20,40 @@ "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js b/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js index 82db91e..2d10108 100644 --- a/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +++ b/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js @@ -26,6 +26,7 @@ __export(index_exports, { AwsSdkSigV4Signer: () => AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: () => NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS: () => NODE_SIGV4A_CONFIG_OPTIONS, + getBearerTokenEnvKey: () => getBearerTokenEnvKey, resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config, resolveAwsSdkSigV4AConfig: () => resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config, @@ -163,6 +164,9 @@ var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer { // src/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.ts var getArrayForCommaSeparatedString = /* @__PURE__ */ __name((str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [], "getArrayForCommaSeparatedString"); +// src/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.ts +var getBearerTokenEnvKey = /* @__PURE__ */ __name((signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`, "getBearerTokenEnvKey"); + // src/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.ts var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE"; var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference"; @@ -172,7 +176,11 @@ var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = { * @param env - Node process environment object * @returns Array of auth scheme strings if preference is set, undefined otherwise */ - environmentVariableSelector: /* @__PURE__ */ __name((env) => { + environmentVariableSelector: /* @__PURE__ */ __name((env, options) => { + if (options?.signingName) { + const bearerTokenKey = getBearerTokenEnvKey(options.signingName); + if (bearerTokenKey in env) return ["httpBearerAuth"]; + } if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) return void 0; return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]); }, "environmentVariableSelector"), @@ -375,6 +383,7 @@ __name(bindCallerConfig, "bindCallerConfig"); AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, + getBearerTokenEnvKey, resolveAWSSDKSigV4Config, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, diff --git a/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js b/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js index d84c65b..d8ff703 100644 --- a/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +++ b/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js @@ -21,6 +21,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru // src/submodules/protocols/index.ts var index_exports = {}; __export(index_exports, { + AwsEc2QueryProtocol: () => AwsEc2QueryProtocol, + AwsJson1_0Protocol: () => AwsJson1_0Protocol, + AwsJson1_1Protocol: () => AwsJson1_1Protocol, + AwsJsonRpcProtocol: () => AwsJsonRpcProtocol, + AwsQueryProtocol: () => AwsQueryProtocol, + AwsRestJsonProtocol: () => AwsRestJsonProtocol, + AwsRestXmlProtocol: () => AwsRestXmlProtocol, + JsonCodec: () => JsonCodec, + JsonShapeDeserializer: () => JsonShapeDeserializer, + JsonShapeSerializer: () => JsonShapeSerializer, + XmlCodec: () => XmlCodec, + XmlShapeDeserializer: () => XmlShapeDeserializer, + XmlShapeSerializer: () => XmlShapeSerializer, _toBool: () => _toBool, _toNum: () => _toNum, _toStr: () => _toStr, @@ -89,21 +102,50 @@ var _toNum = /* @__PURE__ */ __name((val) => { return val; }, "_toNum"); -// src/submodules/protocols/json/awsExpectUnion.ts -var import_smithy_client = require("@smithy/smithy-client"); -var awsExpectUnion = /* @__PURE__ */ __name((value) => { - if (value == null) { - return void 0; +// src/submodules/protocols/json/AwsJsonRpcProtocol.ts +var import_protocols = require("@smithy/core/protocols"); +var import_schema3 = require("@smithy/core/schema"); +var import_util_body_length_browser = require("@smithy/util-body-length-browser"); + +// src/submodules/protocols/ConfigurableSerdeContext.ts +var SerdeContextConfig = class { + static { + __name(this, "SerdeContextConfig"); } - if (typeof value === "object" && "__type" in value) { - delete value.__type; + serdeContext; + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; } - return (0, import_smithy_client.expectUnion)(value); -}, "awsExpectUnion"); +}; + +// src/submodules/protocols/json/JsonShapeDeserializer.ts +var import_schema = require("@smithy/core/schema"); +var import_serde2 = require("@smithy/core/serde"); +var import_util_base64 = require("@smithy/util-base64"); + +// src/submodules/protocols/json/jsonReviver.ts +var import_serde = require("@smithy/core/serde"); +function jsonReviver(key, value, context) { + if (context?.source) { + const numericString = context.source; + if (typeof value === "number") { + if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) { + const isFractional = numericString.includes("."); + if (isFractional) { + return new import_serde.NumericValue(numericString, "bigDecimal"); + } else { + return BigInt(numericString); + } + } + } + } + return value; +} +__name(jsonReviver, "jsonReviver"); // src/submodules/protocols/common.ts -var import_smithy_client2 = require("@smithy/smithy-client"); -var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client2.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString"); +var import_smithy_client = require("@smithy/smithy-client"); +var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString"); // src/submodules/protocols/json/parseJsonBody.ts var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { @@ -148,20 +190,1039 @@ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => { if (headerKey !== void 0) { return sanitizeErrorCode(output.headers[headerKey]); } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== void 0) { - return sanitizeErrorCode(data["__type"]); + if (data && typeof data === "object") { + const codeKey = findKey(data, "code"); + if (codeKey && data[codeKey] !== void 0) { + return sanitizeErrorCode(data[codeKey]); + } + if (data["__type"] !== void 0) { + return sanitizeErrorCode(data["__type"]); + } } }, "loadRestJsonErrorCode"); -// src/submodules/protocols/xml/parseXmlBody.ts +// src/submodules/protocols/json/JsonShapeDeserializer.ts +var JsonShapeDeserializer = class extends SerdeContextConfig { + constructor(settings) { + super(); + this.settings = settings; + } + static { + __name(this, "JsonShapeDeserializer"); + } + async read(schema, data) { + return this._read( + schema, + typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext) + ); + } + readObject(schema, data) { + return this._read(schema, data); + } + _read(schema, value) { + const isObject = value !== null && typeof value === "object"; + const ns = import_schema.NormalizedSchema.of(schema); + if (ns.isListSchema() && Array.isArray(value)) { + const listMember = ns.getValueSchema(); + const out = []; + const sparse = !!ns.getMergedTraits().sparse; + for (const item of value) { + if (sparse || item != null) { + out.push(this._read(listMember, item)); + } + } + return out; + } else if (ns.isMapSchema() && isObject) { + const mapMember = ns.getValueSchema(); + const out = {}; + const sparse = !!ns.getMergedTraits().sparse; + for (const [_k, _v] of Object.entries(value)) { + if (sparse || _v != null) { + out[_k] = this._read(mapMember, _v); + } + } + return out; + } else if (ns.isStructSchema() && isObject) { + const out = {}; + for (const [memberName, memberSchema] of ns.structIterator()) { + const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; + const deserializedValue = this._read(memberSchema, value[fromKey]); + if (deserializedValue != null) { + out[memberName] = deserializedValue; + } + } + return out; + } + if (ns.isBlobSchema() && typeof value === "string") { + return (0, import_util_base64.fromBase64)(value); + } + const mediaType = ns.getMergedTraits().mediaType; + if (ns.isStringSchema() && typeof value === "string" && mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + return import_serde2.LazyJsonString.from(value); + } + } + if (ns.isTimestampSchema()) { + const options = this.settings.timestampFormat; + const format = options.useTrait ? ns.getSchema() === import_schema.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default; + switch (format) { + case import_schema.SCHEMA.TIMESTAMP_DATE_TIME: + return (0, import_serde2.parseRfc3339DateTimeWithOffset)(value); + case import_schema.SCHEMA.TIMESTAMP_HTTP_DATE: + return (0, import_serde2.parseRfc7231DateTime)(value); + case import_schema.SCHEMA.TIMESTAMP_EPOCH_SECONDS: + return (0, import_serde2.parseEpochTimestamp)(value); + default: + console.warn("Missing timestamp format, parsing value with Date constructor:", value); + return new Date(value); + } + } + if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) { + return BigInt(value); + } + if (ns.isBigDecimalSchema() && value != void 0) { + if (value instanceof import_serde2.NumericValue) { + return value; + } + return new import_serde2.NumericValue(String(value), "bigDecimal"); + } + if (ns.isNumericSchema() && typeof value === "string") { + switch (value) { + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + case "NaN": + return NaN; + } + } + return value; + } +}; + +// src/submodules/protocols/json/JsonShapeSerializer.ts +var import_schema2 = require("@smithy/core/schema"); +var import_serde4 = require("@smithy/core/serde"); +var import_serde5 = require("@smithy/core/serde"); + +// src/submodules/protocols/json/jsonReplacer.ts +var import_serde3 = require("@smithy/core/serde"); +var NUMERIC_CONTROL_CHAR = String.fromCharCode(925); +var JsonReplacer = class { + static { + __name(this, "JsonReplacer"); + } + /** + * Stores placeholder key to true serialized value lookup. + */ + values = /* @__PURE__ */ new Map(); + counter = 0; + stage = 0; + /** + * Creates a jsonReplacer function that reserves big integer and big decimal values + * for later replacement. + */ + createReplacer() { + if (this.stage === 1) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer already created."); + } + if (this.stage === 2) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted."); + } + this.stage = 1; + return (key, value) => { + if (value instanceof import_serde3.NumericValue) { + const v = `${NUMERIC_CONTROL_CHAR + +"nv" + this.counter++}_` + value.string; + this.values.set(`"${v}"`, value.string); + return v; + } + if (typeof value === "bigint") { + const s = value.toString(); + const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s; + this.values.set(`"${v}"`, s); + return v; + } + return value; + }; + } + /** + * Replaces placeholder keys with their true values. + */ + replaceInJson(json) { + if (this.stage === 0) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet."); + } + if (this.stage === 2) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted."); + } + this.stage = 2; + if (this.counter === 0) { + return json; + } + for (const [key, value] of this.values) { + json = json.replace(key, value); + } + return json; + } +}; + +// src/submodules/protocols/json/JsonShapeSerializer.ts +var JsonShapeSerializer = class extends SerdeContextConfig { + constructor(settings) { + super(); + this.settings = settings; + } + static { + __name(this, "JsonShapeSerializer"); + } + buffer; + rootSchema; + write(schema, value) { + this.rootSchema = import_schema2.NormalizedSchema.of(schema); + this.buffer = this._write(this.rootSchema, value); + } + flush() { + if (this.rootSchema?.isStructSchema() || this.rootSchema?.isDocumentSchema()) { + const replacer = new JsonReplacer(); + return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0)); + } + return this.buffer; + } + _write(schema, value, container) { + const isObject = value !== null && typeof value === "object"; + const ns = import_schema2.NormalizedSchema.of(schema); + if (ns.isListSchema() && Array.isArray(value)) { + const listMember = ns.getValueSchema(); + const out = []; + const sparse = !!ns.getMergedTraits().sparse; + for (const item of value) { + if (sparse || item != null) { + out.push(this._write(listMember, item)); + } + } + return out; + } else if (ns.isMapSchema() && isObject) { + const mapMember = ns.getValueSchema(); + const out = {}; + const sparse = !!ns.getMergedTraits().sparse; + for (const [_k, _v] of Object.entries(value)) { + if (sparse || _v != null) { + out[_k] = this._write(mapMember, _v); + } + } + return out; + } else if (ns.isStructSchema() && isObject) { + const out = {}; + for (const [memberName, memberSchema] of ns.structIterator()) { + const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; + const serializableValue = this._write(memberSchema, value[memberName], ns); + if (serializableValue !== void 0) { + out[targetKey] = serializableValue; + } + } + return out; + } + if (value === null && container?.isStructSchema()) { + return void 0; + } + if (ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) { + if (ns === this.rootSchema) { + return value; + } + if (!this.serdeContext?.base64Encoder) { + throw new Error("Missing base64Encoder in serdeContext"); + } + return this.serdeContext?.base64Encoder(value); + } + if (ns.isTimestampSchema() && value instanceof Date) { + const options = this.settings.timestampFormat; + const format = options.useTrait ? ns.getSchema() === import_schema2.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default; + switch (format) { + case import_schema2.SCHEMA.TIMESTAMP_DATE_TIME: + return value.toISOString().replace(".000Z", "Z"); + case import_schema2.SCHEMA.TIMESTAMP_HTTP_DATE: + return (0, import_serde4.dateToUtcString)(value); + case import_schema2.SCHEMA.TIMESTAMP_EPOCH_SECONDS: + return value.getTime() / 1e3; + default: + console.warn("Missing timestamp format, using epoch seconds", value); + return value.getTime() / 1e3; + } + } + if (ns.isNumericSchema() && typeof value === "number") { + if (Math.abs(value) === Infinity || isNaN(value)) { + return String(value); + } + } + const mediaType = ns.getMergedTraits().mediaType; + if (ns.isStringSchema() && typeof value === "string" && mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + return import_serde5.LazyJsonString.from(value); + } + } + return value; + } +}; + +// src/submodules/protocols/json/JsonCodec.ts +var JsonCodec = class extends SerdeContextConfig { + constructor(settings) { + super(); + this.settings = settings; + } + static { + __name(this, "JsonCodec"); + } + createSerializer() { + const serializer = new JsonShapeSerializer(this.settings); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new JsonShapeDeserializer(this.settings); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } +}; + +// src/submodules/protocols/json/AwsJsonRpcProtocol.ts +var AwsJsonRpcProtocol = class extends import_protocols.RpcProtocol { + static { + __name(this, "AwsJsonRpcProtocol"); + } + serializer; + deserializer; + codec; + constructor({ defaultNamespace }) { + super({ + defaultNamespace + }); + this.codec = new JsonCodec({ + timestampFormat: { + useTrait: true, + default: import_schema3.SCHEMA.TIMESTAMP_EPOCH_SECONDS + }, + jsonName: false + }); + this.serializer = this.codec.createSerializer(); + this.deserializer = this.codec.createDeserializer(); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + if (!request.path.endsWith("/")) { + request.path += "/"; + } + Object.assign(request.headers, { + "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`, + "x-amz-target": (this.getJsonRpcVersion() === "1.0" ? `JsonRpc10.` : `JsonProtocol.`) + import_schema3.NormalizedSchema.of(operationSchema).getName() + }); + if ((0, import_schema3.deref)(operationSchema.input) === "unit" || !request.body) { + request.body = "{}"; + } + try { + request.headers["content-length"] = String((0, import_util_body_length_browser.calculateBodyLength)(request.body)); + } catch (e) { + } + return request; + } + getPayloadCodec() { + return this.codec; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [namespace, errorName] = errorIdentifier.split("#"); + } + const registry = import_schema3.TypeRegistry.for(namespace); + let errorSchema; + try { + errorSchema = registry.getSchema(errorIdentifier); + } catch (e) { + const baseExceptionSchema = import_schema3.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = baseExceptionSchema.ctor; + throw Object.assign(new ErrorCtor(errorName), dataObject); + } + throw new Error(errorName); + } + const ns = import_schema3.NormalizedSchema.of(errorSchema); + const message = dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new errorSchema.ctor(message); + await this.deserializeHttpMessage(errorSchema, context, response, dataObject); + const output = {}; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().jsonName ?? name; + output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]); + } + Object.assign(exception, { + $metadata: metadata, + $response: response, + $fault: ns.getMergedTraits().error, + message, + ...output + }); + throw exception; + } +}; + +// src/submodules/protocols/json/AwsJson1_0Protocol.ts +var AwsJson1_0Protocol = class extends AwsJsonRpcProtocol { + static { + __name(this, "AwsJson1_0Protocol"); + } + constructor({ defaultNamespace }) { + super({ + defaultNamespace + }); + } + getShapeId() { + return "aws.protocols#awsJson1_0"; + } + getJsonRpcVersion() { + return "1.0"; + } +}; + +// src/submodules/protocols/json/AwsJson1_1Protocol.ts +var AwsJson1_1Protocol = class extends AwsJsonRpcProtocol { + static { + __name(this, "AwsJson1_1Protocol"); + } + constructor({ defaultNamespace }) { + super({ + defaultNamespace + }); + } + getShapeId() { + return "aws.protocols#awsJson1_1"; + } + getJsonRpcVersion() { + return "1.1"; + } +}; + +// src/submodules/protocols/json/AwsRestJsonProtocol.ts +var import_protocols2 = require("@smithy/core/protocols"); +var import_schema4 = require("@smithy/core/schema"); +var import_util_body_length_browser2 = require("@smithy/util-body-length-browser"); +var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol { + static { + __name(this, "AwsRestJsonProtocol"); + } + serializer; + deserializer; + codec; + constructor({ defaultNamespace }) { + super({ + defaultNamespace + }); + const settings = { + timestampFormat: { + useTrait: true, + default: import_schema4.SCHEMA.TIMESTAMP_EPOCH_SECONDS + }, + httpBindings: true, + jsonName: true + }; + this.codec = new JsonCodec(settings); + this.serializer = new import_protocols2.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); + this.deserializer = new import_protocols2.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); + } + getShapeId() { + return "aws.protocols#restJson1"; + } + getPayloadCodec() { + return this.codec; + } + setSerdeContext(serdeContext) { + this.codec.setSerdeContext(serdeContext); + super.setSerdeContext(serdeContext); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + const inputSchema = import_schema4.NormalizedSchema.of(operationSchema.input); + const members = inputSchema.getMemberSchemas(); + if (!request.headers["content-type"]) { + const httpPayloadMember = Object.values(members).find((m) => { + return !!m.getMergedTraits().httpPayload; + }); + if (httpPayloadMember) { + const mediaType = httpPayloadMember.getMergedTraits().mediaType; + if (mediaType) { + request.headers["content-type"] = mediaType; + } else if (httpPayloadMember.isStringSchema()) { + request.headers["content-type"] = "text/plain"; + } else if (httpPayloadMember.isBlobSchema()) { + request.headers["content-type"] = "application/octet-stream"; + } else { + request.headers["content-type"] = "application/json"; + } + } else if (!inputSchema.isUnitSchema()) { + const hasBody = Object.values(members).find((m) => { + const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits(); + return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0; + }); + if (hasBody) { + request.headers["content-type"] = "application/json"; + } + } + } + if (request.headers["content-type"] && !request.body) { + request.body = "{}"; + } + if (request.body) { + try { + request.headers["content-length"] = String((0, import_util_body_length_browser2.calculateBodyLength)(request.body)); + } catch (e) { + } + } + return request; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [namespace, errorName] = errorIdentifier.split("#"); + } + const registry = import_schema4.TypeRegistry.for(namespace); + let errorSchema; + try { + errorSchema = registry.getSchema(errorIdentifier); + } catch (e) { + const baseExceptionSchema = import_schema4.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = baseExceptionSchema.ctor; + throw Object.assign(new ErrorCtor(errorName), dataObject); + } + throw new Error(errorName); + } + const ns = import_schema4.NormalizedSchema.of(errorSchema); + const message = dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new errorSchema.ctor(message); + await this.deserializeHttpMessage(errorSchema, context, response, dataObject); + const output = {}; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().jsonName ?? name; + output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]); + } + Object.assign(exception, { + $metadata: metadata, + $response: response, + $fault: ns.getMergedTraits().error, + message, + ...output + }); + throw exception; + } +}; + +// src/submodules/protocols/json/awsExpectUnion.ts +var import_smithy_client2 = require("@smithy/smithy-client"); +var awsExpectUnion = /* @__PURE__ */ __name((value) => { + if (value == null) { + return void 0; + } + if (typeof value === "object" && "__type" in value) { + delete value.__type; + } + return (0, import_smithy_client2.expectUnion)(value); +}, "awsExpectUnion"); + +// src/submodules/protocols/query/AwsQueryProtocol.ts +var import_protocols5 = require("@smithy/core/protocols"); +var import_schema7 = require("@smithy/core/schema"); +var import_util_body_length_browser3 = require("@smithy/util-body-length-browser"); + +// src/submodules/protocols/xml/XmlShapeDeserializer.ts +var import_protocols3 = require("@smithy/core/protocols"); +var import_schema5 = require("@smithy/core/schema"); var import_smithy_client3 = require("@smithy/smithy-client"); +var import_util_utf8 = require("@smithy/util-utf8"); var import_fast_xml_parser = require("fast-xml-parser"); +var XmlShapeDeserializer = class extends SerdeContextConfig { + constructor(settings) { + super(); + this.settings = settings; + this.stringDeserializer = new import_protocols3.FromStringShapeDeserializer(settings); + } + static { + __name(this, "XmlShapeDeserializer"); + } + stringDeserializer; + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + this.stringDeserializer.setSerdeContext(serdeContext); + } + /** + * @param schema - describing the data. + * @param bytes - serialized data. + * @param key - used by AwsQuery to step one additional depth into the object before reading it. + */ + read(schema, bytes, key) { + const ns = import_schema5.NormalizedSchema.of(schema); + const memberSchemas = ns.getMemberSchemas(); + const isEventPayload = ns.isStructSchema() && ns.isMemberSchema() && !!Object.values(memberSchemas).find((memberNs) => { + return !!memberNs.getMemberTraits().eventPayload; + }); + if (isEventPayload) { + const output = {}; + const memberName = Object.keys(memberSchemas)[0]; + const eventMemberSchema = memberSchemas[memberName]; + if (eventMemberSchema.isBlobSchema()) { + output[memberName] = bytes; + } else { + output[memberName] = this.read(memberSchemas[memberName], bytes); + } + return output; + } + const xmlString = (this.serdeContext?.utf8Encoder ?? import_util_utf8.toUtf8)(bytes); + const parsedObject = this.parseXml(xmlString); + return this.readSchema(schema, key ? parsedObject[key] : parsedObject); + } + readSchema(_schema, value) { + const ns = import_schema5.NormalizedSchema.of(_schema); + const traits = ns.getMergedTraits(); + const schema = ns.getSchema(); + if (ns.isListSchema() && !Array.isArray(value)) { + return this.readSchema(schema, [value]); + } + if (value == null) { + return value; + } + if (typeof value === "object") { + const sparse = !!traits.sparse; + const flat = !!traits.xmlFlattened; + if (ns.isListSchema()) { + const listValue = ns.getValueSchema(); + const buffer2 = []; + const sourceKey = listValue.getMergedTraits().xmlName ?? "member"; + const source = flat ? value : (value[0] ?? value)[sourceKey]; + const sourceArray = Array.isArray(source) ? source : [source]; + for (const v of sourceArray) { + if (v != null || sparse) { + buffer2.push(this.readSchema(listValue, v)); + } + } + return buffer2; + } + const buffer = {}; + if (ns.isMapSchema()) { + const keyNs = ns.getKeySchema(); + const memberNs = ns.getValueSchema(); + let entries; + if (flat) { + entries = Array.isArray(value) ? value : [value]; + } else { + entries = Array.isArray(value.entry) ? value.entry : [value.entry]; + } + const keyProperty = keyNs.getMergedTraits().xmlName ?? "key"; + const valueProperty = memberNs.getMergedTraits().xmlName ?? "value"; + for (const entry of entries) { + const key = entry[keyProperty]; + const value2 = entry[valueProperty]; + if (value2 != null || sparse) { + buffer[key] = this.readSchema(memberNs, value2); + } + } + return buffer; + } + if (ns.isStructSchema()) { + for (const [memberName, memberSchema] of ns.structIterator()) { + const memberTraits = memberSchema.getMergedTraits(); + const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName(); + if (value[xmlObjectKey] != null) { + buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]); + } + } + return buffer; + } + if (ns.isDocumentSchema()) { + return value; + } + throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`); + } else { + if (ns.isListSchema()) { + return []; + } else if (ns.isMapSchema() || ns.isStructSchema()) { + return {}; + } + return this.stringDeserializer.read(ns, value); + } + } + parseXml(xml) { + if (xml.length) { + const parser = new import_fast_xml_parser.XMLParser({ + attributeNamePrefix: "", + htmlEntities: true, + ignoreAttributes: false, + ignoreDeclaration: true, + parseTagValue: false, + trimValues: false, + tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor") + }); + parser.addEntity("#xD", "\r"); + parser.addEntity("#10", "\n"); + let parsedObj; + try { + parsedObj = parser.parse(xml, true); + } catch (e) { + if (e && typeof e === "object") { + Object.defineProperty(e, "$responseBodyText", { + value: xml + }); + } + throw e; + } + const textNodeName = "#text"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn); + } + return {}; + } +}; + +// src/submodules/protocols/query/QueryShapeSerializer.ts +var import_protocols4 = require("@smithy/core/protocols"); +var import_schema6 = require("@smithy/core/schema"); +var import_serde6 = require("@smithy/core/serde"); +var import_smithy_client4 = require("@smithy/smithy-client"); +var import_util_base642 = require("@smithy/util-base64"); +var QueryShapeSerializer = class extends SerdeContextConfig { + constructor(settings) { + super(); + this.settings = settings; + } + static { + __name(this, "QueryShapeSerializer"); + } + buffer; + write(schema, value, prefix = "") { + if (this.buffer === void 0) { + this.buffer = ""; + } + const ns = import_schema6.NormalizedSchema.of(schema); + if (prefix && !prefix.endsWith(".")) { + prefix += "."; + } + if (ns.isBlobSchema()) { + if (typeof value === "string" || value instanceof Uint8Array) { + this.writeKey(prefix); + this.writeValue((this.serdeContext?.base64Encoder ?? import_util_base642.toBase64)(value)); + } + } else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(String(value)); + } + } else if (ns.isBigIntegerSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(String(value)); + } + } else if (ns.isBigDecimalSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(value instanceof import_serde6.NumericValue ? value.string : String(value)); + } + } else if (ns.isTimestampSchema()) { + if (value instanceof Date) { + this.writeKey(prefix); + const format = (0, import_protocols4.determineTimestampFormat)(ns, this.settings); + switch (format) { + case import_schema6.SCHEMA.TIMESTAMP_DATE_TIME: + this.writeValue(value.toISOString().replace(".000Z", "Z")); + break; + case import_schema6.SCHEMA.TIMESTAMP_HTTP_DATE: + this.writeValue((0, import_smithy_client4.dateToUtcString)(value)); + break; + case import_schema6.SCHEMA.TIMESTAMP_EPOCH_SECONDS: + this.writeValue(String(value.getTime() / 1e3)); + break; + } + } + } else if (ns.isDocumentSchema()) { + throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`); + } else if (ns.isListSchema()) { + if (Array.isArray(value)) { + if (value.length === 0) { + if (this.settings.serializeEmptyLists) { + this.writeKey(prefix); + this.writeValue(""); + } + } else { + const member = ns.getValueSchema(); + const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened; + let i = 1; + for (const item of value) { + if (item == null) { + continue; + } + const suffix = this.getKey("member", member.getMergedTraits().xmlName); + const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`; + this.write(member, item, key); + ++i; + } + } + } + } else if (ns.isMapSchema()) { + if (value && typeof value === "object") { + const keySchema = ns.getKeySchema(); + const memberSchema = ns.getValueSchema(); + const flat = ns.getMergedTraits().xmlFlattened; + let i = 1; + for (const [k, v] of Object.entries(value)) { + if (v == null) { + continue; + } + const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName); + const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`; + const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName); + const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`; + this.write(keySchema, k, key); + this.write(memberSchema, v, valueKey); + ++i; + } + } + } else if (ns.isStructSchema()) { + if (value && typeof value === "object") { + for (const [memberName, member] of ns.structIterator()) { + if (value[memberName] == null) { + continue; + } + const suffix = this.getKey(memberName, member.getMergedTraits().xmlName); + const key = `${prefix}${suffix}`; + this.write(member, value[memberName], key); + } + } + } else if (ns.isUnitSchema()) { + } else { + throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`); + } + } + flush() { + if (this.buffer === void 0) { + throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer."); + } + const str = this.buffer; + delete this.buffer; + return str; + } + getKey(memberName, xmlName) { + const key = xmlName ?? memberName; + if (this.settings.capitalizeKeys) { + return key[0].toUpperCase() + key.slice(1); + } + return key; + } + writeKey(key) { + if (key.endsWith(".")) { + key = key.slice(0, key.length - 1); + } + this.buffer += `&${(0, import_protocols4.extendedEncodeURIComponent)(key)}=`; + } + writeValue(value) { + this.buffer += (0, import_protocols4.extendedEncodeURIComponent)(value); + } +}; + +// src/submodules/protocols/query/AwsQueryProtocol.ts +var AwsQueryProtocol = class extends import_protocols5.RpcProtocol { + constructor(options) { + super({ + defaultNamespace: options.defaultNamespace + }); + this.options = options; + const settings = { + timestampFormat: { + useTrait: true, + default: import_schema7.SCHEMA.TIMESTAMP_DATE_TIME + }, + httpBindings: false, + xmlNamespace: options.xmlNamespace, + serviceNamespace: options.defaultNamespace, + serializeEmptyLists: true + }; + this.serializer = new QueryShapeSerializer(settings); + this.deserializer = new XmlShapeDeserializer(settings); + } + static { + __name(this, "AwsQueryProtocol"); + } + serializer; + deserializer; + getShapeId() { + return "aws.protocols#awsQuery"; + } + setSerdeContext(serdeContext) { + this.serializer.setSerdeContext(serdeContext); + this.deserializer.setSerdeContext(serdeContext); + } + getPayloadCodec() { + throw new Error("AWSQuery protocol has no payload codec."); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + if (!request.path.endsWith("/")) { + request.path += "/"; + } + Object.assign(request.headers, { + "content-type": `application/x-www-form-urlencoded` + }); + if ((0, import_schema7.deref)(operationSchema.input) === "unit" || !request.body) { + request.body = ""; + } + request.body = `Action=${operationSchema.name.split("#")[1]}&Version=${this.options.version}` + request.body; + if (request.body.endsWith("&")) { + request.body = request.body.slice(-1); + } + try { + request.headers["content-length"] = String((0, import_util_body_length_browser3.calculateBodyLength)(request.body)); + } catch (e) { + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = import_schema7.NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes2 = await (0, import_protocols5.collectBody)(response.body, context); + if (bytes2.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(import_schema7.SCHEMA.DOCUMENT, bytes2)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? operationSchema.name.split("#")[1] + "Result" : void 0; + const bytes = await (0, import_protocols5.collectBody)(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey)); + } + const output = { + $metadata: this.deserializeMetadata(response), + ...dataObject + }; + return output; + } + /** + * EC2 Query overrides this. + */ + useNestedResult() { + return true; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [namespace, errorName] = errorIdentifier.split("#"); + } + const errorDataSource = this.loadQueryError(dataObject); + const registry = import_schema7.TypeRegistry.for(namespace); + let errorSchema; + try { + errorSchema = registry.find( + (schema) => import_schema7.NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName + ); + if (!errorSchema) { + errorSchema = registry.getSchema(errorIdentifier); + } + } catch (e) { + const baseExceptionSchema = import_schema7.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = baseExceptionSchema.ctor; + throw Object.assign(new ErrorCtor(errorName), errorDataSource); + } + throw new Error(errorName); + } + const ns = import_schema7.NormalizedSchema.of(errorSchema); + const message = this.loadQueryErrorMessage(dataObject); + const exception = new errorSchema.ctor(message); + const output = {}; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().xmlName ?? name; + const value = errorDataSource[target] ?? dataObject[target]; + output[name] = this.deserializer.readSchema(member, value); + } + Object.assign(exception, { + $metadata: metadata, + $response: response, + $fault: ns.getMergedTraits().error, + message, + ...output + }); + throw exception; + } + /** + * The variations in the error and error message locations are attributed to + * divergence between AWS Query and EC2 Query behavior. + */ + loadQueryErrorCode(output, data) { + const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code; + if (code !== void 0) { + return code; + } + if (output.statusCode == 404) { + return "NotFound"; + } + } + loadQueryError(data) { + return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error; + } + loadQueryErrorMessage(data) { + const errorData = this.loadQueryError(data); + return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown"; + } +}; + +// src/submodules/protocols/query/AwsEc2QueryProtocol.ts +var AwsEc2QueryProtocol = class extends AwsQueryProtocol { + constructor(options) { + super(options); + this.options = options; + const ec2Settings = { + capitalizeKeys: true, + flattenLists: true, + serializeEmptyLists: false + }; + Object.assign(this.serializer.settings, ec2Settings); + } + static { + __name(this, "AwsEc2QueryProtocol"); + } + /** + * EC2 Query reads XResponse.XResult instead of XResponse directly. + */ + useNestedResult() { + return false; + } +}; + +// src/submodules/protocols/xml/AwsRestXmlProtocol.ts +var import_protocols6 = require("@smithy/core/protocols"); +var import_schema9 = require("@smithy/core/schema"); +var import_util_body_length_browser4 = require("@smithy/util-body-length-browser"); + +// src/submodules/protocols/xml/parseXmlBody.ts +var import_smithy_client5 = require("@smithy/smithy-client"); +var import_fast_xml_parser2 = require("fast-xml-parser"); var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { - const parser = new import_fast_xml_parser.XMLParser({ + const parser = new import_fast_xml_parser2.XMLParser({ attributeNamePrefix: "", htmlEntities: true, ignoreAttributes: false, @@ -190,7 +1251,7 @@ var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodySt parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; delete parsedObjToReturn[textNodeName]; } - return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn); + return (0, import_smithy_client5.getValueFromTextNode)(parsedObjToReturn); } return {}; }), "parseXmlBody"); @@ -212,8 +1273,432 @@ var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => { return "NotFound"; } }, "loadRestXmlErrorCode"); + +// src/submodules/protocols/xml/XmlShapeSerializer.ts +var import_xml_builder = require("@aws-sdk/xml-builder"); +var import_schema8 = require("@smithy/core/schema"); +var import_serde7 = require("@smithy/core/serde"); +var import_smithy_client6 = require("@smithy/smithy-client"); +var import_util_base643 = require("@smithy/util-base64"); +var XmlShapeSerializer = class extends SerdeContextConfig { + constructor(settings) { + super(); + this.settings = settings; + } + static { + __name(this, "XmlShapeSerializer"); + } + stringBuffer; + byteBuffer; + buffer; + write(schema, value) { + const ns = import_schema8.NormalizedSchema.of(schema); + if (ns.isStringSchema() && typeof value === "string") { + this.stringBuffer = value; + } else if (ns.isBlobSchema()) { + this.byteBuffer = "byteLength" in value ? value : (this.serdeContext?.base64Decoder ?? import_util_base643.fromBase64)(value); + } else { + this.buffer = this.writeStruct(ns, value, void 0); + const traits = ns.getMergedTraits(); + if (traits.httpPayload && !traits.xmlName) { + this.buffer.withName(ns.getName()); + } + } + } + flush() { + if (this.byteBuffer !== void 0) { + const bytes = this.byteBuffer; + delete this.byteBuffer; + return bytes; + } + if (this.stringBuffer !== void 0) { + const str = this.stringBuffer; + delete this.stringBuffer; + return str; + } + const buffer = this.buffer; + if (this.settings.xmlNamespace) { + if (!buffer?.attributes?.["xmlns"]) { + buffer.addAttribute("xmlns", this.settings.xmlNamespace); + } + } + delete this.buffer; + return buffer.toString(); + } + writeStruct(ns, value, parentXmlns) { + const traits = ns.getMergedTraits(); + const name = ns.isMemberSchema() && !traits.httpPayload ? ns.getMemberTraits().xmlName ?? ns.getMemberName() : traits.xmlName ?? ns.getName(); + if (!name || !ns.isStructSchema()) { + throw new Error( + `@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName( + true + )}.` + ); + } + const structXmlNode = import_xml_builder.XmlNode.of(name); + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); + if (xmlns) { + structXmlNode.addAttribute(xmlnsAttr, xmlns); + } + for (const [memberName, memberSchema] of ns.structIterator()) { + const val = value[memberName]; + if (val != null) { + if (memberSchema.getMergedTraits().xmlAttribute) { + structXmlNode.addAttribute( + memberSchema.getMergedTraits().xmlName ?? memberName, + this.writeSimple(memberSchema, val) + ); + continue; + } + if (memberSchema.isListSchema()) { + this.writeList(memberSchema, val, structXmlNode, xmlns); + } else if (memberSchema.isMapSchema()) { + this.writeMap(memberSchema, val, structXmlNode, xmlns); + } else if (memberSchema.isStructSchema()) { + structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns)); + } else { + const memberNode = import_xml_builder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName()); + this.writeSimpleInto(memberSchema, val, memberNode, xmlns); + structXmlNode.addChildNode(memberNode); + } + } + } + return structXmlNode; + } + writeList(listMember, array, container, parentXmlns) { + if (!listMember.isMemberSchema()) { + throw new Error( + `@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}` + ); + } + const listTraits = listMember.getMergedTraits(); + const listValueSchema = listMember.getValueSchema(); + const listValueTraits = listValueSchema.getMergedTraits(); + const sparse = !!listValueTraits.sparse; + const flat = !!listTraits.xmlFlattened; + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns); + const writeItem = /* @__PURE__ */ __name((container2, value) => { + if (listValueSchema.isListSchema()) { + this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container2, xmlns); + } else if (listValueSchema.isMapSchema()) { + this.writeMap(listValueSchema, value, container2, xmlns); + } else if (listValueSchema.isStructSchema()) { + const struct = this.writeStruct(listValueSchema, value, xmlns); + container2.addChildNode( + struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member") + ); + } else { + const listItemNode = import_xml_builder.XmlNode.of( + flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member" + ); + this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns); + container2.addChildNode(listItemNode); + } + }, "writeItem"); + if (flat) { + for (const value of array) { + if (sparse || value != null) { + writeItem(container, value); + } + } + } else { + const listNode = import_xml_builder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName()); + if (xmlns) { + listNode.addAttribute(xmlnsAttr, xmlns); + } + for (const value of array) { + if (sparse || value != null) { + writeItem(listNode, value); + } + } + container.addChildNode(listNode); + } + } + writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) { + if (!mapMember.isMemberSchema()) { + throw new Error( + `@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}` + ); + } + const mapTraits = mapMember.getMergedTraits(); + const mapKeySchema = mapMember.getKeySchema(); + const mapKeyTraits = mapKeySchema.getMergedTraits(); + const keyTag = mapKeyTraits.xmlName ?? "key"; + const mapValueSchema = mapMember.getValueSchema(); + const mapValueTraits = mapValueSchema.getMergedTraits(); + const valueTag = mapValueTraits.xmlName ?? "value"; + const sparse = !!mapValueTraits.sparse; + const flat = !!mapTraits.xmlFlattened; + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns); + const addKeyValue = /* @__PURE__ */ __name((entry, key, val) => { + const keyNode = import_xml_builder.XmlNode.of(keyTag, key); + const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns); + if (keyXmlns) { + keyNode.addAttribute(keyXmlnsAttr, keyXmlns); + } + entry.addChildNode(keyNode); + let valueNode = import_xml_builder.XmlNode.of(valueTag); + if (mapValueSchema.isListSchema()) { + this.writeList(mapValueSchema, val, valueNode, xmlns); + } else if (mapValueSchema.isMapSchema()) { + this.writeMap(mapValueSchema, val, valueNode, xmlns, true); + } else if (mapValueSchema.isStructSchema()) { + valueNode = this.writeStruct(mapValueSchema, val, xmlns); + } else { + this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns); + } + entry.addChildNode(valueNode); + }, "addKeyValue"); + if (flat) { + for (const [key, val] of Object.entries(map)) { + if (sparse || val != null) { + const entry = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName()); + addKeyValue(entry, key, val); + container.addChildNode(entry); + } + } + } else { + let mapNode; + if (!containerIsMap) { + mapNode = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName()); + if (xmlns) { + mapNode.addAttribute(xmlnsAttr, xmlns); + } + container.addChildNode(mapNode); + } + for (const [key, val] of Object.entries(map)) { + if (sparse || val != null) { + const entry = import_xml_builder.XmlNode.of("entry"); + addKeyValue(entry, key, val); + (containerIsMap ? container : mapNode).addChildNode(entry); + } + } + } + } + writeSimple(_schema, value) { + if (null === value) { + throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value."); + } + const ns = import_schema8.NormalizedSchema.of(_schema); + let nodeContents = null; + if (value && typeof value === "object") { + if (ns.isBlobSchema()) { + nodeContents = (this.serdeContext?.base64Encoder ?? import_util_base643.toBase64)(value); + } else if (ns.isTimestampSchema() && value instanceof Date) { + const options = this.settings.timestampFormat; + const format = options.useTrait ? ns.getSchema() === import_schema8.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default; + switch (format) { + case import_schema8.SCHEMA.TIMESTAMP_DATE_TIME: + nodeContents = value.toISOString().replace(".000Z", "Z"); + break; + case import_schema8.SCHEMA.TIMESTAMP_HTTP_DATE: + nodeContents = (0, import_smithy_client6.dateToUtcString)(value); + break; + case import_schema8.SCHEMA.TIMESTAMP_EPOCH_SECONDS: + nodeContents = String(value.getTime() / 1e3); + break; + default: + console.warn("Missing timestamp format, using http date", value); + nodeContents = (0, import_smithy_client6.dateToUtcString)(value); + break; + } + } else if (ns.isBigDecimalSchema() && value) { + if (value instanceof import_serde7.NumericValue) { + return value.string; + } + return String(value); + } else if (ns.isMapSchema() || ns.isListSchema()) { + throw new Error( + "@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead." + ); + } else { + throw new Error( + `@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName( + true + )}` + ); + } + } + if (ns.isStringSchema() || ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) { + nodeContents = String(value); + } + if (nodeContents === null) { + throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`); + } + return nodeContents; + } + writeSimpleInto(_schema, value, into, parentXmlns) { + const nodeContents = this.writeSimple(_schema, value); + const ns = import_schema8.NormalizedSchema.of(_schema); + const content = new import_xml_builder.XmlText(nodeContents); + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); + if (xmlns) { + into.addAttribute(xmlnsAttr, xmlns); + } + into.addChildNode(content); + } + getXmlnsAttribute(ns, parentXmlns) { + const traits = ns.getMergedTraits(); + const [prefix, xmlns] = traits.xmlNamespace ?? []; + if (xmlns && xmlns !== parentXmlns) { + return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns]; + } + return [void 0, void 0]; + } +}; + +// src/submodules/protocols/xml/XmlCodec.ts +var XmlCodec = class extends SerdeContextConfig { + constructor(settings) { + super(); + this.settings = settings; + } + static { + __name(this, "XmlCodec"); + } + createSerializer() { + const serializer = new XmlShapeSerializer(this.settings); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new XmlShapeDeserializer(this.settings); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } +}; + +// src/submodules/protocols/xml/AwsRestXmlProtocol.ts +var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol { + static { + __name(this, "AwsRestXmlProtocol"); + } + codec; + serializer; + deserializer; + constructor(options) { + super(options); + const settings = { + timestampFormat: { + useTrait: true, + default: import_schema9.SCHEMA.TIMESTAMP_DATE_TIME + }, + httpBindings: true, + xmlNamespace: options.xmlNamespace, + serviceNamespace: options.defaultNamespace + }; + this.codec = new XmlCodec(settings); + this.serializer = new import_protocols6.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); + this.deserializer = new import_protocols6.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); + } + getPayloadCodec() { + return this.codec; + } + getShapeId() { + return "aws.protocols#restXml"; + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + const ns = import_schema9.NormalizedSchema.of(operationSchema.input); + const members = ns.getMemberSchemas(); + request.path = String(request.path).split("/").filter((segment) => { + return segment !== "{Bucket}"; + }).join("/") || "/"; + if (!request.headers["content-type"]) { + const httpPayloadMember = Object.values(members).find((m) => { + return !!m.getMergedTraits().httpPayload; + }); + if (httpPayloadMember) { + const mediaType = httpPayloadMember.getMergedTraits().mediaType; + if (mediaType) { + request.headers["content-type"] = mediaType; + } else if (httpPayloadMember.isStringSchema()) { + request.headers["content-type"] = "text/plain"; + } else if (httpPayloadMember.isBlobSchema()) { + request.headers["content-type"] = "application/octet-stream"; + } else { + request.headers["content-type"] = "application/xml"; + } + } else if (!ns.isUnitSchema()) { + const hasBody = Object.values(members).find((m) => { + const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits(); + return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0; + }); + if (hasBody) { + request.headers["content-type"] = "application/xml"; + } + } + } + if (request.headers["content-type"] === "application/xml") { + if (typeof request.body === "string") { + request.body = '' + request.body; + } + } + if (request.body) { + try { + request.headers["content-length"] = String((0, import_util_body_length_browser4.calculateBodyLength)(request.body)); + } catch (e) { + } + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + return super.deserializeResponse(operationSchema, context, response); + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [namespace, errorName] = errorIdentifier.split("#"); + } + const registry = import_schema9.TypeRegistry.for(namespace); + let errorSchema; + try { + errorSchema = registry.getSchema(errorIdentifier); + } catch (e) { + const baseExceptionSchema = import_schema9.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = baseExceptionSchema.ctor; + throw Object.assign(new ErrorCtor(errorName), dataObject); + } + throw new Error(errorName); + } + const ns = import_schema9.NormalizedSchema.of(errorSchema); + const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new errorSchema.ctor(message); + await this.deserializeHttpMessage(errorSchema, context, response, dataObject); + const output = {}; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().xmlName ?? name; + const value = dataObject.Error?.[target] ?? dataObject[target]; + output[name] = this.codec.createDeserializer().readSchema(member, value); + } + Object.assign(exception, { + $metadata: metadata, + $response: response, + $fault: ns.getMergedTraits().error, + message, + ...output + }); + throw exception; + } +}; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { + AwsEc2QueryProtocol, + AwsJson1_0Protocol, + AwsJson1_1Protocol, + AwsJsonRpcProtocol, + AwsQueryProtocol, + AwsRestJsonProtocol, + AwsRestXmlProtocol, + JsonCodec, + JsonShapeDeserializer, + JsonShapeSerializer, + XmlCodec, + XmlShapeDeserializer, + XmlShapeSerializer, _toBool, _toNum, _toStr, diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js b/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js index 17e3d2e..5d7cf82 100644 --- a/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +++ b/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js @@ -1,8 +1,14 @@ import { getArrayForCommaSeparatedString } from "../utils/getArrayForCommaSeparatedString"; +import { getBearerTokenEnvKey } from "../utils/getBearerTokenEnvKey"; const NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE"; const NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference"; export const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = { - environmentVariableSelector: (env) => { + environmentVariableSelector: (env, options) => { + if (options?.signingName) { + const bearerTokenKey = getBearerTokenEnvKey(options.signingName); + if (bearerTokenKey in env) + return ["httpBearerAuth"]; + } if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) return undefined; return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]); diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js b/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js index 29d0c3b..3927741 100644 --- a/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +++ b/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js @@ -1 +1,2 @@ export * from "./aws_sdk"; +export * from "./utils/getBearerTokenEnvKey"; diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js b/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js new file mode 100644 index 0000000..27eff7f --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js @@ -0,0 +1 @@ +export const getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`; diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js new file mode 100644 index 0000000..0684ab6 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js @@ -0,0 +1,6 @@ +export class SerdeContextConfig { + serdeContext; + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js index 09a6ac2..a93942b 100644 --- a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js @@ -1,4 +1,17 @@ export * from "./coercing-serializers"; +export * from "./json/AwsJson1_0Protocol"; +export * from "./json/AwsJson1_1Protocol"; +export * from "./json/AwsJsonRpcProtocol"; +export * from "./json/AwsRestJsonProtocol"; +export * from "./json/JsonCodec"; +export * from "./json/JsonShapeDeserializer"; +export * from "./json/JsonShapeSerializer"; export * from "./json/awsExpectUnion"; export * from "./json/parseJsonBody"; +export * from "./query/AwsEc2QueryProtocol"; +export * from "./query/AwsQueryProtocol"; +export * from "./xml/AwsRestXmlProtocol"; +export * from "./xml/XmlCodec"; +export * from "./xml/XmlShapeDeserializer"; +export * from "./xml/XmlShapeSerializer"; export * from "./xml/parseXmlBody"; diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js new file mode 100644 index 0000000..a853a1f --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js @@ -0,0 +1,14 @@ +import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; +export class AwsJson1_0Protocol extends AwsJsonRpcProtocol { + constructor({ defaultNamespace }) { + super({ + defaultNamespace, + }); + } + getShapeId() { + return "aws.protocols#awsJson1_0"; + } + getJsonRpcVersion() { + return "1.0"; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js new file mode 100644 index 0000000..7458053 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js @@ -0,0 +1,14 @@ +import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; +export class AwsJson1_1Protocol extends AwsJsonRpcProtocol { + constructor({ defaultNamespace }) { + super({ + defaultNamespace, + }); + } + getShapeId() { + return "aws.protocols#awsJson1_1"; + } + getJsonRpcVersion() { + return "1.1"; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js new file mode 100644 index 0000000..2957788 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js @@ -0,0 +1,84 @@ +import { RpcProtocol } from "@smithy/core/protocols"; +import { deref, NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema"; +import { calculateBodyLength } from "@smithy/util-body-length-browser"; +import { JsonCodec } from "./JsonCodec"; +import { loadRestJsonErrorCode } from "./parseJsonBody"; +export class AwsJsonRpcProtocol extends RpcProtocol { + serializer; + deserializer; + codec; + constructor({ defaultNamespace }) { + super({ + defaultNamespace, + }); + this.codec = new JsonCodec({ + timestampFormat: { + useTrait: true, + default: SCHEMA.TIMESTAMP_EPOCH_SECONDS, + }, + jsonName: false, + }); + this.serializer = this.codec.createSerializer(); + this.deserializer = this.codec.createDeserializer(); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + if (!request.path.endsWith("/")) { + request.path += "/"; + } + Object.assign(request.headers, { + "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`, + "x-amz-target": (this.getJsonRpcVersion() === "1.0" ? `JsonRpc10.` : `JsonProtocol.`) + + NormalizedSchema.of(operationSchema).getName(), + }); + if (deref(operationSchema.input) === "unit" || !request.body) { + request.body = "{}"; + } + try { + request.headers["content-length"] = String(calculateBodyLength(request.body)); + } + catch (e) { } + return request; + } + getPayloadCodec() { + return this.codec; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [namespace, errorName] = errorIdentifier.split("#"); + } + const registry = TypeRegistry.for(namespace); + let errorSchema; + try { + errorSchema = registry.getSchema(errorIdentifier); + } + catch (e) { + const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = baseExceptionSchema.ctor; + throw Object.assign(new ErrorCtor(errorName), dataObject); + } + throw new Error(errorName); + } + const ns = NormalizedSchema.of(errorSchema); + const message = dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new errorSchema.ctor(message); + await this.deserializeHttpMessage(errorSchema, context, response, dataObject); + const output = {}; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().jsonName ?? name; + output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]); + } + Object.assign(exception, { + $metadata: metadata, + $response: response, + $fault: ns.getMergedTraits().error, + message, + ...output, + }); + throw exception; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js new file mode 100644 index 0000000..be7c06a --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js @@ -0,0 +1,118 @@ +import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols"; +import { NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema"; +import { calculateBodyLength } from "@smithy/util-body-length-browser"; +import { JsonCodec } from "./JsonCodec"; +import { loadRestJsonErrorCode } from "./parseJsonBody"; +export class AwsRestJsonProtocol extends HttpBindingProtocol { + serializer; + deserializer; + codec; + constructor({ defaultNamespace }) { + super({ + defaultNamespace, + }); + const settings = { + timestampFormat: { + useTrait: true, + default: SCHEMA.TIMESTAMP_EPOCH_SECONDS, + }, + httpBindings: true, + jsonName: true, + }; + this.codec = new JsonCodec(settings); + this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); + this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); + } + getShapeId() { + return "aws.protocols#restJson1"; + } + getPayloadCodec() { + return this.codec; + } + setSerdeContext(serdeContext) { + this.codec.setSerdeContext(serdeContext); + super.setSerdeContext(serdeContext); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + const inputSchema = NormalizedSchema.of(operationSchema.input); + const members = inputSchema.getMemberSchemas(); + if (!request.headers["content-type"]) { + const httpPayloadMember = Object.values(members).find((m) => { + return !!m.getMergedTraits().httpPayload; + }); + if (httpPayloadMember) { + const mediaType = httpPayloadMember.getMergedTraits().mediaType; + if (mediaType) { + request.headers["content-type"] = mediaType; + } + else if (httpPayloadMember.isStringSchema()) { + request.headers["content-type"] = "text/plain"; + } + else if (httpPayloadMember.isBlobSchema()) { + request.headers["content-type"] = "application/octet-stream"; + } + else { + request.headers["content-type"] = "application/json"; + } + } + else if (!inputSchema.isUnitSchema()) { + const hasBody = Object.values(members).find((m) => { + const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits(); + return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0; + }); + if (hasBody) { + request.headers["content-type"] = "application/json"; + } + } + } + if (request.headers["content-type"] && !request.body) { + request.body = "{}"; + } + if (request.body) { + try { + request.headers["content-length"] = String(calculateBodyLength(request.body)); + } + catch (e) { } + } + return request; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [namespace, errorName] = errorIdentifier.split("#"); + } + const registry = TypeRegistry.for(namespace); + let errorSchema; + try { + errorSchema = registry.getSchema(errorIdentifier); + } + catch (e) { + const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = baseExceptionSchema.ctor; + throw Object.assign(new ErrorCtor(errorName), dataObject); + } + throw new Error(errorName); + } + const ns = NormalizedSchema.of(errorSchema); + const message = dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new errorSchema.ctor(message); + await this.deserializeHttpMessage(errorSchema, context, response, dataObject); + const output = {}; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().jsonName ?? name; + output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]); + } + Object.assign(exception, { + $metadata: metadata, + $response: response, + $fault: ns.getMergedTraits().error, + message, + ...output, + }); + throw exception; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js new file mode 100644 index 0000000..9a0b234 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js @@ -0,0 +1,20 @@ +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { JsonShapeDeserializer } from "./JsonShapeDeserializer"; +import { JsonShapeSerializer } from "./JsonShapeSerializer"; +export class JsonCodec extends SerdeContextConfig { + settings; + constructor(settings) { + super(); + this.settings = settings; + } + createSerializer() { + const serializer = new JsonShapeSerializer(this.settings); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new JsonShapeDeserializer(this.settings); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js new file mode 100644 index 0000000..458d096 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js @@ -0,0 +1,105 @@ +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde"; +import { fromBase64 } from "@smithy/util-base64"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { jsonReviver } from "./jsonReviver"; +import { parseJsonBody } from "./parseJsonBody"; +export class JsonShapeDeserializer extends SerdeContextConfig { + settings; + constructor(settings) { + super(); + this.settings = settings; + } + async read(schema, data) { + return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext)); + } + readObject(schema, data) { + return this._read(schema, data); + } + _read(schema, value) { + const isObject = value !== null && typeof value === "object"; + const ns = NormalizedSchema.of(schema); + if (ns.isListSchema() && Array.isArray(value)) { + const listMember = ns.getValueSchema(); + const out = []; + const sparse = !!ns.getMergedTraits().sparse; + for (const item of value) { + if (sparse || item != null) { + out.push(this._read(listMember, item)); + } + } + return out; + } + else if (ns.isMapSchema() && isObject) { + const mapMember = ns.getValueSchema(); + const out = {}; + const sparse = !!ns.getMergedTraits().sparse; + for (const [_k, _v] of Object.entries(value)) { + if (sparse || _v != null) { + out[_k] = this._read(mapMember, _v); + } + } + return out; + } + else if (ns.isStructSchema() && isObject) { + const out = {}; + for (const [memberName, memberSchema] of ns.structIterator()) { + const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; + const deserializedValue = this._read(memberSchema, value[fromKey]); + if (deserializedValue != null) { + out[memberName] = deserializedValue; + } + } + return out; + } + if (ns.isBlobSchema() && typeof value === "string") { + return fromBase64(value); + } + const mediaType = ns.getMergedTraits().mediaType; + if (ns.isStringSchema() && typeof value === "string" && mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + return LazyJsonString.from(value); + } + } + if (ns.isTimestampSchema()) { + const options = this.settings.timestampFormat; + const format = options.useTrait + ? ns.getSchema() === SCHEMA.TIMESTAMP_DEFAULT + ? options.default + : ns.getSchema() ?? options.default + : options.default; + switch (format) { + case SCHEMA.TIMESTAMP_DATE_TIME: + return parseRfc3339DateTimeWithOffset(value); + case SCHEMA.TIMESTAMP_HTTP_DATE: + return parseRfc7231DateTime(value); + case SCHEMA.TIMESTAMP_EPOCH_SECONDS: + return parseEpochTimestamp(value); + default: + console.warn("Missing timestamp format, parsing value with Date constructor:", value); + return new Date(value); + } + } + if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) { + return BigInt(value); + } + if (ns.isBigDecimalSchema() && value != undefined) { + if (value instanceof NumericValue) { + return value; + } + return new NumericValue(String(value), "bigDecimal"); + } + if (ns.isNumericSchema() && typeof value === "string") { + switch (value) { + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + case "NaN": + return NaN; + } + } + return value; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js new file mode 100644 index 0000000..c8e5dc4 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js @@ -0,0 +1,106 @@ +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { dateToUtcString } from "@smithy/core/serde"; +import { LazyJsonString } from "@smithy/core/serde"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { JsonReplacer } from "./jsonReplacer"; +export class JsonShapeSerializer extends SerdeContextConfig { + settings; + buffer; + rootSchema; + constructor(settings) { + super(); + this.settings = settings; + } + write(schema, value) { + this.rootSchema = NormalizedSchema.of(schema); + this.buffer = this._write(this.rootSchema, value); + } + flush() { + if (this.rootSchema?.isStructSchema() || this.rootSchema?.isDocumentSchema()) { + const replacer = new JsonReplacer(); + return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0)); + } + return this.buffer; + } + _write(schema, value, container) { + const isObject = value !== null && typeof value === "object"; + const ns = NormalizedSchema.of(schema); + if (ns.isListSchema() && Array.isArray(value)) { + const listMember = ns.getValueSchema(); + const out = []; + const sparse = !!ns.getMergedTraits().sparse; + for (const item of value) { + if (sparse || item != null) { + out.push(this._write(listMember, item)); + } + } + return out; + } + else if (ns.isMapSchema() && isObject) { + const mapMember = ns.getValueSchema(); + const out = {}; + const sparse = !!ns.getMergedTraits().sparse; + for (const [_k, _v] of Object.entries(value)) { + if (sparse || _v != null) { + out[_k] = this._write(mapMember, _v); + } + } + return out; + } + else if (ns.isStructSchema() && isObject) { + const out = {}; + for (const [memberName, memberSchema] of ns.structIterator()) { + const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; + const serializableValue = this._write(memberSchema, value[memberName], ns); + if (serializableValue !== undefined) { + out[targetKey] = serializableValue; + } + } + return out; + } + if (value === null && container?.isStructSchema()) { + return void 0; + } + if (ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) { + if (ns === this.rootSchema) { + return value; + } + if (!this.serdeContext?.base64Encoder) { + throw new Error("Missing base64Encoder in serdeContext"); + } + return this.serdeContext?.base64Encoder(value); + } + if (ns.isTimestampSchema() && value instanceof Date) { + const options = this.settings.timestampFormat; + const format = options.useTrait + ? ns.getSchema() === SCHEMA.TIMESTAMP_DEFAULT + ? options.default + : ns.getSchema() ?? options.default + : options.default; + switch (format) { + case SCHEMA.TIMESTAMP_DATE_TIME: + return value.toISOString().replace(".000Z", "Z"); + case SCHEMA.TIMESTAMP_HTTP_DATE: + return dateToUtcString(value); + case SCHEMA.TIMESTAMP_EPOCH_SECONDS: + return value.getTime() / 1000; + default: + console.warn("Missing timestamp format, using epoch seconds", value); + return value.getTime() / 1000; + } + } + if (ns.isNumericSchema() && typeof value === "number") { + if (Math.abs(value) === Infinity || isNaN(value)) { + return String(value); + } + } + const mediaType = ns.getMergedTraits().mediaType; + if (ns.isStringSchema() && typeof value === "string" && mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + return LazyJsonString.from(value); + } + } + return value; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js new file mode 100644 index 0000000..9288956 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js @@ -0,0 +1,46 @@ +import { NumericValue } from "@smithy/core/serde"; +const NUMERIC_CONTROL_CHAR = String.fromCharCode(925); +export class JsonReplacer { + values = new Map(); + counter = 0; + stage = 0; + createReplacer() { + if (this.stage === 1) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer already created."); + } + if (this.stage === 2) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted."); + } + this.stage = 1; + return (key, value) => { + if (value instanceof NumericValue) { + const v = `${NUMERIC_CONTROL_CHAR + +"nv" + this.counter++}_` + value.string; + this.values.set(`"${v}"`, value.string); + return v; + } + if (typeof value === "bigint") { + const s = value.toString(); + const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s; + this.values.set(`"${v}"`, s); + return v; + } + return value; + }; + } + replaceInJson(json) { + if (this.stage === 0) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet."); + } + if (this.stage === 2) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted."); + } + this.stage = 2; + if (this.counter === 0) { + return json; + } + for (const [key, value] of this.values) { + json = json.replace(key, value); + } + return json; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js new file mode 100644 index 0000000..ab01eef --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js @@ -0,0 +1,18 @@ +import { NumericValue } from "@smithy/core/serde"; +export function jsonReviver(key, value, context) { + if (context?.source) { + const numericString = context.source; + if (typeof value === "number") { + if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) { + const isFractional = numericString.includes("."); + if (isFractional) { + return new NumericValue(numericString, "bigDecimal"); + } + else { + return BigInt(numericString); + } + } + } + } + return value; +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js index d9c1564..39f4910 100644 --- a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js @@ -42,10 +42,13 @@ export const loadRestJsonErrorCode = (output, data) => { if (headerKey !== undefined) { return sanitizeErrorCode(output.headers[headerKey]); } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); + if (data && typeof data === "object") { + const codeKey = findKey(data, "code"); + if (codeKey && data[codeKey] !== undefined) { + return sanitizeErrorCode(data[codeKey]); + } + if (data["__type"] !== undefined) { + return sanitizeErrorCode(data["__type"]); + } } }; diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js new file mode 100644 index 0000000..6347bb6 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js @@ -0,0 +1,17 @@ +import { AwsQueryProtocol } from "./AwsQueryProtocol"; +export class AwsEc2QueryProtocol extends AwsQueryProtocol { + options; + constructor(options) { + super(options); + this.options = options; + const ec2Settings = { + capitalizeKeys: true, + flattenLists: true, + serializeEmptyLists: false, + }; + Object.assign(this.serializer.settings, ec2Settings); + } + useNestedResult() { + return false; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js new file mode 100644 index 0000000..7901a1a --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js @@ -0,0 +1,147 @@ +import { collectBody, RpcProtocol } from "@smithy/core/protocols"; +import { deref, NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema"; +import { calculateBodyLength } from "@smithy/util-body-length-browser"; +import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer"; +import { QueryShapeSerializer } from "./QueryShapeSerializer"; +export class AwsQueryProtocol extends RpcProtocol { + options; + serializer; + deserializer; + constructor(options) { + super({ + defaultNamespace: options.defaultNamespace, + }); + this.options = options; + const settings = { + timestampFormat: { + useTrait: true, + default: SCHEMA.TIMESTAMP_DATE_TIME, + }, + httpBindings: false, + xmlNamespace: options.xmlNamespace, + serviceNamespace: options.defaultNamespace, + serializeEmptyLists: true, + }; + this.serializer = new QueryShapeSerializer(settings); + this.deserializer = new XmlShapeDeserializer(settings); + } + getShapeId() { + return "aws.protocols#awsQuery"; + } + setSerdeContext(serdeContext) { + this.serializer.setSerdeContext(serdeContext); + this.deserializer.setSerdeContext(serdeContext); + } + getPayloadCodec() { + throw new Error("AWSQuery protocol has no payload codec."); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + if (!request.path.endsWith("/")) { + request.path += "/"; + } + Object.assign(request.headers, { + "content-type": `application/x-www-form-urlencoded`, + }); + if (deref(operationSchema.input) === "unit" || !request.body) { + request.body = ""; + } + request.body = `Action=${operationSchema.name.split("#")[1]}&Version=${this.options.version}` + request.body; + if (request.body.endsWith("&")) { + request.body = request.body.slice(-1); + } + try { + request.headers["content-length"] = String(calculateBodyLength(request.body)); + } + catch (e) { } + return request; + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(SCHEMA.DOCUMENT, bytes)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? operationSchema.name.split("#")[1] + "Result" : undefined; + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey)); + } + const output = { + $metadata: this.deserializeMetadata(response), + ...dataObject, + }; + return output; + } + useNestedResult() { + return true; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [namespace, errorName] = errorIdentifier.split("#"); + } + const errorDataSource = this.loadQueryError(dataObject); + const registry = TypeRegistry.for(namespace); + let errorSchema; + try { + errorSchema = registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName); + if (!errorSchema) { + errorSchema = registry.getSchema(errorIdentifier); + } + } + catch (e) { + const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = baseExceptionSchema.ctor; + throw Object.assign(new ErrorCtor(errorName), errorDataSource); + } + throw new Error(errorName); + } + const ns = NormalizedSchema.of(errorSchema); + const message = this.loadQueryErrorMessage(dataObject); + const exception = new errorSchema.ctor(message); + const output = {}; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().xmlName ?? name; + const value = errorDataSource[target] ?? dataObject[target]; + output[name] = this.deserializer.readSchema(member, value); + } + Object.assign(exception, { + $metadata: metadata, + $response: response, + $fault: ns.getMergedTraits().error, + message, + ...output, + }); + throw exception; + } + loadQueryErrorCode(output, data) { + const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code; + if (code !== undefined) { + return code; + } + if (output.statusCode == 404) { + return "NotFound"; + } + } + loadQueryError(data) { + return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error; + } + loadQueryErrorMessage(data) { + const errorData = this.loadQueryError(data); + return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown"; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QuerySerializerSettings.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QuerySerializerSettings.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QuerySerializerSettings.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js new file mode 100644 index 0000000..95d1ccc --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js @@ -0,0 +1,152 @@ +import { determineTimestampFormat, extendedEncodeURIComponent } from "@smithy/core/protocols"; +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { NumericValue } from "@smithy/core/serde"; +import { dateToUtcString } from "@smithy/smithy-client"; +import { toBase64 } from "@smithy/util-base64"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +export class QueryShapeSerializer extends SerdeContextConfig { + settings; + buffer; + constructor(settings) { + super(); + this.settings = settings; + } + write(schema, value, prefix = "") { + if (this.buffer === undefined) { + this.buffer = ""; + } + const ns = NormalizedSchema.of(schema); + if (prefix && !prefix.endsWith(".")) { + prefix += "."; + } + if (ns.isBlobSchema()) { + if (typeof value === "string" || value instanceof Uint8Array) { + this.writeKey(prefix); + this.writeValue((this.serdeContext?.base64Encoder ?? toBase64)(value)); + } + } + else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(String(value)); + } + } + else if (ns.isBigIntegerSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(String(value)); + } + } + else if (ns.isBigDecimalSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(value instanceof NumericValue ? value.string : String(value)); + } + } + else if (ns.isTimestampSchema()) { + if (value instanceof Date) { + this.writeKey(prefix); + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case SCHEMA.TIMESTAMP_DATE_TIME: + this.writeValue(value.toISOString().replace(".000Z", "Z")); + break; + case SCHEMA.TIMESTAMP_HTTP_DATE: + this.writeValue(dateToUtcString(value)); + break; + case SCHEMA.TIMESTAMP_EPOCH_SECONDS: + this.writeValue(String(value.getTime() / 1000)); + break; + } + } + } + else if (ns.isDocumentSchema()) { + throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`); + } + else if (ns.isListSchema()) { + if (Array.isArray(value)) { + if (value.length === 0) { + if (this.settings.serializeEmptyLists) { + this.writeKey(prefix); + this.writeValue(""); + } + } + else { + const member = ns.getValueSchema(); + const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened; + let i = 1; + for (const item of value) { + if (item == null) { + continue; + } + const suffix = this.getKey("member", member.getMergedTraits().xmlName); + const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`; + this.write(member, item, key); + ++i; + } + } + } + } + else if (ns.isMapSchema()) { + if (value && typeof value === "object") { + const keySchema = ns.getKeySchema(); + const memberSchema = ns.getValueSchema(); + const flat = ns.getMergedTraits().xmlFlattened; + let i = 1; + for (const [k, v] of Object.entries(value)) { + if (v == null) { + continue; + } + const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName); + const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`; + const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName); + const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`; + this.write(keySchema, k, key); + this.write(memberSchema, v, valueKey); + ++i; + } + } + } + else if (ns.isStructSchema()) { + if (value && typeof value === "object") { + for (const [memberName, member] of ns.structIterator()) { + if (value[memberName] == null) { + continue; + } + const suffix = this.getKey(memberName, member.getMergedTraits().xmlName); + const key = `${prefix}${suffix}`; + this.write(member, value[memberName], key); + } + } + } + else if (ns.isUnitSchema()) { + } + else { + throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`); + } + } + flush() { + if (this.buffer === undefined) { + throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer."); + } + const str = this.buffer; + delete this.buffer; + return str; + } + getKey(memberName, xmlName) { + const key = xmlName ?? memberName; + if (this.settings.capitalizeKeys) { + return key[0].toUpperCase() + key.slice(1); + } + return key; + } + writeKey(key) { + if (key.endsWith(".")) { + key = key.slice(0, key.length - 1); + } + this.buffer += `&${extendedEncodeURIComponent(key)}=`; + } + writeValue(value) { + this.buffer += extendedEncodeURIComponent(value); + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js new file mode 100644 index 0000000..8e11e98 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js @@ -0,0 +1,126 @@ +import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols"; +import { NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema"; +import { calculateBodyLength } from "@smithy/util-body-length-browser"; +import { loadRestXmlErrorCode } from "./parseXmlBody"; +import { XmlCodec } from "./XmlCodec"; +export class AwsRestXmlProtocol extends HttpBindingProtocol { + codec; + serializer; + deserializer; + constructor(options) { + super(options); + const settings = { + timestampFormat: { + useTrait: true, + default: SCHEMA.TIMESTAMP_DATE_TIME, + }, + httpBindings: true, + xmlNamespace: options.xmlNamespace, + serviceNamespace: options.defaultNamespace, + }; + this.codec = new XmlCodec(settings); + this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); + this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); + } + getPayloadCodec() { + return this.codec; + } + getShapeId() { + return "aws.protocols#restXml"; + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + const ns = NormalizedSchema.of(operationSchema.input); + const members = ns.getMemberSchemas(); + request.path = + String(request.path) + .split("/") + .filter((segment) => { + return segment !== "{Bucket}"; + }) + .join("/") || "/"; + if (!request.headers["content-type"]) { + const httpPayloadMember = Object.values(members).find((m) => { + return !!m.getMergedTraits().httpPayload; + }); + if (httpPayloadMember) { + const mediaType = httpPayloadMember.getMergedTraits().mediaType; + if (mediaType) { + request.headers["content-type"] = mediaType; + } + else if (httpPayloadMember.isStringSchema()) { + request.headers["content-type"] = "text/plain"; + } + else if (httpPayloadMember.isBlobSchema()) { + request.headers["content-type"] = "application/octet-stream"; + } + else { + request.headers["content-type"] = "application/xml"; + } + } + else if (!ns.isUnitSchema()) { + const hasBody = Object.values(members).find((m) => { + const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits(); + return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0; + }); + if (hasBody) { + request.headers["content-type"] = "application/xml"; + } + } + } + if (request.headers["content-type"] === "application/xml") { + if (typeof request.body === "string") { + request.body = '' + request.body; + } + } + if (request.body) { + try { + request.headers["content-length"] = String(calculateBodyLength(request.body)); + } + catch (e) { } + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + return super.deserializeResponse(operationSchema, context, response); + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [namespace, errorName] = errorIdentifier.split("#"); + } + const registry = TypeRegistry.for(namespace); + let errorSchema; + try { + errorSchema = registry.getSchema(errorIdentifier); + } + catch (e) { + const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = baseExceptionSchema.ctor; + throw Object.assign(new ErrorCtor(errorName), dataObject); + } + throw new Error(errorName); + } + const ns = NormalizedSchema.of(errorSchema); + const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new errorSchema.ctor(message); + await this.deserializeHttpMessage(errorSchema, context, response, dataObject); + const output = {}; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().xmlName ?? name; + const value = dataObject.Error?.[target] ?? dataObject[target]; + output[name] = this.codec.createDeserializer().readSchema(member, value); + } + Object.assign(exception, { + $metadata: metadata, + $response: response, + $fault: ns.getMergedTraits().error, + message, + ...output, + }); + throw exception; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js new file mode 100644 index 0000000..0a148dc --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js @@ -0,0 +1,20 @@ +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { XmlShapeDeserializer } from "./XmlShapeDeserializer"; +import { XmlShapeSerializer } from "./XmlShapeSerializer"; +export class XmlCodec extends SerdeContextConfig { + settings; + constructor(settings) { + super(); + this.settings = settings; + } + createSerializer() { + const serializer = new XmlShapeSerializer(this.settings); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new XmlShapeDeserializer(this.settings); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js new file mode 100644 index 0000000..1d9a522 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js @@ -0,0 +1,154 @@ +import { FromStringShapeDeserializer } from "@smithy/core/protocols"; +import { NormalizedSchema } from "@smithy/core/schema"; +import { getValueFromTextNode } from "@smithy/smithy-client"; +import { toUtf8 } from "@smithy/util-utf8"; +import { XMLParser } from "fast-xml-parser"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +export class XmlShapeDeserializer extends SerdeContextConfig { + settings; + stringDeserializer; + constructor(settings) { + super(); + this.settings = settings; + this.stringDeserializer = new FromStringShapeDeserializer(settings); + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + this.stringDeserializer.setSerdeContext(serdeContext); + } + read(schema, bytes, key) { + const ns = NormalizedSchema.of(schema); + const memberSchemas = ns.getMemberSchemas(); + const isEventPayload = ns.isStructSchema() && + ns.isMemberSchema() && + !!Object.values(memberSchemas).find((memberNs) => { + return !!memberNs.getMemberTraits().eventPayload; + }); + if (isEventPayload) { + const output = {}; + const memberName = Object.keys(memberSchemas)[0]; + const eventMemberSchema = memberSchemas[memberName]; + if (eventMemberSchema.isBlobSchema()) { + output[memberName] = bytes; + } + else { + output[memberName] = this.read(memberSchemas[memberName], bytes); + } + return output; + } + const xmlString = (this.serdeContext?.utf8Encoder ?? toUtf8)(bytes); + const parsedObject = this.parseXml(xmlString); + return this.readSchema(schema, key ? parsedObject[key] : parsedObject); + } + readSchema(_schema, value) { + const ns = NormalizedSchema.of(_schema); + const traits = ns.getMergedTraits(); + const schema = ns.getSchema(); + if (ns.isListSchema() && !Array.isArray(value)) { + return this.readSchema(schema, [value]); + } + if (value == null) { + return value; + } + if (typeof value === "object") { + const sparse = !!traits.sparse; + const flat = !!traits.xmlFlattened; + if (ns.isListSchema()) { + const listValue = ns.getValueSchema(); + const buffer = []; + const sourceKey = listValue.getMergedTraits().xmlName ?? "member"; + const source = flat ? value : (value[0] ?? value)[sourceKey]; + const sourceArray = Array.isArray(source) ? source : [source]; + for (const v of sourceArray) { + if (v != null || sparse) { + buffer.push(this.readSchema(listValue, v)); + } + } + return buffer; + } + const buffer = {}; + if (ns.isMapSchema()) { + const keyNs = ns.getKeySchema(); + const memberNs = ns.getValueSchema(); + let entries; + if (flat) { + entries = Array.isArray(value) ? value : [value]; + } + else { + entries = Array.isArray(value.entry) ? value.entry : [value.entry]; + } + const keyProperty = keyNs.getMergedTraits().xmlName ?? "key"; + const valueProperty = memberNs.getMergedTraits().xmlName ?? "value"; + for (const entry of entries) { + const key = entry[keyProperty]; + const value = entry[valueProperty]; + if (value != null || sparse) { + buffer[key] = this.readSchema(memberNs, value); + } + } + return buffer; + } + if (ns.isStructSchema()) { + for (const [memberName, memberSchema] of ns.structIterator()) { + const memberTraits = memberSchema.getMergedTraits(); + const xmlObjectKey = !memberTraits.httpPayload + ? memberSchema.getMemberTraits().xmlName ?? memberName + : memberTraits.xmlName ?? memberSchema.getName(); + if (value[xmlObjectKey] != null) { + buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]); + } + } + return buffer; + } + if (ns.isDocumentSchema()) { + return value; + } + throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`); + } + else { + if (ns.isListSchema()) { + return []; + } + else if (ns.isMapSchema() || ns.isStructSchema()) { + return {}; + } + return this.stringDeserializer.read(ns, value); + } + } + parseXml(xml) { + if (xml.length) { + const parser = new XMLParser({ + attributeNamePrefix: "", + htmlEntities: true, + ignoreAttributes: false, + ignoreDeclaration: true, + parseTagValue: false, + trimValues: false, + tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined), + }); + parser.addEntity("#xD", "\r"); + parser.addEntity("#10", "\n"); + let parsedObj; + try { + parsedObj = parser.parse(xml, true); + } + catch (e) { + if (e && typeof e === "object") { + Object.defineProperty(e, "$responseBodyText", { + value: xml, + }); + } + throw e; + } + const textNodeName = "#text"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return getValueFromTextNode(parsedObjToReturn); + } + return {}; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js new file mode 100644 index 0000000..040a9eb --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js @@ -0,0 +1,279 @@ +import { XmlNode, XmlText } from "@aws-sdk/xml-builder"; +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { NumericValue } from "@smithy/core/serde"; +import { dateToUtcString } from "@smithy/smithy-client"; +import { fromBase64, toBase64 } from "@smithy/util-base64"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +export class XmlShapeSerializer extends SerdeContextConfig { + settings; + stringBuffer; + byteBuffer; + buffer; + constructor(settings) { + super(); + this.settings = settings; + } + write(schema, value) { + const ns = NormalizedSchema.of(schema); + if (ns.isStringSchema() && typeof value === "string") { + this.stringBuffer = value; + } + else if (ns.isBlobSchema()) { + this.byteBuffer = + "byteLength" in value + ? value + : (this.serdeContext?.base64Decoder ?? fromBase64)(value); + } + else { + this.buffer = this.writeStruct(ns, value, undefined); + const traits = ns.getMergedTraits(); + if (traits.httpPayload && !traits.xmlName) { + this.buffer.withName(ns.getName()); + } + } + } + flush() { + if (this.byteBuffer !== undefined) { + const bytes = this.byteBuffer; + delete this.byteBuffer; + return bytes; + } + if (this.stringBuffer !== undefined) { + const str = this.stringBuffer; + delete this.stringBuffer; + return str; + } + const buffer = this.buffer; + if (this.settings.xmlNamespace) { + if (!buffer?.attributes?.["xmlns"]) { + buffer.addAttribute("xmlns", this.settings.xmlNamespace); + } + } + delete this.buffer; + return buffer.toString(); + } + writeStruct(ns, value, parentXmlns) { + const traits = ns.getMergedTraits(); + const name = ns.isMemberSchema() && !traits.httpPayload + ? ns.getMemberTraits().xmlName ?? ns.getMemberName() + : traits.xmlName ?? ns.getName(); + if (!name || !ns.isStructSchema()) { + throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`); + } + const structXmlNode = XmlNode.of(name); + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); + if (xmlns) { + structXmlNode.addAttribute(xmlnsAttr, xmlns); + } + for (const [memberName, memberSchema] of ns.structIterator()) { + const val = value[memberName]; + if (val != null) { + if (memberSchema.getMergedTraits().xmlAttribute) { + structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val)); + continue; + } + if (memberSchema.isListSchema()) { + this.writeList(memberSchema, val, structXmlNode, xmlns); + } + else if (memberSchema.isMapSchema()) { + this.writeMap(memberSchema, val, structXmlNode, xmlns); + } + else if (memberSchema.isStructSchema()) { + structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns)); + } + else { + const memberNode = XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName()); + this.writeSimpleInto(memberSchema, val, memberNode, xmlns); + structXmlNode.addChildNode(memberNode); + } + } + } + return structXmlNode; + } + writeList(listMember, array, container, parentXmlns) { + if (!listMember.isMemberSchema()) { + throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`); + } + const listTraits = listMember.getMergedTraits(); + const listValueSchema = listMember.getValueSchema(); + const listValueTraits = listValueSchema.getMergedTraits(); + const sparse = !!listValueTraits.sparse; + const flat = !!listTraits.xmlFlattened; + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns); + const writeItem = (container, value) => { + if (listValueSchema.isListSchema()) { + this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container, xmlns); + } + else if (listValueSchema.isMapSchema()) { + this.writeMap(listValueSchema, value, container, xmlns); + } + else if (listValueSchema.isStructSchema()) { + const struct = this.writeStruct(listValueSchema, value, xmlns); + container.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member")); + } + else { + const listItemNode = XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"); + this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns); + container.addChildNode(listItemNode); + } + }; + if (flat) { + for (const value of array) { + if (sparse || value != null) { + writeItem(container, value); + } + } + } + else { + const listNode = XmlNode.of(listTraits.xmlName ?? listMember.getMemberName()); + if (xmlns) { + listNode.addAttribute(xmlnsAttr, xmlns); + } + for (const value of array) { + if (sparse || value != null) { + writeItem(listNode, value); + } + } + container.addChildNode(listNode); + } + } + writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) { + if (!mapMember.isMemberSchema()) { + throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`); + } + const mapTraits = mapMember.getMergedTraits(); + const mapKeySchema = mapMember.getKeySchema(); + const mapKeyTraits = mapKeySchema.getMergedTraits(); + const keyTag = mapKeyTraits.xmlName ?? "key"; + const mapValueSchema = mapMember.getValueSchema(); + const mapValueTraits = mapValueSchema.getMergedTraits(); + const valueTag = mapValueTraits.xmlName ?? "value"; + const sparse = !!mapValueTraits.sparse; + const flat = !!mapTraits.xmlFlattened; + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns); + const addKeyValue = (entry, key, val) => { + const keyNode = XmlNode.of(keyTag, key); + const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns); + if (keyXmlns) { + keyNode.addAttribute(keyXmlnsAttr, keyXmlns); + } + entry.addChildNode(keyNode); + let valueNode = XmlNode.of(valueTag); + if (mapValueSchema.isListSchema()) { + this.writeList(mapValueSchema, val, valueNode, xmlns); + } + else if (mapValueSchema.isMapSchema()) { + this.writeMap(mapValueSchema, val, valueNode, xmlns, true); + } + else if (mapValueSchema.isStructSchema()) { + valueNode = this.writeStruct(mapValueSchema, val, xmlns); + } + else { + this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns); + } + entry.addChildNode(valueNode); + }; + if (flat) { + for (const [key, val] of Object.entries(map)) { + if (sparse || val != null) { + const entry = XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName()); + addKeyValue(entry, key, val); + container.addChildNode(entry); + } + } + } + else { + let mapNode; + if (!containerIsMap) { + mapNode = XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName()); + if (xmlns) { + mapNode.addAttribute(xmlnsAttr, xmlns); + } + container.addChildNode(mapNode); + } + for (const [key, val] of Object.entries(map)) { + if (sparse || val != null) { + const entry = XmlNode.of("entry"); + addKeyValue(entry, key, val); + (containerIsMap ? container : mapNode).addChildNode(entry); + } + } + } + } + writeSimple(_schema, value) { + if (null === value) { + throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value."); + } + const ns = NormalizedSchema.of(_schema); + let nodeContents = null; + if (value && typeof value === "object") { + if (ns.isBlobSchema()) { + nodeContents = (this.serdeContext?.base64Encoder ?? toBase64)(value); + } + else if (ns.isTimestampSchema() && value instanceof Date) { + const options = this.settings.timestampFormat; + const format = options.useTrait + ? ns.getSchema() === SCHEMA.TIMESTAMP_DEFAULT + ? options.default + : ns.getSchema() ?? options.default + : options.default; + switch (format) { + case SCHEMA.TIMESTAMP_DATE_TIME: + nodeContents = value.toISOString().replace(".000Z", "Z"); + break; + case SCHEMA.TIMESTAMP_HTTP_DATE: + nodeContents = dateToUtcString(value); + break; + case SCHEMA.TIMESTAMP_EPOCH_SECONDS: + nodeContents = String(value.getTime() / 1000); + break; + default: + console.warn("Missing timestamp format, using http date", value); + nodeContents = dateToUtcString(value); + break; + } + } + else if (ns.isBigDecimalSchema() && value) { + if (value instanceof NumericValue) { + return value.string; + } + return String(value); + } + else if (ns.isMapSchema() || ns.isListSchema()) { + throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."); + } + else { + throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`); + } + } + if (ns.isStringSchema() || + ns.isBooleanSchema() || + ns.isNumericSchema() || + ns.isBigIntegerSchema() || + ns.isBigDecimalSchema()) { + nodeContents = String(value); + } + if (nodeContents === null) { + throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`); + } + return nodeContents; + } + writeSimpleInto(_schema, value, into, parentXmlns) { + const nodeContents = this.writeSimple(_schema, value); + const ns = NormalizedSchema.of(_schema); + const content = new XmlText(nodeContents); + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); + if (xmlns) { + into.addAttribute(xmlnsAttr, xmlns); + } + into.addChildNode(content); + } + getXmlnsAttribute(ns, parentXmlns) { + const traits = ns.getMergedTraits(); + const [prefix, xmlns] = traits.xmlNamespace ?? []; + if (xmlns && xmlns !== parentXmlns) { + return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns]; + } + return [void 0, void 0]; + } +} diff --git a/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/simpleFormatXml.js b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/simpleFormatXml.js new file mode 100644 index 0000000..e61303b --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/simpleFormatXml.js @@ -0,0 +1,27 @@ +export function simpleFormatXml(xml) { + let b = ""; + let indentation = 0; + for (let i = 0; i < xml.length; ++i) { + const c = xml[i]; + if (c === "<") { + if (xml[i + 1] === "/") { + b += "\n" + " ".repeat(indentation - 2) + c; + indentation -= 4; + } + else { + b += c; + } + } + else if (c === ">") { + indentation += 2; + b += c + "\n" + " ".repeat(indentation); + } + else { + b += c; + } + } + return b + .split("\n") + .filter((s) => !!s.trim()) + .join("\n"); +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts index 29d0c3b..3927741 100644 --- a/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +++ b/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts @@ -1 +1,2 @@ export * from "./aws_sdk"; +export * from "./utils/getBearerTokenEnvKey"; diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts new file mode 100644 index 0000000..b3df9cb --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts @@ -0,0 +1,6 @@ +/** + * Returns an environment variable key base on signing name. + * @param signingName - The signing name to use in the key + * @returns The environment variable key in format AWS_BEARER_TOKEN_ + */ +export declare const getBearerTokenEnvKey: (signingName: string) => string; diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts new file mode 100644 index 0000000..fca2422 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts @@ -0,0 +1,8 @@ +import { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types"; +/** + * @internal + */ +export declare class SerdeContextConfig implements ConfigurableSerdeContext { + protected serdeContext?: SerdeFunctions; + setSerdeContext(serdeContext: SerdeFunctions): void; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/common.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/common.d.ts index ec78fb2..2b9b171 100644 --- a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/common.d.ts +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/common.d.ts @@ -1,2 +1,2 @@ -import type { SerdeContext } from "@smithy/types"; -export declare const collectBodyString: (streamBody: any, context: SerdeContext) => Promise; +import type { SerdeFunctions } from "@smithy/types"; +export declare const collectBodyString: (streamBody: any, context: SerdeFunctions) => Promise; diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts index 09a6ac2..a93942b 100644 --- a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts @@ -1,4 +1,17 @@ export * from "./coercing-serializers"; +export * from "./json/AwsJson1_0Protocol"; +export * from "./json/AwsJson1_1Protocol"; +export * from "./json/AwsJsonRpcProtocol"; +export * from "./json/AwsRestJsonProtocol"; +export * from "./json/JsonCodec"; +export * from "./json/JsonShapeDeserializer"; +export * from "./json/JsonShapeSerializer"; export * from "./json/awsExpectUnion"; export * from "./json/parseJsonBody"; +export * from "./query/AwsEc2QueryProtocol"; +export * from "./query/AwsQueryProtocol"; +export * from "./xml/AwsRestXmlProtocol"; +export * from "./xml/XmlCodec"; +export * from "./xml/XmlShapeDeserializer"; +export * from "./xml/XmlShapeSerializer"; export * from "./xml/parseXmlBody"; diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts new file mode 100644 index 0000000..a7fa5ea --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts @@ -0,0 +1,12 @@ +import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; +/** + * @alpha + * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1 + */ +export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol { + constructor({ defaultNamespace }: { + defaultNamespace: string; + }); + getShapeId(): string; + protected getJsonRpcVersion(): "1.0"; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts new file mode 100644 index 0000000..2b3f987 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts @@ -0,0 +1,12 @@ +import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; +/** + * @alpha + * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1 + */ +export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol { + constructor({ defaultNamespace }: { + defaultNamespace: string; + }); + getShapeId(): string; + protected getJsonRpcVersion(): "1.1"; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts new file mode 100644 index 0000000..e8f7fa4 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts @@ -0,0 +1,18 @@ +import { RpcProtocol } from "@smithy/core/protocols"; +import { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; +import { JsonCodec } from "./JsonCodec"; +/** + * @alpha + */ +export declare abstract class AwsJsonRpcProtocol extends RpcProtocol { + protected serializer: ShapeSerializer; + protected deserializer: ShapeDeserializer; + private codec; + protected constructor({ defaultNamespace }: { + defaultNamespace: string; + }); + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + getPayloadCodec(): JsonCodec; + protected abstract getJsonRpcVersion(): "1.1" | "1.0"; + protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse, dataObject: any, metadata: ResponseMetadata): Promise; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts new file mode 100644 index 0000000..c6939fc --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts @@ -0,0 +1,19 @@ +import { HttpBindingProtocol } from "@smithy/core/protocols"; +import { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; +import { JsonCodec } from "./JsonCodec"; +/** + * @alpha + */ +export declare class AwsRestJsonProtocol extends HttpBindingProtocol { + protected serializer: ShapeSerializer; + protected deserializer: ShapeDeserializer; + private readonly codec; + constructor({ defaultNamespace }: { + defaultNamespace: string; + }); + getShapeId(): string; + getPayloadCodec(): JsonCodec; + setSerdeContext(serdeContext: SerdeFunctions): void; + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse, dataObject: any, metadata: ResponseMetadata): Promise; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts new file mode 100644 index 0000000..ab4f41e --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts @@ -0,0 +1,19 @@ +import { Codec, CodecSettings } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { JsonShapeDeserializer } from "./JsonShapeDeserializer"; +import { JsonShapeSerializer } from "./JsonShapeSerializer"; +/** + * @alpha + */ +export type JsonSettings = CodecSettings & { + jsonName: boolean; +}; +/** + * @public + */ +export declare class JsonCodec extends SerdeContextConfig implements Codec { + readonly settings: JsonSettings; + constructor(settings: JsonSettings); + createSerializer(): JsonShapeSerializer; + createDeserializer(): JsonShapeDeserializer; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts new file mode 100644 index 0000000..10ab099 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts @@ -0,0 +1,13 @@ +import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { JsonSettings } from "./JsonCodec"; +/** + * @alpha + */ +export declare class JsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer { + readonly settings: JsonSettings; + constructor(settings: JsonSettings); + read(schema: Schema, data: string | Uint8Array | unknown): Promise; + readObject(schema: Schema, data: DocumentType): any; + private _read; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts new file mode 100644 index 0000000..d37eb77 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts @@ -0,0 +1,15 @@ +import { Schema, ShapeSerializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { JsonSettings } from "./JsonCodec"; +/** + * @alpha + */ +export declare class JsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer { + readonly settings: JsonSettings; + private buffer; + private rootSchema; + constructor(settings: JsonSettings); + write(schema: Schema, value: unknown): void; + flush(): string; + private _write; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts new file mode 100644 index 0000000..ae1c9b5 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts @@ -0,0 +1,21 @@ +/** + * Serializes BigInt and NumericValue to JSON-number. + * @internal + */ +export declare class JsonReplacer { + /** + * Stores placeholder key to true serialized value lookup. + */ + private readonly values; + private counter; + private stage; + /** + * Creates a jsonReplacer function that reserves big integer and big decimal values + * for later replacement. + */ + createReplacer(): (key: string, value: unknown) => unknown; + /** + * Replaces placeholder keys with their true values. + */ + replaceInJson(json: string): string; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts new file mode 100644 index 0000000..34e5cb8 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts @@ -0,0 +1,15 @@ +/** + * @param key - JSON object key. + * @param value - parsed value. + * @param context - original JSON string for reference. Not available until Node.js 21 and unavailable in Safari as + * of April 2025. + * + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#browser_compatibility + * + * @alpha + * + * @returns transformed value. + */ +export declare function jsonReviver(key: string, value: any, context?: { + source?: string; +}): any; diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts index 827ffe9..947a0eb 100644 --- a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts @@ -1,12 +1,12 @@ -import type { HttpResponse, SerdeContext } from "@smithy/types"; +import type { HttpResponse, SerdeFunctions } from "@smithy/types"; /** * @internal */ -export declare const parseJsonBody: (streamBody: any, context: SerdeContext) => any; +export declare const parseJsonBody: (streamBody: any, context: SerdeFunctions) => any; /** * @internal */ -export declare const parseJsonErrorBody: (errorBody: any, context: SerdeContext) => Promise; +export declare const parseJsonErrorBody: (errorBody: any, context: SerdeFunctions) => Promise; /** * @internal */ diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts new file mode 100644 index 0000000..dbc00e2 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts @@ -0,0 +1,20 @@ +import { AwsQueryProtocol } from "./AwsQueryProtocol"; +/** + * @alpha + */ +export declare class AwsEc2QueryProtocol extends AwsQueryProtocol { + options: { + defaultNamespace: string; + xmlNamespace: string; + version: string; + }; + constructor(options: { + defaultNamespace: string; + xmlNamespace: string; + version: string; + }); + /** + * EC2 Query reads XResponse.XResult instead of XResponse directly. + */ + protected useNestedResult(): boolean; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts new file mode 100644 index 0000000..0ec0047 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts @@ -0,0 +1,39 @@ +import { RpcProtocol } from "@smithy/core/protocols"; +import { Codec, EndpointBearer, HandlerExecutionContext, HttpRequest, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types"; +import type { HttpResponse as IHttpResponse } from "@smithy/types/dist-types/http"; +import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer"; +import { QueryShapeSerializer } from "./QueryShapeSerializer"; +/** + * @alpha + */ +export declare class AwsQueryProtocol extends RpcProtocol { + options: { + defaultNamespace: string; + xmlNamespace: string; + version: string; + }; + protected serializer: QueryShapeSerializer; + protected deserializer: XmlShapeDeserializer; + constructor(options: { + defaultNamespace: string; + xmlNamespace: string; + version: string; + }); + getShapeId(): string; + setSerdeContext(serdeContext: SerdeFunctions): void; + getPayloadCodec(): Codec; + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; + /** + * EC2 Query overrides this. + */ + protected useNestedResult(): boolean; + protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise; + /** + * The variations in the error and error message locations are attributed to + * divergence between AWS Query and EC2 Query behavior. + */ + protected loadQueryErrorCode(output: IHttpResponse, data: any): string | undefined; + protected loadQueryError(data: any): any | undefined; + protected loadQueryErrorMessage(data: any): string; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts new file mode 100644 index 0000000..bff4411 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts @@ -0,0 +1,6 @@ +import { CodecSettings } from "@smithy/types"; +export type QuerySerializerSettings = CodecSettings & { + capitalizeKeys?: boolean; + flattenLists?: boolean; + serializeEmptyLists?: boolean; +}; diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts new file mode 100644 index 0000000..ed5d84c --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts @@ -0,0 +1,16 @@ +import type { Schema, ShapeSerializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import type { QuerySerializerSettings } from "./QuerySerializerSettings"; +/** + * @alpha + */ +export declare class QueryShapeSerializer extends SerdeContextConfig implements ShapeSerializer { + readonly settings: QuerySerializerSettings; + private buffer; + constructor(settings: QuerySerializerSettings); + write(schema: Schema, value: unknown, prefix?: string): void; + flush(): string | Uint8Array; + protected getKey(memberName: string, xmlName?: string): string; + protected writeKey(key: string): void; + protected writeValue(value: string): void; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts new file mode 100644 index 0000000..5d9f59b --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts @@ -0,0 +1,21 @@ +import { HttpBindingProtocol } from "@smithy/core/protocols"; +import { OperationSchema } from "@smithy/core/schema"; +import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; +import { XmlCodec } from "./XmlCodec"; +/** + * @alpha + */ +export declare class AwsRestXmlProtocol extends HttpBindingProtocol { + private readonly codec; + protected serializer: ShapeSerializer; + protected deserializer: ShapeDeserializer; + constructor(options: { + defaultNamespace: string; + xmlNamespace: string; + }); + getPayloadCodec(): XmlCodec; + getShapeId(): string; + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; + protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts new file mode 100644 index 0000000..70939de --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts @@ -0,0 +1,14 @@ +import { Codec, CodecSettings } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { XmlShapeDeserializer } from "./XmlShapeDeserializer"; +import { XmlShapeSerializer } from "./XmlShapeSerializer"; +export type XmlSettings = CodecSettings & { + xmlNamespace: string; + serviceNamespace: string; +}; +export declare class XmlCodec extends SerdeContextConfig implements Codec { + readonly settings: XmlSettings; + constructor(settings: XmlSettings); + createSerializer(): XmlShapeSerializer; + createDeserializer(): XmlShapeDeserializer; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts new file mode 100644 index 0000000..ac674fa --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts @@ -0,0 +1,20 @@ +import { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { XmlSettings } from "./XmlCodec"; +/** + * @alpha + */ +export declare class XmlShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer { + readonly settings: XmlSettings; + private stringDeserializer; + constructor(settings: XmlSettings); + setSerdeContext(serdeContext: SerdeFunctions): void; + /** + * @param schema - describing the data. + * @param bytes - serialized data. + * @param key - used by AwsQuery to step one additional depth into the object before reading it. + */ + read(schema: Schema, bytes: Uint8Array | string, key?: string): any; + readSchema(_schema: Schema, value: any): any; + protected parseXml(xml: string): any; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts new file mode 100644 index 0000000..ceee538 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts @@ -0,0 +1,21 @@ +import type { Schema as ISchema, ShapeSerializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { XmlSettings } from "./XmlCodec"; +/** + * @alpha + */ +export declare class XmlShapeSerializer extends SerdeContextConfig implements ShapeSerializer { + readonly settings: XmlSettings; + private stringBuffer?; + private byteBuffer?; + private buffer?; + constructor(settings: XmlSettings); + write(schema: ISchema, value: unknown): void; + flush(): string | Uint8Array; + private writeStruct; + private writeList; + private writeMap; + private writeSimple; + private writeSimpleInto; + private getXmlnsAttribute; +} diff --git a/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/simpleFormatXml.d.ts b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/simpleFormatXml.d.ts new file mode 100644 index 0000000..43da7fc --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/simpleFormatXml.d.ts @@ -0,0 +1,6 @@ +/** + * Formats XML, for testing only. + * @internal + * @deprecated don't use in runtime code. + */ +export declare function simpleFormatXml(xml: string): string; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts index 29d0c3b..3927741 100644 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts @@ -1 +1,2 @@ export * from "./aws_sdk"; +export * from "./utils/getBearerTokenEnvKey"; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts new file mode 100644 index 0000000..2904f0b --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts @@ -0,0 +1 @@ +export declare const getBearerTokenEnvKey: (signingName: string) => string; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts new file mode 100644 index 0000000..a225d08 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts @@ -0,0 +1,5 @@ +import { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types"; +export declare class SerdeContextConfig implements ConfigurableSerdeContext { + protected serdeContext?: SerdeFunctions; + setSerdeContext(serdeContext: SerdeFunctions): void; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts index 73486db..105253e 100644 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts @@ -1,5 +1,5 @@ -import { SerdeContext } from "@smithy/types"; +import { SerdeFunctions } from "@smithy/types"; export declare const collectBodyString: ( streamBody: any, - context: SerdeContext + context: SerdeFunctions ) => Promise; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts index 09a6ac2..a93942b 100644 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts @@ -1,4 +1,17 @@ export * from "./coercing-serializers"; +export * from "./json/AwsJson1_0Protocol"; +export * from "./json/AwsJson1_1Protocol"; +export * from "./json/AwsJsonRpcProtocol"; +export * from "./json/AwsRestJsonProtocol"; +export * from "./json/JsonCodec"; +export * from "./json/JsonShapeDeserializer"; +export * from "./json/JsonShapeSerializer"; export * from "./json/awsExpectUnion"; export * from "./json/parseJsonBody"; +export * from "./query/AwsEc2QueryProtocol"; +export * from "./query/AwsQueryProtocol"; +export * from "./xml/AwsRestXmlProtocol"; +export * from "./xml/XmlCodec"; +export * from "./xml/XmlShapeDeserializer"; +export * from "./xml/XmlShapeSerializer"; export * from "./xml/parseXmlBody"; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts new file mode 100644 index 0000000..1ace9a9 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts @@ -0,0 +1,6 @@ +import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; +export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol { + constructor({ defaultNamespace }: { defaultNamespace: string }); + getShapeId(): string; + protected getJsonRpcVersion(): "1.0"; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts new file mode 100644 index 0000000..e6e8b3c --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts @@ -0,0 +1,6 @@ +import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; +export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol { + constructor({ defaultNamespace }: { defaultNamespace: string }); + getShapeId(): string; + protected getJsonRpcVersion(): "1.1"; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts new file mode 100644 index 0000000..4e68179 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts @@ -0,0 +1,33 @@ +import { RpcProtocol } from "@smithy/core/protocols"; +import { + EndpointBearer, + HandlerExecutionContext, + HttpRequest, + HttpResponse, + OperationSchema, + ResponseMetadata, + SerdeFunctions, + ShapeDeserializer, + ShapeSerializer, +} from "@smithy/types"; +import { JsonCodec } from "./JsonCodec"; +export declare abstract class AwsJsonRpcProtocol extends RpcProtocol { + protected serializer: ShapeSerializer; + protected deserializer: ShapeDeserializer; + private codec; + protected constructor({ defaultNamespace }: { defaultNamespace: string }); + serializeRequest( + operationSchema: OperationSchema, + input: Input, + context: HandlerExecutionContext & SerdeFunctions & EndpointBearer + ): Promise; + getPayloadCodec(): JsonCodec; + protected abstract getJsonRpcVersion(): "1.1" | "1.0"; + protected handleError( + operationSchema: OperationSchema, + context: HandlerExecutionContext & SerdeFunctions, + response: HttpResponse, + dataObject: any, + metadata: ResponseMetadata + ): Promise; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts new file mode 100644 index 0000000..17a2ff3 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts @@ -0,0 +1,34 @@ +import { HttpBindingProtocol } from "@smithy/core/protocols"; +import { + EndpointBearer, + HandlerExecutionContext, + HttpRequest, + HttpResponse, + OperationSchema, + ResponseMetadata, + SerdeFunctions, + ShapeDeserializer, + ShapeSerializer, +} from "@smithy/types"; +import { JsonCodec } from "./JsonCodec"; +export declare class AwsRestJsonProtocol extends HttpBindingProtocol { + protected serializer: ShapeSerializer; + protected deserializer: ShapeDeserializer; + private readonly codec; + constructor({ defaultNamespace }: { defaultNamespace: string }); + getShapeId(): string; + getPayloadCodec(): JsonCodec; + setSerdeContext(serdeContext: SerdeFunctions): void; + serializeRequest( + operationSchema: OperationSchema, + input: Input, + context: HandlerExecutionContext & SerdeFunctions & EndpointBearer + ): Promise; + protected handleError( + operationSchema: OperationSchema, + context: HandlerExecutionContext & SerdeFunctions, + response: HttpResponse, + dataObject: any, + metadata: ResponseMetadata + ): Promise; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts new file mode 100644 index 0000000..225608a --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts @@ -0,0 +1,16 @@ +import { Codec, CodecSettings } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { JsonShapeDeserializer } from "./JsonShapeDeserializer"; +import { JsonShapeSerializer } from "./JsonShapeSerializer"; +export type JsonSettings = CodecSettings & { + jsonName: boolean; +}; +export declare class JsonCodec + extends SerdeContextConfig + implements Codec +{ + readonly settings: JsonSettings; + constructor(settings: JsonSettings); + createSerializer(): JsonShapeSerializer; + createDeserializer(): JsonShapeDeserializer; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts new file mode 100644 index 0000000..1bc2eb5 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts @@ -0,0 +1,13 @@ +import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { JsonSettings } from "./JsonCodec"; +export declare class JsonShapeDeserializer + extends SerdeContextConfig + implements ShapeDeserializer +{ + readonly settings: JsonSettings; + constructor(settings: JsonSettings); + read(schema: Schema, data: string | Uint8Array | unknown): Promise; + readObject(schema: Schema, data: DocumentType): any; + private _read; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts new file mode 100644 index 0000000..43238d6 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts @@ -0,0 +1,15 @@ +import { Schema, ShapeSerializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { JsonSettings } from "./JsonCodec"; +export declare class JsonShapeSerializer + extends SerdeContextConfig + implements ShapeSerializer +{ + readonly settings: JsonSettings; + private buffer; + private rootSchema; + constructor(settings: JsonSettings); + write(schema: Schema, value: unknown): void; + flush(): string; + private _write; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts new file mode 100644 index 0000000..c781ab9 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts @@ -0,0 +1,7 @@ +export declare class JsonReplacer { + private readonly values; + private counter; + private stage; + createReplacer(): (key: string, value: unknown) => unknown; + replaceInJson(json: string): string; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts new file mode 100644 index 0000000..6411604 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts @@ -0,0 +1,7 @@ +export declare function jsonReviver( + key: string, + value: any, + context?: { + source?: string; + } +): any; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts index b400419..f13884a 100644 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts @@ -1,11 +1,11 @@ -import { HttpResponse, SerdeContext } from "@smithy/types"; +import { HttpResponse, SerdeFunctions } from "@smithy/types"; export declare const parseJsonBody: ( streamBody: any, - context: SerdeContext + context: SerdeFunctions ) => any; export declare const parseJsonErrorBody: ( errorBody: any, - context: SerdeContext + context: SerdeFunctions ) => Promise; export declare const loadRestJsonErrorCode: ( output: HttpResponse, diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts new file mode 100644 index 0000000..8591106 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts @@ -0,0 +1,14 @@ +import { AwsQueryProtocol } from "./AwsQueryProtocol"; +export declare class AwsEc2QueryProtocol extends AwsQueryProtocol { + options: { + defaultNamespace: string; + xmlNamespace: string; + version: string; + }; + constructor(options: { + defaultNamespace: string; + xmlNamespace: string; + version: string; + }); + protected useNestedResult(): boolean; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts new file mode 100644 index 0000000..f37bb25 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts @@ -0,0 +1,55 @@ +import { RpcProtocol } from "@smithy/core/protocols"; +import { + Codec, + EndpointBearer, + HandlerExecutionContext, + HttpRequest, + MetadataBearer, + OperationSchema, + ResponseMetadata, + SerdeFunctions, +} from "@smithy/types"; +import { HttpResponse as IHttpResponse } from "@smithy/types/dist-types/http"; +import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer"; +import { QueryShapeSerializer } from "./QueryShapeSerializer"; +export declare class AwsQueryProtocol extends RpcProtocol { + options: { + defaultNamespace: string; + xmlNamespace: string; + version: string; + }; + protected serializer: QueryShapeSerializer; + protected deserializer: XmlShapeDeserializer; + constructor(options: { + defaultNamespace: string; + xmlNamespace: string; + version: string; + }); + getShapeId(): string; + setSerdeContext(serdeContext: SerdeFunctions): void; + getPayloadCodec(): Codec; + serializeRequest( + operationSchema: OperationSchema, + input: Input, + context: HandlerExecutionContext & SerdeFunctions & EndpointBearer + ): Promise; + deserializeResponse( + operationSchema: OperationSchema, + context: HandlerExecutionContext & SerdeFunctions, + response: IHttpResponse + ): Promise; + protected useNestedResult(): boolean; + protected handleError( + operationSchema: OperationSchema, + context: HandlerExecutionContext & SerdeFunctions, + response: IHttpResponse, + dataObject: any, + metadata: ResponseMetadata + ): Promise; + protected loadQueryErrorCode( + output: IHttpResponse, + data: any + ): string | undefined; + protected loadQueryError(data: any): any | undefined; + protected loadQueryErrorMessage(data: any): string; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts new file mode 100644 index 0000000..0952f9d --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts @@ -0,0 +1,6 @@ +import { CodecSettings } from "@smithy/types"; +export type QuerySerializerSettings = CodecSettings & { + capitalizeKeys?: boolean; + flattenLists?: boolean; + serializeEmptyLists?: boolean; +}; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts new file mode 100644 index 0000000..ea67d10 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts @@ -0,0 +1,16 @@ +import { Schema, ShapeSerializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { QuerySerializerSettings } from "./QuerySerializerSettings"; +export declare class QueryShapeSerializer + extends SerdeContextConfig + implements ShapeSerializer +{ + readonly settings: QuerySerializerSettings; + private buffer; + constructor(settings: QuerySerializerSettings); + write(schema: Schema, value: unknown, prefix?: string): void; + flush(): string | Uint8Array; + protected getKey(memberName: string, xmlName?: string): string; + protected writeKey(key: string): void; + protected writeValue(value: string): void; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts new file mode 100644 index 0000000..4acfad1 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts @@ -0,0 +1,39 @@ +import { HttpBindingProtocol } from "@smithy/core/protocols"; +import { OperationSchema } from "@smithy/core/schema"; +import { + EndpointBearer, + HandlerExecutionContext, + HttpRequest as IHttpRequest, + HttpResponse as IHttpResponse, + MetadataBearer, + ResponseMetadata, + SerdeFunctions, + ShapeDeserializer, + ShapeSerializer, +} from "@smithy/types"; +import { XmlCodec } from "./XmlCodec"; +export declare class AwsRestXmlProtocol extends HttpBindingProtocol { + private readonly codec; + protected serializer: ShapeSerializer; + protected deserializer: ShapeDeserializer; + constructor(options: { defaultNamespace: string; xmlNamespace: string }); + getPayloadCodec(): XmlCodec; + getShapeId(): string; + serializeRequest( + operationSchema: OperationSchema, + input: Input, + context: HandlerExecutionContext & SerdeFunctions & EndpointBearer + ): Promise; + deserializeResponse( + operationSchema: OperationSchema, + context: HandlerExecutionContext & SerdeFunctions, + response: IHttpResponse + ): Promise; + protected handleError( + operationSchema: OperationSchema, + context: HandlerExecutionContext & SerdeFunctions, + response: IHttpResponse, + dataObject: any, + metadata: ResponseMetadata + ): Promise; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts new file mode 100644 index 0000000..14f46e0 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts @@ -0,0 +1,17 @@ +import { Codec, CodecSettings } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { XmlShapeDeserializer } from "./XmlShapeDeserializer"; +import { XmlShapeSerializer } from "./XmlShapeSerializer"; +export type XmlSettings = CodecSettings & { + xmlNamespace: string; + serviceNamespace: string; +}; +export declare class XmlCodec + extends SerdeContextConfig + implements Codec +{ + readonly settings: XmlSettings; + constructor(settings: XmlSettings); + createSerializer(): XmlShapeSerializer; + createDeserializer(): XmlShapeDeserializer; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts new file mode 100644 index 0000000..0c5b7cd --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts @@ -0,0 +1,15 @@ +import { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { XmlSettings } from "./XmlCodec"; +export declare class XmlShapeDeserializer + extends SerdeContextConfig + implements ShapeDeserializer +{ + readonly settings: XmlSettings; + private stringDeserializer; + constructor(settings: XmlSettings); + setSerdeContext(serdeContext: SerdeFunctions): void; + read(schema: Schema, bytes: Uint8Array | string, key?: string): any; + readSchema(_schema: Schema, value: any): any; + protected parseXml(xml: string): any; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts new file mode 100644 index 0000000..9ad3736 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts @@ -0,0 +1,21 @@ +import { Schema as ISchema, ShapeSerializer } from "@smithy/types"; +import { SerdeContextConfig } from "../ConfigurableSerdeContext"; +import { XmlSettings } from "./XmlCodec"; +export declare class XmlShapeSerializer + extends SerdeContextConfig + implements ShapeSerializer +{ + readonly settings: XmlSettings; + private stringBuffer?; + private byteBuffer?; + private buffer?; + constructor(settings: XmlSettings); + write(schema: ISchema, value: unknown): void; + flush(): string | Uint8Array; + private writeStruct; + private writeList; + private writeMap; + private writeSimple; + private writeSimpleInto; + private getXmlnsAttribute; +} diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts new file mode 100644 index 0000000..b70cfc4 --- /dev/null +++ b/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts @@ -0,0 +1 @@ +export declare function simpleFormatXml(xml: string): string; diff --git a/node_modules/@aws-sdk/core/package.json b/node_modules/@aws-sdk/core/package.json index bcfddd6..3a97574 100644 --- a/node_modules/@aws-sdk/core/package.json +++ b/node_modules/@aws-sdk/core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/core", - "version": "3.804.0", + "version": "3.826.0", "description": "Core functions & classes shared by multiple AWS SDK clients.", "scripts": { "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", @@ -81,15 +81,19 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/xml-builder": "3.821.0", + "@smithy/core": "^3.5.3", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-utf8": "^4.0.0", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, diff --git a/node_modules/@aws-sdk/credential-provider-env/package.json b/node_modules/@aws-sdk/credential-provider-env/package.json index 07cd138..fbc65c3 100644 --- a/node_modules/@aws-sdk/credential-provider-env/package.json +++ b/node_modules/@aws-sdk/credential-provider-env/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/credential-provider-env", - "version": "3.804.0", + "version": "3.826.0", "description": "AWS credential provider that sources credentials from known environment variables", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -25,10 +25,10 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/credential-provider-http/package.json b/node_modules/@aws-sdk/credential-provider-http/package.json index b5cad3e..45aad99 100644 --- a/node_modules/@aws-sdk/credential-provider-http/package.json +++ b/node_modules/@aws-sdk/credential-provider-http/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/credential-provider-http", - "version": "3.804.0", + "version": "3.826.0", "description": "AWS credential provider for containers and HTTP sources", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -27,15 +27,15 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/property-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/util-stream": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-stream": "^4.2.2", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/credential-provider-ini/package.json b/node_modules/@aws-sdk/credential-provider-ini/package.json index 6d70542..d6eee2a 100644 --- a/node_modules/@aws-sdk/credential-provider-ini/package.json +++ b/node_modules/@aws-sdk/credential-provider-ini/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/credential-provider-ini", - "version": "3.804.0", + "version": "3.828.0", "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -27,18 +27,18 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/credential-provider-env": "3.804.0", - "@aws-sdk/credential-provider-http": "3.804.0", - "@aws-sdk/credential-provider-process": "3.804.0", - "@aws-sdk/credential-provider-sso": "3.804.0", - "@aws-sdk/credential-provider-web-identity": "3.804.0", - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/credential-provider-imds": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/credential-provider-env": "3.826.0", + "@aws-sdk/credential-provider-http": "3.826.0", + "@aws-sdk/credential-provider-process": "3.826.0", + "@aws-sdk/credential-provider-sso": "3.828.0", + "@aws-sdk/credential-provider-web-identity": "3.828.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/credential-provider-node/package.json b/node_modules/@aws-sdk/credential-provider-node/package.json index 53544f4..ca6eb66 100644 --- a/node_modules/@aws-sdk/credential-provider-node/package.json +++ b/node_modules/@aws-sdk/credential-provider-node/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/credential-provider-node", - "version": "3.804.0", + "version": "3.828.0", "description": "AWS credential provider that sources credentials from a Node.JS environment. ", "engines": { "node": ">=18.0.0" @@ -29,17 +29,17 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.804.0", - "@aws-sdk/credential-provider-http": "3.804.0", - "@aws-sdk/credential-provider-ini": "3.804.0", - "@aws-sdk/credential-provider-process": "3.804.0", - "@aws-sdk/credential-provider-sso": "3.804.0", - "@aws-sdk/credential-provider-web-identity": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/credential-provider-imds": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/credential-provider-env": "3.826.0", + "@aws-sdk/credential-provider-http": "3.826.0", + "@aws-sdk/credential-provider-ini": "3.828.0", + "@aws-sdk/credential-provider-process": "3.826.0", + "@aws-sdk/credential-provider-sso": "3.828.0", + "@aws-sdk/credential-provider-web-identity": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/credential-provider-process/package.json b/node_modules/@aws-sdk/credential-provider-process/package.json index f56efd4..0b5b97c 100644 --- a/node_modules/@aws-sdk/credential-provider-process/package.json +++ b/node_modules/@aws-sdk/credential-provider-process/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/credential-provider-process", - "version": "3.804.0", + "version": "3.826.0", "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -25,11 +25,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/credential-provider-sso/package.json b/node_modules/@aws-sdk/credential-provider-sso/package.json index 2833812..588b947 100644 --- a/node_modules/@aws-sdk/credential-provider-sso/package.json +++ b/node_modules/@aws-sdk/credential-provider-sso/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/credential-provider-sso", - "version": "3.804.0", + "version": "3.828.0", "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -25,13 +25,13 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.804.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/token-providers": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/client-sso": "3.828.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/token-providers": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/package.json b/node_modules/@aws-sdk/credential-provider-web-identity/package.json index 22ed517..9ef7ef5 100644 --- a/node_modules/@aws-sdk/credential-provider-web-identity/package.json +++ b/node_modules/@aws-sdk/credential-provider-web-identity/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/credential-provider-web-identity", - "version": "3.804.0", + "version": "3.828.0", "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -33,11 +33,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/lib-storage/package.json b/node_modules/@aws-sdk/lib-storage/package.json index d08fb76..b4dba50 100644 --- a/node_modules/@aws-sdk/lib-storage/package.json +++ b/node_modules/@aws-sdk/lib-storage/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/lib-storage", - "version": "3.804.0", + "version": "3.828.0", "description": "Storage higher order operation", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -28,20 +28,20 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/smithy-client": "^4.2.2", + "@smithy/abort-controller": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/smithy-client": "^4.4.3", "buffer": "5.6.0", "events": "3.3.0", "stream-browserify": "3.0.0", "tslib": "^2.6.2" }, "peerDependencies": { - "@aws-sdk/client-s3": "^3.804.0" + "@aws-sdk/client-s3": "^3.828.0" }, "devDependencies": { - "@aws-sdk/client-s3": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/client-s3": "3.828.0", + "@smithy/types": "^4.3.1", "@tsconfig/recommended": "1.0.1", "@types/node": "^18.19.69", "concurrently": "7.0.0", diff --git a/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json b/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json index 90736bd..e12d5db 100644 --- a/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +++ b/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-bucket-endpoint", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-bucket-endpoint", @@ -22,11 +22,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", + "@aws-sdk/types": "3.821.0", "@aws-sdk/util-arn-parser": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@aws-sdk/middleware-expect-continue/package.json b/node_modules/@aws-sdk/middleware-expect-continue/package.json index 91ae840..d9cca98 100644 --- a/node_modules/@aws-sdk/middleware-expect-continue/package.json +++ b/node_modules/@aws-sdk/middleware-expect-continue/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-expect-continue", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-expect-continue", @@ -23,9 +23,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@aws-sdk/middleware-flexible-checksums/package.json b/node_modules/@aws-sdk/middleware-flexible-checksums/package.json index 2a747d9..3a5e042 100644 --- a/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +++ b/node_modules/@aws-sdk/middleware-flexible-checksums/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-flexible-checksums", - "version": "3.804.0", + "version": "3.826.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-flexible-checksums", @@ -36,19 +36,19 @@ "@aws-crypto/crc32": "5.2.0", "@aws-crypto/crc32c": "5.2.0", "@aws-crypto/util": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", "@smithy/is-array-buffer": "^4.0.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "devDependencies": { - "@smithy/node-http-handler": "^4.0.4", + "@smithy/node-http-handler": "^4.0.6", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/node_modules/@aws-sdk/middleware-host-header/package.json b/node_modules/@aws-sdk/middleware-host-header/package.json index 23bc3c3..ffe59e7 100644 --- a/node_modules/@aws-sdk/middleware-host-header/package.json +++ b/node_modules/@aws-sdk/middleware-host-header/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-host-header", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-host-header", @@ -24,9 +24,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@aws-sdk/middleware-location-constraint/package.json b/node_modules/@aws-sdk/middleware-location-constraint/package.json index 05b09a3..e3eba5f 100644 --- a/node_modules/@aws-sdk/middleware-location-constraint/package.json +++ b/node_modules/@aws-sdk/middleware-location-constraint/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-location-constraint", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-location-constraint", @@ -23,8 +23,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@aws-sdk/middleware-logger/package.json b/node_modules/@aws-sdk/middleware-logger/package.json index 459ce00..319f7d2 100644 --- a/node_modules/@aws-sdk/middleware-logger/package.json +++ b/node_modules/@aws-sdk/middleware-logger/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-logger", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-logger", @@ -24,8 +24,8 @@ "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/middleware-recursion-detection/package.json b/node_modules/@aws-sdk/middleware-recursion-detection/package.json index 5822319..f85f067 100644 --- a/node_modules/@aws-sdk/middleware-recursion-detection/package.json +++ b/node_modules/@aws-sdk/middleware-recursion-detection/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-recursion-detection", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection", @@ -23,9 +23,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@aws-sdk/middleware-sdk-s3/package.json b/node_modules/@aws-sdk/middleware-sdk-s3/package.json index 56f44c2..baab7b6 100644 --- a/node_modules/@aws-sdk/middleware-sdk-s3/package.json +++ b/node_modules/@aws-sdk/middleware-sdk-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-sdk-s3", - "version": "3.804.0", + "version": "3.826.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-sdk-s3", @@ -27,18 +27,18 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", "@aws-sdk/util-arn-parser": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", + "@smithy/core": "^3.5.3", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@aws-sdk/middleware-ssec/package.json b/node_modules/@aws-sdk/middleware-ssec/package.json index 2748151..adc7f10 100644 --- a/node_modules/@aws-sdk/middleware-ssec/package.json +++ b/node_modules/@aws-sdk/middleware-ssec/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-ssec", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-ssec", @@ -23,8 +23,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@aws-sdk/middleware-user-agent/package.json b/node_modules/@aws-sdk/middleware-user-agent/package.json index 8011010..1e283a1 100644 --- a/node_modules/@aws-sdk/middleware-user-agent/package.json +++ b/node_modules/@aws-sdk/middleware-user-agent/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/middleware-user-agent", - "version": "3.804.0", + "version": "3.828.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent", @@ -24,12 +24,12 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@smithy/core": "^3.5.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js b/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js index 9cc237f..5c61793 100644 --- a/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +++ b/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js @@ -22,19 +22,22 @@ const getRuntimeConfig = (config) => { const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); (0, core_1.emitWarningIfUnsupportedVersion)(process.version); - const profileConfig = { profile: config?.profile }; + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig), + authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? - (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), + (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ @@ -43,9 +46,9 @@ const getRuntimeConfig = (config) => { }, config), sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig), + useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), }; }; exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js b/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js index de3b0e7..d98dd50 100644 --- a/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +++ b/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js @@ -23,13 +23,16 @@ const getRuntimeConfig = (config) => { const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); (0, core_1.emitWarningIfUnsupportedVersion)(process.version); - const profileConfig = { profile: config?.profile }; + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig), + authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), @@ -48,7 +51,7 @@ const getRuntimeConfig = (config) => { ], maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? - (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), + (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ @@ -57,9 +60,9 @@ const getRuntimeConfig = (config) => { }, config), sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig), + useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), }; }; exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js b/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js index 32d413c..cb2973c 100644 --- a/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +++ b/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js @@ -18,19 +18,22 @@ export const getRuntimeConfig = (config) => { const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); awsCheckVersion(process.version); - const profileConfig = { profile: config?.profile }; + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig), + authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? - loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), + loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? loadNodeConfig({ @@ -39,8 +42,8 @@ export const getRuntimeConfig = (config) => { }, config), sha256: config?.sha256 ?? Hash.bind(null, "sha256"), streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig), + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), }; }; diff --git a/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js b/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js index 6ac2412..d8c4b8e 100644 --- a/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +++ b/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js @@ -19,13 +19,16 @@ export const getRuntimeConfig = (config) => { const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getSharedRuntimeConfig(config); awsCheckVersion(process.version); - const profileConfig = { profile: config?.profile }; + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig), + authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), @@ -44,7 +47,7 @@ export const getRuntimeConfig = (config) => { ], maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? - loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), + loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? loadNodeConfig({ @@ -53,8 +56,8 @@ export const getRuntimeConfig = (config) => { }, config), sha256: config?.sha256 ?? Hash.bind(null, "sha256"), streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig), + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), }; }; diff --git a/node_modules/@aws-sdk/nested-clients/package.json b/node_modules/@aws-sdk/nested-clients/package.json index 38af545..c35a8cd 100644 --- a/node_modules/@aws-sdk/nested-clients/package.json +++ b/node_modules/@aws-sdk/nested-clients/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/nested-clients", - "version": "3.804.0", + "version": "3.828.0", "description": "Nested clients for AWS SDK packages.", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -28,40 +28,40 @@ "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@aws-sdk/region-config-resolver/package.json b/node_modules/@aws-sdk/region-config-resolver/package.json index fccf421..1ddc6e5 100644 --- a/node_modules/@aws-sdk/region-config-resolver/package.json +++ b/node_modules/@aws-sdk/region-config-resolver/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/region-config-resolver", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline region-config-resolver", @@ -22,11 +22,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js b/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js index b4b5502..1611dc4 100644 --- a/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +++ b/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js @@ -43,6 +43,14 @@ var SignatureV4MultiRegion = class { sigv4aSigner; sigv4Signer; signerOptions; + static sigv4aDependency() { + if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") { + return "crt"; + } else if (typeof import_signature_v4.signatureV4aContainer.SignatureV4a === "function") { + return "js"; + } + return "none"; + } constructor(options) { this.sigv4Signer = new import_middleware_sdk_s3.SignatureV4S3Express(options); this.signerOptions = options; diff --git a/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js b/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js index 86dff96..66c94fe 100644 --- a/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +++ b/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js @@ -5,6 +5,15 @@ export class SignatureV4MultiRegion { sigv4aSigner; sigv4Signer; signerOptions; + static sigv4aDependency() { + if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") { + return "crt"; + } + else if (typeof signatureV4aContainer.SignatureV4a === "function") { + return "js"; + } + return "none"; + } constructor(options) { this.sigv4Signer = new SignatureV4S3Express(options); this.signerOptions = options; diff --git a/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts b/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts index 637deb8..d8ce935 100644 --- a/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +++ b/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts @@ -17,6 +17,7 @@ export declare class SignatureV4MultiRegion implements RequestPresigner, Request private sigv4aSigner?; private readonly sigv4Signer; private readonly signerOptions; + static sigv4aDependency(): "none" | "js" | "crt"; constructor(options: SignatureV4MultiRegionInit); sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise; /** diff --git a/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts b/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts index 6eaa80d..1fd47bf 100644 --- a/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts +++ b/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts @@ -17,6 +17,7 @@ export declare class SignatureV4MultiRegion private sigv4aSigner?; private readonly sigv4Signer; private readonly signerOptions; + static sigv4aDependency(): "none" | "js" | "crt"; constructor(options: SignatureV4MultiRegionInit); sign( requestToSign: HttpRequest, diff --git a/node_modules/@aws-sdk/signature-v4-multi-region/package.json b/node_modules/@aws-sdk/signature-v4-multi-region/package.json index e668fd9..8a29f4d 100644 --- a/node_modules/@aws-sdk/signature-v4-multi-region/package.json +++ b/node_modules/@aws-sdk/signature-v4-multi-region/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/signature-v4-multi-region", - "version": "3.804.0", + "version": "3.826.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline signature-v4-multi-region", @@ -24,11 +24,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-sdk-s3": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/middleware-sdk-s3": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/token-providers/README.md b/node_modules/@aws-sdk/token-providers/README.md index 9078019..ce60982 100644 --- a/node_modules/@aws-sdk/token-providers/README.md +++ b/node_modules/@aws-sdk/token-providers/README.md @@ -27,6 +27,15 @@ import { fromSso } from "@aws-sdk/token-providers"; const ssoToken = await fromSso(); ``` +## Env Token Provider with Signing Name + +```ts +import { fromEnvSigningName } from "@aws-sdk/token-providers"; + +// returns token from environment, where token's key is based on signing name. +const envSigningNameToken = await fromEnvSigningName({ signingName: "signing name" }); +``` + ## Token Provider Chain ```ts diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/index.js b/node_modules/@aws-sdk/token-providers/dist-cjs/index.js index 51a38df..3ec9736 100644 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +++ b/node_modules/@aws-sdk/token-providers/dist-cjs/index.js @@ -31,12 +31,28 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru // src/index.ts var index_exports = {}; __export(index_exports, { + fromEnvSigningName: () => fromEnvSigningName, fromSso: () => fromSso, fromStatic: () => fromStatic, nodeProvider: () => nodeProvider }); module.exports = __toCommonJS(index_exports); +// src/fromEnvSigningName.ts +var import_core = require("@aws-sdk/core"); +var import_property_provider = require("@smithy/property-provider"); +var fromEnvSigningName = /* @__PURE__ */ __name(({ logger, signingName } = {}) => async () => { + logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"); + if (!signingName) { + throw new import_property_provider.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger }); + } + const bearerTokenKey = (0, import_core.getBearerTokenEnvKey)(signingName); + if (!(bearerTokenKey in process.env)) { + throw new import_property_provider.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger }); + } + return { token: process.env[bearerTokenKey] }; +}, "fromEnvSigningName"); + // src/fromSso.ts @@ -72,7 +88,7 @@ var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion, init }, "getNewSsoOidcToken"); // src/validateTokenExpiry.ts -var import_property_provider = require("@smithy/property-provider"); + var validateTokenExpiry = /* @__PURE__ */ __name((token) => { if (token.expiration && token.expiration.getTime() < Date.now()) { throw new import_property_provider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false); @@ -210,6 +226,7 @@ var nodeProvider = /* @__PURE__ */ __name((init = {}) => (0, import_property_pro // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { + fromEnvSigningName, fromSso, fromStatic, nodeProvider diff --git a/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js b/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js new file mode 100644 index 0000000..dfcc74d --- /dev/null +++ b/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js @@ -0,0 +1,13 @@ +import { getBearerTokenEnvKey } from "@aws-sdk/core"; +import { TokenProviderError } from "@smithy/property-provider"; +export const fromEnvSigningName = ({ logger, signingName } = {}) => async () => { + logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"); + if (!signingName) { + throw new TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger }); + } + const bearerTokenKey = getBearerTokenEnvKey(signingName); + if (!(bearerTokenKey in process.env)) { + throw new TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger }); + } + return { token: process.env[bearerTokenKey] }; +}; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/index.js b/node_modules/@aws-sdk/token-providers/dist-es/index.js index a0b176b..ae204f8 100644 --- a/node_modules/@aws-sdk/token-providers/dist-es/index.js +++ b/node_modules/@aws-sdk/token-providers/dist-es/index.js @@ -1,3 +1,4 @@ +export * from "./fromEnvSigningName"; export * from "./fromSso"; export * from "./fromStatic"; export * from "./nodeProvider"; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts new file mode 100644 index 0000000..7282c06 --- /dev/null +++ b/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts @@ -0,0 +1,18 @@ +import type { CredentialProviderOptions, TokenIdentityProvider } from "@aws-sdk/types"; +/** + * @public + */ +export interface FromEnvSigningNameInit extends CredentialProviderOptions { + signingName?: string; +} +/** + * Creates a TokenIdentityProvider that retrieves bearer token from environment variable + * + * @param options - Configuration options for the token provider + * @param options.logger - Optional logger for debug messages + * @param options.signingName - Service signing name used to determine environment variable key + * @returns TokenIdentityProvider that provides bearer token from environment variable + * + * @public + */ +export declare const fromEnvSigningName: ({ logger, signingName }?: FromEnvSigningNameInit) => TokenIdentityProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts index a0b176b..ae204f8 100644 --- a/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +++ b/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts @@ -1,3 +1,4 @@ +export * from "./fromEnvSigningName"; export * from "./fromSso"; export * from "./fromStatic"; export * from "./nodeProvider"; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts new file mode 100644 index 0000000..abf33ff --- /dev/null +++ b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts @@ -0,0 +1,11 @@ +import { + CredentialProviderOptions, + TokenIdentityProvider, +} from "@aws-sdk/types"; +export interface FromEnvSigningNameInit extends CredentialProviderOptions { + signingName?: string; +} +export declare const fromEnvSigningName: ({ + logger, + signingName, +}?: FromEnvSigningNameInit) => TokenIdentityProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts index a0b176b..ae204f8 100644 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +++ b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts @@ -1,3 +1,4 @@ +export * from "./fromEnvSigningName"; export * from "./fromSso"; export * from "./fromStatic"; export * from "./nodeProvider"; diff --git a/node_modules/@aws-sdk/token-providers/package.json b/node_modules/@aws-sdk/token-providers/package.json index 32f872c..3875c4e 100644 --- a/node_modules/@aws-sdk/token-providers/package.json +++ b/node_modules/@aws-sdk/token-providers/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/token-providers", - "version": "3.804.0", + "version": "3.828.0", "description": "A collection of token providers", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -27,11 +27,12 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/types/package.json b/node_modules/@aws-sdk/types/package.json index 3a553d6..82e8f78 100755 --- a/node_modules/@aws-sdk/types/package.json +++ b/node_modules/@aws-sdk/types/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/types", - "version": "3.804.0", + "version": "3.821.0", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", @@ -41,7 +41,7 @@ "directory": "packages/types" }, "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js index ee0a932..d2d133e 100644 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +++ b/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js @@ -124,6 +124,9 @@ var partitions_default = { "ap-east-1": { description: "Asia Pacific (Hong Kong)" }, + "ap-east-2": { + description: "Asia Pacific (Taipei)" + }, "ap-northeast-1": { description: "Asia Pacific (Tokyo)" }, diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json b/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json index a11705a..7d481b3 100644 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +++ b/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json @@ -17,6 +17,9 @@ "ap-east-1": { "description": "Asia Pacific (Hong Kong)" }, + "ap-east-2": { + "description": "Asia Pacific (Taipei)" + }, "ap-northeast-1": { "description": "Asia Pacific (Tokyo)" }, diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json b/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json index a11705a..7d481b3 100644 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +++ b/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json @@ -17,6 +17,9 @@ "ap-east-1": { "description": "Asia Pacific (Hong Kong)" }, + "ap-east-2": { + "description": "Asia Pacific (Taipei)" + }, "ap-northeast-1": { "description": "Asia Pacific (Tokyo)" }, diff --git a/node_modules/@aws-sdk/util-endpoints/package.json b/node_modules/@aws-sdk/util-endpoints/package.json index 7c918d4..2b2dad6 100644 --- a/node_modules/@aws-sdk/util-endpoints/package.json +++ b/node_modules/@aws-sdk/util-endpoints/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/util-endpoints", - "version": "3.804.0", + "version": "3.828.0", "description": "Utilities to help with endpoint resolution", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -24,9 +24,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", - "@smithy/util-endpoints": "^3.0.2", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", + "@smithy/util-endpoints": "^3.0.6", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@aws-sdk/util-user-agent-browser/package.json b/node_modules/@aws-sdk/util-user-agent-browser/package.json index 2d542f3..6294a1a 100644 --- a/node_modules/@aws-sdk/util-user-agent-browser/package.json +++ b/node_modules/@aws-sdk/util-user-agent-browser/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/util-user-agent-browser", - "version": "3.804.0", + "version": "3.821.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser", @@ -23,8 +23,8 @@ "license": "Apache-2.0", "react-native": "dist-es/index.native.js", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "bowser": "^2.11.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@aws-sdk/util-user-agent-node/package.json b/node_modules/@aws-sdk/util-user-agent-node/package.json index 6b35c43..9448996 100644 --- a/node_modules/@aws-sdk/util-user-agent-node/package.json +++ b/node_modules/@aws-sdk/util-user-agent-node/package.json @@ -1,6 +1,6 @@ { "name": "@aws-sdk/util-user-agent-node", - "version": "3.804.0", + "version": "3.828.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline util-user-agent-node", @@ -21,10 +21,10 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@aws-sdk/xml-builder/package.json b/node_modules/@aws-sdk/xml-builder/package.json index b0b0db1..b0dbac0 100644 --- a/node_modules/@aws-sdk/xml-builder/package.json +++ b/node_modules/@aws-sdk/xml-builder/package.json @@ -1,9 +1,9 @@ { "name": "@aws-sdk/xml-builder", - "version": "3.804.0", + "version": "3.821.0", "description": "XML builder for the AWS SDK", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "scripts": { diff --git a/node_modules/@smithy/abort-controller/package.json b/node_modules/@smithy/abort-controller/package.json index b7e5769..10943fa 100644 --- a/node_modules/@smithy/abort-controller/package.json +++ b/node_modules/@smithy/abort-controller/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/abort-controller", - "version": "4.0.2", + "version": "4.0.4", "description": "A simple abort controller library", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -25,7 +25,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts index 477afbc..93b3293 100644 --- a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts @@ -2,6 +2,7 @@ import { Endpoint, Provider, UrlParser } from "@smithy/types"; import { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpointsConfig"; /** * @public + * @deprecated superseded by default endpointRuleSet generation. */ export interface CustomEndpointsInputConfig extends EndpointsInputConfig { /** @@ -11,12 +12,14 @@ export interface CustomEndpointsInputConfig extends EndpointsInputConfig { } /** * @internal + * @deprecated superseded by default endpointRuleSet generation. */ interface PreviouslyResolved { urlParser: UrlParser; } /** * @internal + * @deprecated superseded by default endpointRuleSet generation. */ export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig { /** @@ -27,6 +30,8 @@ export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig { } /** * @internal + * + * @deprecated superseded by default endpointRuleSet generation. */ export declare const resolveCustomEndpointsConfig: (input: T & CustomEndpointsInputConfig & PreviouslyResolved) => T & CustomEndpointsResolvedConfig; export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts index 4cd1d8f..aaf7780 100644 --- a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts @@ -1,6 +1,7 @@ import { Endpoint, Provider, RegionInfoProvider, UrlParser } from "@smithy/types"; /** * @public + * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig. */ export interface EndpointsInputConfig { /** @@ -19,6 +20,7 @@ export interface EndpointsInputConfig { } /** * @internal + * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig. */ interface PreviouslyResolved { regionInfoProvider: RegionInfoProvider; @@ -28,6 +30,7 @@ interface PreviouslyResolved { } /** * @internal + * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig. */ export interface EndpointsResolvedConfig extends Required { /** diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts index 9b68e93..24c2fd5 100644 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts @@ -1,8 +1,9 @@ import { EndpointVariantTag } from "./EndpointVariantTag"; /** - * @internal - * * Provides hostname information for specific host label. + * + * @internal + * @deprecated unused as of endpointsRuleSets. */ export type EndpointVariant = { hostname: string; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts index ca50e1f..0c87d4d 100644 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts @@ -1,7 +1,10 @@ /** - * @internal + * * * The tag which mentions which area variant is providing information for. * Can be either "fips" or "dualstack". + * + * @internal + * @deprecated unused for endpointRuleSets. */ export type EndpointVariantTag = "fips" | "dualstack"; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts index 0a5be17..c86f36b 100644 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts @@ -1,10 +1,11 @@ import { EndpointVariant } from "./EndpointVariant"; /** - * @internal - * * The hash of partition with the information specific to that partition. * The information includes the list of regions belonging to that partition, * and the hostname to be used for the partition. + * + * @internal + * @deprecated unused for endpointRuleSets. */ export type PartitionHash = Record string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts index 0aaae08..7579e43 100644 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts @@ -3,6 +3,7 @@ import { PartitionHash } from "./PartitionHash"; import { RegionHash } from "./RegionHash"; /** * @internal + * @deprecated unused as of endpointsRuleSets. */ export interface GetRegionInfoOptions { useFipsEndpoint?: boolean; @@ -13,5 +14,6 @@ export interface GetRegionInfoOptions { } /** * @internal + * @deprecated unused as of endpointsRuleSets. */ export declare const getRegionInfo: (region: string, { useFipsEndpoint, useDualstackEndpoint, signingService, regionHash, partitionHash, }: GetRegionInfoOptions) => RegionInfo; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts index bf7a2b3..4831752 100644 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts @@ -1,5 +1,6 @@ /** * @internal + * @deprecated unused for endpointRuleSets. */ export interface GetResolvedHostnameOptions { regionHostname?: string; @@ -7,5 +8,6 @@ export interface GetResolvedHostnameOptions { } /** * @internal + * @deprecated unused for endpointRuleSets. */ export declare const getResolvedHostname: (resolvedRegion: string, { regionHostname, partitionHostname }: GetResolvedHostnameOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts index 587b4fc..79e6f7c 100644 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts @@ -1,11 +1,13 @@ import { PartitionHash } from "./PartitionHash"; /** * @internal + * @deprecated unused for endpointRuleSets. */ export interface GetResolvedPartitionOptions { partitionHash: PartitionHash; } /** * @internal + * @deprecated unused for endpointRuleSets. */ export declare const getResolvedPartition: (region: string, { partitionHash }: GetResolvedPartitionOptions) => string; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts index 3f5f7af..e0990b7 100644 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts @@ -1,5 +1,6 @@ /** * @internal + * @deprecated unused for endpointRuleSets. */ export interface GetResolvedSigningRegionOptions { regionRegex: string; @@ -8,5 +9,6 @@ export interface GetResolvedSigningRegionOptions { } /** * @internal + * @deprecated unused for endpointRuleSets. */ export declare const getResolvedSigningRegion: (hostname: string, { signingRegion, regionRegex, useFipsEndpoint }: GetResolvedSigningRegionOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts index 477afbc..93b3293 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts @@ -2,6 +2,7 @@ import { Endpoint, Provider, UrlParser } from "@smithy/types"; import { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpointsConfig"; /** * @public + * @deprecated superseded by default endpointRuleSet generation. */ export interface CustomEndpointsInputConfig extends EndpointsInputConfig { /** @@ -11,12 +12,14 @@ export interface CustomEndpointsInputConfig extends EndpointsInputConfig { } /** * @internal + * @deprecated superseded by default endpointRuleSet generation. */ interface PreviouslyResolved { urlParser: UrlParser; } /** * @internal + * @deprecated superseded by default endpointRuleSet generation. */ export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig { /** @@ -27,6 +30,8 @@ export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig { } /** * @internal + * + * @deprecated superseded by default endpointRuleSet generation. */ export declare const resolveCustomEndpointsConfig: (input: T & CustomEndpointsInputConfig & PreviouslyResolved) => T & CustomEndpointsResolvedConfig; export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts index 4cd1d8f..aaf7780 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts @@ -1,6 +1,7 @@ import { Endpoint, Provider, RegionInfoProvider, UrlParser } from "@smithy/types"; /** * @public + * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig. */ export interface EndpointsInputConfig { /** @@ -19,6 +20,7 @@ export interface EndpointsInputConfig { } /** * @internal + * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig. */ interface PreviouslyResolved { regionInfoProvider: RegionInfoProvider; @@ -28,6 +30,7 @@ interface PreviouslyResolved { } /** * @internal + * @deprecated see \@smithy/middleware-endpoint resolveEndpointConfig. */ export interface EndpointsResolvedConfig extends Required { /** diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts index 9b68e93..24c2fd5 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts @@ -1,8 +1,9 @@ import { EndpointVariantTag } from "./EndpointVariantTag"; /** - * @internal - * * Provides hostname information for specific host label. + * + * @internal + * @deprecated unused as of endpointsRuleSets. */ export type EndpointVariant = { hostname: string; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts index ca50e1f..0c87d4d 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts @@ -1,7 +1,10 @@ /** - * @internal + * * * The tag which mentions which area variant is providing information for. * Can be either "fips" or "dualstack". + * + * @internal + * @deprecated unused for endpointRuleSets. */ export type EndpointVariantTag = "fips" | "dualstack"; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts index 0a5be17..c86f36b 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts @@ -1,10 +1,11 @@ import { EndpointVariant } from "./EndpointVariant"; /** - * @internal - * * The hash of partition with the information specific to that partition. * The information includes the list of regions belonging to that partition, * and the hostname to be used for the partition. + * + * @internal + * @deprecated unused for endpointRuleSets. */ export type PartitionHash = Record string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts index 0aaae08..7579e43 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts @@ -3,6 +3,7 @@ import { PartitionHash } from "./PartitionHash"; import { RegionHash } from "./RegionHash"; /** * @internal + * @deprecated unused as of endpointsRuleSets. */ export interface GetRegionInfoOptions { useFipsEndpoint?: boolean; @@ -13,5 +14,6 @@ export interface GetRegionInfoOptions { } /** * @internal + * @deprecated unused as of endpointsRuleSets. */ export declare const getRegionInfo: (region: string, { useFipsEndpoint, useDualstackEndpoint, signingService, regionHash, partitionHash, }: GetRegionInfoOptions) => RegionInfo; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts index bf7a2b3..4831752 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts @@ -1,5 +1,6 @@ /** * @internal + * @deprecated unused for endpointRuleSets. */ export interface GetResolvedHostnameOptions { regionHostname?: string; @@ -7,5 +8,6 @@ export interface GetResolvedHostnameOptions { } /** * @internal + * @deprecated unused for endpointRuleSets. */ export declare const getResolvedHostname: (resolvedRegion: string, { regionHostname, partitionHostname }: GetResolvedHostnameOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts index 587b4fc..79e6f7c 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts @@ -1,11 +1,13 @@ import { PartitionHash } from "./PartitionHash"; /** * @internal + * @deprecated unused for endpointRuleSets. */ export interface GetResolvedPartitionOptions { partitionHash: PartitionHash; } /** * @internal + * @deprecated unused for endpointRuleSets. */ export declare const getResolvedPartition: (region: string, { partitionHash }: GetResolvedPartitionOptions) => string; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts index 3f5f7af..e0990b7 100644 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +++ b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts @@ -1,5 +1,6 @@ /** * @internal + * @deprecated unused for endpointRuleSets. */ export interface GetResolvedSigningRegionOptions { regionRegex: string; @@ -8,5 +9,6 @@ export interface GetResolvedSigningRegionOptions { } /** * @internal + * @deprecated unused for endpointRuleSets. */ export declare const getResolvedSigningRegion: (hostname: string, { signingRegion, regionRegex, useFipsEndpoint }: GetResolvedSigningRegionOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/package.json b/node_modules/@smithy/config-resolver/package.json index ef44798..cef9856 100644 --- a/node_modules/@smithy/config-resolver/package.json +++ b/node_modules/@smithy/config-resolver/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/config-resolver", - "version": "4.1.2", + "version": "4.1.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline config-resolver", @@ -24,10 +24,10 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js b/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js index 0f69723..2f3791d 100644 --- a/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +++ b/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js @@ -19,6 +19,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru // src/submodules/cbor/index.ts var cbor_exports = {}; __export(cbor_exports, { + CborCodec: () => CborCodec, + CborShapeDeserializer: () => CborShapeDeserializer, + CborShapeSerializer: () => CborShapeSerializer, + SmithyRpcV2CborProtocol: () => SmithyRpcV2CborProtocol, buildHttpRpcRequest: () => buildHttpRpcRequest, cbor: () => cbor, checkCborResponse: () => checkCborResponse, @@ -685,8 +689,9 @@ var loadSmithyRpcV2CborErrorCode = (output, data2) => { if (data2["__type"] !== void 0) { return sanitizeErrorCode(data2["__type"]); } - if (data2.code !== void 0) { - return sanitizeErrorCode(data2.code); + const codeKey = Object.keys(data2).find((key) => key.toLowerCase() === "code"); + if (codeKey && data2[codeKey] !== void 0) { + return sanitizeErrorCode(data2[codeKey]); } }; var checkCborResponse = (response) => { @@ -719,8 +724,213 @@ var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) } return new import_protocol_http.HttpRequest(contents); }; + +// src/submodules/cbor/SmithyRpcV2CborProtocol.ts +var import_protocols2 = require("@smithy/core/protocols"); +var import_schema2 = require("@smithy/core/schema"); +var import_util_middleware = require("@smithy/util-middleware"); + +// src/submodules/cbor/CborCodec.ts +var import_schema = require("@smithy/core/schema"); +var import_serde = require("@smithy/core/serde"); +var CborCodec = class { + createSerializer() { + const serializer = new CborShapeSerializer(); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new CborShapeDeserializer(); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } +}; +var CborShapeSerializer = class { + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } + write(schema, value) { + this.value = (0, import_serde.copyDocumentWithTransform)(value, schema, (_, schemaRef) => { + if (_ instanceof Date) { + return dateToTag(_); + } + if (_ instanceof Uint8Array) { + return _; + } + const ns = import_schema.NormalizedSchema.of(schemaRef); + const sparse = !!ns.getMergedTraits().sparse; + if (ns.isListSchema() && Array.isArray(_)) { + if (!sparse) { + return _.filter((item) => item != null); + } + } else if (_ && typeof _ === "object") { + const members = ns.getMemberSchemas(); + const isStruct = ns.isStructSchema(); + if (!sparse || isStruct) { + for (const [k, v] of Object.entries(_)) { + const filteredOutByNonSparse = !sparse && v == null; + const filteredOutByUnrecognizedMember = isStruct && !(k in members); + if (filteredOutByNonSparse || filteredOutByUnrecognizedMember) { + delete _[k]; + } + } + return _; + } + } + return _; + }); + } + flush() { + const buffer = cbor.serialize(this.value); + this.value = void 0; + return buffer; + } +}; +var CborShapeDeserializer = class { + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } + read(schema, bytes) { + const data2 = cbor.deserialize(bytes); + return this.readValue(schema, data2); + } + readValue(_schema, value) { + const ns = import_schema.NormalizedSchema.of(_schema); + const schema = ns.getSchema(); + if (typeof schema === "number") { + if (ns.isTimestampSchema()) { + return (0, import_serde.parseEpochTimestamp)(value); + } + if (ns.isBlobSchema()) { + return value; + } + } + if (typeof value === "undefined" || typeof value === "boolean" || typeof value === "number" || typeof value === "string" || typeof value === "bigint" || typeof value === "symbol") { + return value; + } else if (typeof value === "function" || typeof value === "object") { + if (value === null) { + return null; + } + if ("byteLength" in value) { + return value; + } + if (value instanceof Date) { + return value; + } + if (ns.isDocumentSchema()) { + return value; + } + if (ns.isListSchema()) { + const newArray = []; + const memberSchema = ns.getValueSchema(); + const sparse = ns.isListSchema() && !!ns.getMergedTraits().sparse; + for (const item of value) { + newArray.push(this.readValue(memberSchema, item)); + if (!sparse && newArray[newArray.length - 1] == null) { + newArray.pop(); + } + } + return newArray; + } + const newObject = {}; + if (ns.isMapSchema()) { + const sparse = ns.getMergedTraits().sparse; + const targetSchema = ns.getValueSchema(); + for (const key of Object.keys(value)) { + newObject[key] = this.readValue(targetSchema, value[key]); + if (newObject[key] == null && !sparse) { + delete newObject[key]; + } + } + } else if (ns.isStructSchema()) { + for (const [key, memberSchema] of ns.structIterator()) { + newObject[key] = this.readValue(memberSchema, value[key]); + } + } + return newObject; + } else { + return value; + } + } +}; + +// src/submodules/cbor/SmithyRpcV2CborProtocol.ts +var SmithyRpcV2CborProtocol = class extends import_protocols2.RpcProtocol { + constructor({ defaultNamespace }) { + super({ defaultNamespace }); + this.codec = new CborCodec(); + this.serializer = this.codec.createSerializer(); + this.deserializer = this.codec.createDeserializer(); + } + getShapeId() { + return "smithy.protocols#rpcv2Cbor"; + } + getPayloadCodec() { + return this.codec; + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + Object.assign(request.headers, { + "content-type": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", + accept: "application/cbor" + }); + if ((0, import_schema2.deref)(operationSchema.input) === "unit") { + delete request.body; + delete request.headers["content-type"]; + } else { + if (!request.body) { + this.serializer.write(15, {}); + request.body = this.serializer.flush(); + } + try { + request.headers["content-length"] = String(request.body.byteLength); + } catch (e) { + } + } + const { service, operation } = (0, import_util_middleware.getSmithyContext)(context); + const path = `/service/${service}/operation/${operation}`; + if (request.path.endsWith("/")) { + request.path += path.slice(1); + } else { + request.path += path; + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + return super.deserializeResponse(operationSchema, context, response); + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const error = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + if (error.includes("#")) { + [namespace] = error.split("#"); + } + const registry = import_schema2.TypeRegistry.for(namespace); + const errorSchema = registry.getSchema(error); + if (!errorSchema) { + throw new Error("schema not found for " + error); + } + const message = dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new errorSchema.ctor(message); + Object.assign(exception, { + $metadata: metadata, + $response: response, + message, + ...dataObject + }); + throw exception; + } +}; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { + CborCodec, + CborShapeDeserializer, + CborShapeSerializer, + SmithyRpcV2CborProtocol, buildHttpRpcRequest, cbor, checkCborResponse, diff --git a/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js b/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js index 455a5de..9a8fa77 100644 --- a/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +++ b/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js @@ -19,8 +19,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru // src/submodules/protocols/index.ts var protocols_exports = {}; __export(protocols_exports, { + FromStringShapeDeserializer: () => FromStringShapeDeserializer, + HttpBindingProtocol: () => HttpBindingProtocol, + HttpInterceptingShapeDeserializer: () => HttpInterceptingShapeDeserializer, + HttpInterceptingShapeSerializer: () => HttpInterceptingShapeSerializer, RequestBuilder: () => RequestBuilder, + RpcProtocol: () => RpcProtocol, + ToStringShapeSerializer: () => ToStringShapeSerializer, collectBody: () => collectBody, + determineTimestampFormat: () => determineTimestampFormat, extendedEncodeURIComponent: () => extendedEncodeURIComponent, requestBuilder: () => requestBuilder, resolvedPath: () => resolvedPath @@ -47,8 +54,419 @@ function extendedEncodeURIComponent(str) { }); } -// src/submodules/protocols/requestBuilder.ts +// src/submodules/protocols/HttpBindingProtocol.ts +var import_schema2 = require("@smithy/core/schema"); +var import_protocol_http2 = require("@smithy/protocol-http"); + +// src/submodules/protocols/HttpProtocol.ts +var import_schema = require("@smithy/core/schema"); +var import_serde = require("@smithy/core/serde"); var import_protocol_http = require("@smithy/protocol-http"); +var import_util_stream2 = require("@smithy/util-stream"); +var HttpProtocol = class { + constructor(options) { + this.options = options; + } + getRequestType() { + return import_protocol_http.HttpRequest; + } + getResponseType() { + return import_protocol_http.HttpResponse; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + this.serializer.setSerdeContext(serdeContext); + this.deserializer.setSerdeContext(serdeContext); + if (this.getPayloadCodec()) { + this.getPayloadCodec().setSerdeContext(serdeContext); + } + } + updateServiceEndpoint(request, endpoint) { + if ("url" in endpoint) { + request.protocol = endpoint.url.protocol; + request.hostname = endpoint.url.hostname; + request.port = endpoint.url.port ? Number(endpoint.url.port) : void 0; + request.path = endpoint.url.pathname; + request.fragment = endpoint.url.hash || void 0; + request.username = endpoint.url.username || void 0; + request.password = endpoint.url.password || void 0; + for (const [k, v] of endpoint.url.searchParams.entries()) { + if (!request.query) { + request.query = {}; + } + request.query[k] = v; + } + return request; + } else { + request.protocol = endpoint.protocol; + request.hostname = endpoint.hostname; + request.port = endpoint.port ? Number(endpoint.port) : void 0; + request.path = endpoint.path; + request.query = { + ...endpoint.query + }; + return request; + } + } + setHostPrefix(request, operationSchema, input) { + const operationNs = import_schema.NormalizedSchema.of(operationSchema); + const inputNs = import_schema.NormalizedSchema.of(operationSchema.input); + if (operationNs.getMergedTraits().endpoint) { + let hostPrefix = operationNs.getMergedTraits().endpoint?.[0]; + if (typeof hostPrefix === "string") { + const hostLabelInputs = [...inputNs.structIterator()].filter( + ([, member]) => member.getMergedTraits().hostLabel + ); + for (const [name] of hostLabelInputs) { + const replacement = input[name]; + if (typeof replacement !== "string") { + throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`); + } + hostPrefix = hostPrefix.replace(`{${name}}`, replacement); + } + request.hostname = hostPrefix + request.hostname; + } + } + } + deserializeMetadata(output) { + return { + httpStatusCode: output.statusCode, + requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"] + }; + } + async deserializeHttpMessage(schema, context, response, arg4, arg5) { + let dataObject; + if (arg4 instanceof Set) { + dataObject = arg5; + } else { + dataObject = arg4; + } + const deserializer = this.deserializer; + const ns = import_schema.NormalizedSchema.of(schema); + const nonHttpBindingMembers = []; + for (const [memberName, memberSchema] of ns.structIterator()) { + const memberTraits = memberSchema.getMemberTraits(); + if (memberTraits.httpPayload) { + const isStreaming = memberSchema.isStreaming(); + if (isStreaming) { + const isEventStream = memberSchema.isStructSchema(); + if (isEventStream) { + const context2 = this.serdeContext; + if (!context2.eventStreamMarshaller) { + throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext."); + } + const memberSchemas = memberSchema.getMemberSchemas(); + dataObject[memberName] = context2.eventStreamMarshaller.deserialize(response.body, async (event) => { + const unionMember = Object.keys(event).find((key) => { + return key !== "__type"; + }) ?? ""; + if (unionMember in memberSchemas) { + const eventStreamSchema = memberSchemas[unionMember]; + return { + [unionMember]: await deserializer.read(eventStreamSchema, event[unionMember].body) + }; + } else { + return { + $unknown: event + }; + } + }); + } else { + dataObject[memberName] = (0, import_util_stream2.sdkStreamMixin)(response.body); + } + } else if (response.body) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + dataObject[memberName] = await deserializer.read(memberSchema, bytes); + } + } + } else if (memberTraits.httpHeader) { + const key = String(memberTraits.httpHeader).toLowerCase(); + const value = response.headers[key]; + if (null != value) { + if (memberSchema.isListSchema()) { + const headerListValueSchema = memberSchema.getValueSchema(); + let sections; + if (headerListValueSchema.isTimestampSchema() && headerListValueSchema.getSchema() === import_schema.SCHEMA.TIMESTAMP_DEFAULT) { + sections = (0, import_serde.splitEvery)(value, ",", 2); + } else { + sections = (0, import_serde.splitHeader)(value); + } + const list = []; + for (const section of sections) { + list.push(await deserializer.read([headerListValueSchema, { httpHeader: key }], section.trim())); + } + dataObject[memberName] = list; + } else { + dataObject[memberName] = await deserializer.read(memberSchema, value); + } + } + } else if (memberTraits.httpPrefixHeaders !== void 0) { + dataObject[memberName] = {}; + for (const [header, value] of Object.entries(response.headers)) { + if (header.startsWith(memberTraits.httpPrefixHeaders)) { + dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read( + [memberSchema.getValueSchema(), { httpHeader: header }], + value + ); + } + } + } else if (memberTraits.httpResponseCode) { + dataObject[memberName] = response.statusCode; + } else { + nonHttpBindingMembers.push(memberName); + } + } + return nonHttpBindingMembers; + } +}; + +// src/submodules/protocols/HttpBindingProtocol.ts +var HttpBindingProtocol = class extends HttpProtocol { + async serializeRequest(operationSchema, input, context) { + const serializer = this.serializer; + const query = {}; + const headers = {}; + const endpoint = await context.endpoint(); + const ns = import_schema2.NormalizedSchema.of(operationSchema?.input); + const schema = ns.getSchema(); + let hasNonHttpBindingMember = false; + let payload; + const request = new import_protocol_http2.HttpRequest({ + protocol: "", + hostname: "", + port: void 0, + path: "", + fragment: void 0, + query, + headers, + body: void 0 + }); + if (endpoint) { + this.updateServiceEndpoint(request, endpoint); + this.setHostPrefix(request, operationSchema, input); + const opTraits = import_schema2.NormalizedSchema.translateTraits(operationSchema.traits); + if (opTraits.http) { + request.method = opTraits.http[0]; + const [path, search] = opTraits.http[1].split("?"); + if (request.path == "/") { + request.path = path; + } else { + request.path += path; + } + const traitSearchParams = new URLSearchParams(search ?? ""); + Object.assign(query, Object.fromEntries(traitSearchParams)); + } + } + const _input = { + ...input + }; + for (const memberName of Object.keys(_input)) { + const memberNs = ns.getMemberSchema(memberName); + if (memberNs === void 0) { + continue; + } + const memberTraits = memberNs.getMergedTraits(); + const inputMember = _input[memberName]; + if (memberTraits.httpPayload) { + const isStreaming = memberNs.isStreaming(); + if (isStreaming) { + const isEventStream = memberNs.isStructSchema(); + if (isEventStream) { + throw new Error("serialization of event streams is not yet implemented"); + } else { + payload = inputMember; + } + } else { + serializer.write(memberNs, inputMember); + payload = serializer.flush(); + } + } else if (memberTraits.httpLabel) { + serializer.write(memberNs, inputMember); + const replacement = serializer.flush(); + if (request.path.includes(`{${memberName}+}`)) { + request.path = request.path.replace( + `{${memberName}+}`, + replacement.split("/").map(extendedEncodeURIComponent).join("/") + ); + } else if (request.path.includes(`{${memberName}}`)) { + request.path = request.path.replace(`{${memberName}}`, extendedEncodeURIComponent(replacement)); + } + delete _input[memberName]; + } else if (memberTraits.httpHeader) { + serializer.write(memberNs, inputMember); + headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush()); + delete _input[memberName]; + } else if (typeof memberTraits.httpPrefixHeaders === "string") { + for (const [key, val] of Object.entries(inputMember)) { + const amalgam = memberTraits.httpPrefixHeaders + key; + serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val); + headers[amalgam.toLowerCase()] = serializer.flush(); + } + delete _input[memberName]; + } else if (memberTraits.httpQuery || memberTraits.httpQueryParams) { + this.serializeQuery(memberNs, inputMember, query); + delete _input[memberName]; + } else { + hasNonHttpBindingMember = true; + } + } + if (hasNonHttpBindingMember && input) { + serializer.write(schema, _input); + payload = serializer.flush(); + } + request.headers = headers; + request.query = query; + request.body = payload; + return request; + } + serializeQuery(ns, data, query) { + const serializer = this.serializer; + const traits = ns.getMergedTraits(); + if (traits.httpQueryParams) { + for (const [key, val] of Object.entries(data)) { + if (!(key in query)) { + this.serializeQuery( + import_schema2.NormalizedSchema.of([ + ns.getValueSchema(), + { + // We pass on the traits to the sub-schema + // because we are still in the process of serializing the map itself. + ...traits, + httpQuery: key, + httpQueryParams: void 0 + } + ]), + val, + query + ); + } + } + return; + } + if (ns.isListSchema()) { + const sparse = !!ns.getMergedTraits().sparse; + const buffer = []; + for (const item of data) { + serializer.write([ns.getValueSchema(), traits], item); + const serializable = serializer.flush(); + if (sparse || serializable !== void 0) { + buffer.push(serializable); + } + } + query[traits.httpQuery] = buffer; + } else { + serializer.write([ns, traits], data); + query[traits.httpQuery] = serializer.flush(); + } + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = import_schema2.NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(import_schema2.SCHEMA.DOCUMENT, bytes)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw."); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject); + if (nonHttpBindingMembers.length) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + const dataFromBody = await deserializer.read(ns, bytes); + for (const member of nonHttpBindingMembers) { + dataObject[member] = dataFromBody[member]; + } + } + } + const output = { + $metadata: this.deserializeMetadata(response), + ...dataObject + }; + return output; + } +}; + +// src/submodules/protocols/RpcProtocol.ts +var import_schema3 = require("@smithy/core/schema"); +var import_protocol_http3 = require("@smithy/protocol-http"); +var RpcProtocol = class extends HttpProtocol { + async serializeRequest(operationSchema, input, context) { + const serializer = this.serializer; + const query = {}; + const headers = {}; + const endpoint = await context.endpoint(); + const ns = import_schema3.NormalizedSchema.of(operationSchema?.input); + const schema = ns.getSchema(); + let payload; + const request = new import_protocol_http3.HttpRequest({ + protocol: "", + hostname: "", + port: void 0, + path: "/", + fragment: void 0, + query, + headers, + body: void 0 + }); + if (endpoint) { + this.updateServiceEndpoint(request, endpoint); + this.setHostPrefix(request, operationSchema, input); + } + const _input = { + ...input + }; + if (input) { + serializer.write(schema, _input); + payload = serializer.flush(); + } + request.headers = headers; + request.query = query; + request.body = payload; + request.method = "POST"; + return request; + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = import_schema3.NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes2 = await collectBody(response.body, context); + if (bytes2.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(import_schema3.SCHEMA.DOCUMENT, bytes2)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw."); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(ns, bytes)); + } + const output = { + $metadata: this.deserializeMetadata(response), + ...dataObject + }; + return output; + } +}; + +// src/submodules/protocols/requestBuilder.ts +var import_protocol_http4 = require("@smithy/protocol-http"); // src/submodules/protocols/resolve-path.ts var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { @@ -89,7 +507,7 @@ var RequestBuilder = class { for (const resolvePath of this.resolvePathStack) { resolvePath(this.path); } - return new import_protocol_http.HttpRequest({ + return new import_protocol_http4.HttpRequest({ protocol, hostname: this.hostname || hostname, port, @@ -154,10 +572,258 @@ var RequestBuilder = class { return this; } }; + +// src/submodules/protocols/serde/FromStringShapeDeserializer.ts +var import_schema5 = require("@smithy/core/schema"); +var import_serde2 = require("@smithy/core/serde"); +var import_util_base64 = require("@smithy/util-base64"); +var import_util_utf8 = require("@smithy/util-utf8"); + +// src/submodules/protocols/serde/determineTimestampFormat.ts +var import_schema4 = require("@smithy/core/schema"); +function determineTimestampFormat(ns, settings) { + if (settings.timestampFormat.useTrait) { + if (ns.isTimestampSchema() && (ns.getSchema() === import_schema4.SCHEMA.TIMESTAMP_DATE_TIME || ns.getSchema() === import_schema4.SCHEMA.TIMESTAMP_HTTP_DATE || ns.getSchema() === import_schema4.SCHEMA.TIMESTAMP_EPOCH_SECONDS)) { + return ns.getSchema(); + } + } + const { httpLabel, httpPrefixHeaders, httpHeader, httpQuery } = ns.getMergedTraits(); + const bindingFormat = settings.httpBindings ? typeof httpPrefixHeaders === "string" || Boolean(httpHeader) ? import_schema4.SCHEMA.TIMESTAMP_HTTP_DATE : Boolean(httpQuery) || Boolean(httpLabel) ? import_schema4.SCHEMA.TIMESTAMP_DATE_TIME : void 0 : void 0; + return bindingFormat ?? settings.timestampFormat.default; +} + +// src/submodules/protocols/serde/FromStringShapeDeserializer.ts +var FromStringShapeDeserializer = class { + constructor(settings) { + this.settings = settings; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } + read(_schema, data) { + const ns = import_schema5.NormalizedSchema.of(_schema); + if (ns.isListSchema()) { + return (0, import_serde2.splitHeader)(data).map((item) => this.read(ns.getValueSchema(), item)); + } + if (ns.isBlobSchema()) { + return (this.serdeContext?.base64Decoder ?? import_util_base64.fromBase64)(data); + } + if (ns.isTimestampSchema()) { + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case import_schema5.SCHEMA.TIMESTAMP_DATE_TIME: + return (0, import_serde2.parseRfc3339DateTimeWithOffset)(data); + case import_schema5.SCHEMA.TIMESTAMP_HTTP_DATE: + return (0, import_serde2.parseRfc7231DateTime)(data); + case import_schema5.SCHEMA.TIMESTAMP_EPOCH_SECONDS: + return (0, import_serde2.parseEpochTimestamp)(data); + default: + console.warn("Missing timestamp format, parsing value with Date constructor:", data); + return new Date(data); + } + } + if (ns.isStringSchema()) { + const mediaType = ns.getMergedTraits().mediaType; + let intermediateValue = data; + if (mediaType) { + if (ns.getMergedTraits().httpHeader) { + intermediateValue = this.base64ToUtf8(intermediateValue); + } + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + intermediateValue = import_serde2.LazyJsonString.from(intermediateValue); + } + return intermediateValue; + } + } + switch (true) { + case ns.isNumericSchema(): + return Number(data); + case ns.isBigIntegerSchema(): + return BigInt(data); + case ns.isBigDecimalSchema(): + return new import_serde2.NumericValue(data, "bigDecimal"); + case ns.isBooleanSchema(): + return String(data).toLowerCase() === "true"; + } + return data; + } + base64ToUtf8(base64String) { + return (this.serdeContext?.utf8Encoder ?? import_util_utf8.toUtf8)((this.serdeContext?.base64Decoder ?? import_util_base64.fromBase64)(base64String)); + } +}; + +// src/submodules/protocols/serde/HttpInterceptingShapeDeserializer.ts +var import_schema6 = require("@smithy/core/schema"); +var import_util_utf82 = require("@smithy/util-utf8"); +var HttpInterceptingShapeDeserializer = class { + constructor(codecDeserializer, codecSettings) { + this.codecDeserializer = codecDeserializer; + this.stringDeserializer = new FromStringShapeDeserializer(codecSettings); + } + setSerdeContext(serdeContext) { + this.stringDeserializer.setSerdeContext(serdeContext); + this.codecDeserializer.setSerdeContext(serdeContext); + this.serdeContext = serdeContext; + } + read(schema, data) { + const ns = import_schema6.NormalizedSchema.of(schema); + const traits = ns.getMergedTraits(); + const toString = this.serdeContext?.utf8Encoder ?? import_util_utf82.toUtf8; + if (traits.httpHeader || traits.httpResponseCode) { + return this.stringDeserializer.read(ns, toString(data)); + } + if (traits.httpPayload) { + if (ns.isBlobSchema()) { + const toBytes = this.serdeContext?.utf8Decoder ?? import_util_utf82.fromUtf8; + if (typeof data === "string") { + return toBytes(data); + } + return data; + } else if (ns.isStringSchema()) { + if ("byteLength" in data) { + return toString(data); + } + return data; + } + } + return this.codecDeserializer.read(ns, data); + } +}; + +// src/submodules/protocols/serde/HttpInterceptingShapeSerializer.ts +var import_schema8 = require("@smithy/core/schema"); + +// src/submodules/protocols/serde/ToStringShapeSerializer.ts +var import_schema7 = require("@smithy/core/schema"); +var import_serde3 = require("@smithy/core/serde"); +var import_util_base642 = require("@smithy/util-base64"); +var ToStringShapeSerializer = class { + constructor(settings) { + this.settings = settings; + this.stringBuffer = ""; + this.serdeContext = void 0; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } + write(schema, value) { + const ns = import_schema7.NormalizedSchema.of(schema); + switch (typeof value) { + case "object": + if (value === null) { + this.stringBuffer = "null"; + return; + } + if (ns.isTimestampSchema()) { + if (!(value instanceof Date)) { + throw new Error( + `@smithy/core/protocols - received non-Date value ${value} when schema expected Date in ${ns.getName(true)}` + ); + } + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case import_schema7.SCHEMA.TIMESTAMP_DATE_TIME: + this.stringBuffer = value.toISOString().replace(".000Z", "Z"); + break; + case import_schema7.SCHEMA.TIMESTAMP_HTTP_DATE: + this.stringBuffer = (0, import_serde3.dateToUtcString)(value); + break; + case import_schema7.SCHEMA.TIMESTAMP_EPOCH_SECONDS: + this.stringBuffer = String(value.getTime() / 1e3); + break; + default: + console.warn("Missing timestamp format, using epoch seconds", value); + this.stringBuffer = String(value.getTime() / 1e3); + } + return; + } + if (ns.isBlobSchema() && "byteLength" in value) { + this.stringBuffer = (this.serdeContext?.base64Encoder ?? import_util_base642.toBase64)(value); + return; + } + if (ns.isListSchema() && Array.isArray(value)) { + let buffer = ""; + for (const item of value) { + this.write([ns.getValueSchema(), ns.getMergedTraits()], item); + const headerItem = this.flush(); + const serialized = ns.getValueSchema().isTimestampSchema() ? headerItem : (0, import_serde3.quoteHeader)(headerItem); + if (buffer !== "") { + buffer += ", "; + } + buffer += serialized; + } + this.stringBuffer = buffer; + return; + } + this.stringBuffer = JSON.stringify(value, null, 2); + break; + case "string": + const mediaType = ns.getMergedTraits().mediaType; + let intermediateValue = value; + if (mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + intermediateValue = import_serde3.LazyJsonString.from(intermediateValue); + } + if (ns.getMergedTraits().httpHeader) { + this.stringBuffer = (this.serdeContext?.base64Encoder ?? import_util_base642.toBase64)(intermediateValue.toString()); + return; + } + } + this.stringBuffer = value; + break; + default: + this.stringBuffer = String(value); + } + } + flush() { + const buffer = this.stringBuffer; + this.stringBuffer = ""; + return buffer; + } +}; + +// src/submodules/protocols/serde/HttpInterceptingShapeSerializer.ts +var HttpInterceptingShapeSerializer = class { + constructor(codecSerializer, codecSettings, stringSerializer = new ToStringShapeSerializer(codecSettings)) { + this.codecSerializer = codecSerializer; + this.stringSerializer = stringSerializer; + } + setSerdeContext(serdeContext) { + this.codecSerializer.setSerdeContext(serdeContext); + this.stringSerializer.setSerdeContext(serdeContext); + } + write(schema, value) { + const ns = import_schema8.NormalizedSchema.of(schema); + const traits = ns.getMergedTraits(); + if (traits.httpHeader || traits.httpLabel || traits.httpQuery) { + this.stringSerializer.write(ns, value); + this.buffer = this.stringSerializer.flush(); + return; + } + return this.codecSerializer.write(ns, value); + } + flush() { + if (this.buffer !== void 0) { + const buffer = this.buffer; + this.buffer = void 0; + return buffer; + } + return this.codecSerializer.flush(); + } +}; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { + FromStringShapeDeserializer, + HttpBindingProtocol, + HttpInterceptingShapeDeserializer, + HttpInterceptingShapeSerializer, RequestBuilder, + RpcProtocol, + ToStringShapeSerializer, collectBody, + determineTimestampFormat, extendedEncodeURIComponent, requestBuilder, resolvedPath diff --git a/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js b/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js new file mode 100644 index 0000000..68f27d8 --- /dev/null +++ b/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js @@ -0,0 +1,774 @@ +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/submodules/schema/index.ts +var schema_exports = {}; +__export(schema_exports, { + ErrorSchema: () => ErrorSchema, + ListSchema: () => ListSchema, + MapSchema: () => MapSchema, + NormalizedSchema: () => NormalizedSchema, + OperationSchema: () => OperationSchema, + SCHEMA: () => SCHEMA, + Schema: () => Schema, + SimpleSchema: () => SimpleSchema, + StructureSchema: () => StructureSchema, + TypeRegistry: () => TypeRegistry, + deref: () => deref, + deserializerMiddlewareOption: () => deserializerMiddlewareOption, + error: () => error, + getSchemaSerdePlugin: () => getSchemaSerdePlugin, + list: () => list, + map: () => map, + op: () => op, + serializerMiddlewareOption: () => serializerMiddlewareOption, + sim: () => sim, + struct: () => struct +}); +module.exports = __toCommonJS(schema_exports); + +// src/submodules/schema/deref.ts +var deref = (schemaRef) => { + if (typeof schemaRef === "function") { + return schemaRef(); + } + return schemaRef; +}; + +// src/submodules/schema/middleware/schemaDeserializationMiddleware.ts +var import_protocol_http = require("@smithy/protocol-http"); +var import_util_middleware = require("@smithy/util-middleware"); +var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => { + const { response } = await next(args); + const { operationSchema } = (0, import_util_middleware.getSmithyContext)(context); + try { + const parsed = await config.protocol.deserializeResponse( + operationSchema, + { + ...config, + ...context + }, + response + ); + return { + response, + output: parsed + }; + } catch (error2) { + Object.defineProperty(error2, "$response", { + value: response + }); + if (!("$metadata" in error2)) { + const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; + try { + error2.message += "\n " + hint; + } catch (e) { + if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") { + console.warn(hint); + } else { + context.logger?.warn?.(hint); + } + } + if (typeof error2.$responseBodyText !== "undefined") { + if (error2.$response) { + error2.$response.body = error2.$responseBodyText; + } + } + try { + if (import_protocol_http.HttpResponse.isInstance(response)) { + const { headers = {} } = response; + const headerEntries = Object.entries(headers); + error2.$metadata = { + httpStatusCode: response.statusCode, + requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries), + extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries), + cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries) + }; + } + } catch (e) { + } + } + throw error2; + } +}; +var findHeader = (pattern, headers) => { + return (headers.find(([k]) => { + return k.match(pattern); + }) || [void 0, void 0])[1]; +}; + +// src/submodules/schema/middleware/schemaSerializationMiddleware.ts +var import_util_middleware2 = require("@smithy/util-middleware"); +var schemaSerializationMiddleware = (config) => (next, context) => async (args) => { + const { operationSchema } = (0, import_util_middleware2.getSmithyContext)(context); + const endpoint = context.endpointV2?.url && config.urlParser ? async () => config.urlParser(context.endpointV2.url) : config.endpoint; + const request = await config.protocol.serializeRequest(operationSchema, args.input, { + ...config, + ...context, + endpoint + }); + return next({ + ...args, + request + }); +}; + +// src/submodules/schema/middleware/getSchemaSerdePlugin.ts +var deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true +}; +var serializerMiddlewareOption = { + name: "serializerMiddleware", + step: "serialize", + tags: ["SERIALIZER"], + override: true +}; +function getSchemaSerdePlugin(config) { + return { + applyToStack: (commandStack) => { + commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption); + commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption); + config.protocol.setSerdeContext(config); + } + }; +} + +// src/submodules/schema/TypeRegistry.ts +var TypeRegistry = class _TypeRegistry { + constructor(namespace, schemas = /* @__PURE__ */ new Map()) { + this.namespace = namespace; + this.schemas = schemas; + } + static { + this.registries = /* @__PURE__ */ new Map(); + } + /** + * @param namespace - specifier. + * @returns the schema for that namespace, creating it if necessary. + */ + static for(namespace) { + if (!_TypeRegistry.registries.has(namespace)) { + _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace)); + } + return _TypeRegistry.registries.get(namespace); + } + /** + * Adds the given schema to a type registry with the same namespace. + * + * @param shapeId - to be registered. + * @param schema - to be registered. + */ + register(shapeId, schema) { + const qualifiedName = this.normalizeShapeId(shapeId); + const registry = _TypeRegistry.for(this.getNamespace(shapeId)); + registry.schemas.set(qualifiedName, schema); + } + /** + * @param shapeId - query. + * @returns the schema. + */ + getSchema(shapeId) { + const id = this.normalizeShapeId(shapeId); + if (!this.schemas.has(id)) { + throw new Error(`@smithy/core/schema - schema not found for ${id}`); + } + return this.schemas.get(id); + } + /** + * The smithy-typescript code generator generates a synthetic (i.e. unmodeled) base exception, + * because generated SDKs before the introduction of schemas have the notion of a ServiceBaseException, which + * is unique per service/model. + * + * This is generated under a unique prefix that is combined with the service namespace, and this + * method is used to retrieve it. + * + * The base exception synthetic schema is used when an error is returned by a service, but we cannot + * determine what existing schema to use to deserialize it. + * + * @returns the synthetic base exception of the service namespace associated with this registry instance. + */ + getBaseException() { + for (const [id, schema] of this.schemas.entries()) { + if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) { + return schema; + } + } + return void 0; + } + /** + * @param predicate - criterion. + * @returns a schema in this registry matching the predicate. + */ + find(predicate) { + return [...this.schemas.values()].find(predicate); + } + /** + * Unloads the current TypeRegistry. + */ + destroy() { + _TypeRegistry.registries.delete(this.namespace); + this.schemas.clear(); + } + normalizeShapeId(shapeId) { + if (shapeId.includes("#")) { + return shapeId; + } + return this.namespace + "#" + shapeId; + } + getNamespace(shapeId) { + return this.normalizeShapeId(shapeId).split("#")[0]; + } +}; + +// src/submodules/schema/schemas/Schema.ts +var Schema = class { + constructor(name, traits) { + this.name = name; + this.traits = traits; + } +}; + +// src/submodules/schema/schemas/ListSchema.ts +var ListSchema = class extends Schema { + constructor(name, traits, valueSchema) { + super(name, traits); + this.name = name; + this.traits = traits; + this.valueSchema = valueSchema; + } +}; +function list(namespace, name, traits = {}, valueSchema) { + const schema = new ListSchema( + namespace + "#" + name, + traits, + typeof valueSchema === "function" ? valueSchema() : valueSchema + ); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} + +// src/submodules/schema/schemas/MapSchema.ts +var MapSchema = class extends Schema { + constructor(name, traits, keySchema, valueSchema) { + super(name, traits); + this.name = name; + this.traits = traits; + this.keySchema = keySchema; + this.valueSchema = valueSchema; + } +}; +function map(namespace, name, traits = {}, keySchema, valueSchema) { + const schema = new MapSchema( + namespace + "#" + name, + traits, + keySchema, + typeof valueSchema === "function" ? valueSchema() : valueSchema + ); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} + +// src/submodules/schema/schemas/OperationSchema.ts +var OperationSchema = class extends Schema { + constructor(name, traits, input, output) { + super(name, traits); + this.name = name; + this.traits = traits; + this.input = input; + this.output = output; + } +}; +function op(namespace, name, traits = {}, input, output) { + const schema = new OperationSchema(namespace + "#" + name, traits, input, output); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} + +// src/submodules/schema/schemas/StructureSchema.ts +var StructureSchema = class extends Schema { + constructor(name, traits, memberNames, memberList) { + super(name, traits); + this.name = name; + this.traits = traits; + this.memberNames = memberNames; + this.memberList = memberList; + this.members = {}; + for (let i = 0; i < memberNames.length; ++i) { + this.members[memberNames[i]] = Array.isArray(memberList[i]) ? memberList[i] : [memberList[i], 0]; + } + } +}; +function struct(namespace, name, traits, memberNames, memberList) { + const schema = new StructureSchema(namespace + "#" + name, traits, memberNames, memberList); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} + +// src/submodules/schema/schemas/ErrorSchema.ts +var ErrorSchema = class extends StructureSchema { + constructor(name, traits, memberNames, memberList, ctor) { + super(name, traits, memberNames, memberList); + this.name = name; + this.traits = traits; + this.memberNames = memberNames; + this.memberList = memberList; + this.ctor = ctor; + } +}; +function error(namespace, name, traits = {}, memberNames, memberList, ctor) { + const schema = new ErrorSchema(namespace + "#" + name, traits, memberNames, memberList, ctor); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} + +// src/submodules/schema/schemas/sentinels.ts +var SCHEMA = { + BLOB: 21, + // 21 + STREAMING_BLOB: 42, + // 42 + BOOLEAN: 2, + // 2 + STRING: 0, + // 0 + NUMERIC: 1, + // 1 + BIG_INTEGER: 17, + // 17 + BIG_DECIMAL: 19, + // 19 + DOCUMENT: 15, + // 15 + TIMESTAMP_DEFAULT: 4, + // 4 + TIMESTAMP_DATE_TIME: 5, + // 5 + TIMESTAMP_HTTP_DATE: 6, + // 6 + TIMESTAMP_EPOCH_SECONDS: 7, + // 7 + LIST_MODIFIER: 64, + // 64 + MAP_MODIFIER: 128 + // 128 +}; + +// src/submodules/schema/schemas/SimpleSchema.ts +var SimpleSchema = class extends Schema { + constructor(name, schemaRef, traits) { + super(name, traits); + this.name = name; + this.schemaRef = schemaRef; + this.traits = traits; + } +}; +function sim(namespace, name, schemaRef, traits) { + const schema = new SimpleSchema(namespace + "#" + name, schemaRef, traits); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} + +// src/submodules/schema/schemas/NormalizedSchema.ts +var NormalizedSchema = class _NormalizedSchema { + /** + * @param ref - a polymorphic SchemaRef to be dereferenced/normalized. + * @param memberName - optional memberName if this NormalizedSchema should be considered a member schema. + */ + constructor(ref, memberName) { + this.ref = ref; + this.memberName = memberName; + const traitStack = []; + let _ref = ref; + let schema = ref; + this._isMemberSchema = false; + while (Array.isArray(_ref)) { + traitStack.push(_ref[1]); + _ref = _ref[0]; + schema = deref(_ref); + this._isMemberSchema = true; + } + if (traitStack.length > 0) { + this.memberTraits = {}; + for (let i = traitStack.length - 1; i >= 0; --i) { + const traitSet = traitStack[i]; + Object.assign(this.memberTraits, _NormalizedSchema.translateTraits(traitSet)); + } + } else { + this.memberTraits = 0; + } + if (schema instanceof _NormalizedSchema) { + this.name = schema.name; + this.traits = schema.traits; + this._isMemberSchema = schema._isMemberSchema; + this.schema = schema.schema; + this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits()); + this.normalizedTraits = void 0; + this.ref = schema.ref; + this.memberName = memberName ?? schema.memberName; + return; + } + this.schema = deref(schema); + if (this.schema && typeof this.schema === "object") { + this.traits = this.schema?.traits ?? {}; + } else { + this.traits = 0; + } + this.name = (typeof this.schema === "object" ? this.schema?.name : void 0) ?? this.memberName ?? this.getSchemaName(); + if (this._isMemberSchema && !memberName) { + throw new Error( + `@smithy/core/schema - NormalizedSchema member schema ${this.getName(true)} must initialize with memberName argument.` + ); + } + } + /** + * Static constructor that attempts to avoid wrapping a NormalizedSchema within another. + */ + static of(ref, memberName) { + if (ref instanceof _NormalizedSchema) { + return ref; + } + return new _NormalizedSchema(ref, memberName); + } + /** + * @param indicator - numeric indicator for preset trait combination. + * @returns equivalent trait object. + */ + static translateTraits(indicator) { + if (typeof indicator === "object") { + return indicator; + } + indicator = indicator | 0; + const traits = {}; + if ((indicator & 1) === 1) { + traits.httpLabel = 1; + } + if ((indicator >> 1 & 1) === 1) { + traits.idempotent = 1; + } + if ((indicator >> 2 & 1) === 1) { + traits.idempotencyToken = 1; + } + if ((indicator >> 3 & 1) === 1) { + traits.sensitive = 1; + } + if ((indicator >> 4 & 1) === 1) { + traits.httpPayload = 1; + } + if ((indicator >> 5 & 1) === 1) { + traits.httpResponseCode = 1; + } + if ((indicator >> 6 & 1) === 1) { + traits.httpQueryParams = 1; + } + return traits; + } + /** + * Creates a normalized member schema from the given schema and member name. + */ + static memberFrom(memberSchema, memberName) { + if (memberSchema instanceof _NormalizedSchema) { + memberSchema.memberName = memberName; + memberSchema._isMemberSchema = true; + return memberSchema; + } + return new _NormalizedSchema(memberSchema, memberName); + } + /** + * @returns the underlying non-normalized schema. + */ + getSchema() { + if (this.schema instanceof _NormalizedSchema) { + return this.schema = this.schema.getSchema(); + } + if (this.schema instanceof SimpleSchema) { + return deref(this.schema.schemaRef); + } + return deref(this.schema); + } + /** + * @param withNamespace - qualifies the name. + * @returns e.g. `MyShape` or `com.namespace#MyShape`. + */ + getName(withNamespace = false) { + if (!withNamespace) { + if (this.name && this.name.includes("#")) { + return this.name.split("#")[1]; + } + } + return this.name || void 0; + } + /** + * @returns the member name if the schema is a member schema. + * @throws Error when the schema isn't a member schema. + */ + getMemberName() { + if (!this.isMemberSchema()) { + throw new Error(`@smithy/core/schema - cannot get member name on non-member schema: ${this.getName(true)}`); + } + return this.memberName; + } + isMemberSchema() { + return this._isMemberSchema; + } + isUnitSchema() { + return this.getSchema() === "unit"; + } + /** + * boolean methods on this class help control flow in shape serialization and deserialization. + */ + isListSchema() { + const inner = this.getSchema(); + if (typeof inner === "number") { + return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER; + } + return inner instanceof ListSchema; + } + isMapSchema() { + const inner = this.getSchema(); + if (typeof inner === "number") { + return inner >= SCHEMA.MAP_MODIFIER && inner <= 255; + } + return inner instanceof MapSchema; + } + isDocumentSchema() { + return this.getSchema() === SCHEMA.DOCUMENT; + } + isStructSchema() { + const inner = this.getSchema(); + return inner !== null && typeof inner === "object" && "members" in inner || inner instanceof StructureSchema; + } + isBlobSchema() { + return this.getSchema() === SCHEMA.BLOB || this.getSchema() === SCHEMA.STREAMING_BLOB; + } + isTimestampSchema() { + const schema = this.getSchema(); + return typeof schema === "number" && schema >= SCHEMA.TIMESTAMP_DEFAULT && schema <= SCHEMA.TIMESTAMP_EPOCH_SECONDS; + } + isStringSchema() { + return this.getSchema() === SCHEMA.STRING; + } + isBooleanSchema() { + return this.getSchema() === SCHEMA.BOOLEAN; + } + isNumericSchema() { + return this.getSchema() === SCHEMA.NUMERIC; + } + isBigIntegerSchema() { + return this.getSchema() === SCHEMA.BIG_INTEGER; + } + isBigDecimalSchema() { + return this.getSchema() === SCHEMA.BIG_DECIMAL; + } + isStreaming() { + const streaming = !!this.getMergedTraits().streaming; + if (streaming) { + return true; + } + return this.getSchema() === SCHEMA.STREAMING_BLOB; + } + /** + * @returns own traits merged with member traits, where member traits of the same trait key take priority. + * This method is cached. + */ + getMergedTraits() { + if (this.normalizedTraits) { + return this.normalizedTraits; + } + this.normalizedTraits = { + ...this.getOwnTraits(), + ...this.getMemberTraits() + }; + return this.normalizedTraits; + } + /** + * @returns only the member traits. If the schema is not a member, this returns empty. + */ + getMemberTraits() { + return _NormalizedSchema.translateTraits(this.memberTraits); + } + /** + * @returns only the traits inherent to the shape or member target shape if this schema is a member. + * If there are any member traits they are excluded. + */ + getOwnTraits() { + return _NormalizedSchema.translateTraits(this.traits); + } + /** + * @returns the map's key's schema. Returns a dummy Document schema if this schema is a Document. + * + * @throws Error if the schema is not a Map or Document. + */ + getKeySchema() { + if (this.isDocumentSchema()) { + return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "key"); + } + if (!this.isMapSchema()) { + throw new Error(`@smithy/core/schema - cannot get key schema for non-map schema: ${this.getName(true)}`); + } + const schema = this.getSchema(); + if (typeof schema === "number") { + return _NormalizedSchema.memberFrom([63 & schema, 0], "key"); + } + return _NormalizedSchema.memberFrom([schema.keySchema, 0], "key"); + } + /** + * @returns the schema of the map's value or list's member. + * Returns a dummy Document schema if this schema is a Document. + * + * @throws Error if the schema is not a Map, List, nor Document. + */ + getValueSchema() { + const schema = this.getSchema(); + if (typeof schema === "number") { + if (this.isMapSchema()) { + return _NormalizedSchema.memberFrom([63 & schema, 0], "value"); + } else if (this.isListSchema()) { + return _NormalizedSchema.memberFrom([63 & schema, 0], "member"); + } + } + if (schema && typeof schema === "object") { + if (this.isStructSchema()) { + throw new Error(`cannot call getValueSchema() with StructureSchema ${this.getName(true)}`); + } + const collection = schema; + if ("valueSchema" in collection) { + if (this.isMapSchema()) { + return _NormalizedSchema.memberFrom([collection.valueSchema, 0], "value"); + } else if (this.isListSchema()) { + return _NormalizedSchema.memberFrom([collection.valueSchema, 0], "member"); + } + } + } + if (this.isDocumentSchema()) { + return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "value"); + } + throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have a value member.`); + } + /** + * @returns the NormalizedSchema for the given member name. The returned instance will return true for `isMemberSchema()` + * and will have the member name given. + * @param member - which member to retrieve and wrap. + * + * @throws Error if member does not exist or the schema is neither a document nor structure. + * Note that errors are assumed to be structures and unions are considered structures for these purposes. + */ + getMemberSchema(member) { + if (this.isStructSchema()) { + const struct2 = this.getSchema(); + if (!(member in struct2.members)) { + throw new Error( + `@smithy/core/schema - the schema ${this.getName(true)} does not have a member with name=${member}.` + ); + } + return _NormalizedSchema.memberFrom(struct2.members[member], member); + } + if (this.isDocumentSchema()) { + return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], member); + } + throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have members.`); + } + /** + * This can be used for checking the members as a hashmap. + * Prefer the structIterator method for iteration. + * + * This does NOT return list and map members, it is only for structures. + * + * @returns a map of member names to member schemas (normalized). + */ + getMemberSchemas() { + const { schema } = this; + const struct2 = schema; + if (!struct2 || typeof struct2 !== "object") { + return {}; + } + if ("members" in struct2) { + const buffer = {}; + for (const member of struct2.memberNames) { + buffer[member] = this.getMemberSchema(member); + } + return buffer; + } + return {}; + } + /** + * Allows iteration over members of a structure schema. + * Each yield is a pair of the member name and member schema. + * + * This avoids the overhead of calling Object.entries(ns.getMemberSchemas()). + */ + *structIterator() { + if (this.isUnitSchema()) { + return; + } + if (!this.isStructSchema()) { + throw new Error("@smithy/core/schema - cannot acquire structIterator on non-struct schema."); + } + const struct2 = this.getSchema(); + for (let i = 0; i < struct2.memberNames.length; ++i) { + yield [struct2.memberNames[i], _NormalizedSchema.memberFrom([struct2.memberList[i], 0], struct2.memberNames[i])]; + } + } + /** + * @returns a last-resort human-readable name for the schema if it has no other identifiers. + */ + getSchemaName() { + const schema = this.getSchema(); + if (typeof schema === "number") { + const _schema = 63 & schema; + const container = 192 & schema; + const type = Object.entries(SCHEMA).find(([, value]) => { + return value === _schema; + })?.[0] ?? "Unknown"; + switch (container) { + case SCHEMA.MAP_MODIFIER: + return `${type}Map`; + case SCHEMA.LIST_MODIFIER: + return `${type}List`; + case 0: + return type; + } + } + return "Unknown"; + } +}; +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ErrorSchema, + ListSchema, + MapSchema, + NormalizedSchema, + OperationSchema, + SCHEMA, + Schema, + SimpleSchema, + StructureSchema, + TypeRegistry, + deref, + deserializerMiddlewareOption, + error, + getSchemaSerdePlugin, + list, + map, + op, + serializerMiddlewareOption, + sim, + struct +}); diff --git a/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js b/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js index 047fb9b..677da46 100644 --- a/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +++ b/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js @@ -19,11 +19,653 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru // src/submodules/serde/index.ts var serde_exports = {}; __export(serde_exports, { + LazyJsonString: () => LazyJsonString, NumericValue: () => NumericValue, - nv: () => nv + copyDocumentWithTransform: () => copyDocumentWithTransform, + dateToUtcString: () => dateToUtcString, + expectBoolean: () => expectBoolean, + expectByte: () => expectByte, + expectFloat32: () => expectFloat32, + expectInt: () => expectInt, + expectInt32: () => expectInt32, + expectLong: () => expectLong, + expectNonNull: () => expectNonNull, + expectNumber: () => expectNumber, + expectObject: () => expectObject, + expectShort: () => expectShort, + expectString: () => expectString, + expectUnion: () => expectUnion, + handleFloat: () => handleFloat, + limitedParseDouble: () => limitedParseDouble, + limitedParseFloat: () => limitedParseFloat, + limitedParseFloat32: () => limitedParseFloat32, + logger: () => logger, + nv: () => nv, + parseBoolean: () => parseBoolean, + parseEpochTimestamp: () => parseEpochTimestamp, + parseRfc3339DateTime: () => parseRfc3339DateTime, + parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset, + parseRfc7231DateTime: () => parseRfc7231DateTime, + quoteHeader: () => quoteHeader, + splitEvery: () => splitEvery, + splitHeader: () => splitHeader, + strictParseByte: () => strictParseByte, + strictParseDouble: () => strictParseDouble, + strictParseFloat: () => strictParseFloat, + strictParseFloat32: () => strictParseFloat32, + strictParseInt: () => strictParseInt, + strictParseInt32: () => strictParseInt32, + strictParseLong: () => strictParseLong, + strictParseShort: () => strictParseShort }); module.exports = __toCommonJS(serde_exports); +// src/submodules/serde/copyDocumentWithTransform.ts +var import_schema = require("@smithy/core/schema"); +var copyDocumentWithTransform = (source, schemaRef, transform = (_) => _) => { + const ns = import_schema.NormalizedSchema.of(schemaRef); + switch (typeof source) { + case "undefined": + case "boolean": + case "number": + case "string": + case "bigint": + case "symbol": + return transform(source, ns); + case "function": + case "object": + if (source === null) { + return transform(null, ns); + } + if (Array.isArray(source)) { + const newArray = new Array(source.length); + let i = 0; + for (const item of source) { + newArray[i++] = copyDocumentWithTransform(item, ns.getValueSchema(), transform); + } + return transform(newArray, ns); + } + if ("byteLength" in source) { + const newBytes = new Uint8Array(source.byteLength); + newBytes.set(source, 0); + return transform(newBytes, ns); + } + if (source instanceof Date) { + return transform(source, ns); + } + const newObject = {}; + if (ns.isMapSchema()) { + for (const key of Object.keys(source)) { + newObject[key] = copyDocumentWithTransform(source[key], ns.getValueSchema(), transform); + } + } else if (ns.isStructSchema()) { + for (const [key, memberSchema] of ns.structIterator()) { + newObject[key] = copyDocumentWithTransform(source[key], memberSchema, transform); + } + } else if (ns.isDocumentSchema()) { + for (const key of Object.keys(source)) { + newObject[key] = copyDocumentWithTransform(source[key], ns.getValueSchema(), transform); + } + } + return transform(newObject, ns); + default: + return transform(source, ns); + } +}; + +// src/submodules/serde/parse-utils.ts +var parseBoolean = (value) => { + switch (value) { + case "true": + return true; + case "false": + return false; + default: + throw new Error(`Unable to parse boolean value "${value}"`); + } +}; +var expectBoolean = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "number") { + if (value === 0 || value === 1) { + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (value === 0) { + return false; + } + if (value === 1) { + return true; + } + } + if (typeof value === "string") { + const lower = value.toLowerCase(); + if (lower === "false" || lower === "true") { + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (lower === "false") { + return false; + } + if (lower === "true") { + return true; + } + } + if (typeof value === "boolean") { + return value; + } + throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); +}; +var expectNumber = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + const parsed = parseFloat(value); + if (!Number.isNaN(parsed)) { + if (String(parsed) !== String(value)) { + logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + } + return parsed; + } + } + if (typeof value === "number") { + return value; + } + throw new TypeError(`Expected number, got ${typeof value}: ${value}`); +}; +var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); +var expectFloat32 = (value) => { + const expected = expectNumber(value); + if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(`Expected 32-bit float, got ${value}`); + } + } + return expected; +}; +var expectLong = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); +}; +var expectInt = expectLong; +var expectInt32 = (value) => expectSizedInt(value, 32); +var expectShort = (value) => expectSizedInt(value, 16); +var expectByte = (value) => expectSizedInt(value, 8); +var expectSizedInt = (value, size) => { + const expected = expectLong(value); + if (expected !== void 0 && castInt(expected, size) !== expected) { + throw new TypeError(`Expected ${size}-bit integer, got ${value}`); + } + return expected; +}; +var castInt = (value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } +}; +var expectNonNull = (value, location) => { + if (value === null || value === void 0) { + if (location) { + throw new TypeError(`Expected a non-null value for ${location}`); + } + throw new TypeError("Expected a non-null value"); + } + return value; +}; +var expectObject = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "object" && !Array.isArray(value)) { + return value; + } + const receivedType = Array.isArray(value) ? "array" : typeof value; + throw new TypeError(`Expected object, got ${receivedType}: ${value}`); +}; +var expectString = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + return value; + } + if (["boolean", "number", "bigint"].includes(typeof value)) { + logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); + return String(value); + } + throw new TypeError(`Expected string, got ${typeof value}: ${value}`); +}; +var expectUnion = (value) => { + if (value === null || value === void 0) { + return void 0; + } + const asObject = expectObject(value); + const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); + if (setKeys.length === 0) { + throw new TypeError(`Unions must have exactly one non-null member. None were found.`); + } + if (setKeys.length > 1) { + throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); + } + return asObject; +}; +var strictParseDouble = (value) => { + if (typeof value == "string") { + return expectNumber(parseNumber(value)); + } + return expectNumber(value); +}; +var strictParseFloat = strictParseDouble; +var strictParseFloat32 = (value) => { + if (typeof value == "string") { + return expectFloat32(parseNumber(value)); + } + return expectFloat32(value); +}; +var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; +var parseNumber = (value) => { + const matches = value.match(NUMBER_REGEX); + if (matches === null || matches[0].length !== value.length) { + throw new TypeError(`Expected real number, got implicit NaN`); + } + return parseFloat(value); +}; +var limitedParseDouble = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return expectNumber(value); +}; +var handleFloat = limitedParseDouble; +var limitedParseFloat = limitedParseDouble; +var limitedParseFloat32 = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return expectFloat32(value); +}; +var parseFloatString = (value) => { + switch (value) { + case "NaN": + return NaN; + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + default: + throw new Error(`Unable to parse float value: ${value}`); + } +}; +var strictParseLong = (value) => { + if (typeof value === "string") { + return expectLong(parseNumber(value)); + } + return expectLong(value); +}; +var strictParseInt = strictParseLong; +var strictParseInt32 = (value) => { + if (typeof value === "string") { + return expectInt32(parseNumber(value)); + } + return expectInt32(value); +}; +var strictParseShort = (value) => { + if (typeof value === "string") { + return expectShort(parseNumber(value)); + } + return expectShort(value); +}; +var strictParseByte = (value) => { + if (typeof value === "string") { + return expectByte(parseNumber(value)); + } + return expectByte(value); +}; +var stackTraceWarning = (message) => { + return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); +}; +var logger = { + warn: console.warn +}; + +// src/submodules/serde/date-utils.ts +var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; +var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; +function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; + const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; + const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; + const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; + return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; +} +var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); +var parseRfc3339DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const year = strictParseShort(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); +}; +var RFC3339_WITH_OFFSET = new RegExp( + /^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/ +); +var parseRfc3339DateTimeWithOffset = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339_WITH_OFFSET.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; + const year = strictParseShort(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + if (offsetStr.toUpperCase() != "Z") { + date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); + } + return date; +}; +var IMF_FIXDATE = new RegExp( + /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ +); +var RFC_850_DATE = new RegExp( + /^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ +); +var ASC_TIME = new RegExp( + /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/ +); +var parseRfc7231DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-7231 date-times must be expressed as strings"); + } + let match = IMF_FIXDATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return buildDate( + strictParseShort(stripLeadingZeroes(yearStr)), + parseMonthByShortName(monthStr), + parseDateValue(dayStr, "day", 1, 31), + { hours, minutes, seconds, fractionalMilliseconds } + ); + } + match = RFC_850_DATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return adjustRfc850Year( + buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds + }) + ); + } + match = ASC_TIME.exec(value); + if (match) { + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + return buildDate( + strictParseShort(stripLeadingZeroes(yearStr)), + parseMonthByShortName(monthStr), + parseDateValue(dayStr.trimLeft(), "day", 1, 31), + { hours, minutes, seconds, fractionalMilliseconds } + ); + } + throw new TypeError("Invalid RFC-7231 date-time value"); +}; +var parseEpochTimestamp = (value) => { + if (value === null || value === void 0) { + return void 0; + } + let valueAsDouble; + if (typeof value === "number") { + valueAsDouble = value; + } else if (typeof value === "string") { + valueAsDouble = strictParseDouble(value); + } else if (typeof value === "object" && value.tag === 1) { + valueAsDouble = value.value; + } else { + throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); + } + return new Date(Math.round(valueAsDouble * 1e3)); +}; +var buildDate = (year, month, day, time) => { + const adjustedMonth = month - 1; + validateDayOfMonth(year, adjustedMonth, day); + return new Date( + Date.UTC( + year, + adjustedMonth, + day, + parseDateValue(time.hours, "hour", 0, 23), + parseDateValue(time.minutes, "minute", 0, 59), + // seconds can go up to 60 for leap seconds + parseDateValue(time.seconds, "seconds", 0, 60), + parseMilliseconds(time.fractionalMilliseconds) + ) + ); +}; +var parseTwoDigitYear = (value) => { + const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; +}; +var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; +var adjustRfc850Year = (input) => { + if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) { + return new Date( + Date.UTC( + input.getUTCFullYear() - 100, + input.getUTCMonth(), + input.getUTCDate(), + input.getUTCHours(), + input.getUTCMinutes(), + input.getUTCSeconds(), + input.getUTCMilliseconds() + ) + ); + } + return input; +}; +var parseMonthByShortName = (value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(`Invalid month: ${value}`); + } + return monthIdx + 1; +}; +var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +var validateDayOfMonth = (year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); + } +}; +var isLeapYear = (year) => { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); +}; +var parseDateValue = (value, type, lower, upper) => { + const dateVal = strictParseByte(stripLeadingZeroes(value)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); + } + return dateVal; +}; +var parseMilliseconds = (value) => { + if (value === null || value === void 0) { + return 0; + } + return strictParseFloat32("0." + value) * 1e3; +}; +var parseOffsetToMilliseconds = (value) => { + const directionStr = value[0]; + let direction = 1; + if (directionStr == "+") { + direction = 1; + } else if (directionStr == "-") { + direction = -1; + } else { + throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); + } + const hour = Number(value.substring(1, 3)); + const minute = Number(value.substring(4, 6)); + return direction * (hour * 60 + minute) * 60 * 1e3; +}; +var stripLeadingZeroes = (value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === "0") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); +}; + +// src/submodules/serde/lazy-json.ts +var LazyJsonString = function LazyJsonString2(val) { + const str = Object.assign(new String(val), { + deserializeJSON() { + return JSON.parse(String(val)); + }, + toString() { + return String(val); + }, + toJSON() { + return String(val); + } + }); + return str; +}; +LazyJsonString.from = (object) => { + if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) { + return object; + } else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) { + return LazyJsonString(String(object)); + } + return LazyJsonString(JSON.stringify(object)); +}; +LazyJsonString.fromObject = LazyJsonString.from; + +// src/submodules/serde/quote-header.ts +function quoteHeader(part) { + if (part.includes(",") || part.includes('"')) { + part = `"${part.replace(/"/g, '\\"')}"`; + } + return part; +} + +// src/submodules/serde/split-every.ts +function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); + } + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = ""; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === "") { + currentSegment = segments[i]; + } else { + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = ""; + } + } + if (currentSegment !== "") { + compoundSegments.push(currentSegment); + } + return compoundSegments; +} + +// src/submodules/serde/split-header.ts +var splitHeader = (value) => { + const z = value.length; + const values = []; + let withinQuotes = false; + let prevChar = void 0; + let anchor = 0; + for (let i = 0; i < z; ++i) { + const char = value[i]; + switch (char) { + case `"`: + if (prevChar !== "\\") { + withinQuotes = !withinQuotes; + } + break; + case ",": + if (!withinQuotes) { + values.push(value.slice(anchor, i)); + anchor = i + 1; + } + break; + default: + } + prevChar = char; + } + values.push(value.slice(anchor)); + return values.map((v) => { + v = v.trim(); + const z2 = v.length; + if (z2 < 2) { + return v; + } + if (v[0] === `"` && v[z2 - 1] === `"`) { + v = v.slice(1, z2 - 1); + } + return v.replace(/\\"/g, '"'); + }); +}; + // src/submodules/serde/value/NumericValue.ts var NumericValue = class { constructor(string, type) { @@ -36,6 +678,42 @@ function nv(string) { } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { + LazyJsonString, NumericValue, - nv + copyDocumentWithTransform, + dateToUtcString, + expectBoolean, + expectByte, + expectFloat32, + expectInt, + expectInt32, + expectLong, + expectNonNull, + expectNumber, + expectObject, + expectShort, + expectString, + expectUnion, + handleFloat, + limitedParseDouble, + limitedParseFloat, + limitedParseFloat32, + logger, + nv, + parseBoolean, + parseEpochTimestamp, + parseRfc3339DateTime, + parseRfc3339DateTimeWithOffset, + parseRfc7231DateTime, + quoteHeader, + splitEvery, + splitHeader, + strictParseByte, + strictParseDouble, + strictParseFloat, + strictParseFloat32, + strictParseInt, + strictParseInt32, + strictParseLong, + strictParseShort }); diff --git a/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js b/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js new file mode 100644 index 0000000..2ff5677 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js @@ -0,0 +1,136 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +import { copyDocumentWithTransform, parseEpochTimestamp } from "@smithy/core/serde"; +import { cbor } from "./cbor"; +import { dateToTag } from "./parseCborBody"; +export class CborCodec { + createSerializer() { + const serializer = new CborShapeSerializer(); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new CborShapeDeserializer(); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } +} +export class CborShapeSerializer { + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } + write(schema, value) { + this.value = copyDocumentWithTransform(value, schema, (_, schemaRef) => { + if (_ instanceof Date) { + return dateToTag(_); + } + if (_ instanceof Uint8Array) { + return _; + } + const ns = NormalizedSchema.of(schemaRef); + const sparse = !!ns.getMergedTraits().sparse; + if (ns.isListSchema() && Array.isArray(_)) { + if (!sparse) { + return _.filter((item) => item != null); + } + } + else if (_ && typeof _ === "object") { + const members = ns.getMemberSchemas(); + const isStruct = ns.isStructSchema(); + if (!sparse || isStruct) { + for (const [k, v] of Object.entries(_)) { + const filteredOutByNonSparse = !sparse && v == null; + const filteredOutByUnrecognizedMember = isStruct && !(k in members); + if (filteredOutByNonSparse || filteredOutByUnrecognizedMember) { + delete _[k]; + } + } + return _; + } + } + return _; + }); + } + flush() { + const buffer = cbor.serialize(this.value); + this.value = undefined; + return buffer; + } +} +export class CborShapeDeserializer { + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } + read(schema, bytes) { + const data = cbor.deserialize(bytes); + return this.readValue(schema, data); + } + readValue(_schema, value) { + const ns = NormalizedSchema.of(_schema); + const schema = ns.getSchema(); + if (typeof schema === "number") { + if (ns.isTimestampSchema()) { + return parseEpochTimestamp(value); + } + if (ns.isBlobSchema()) { + return value; + } + } + if (typeof value === "undefined" || + typeof value === "boolean" || + typeof value === "number" || + typeof value === "string" || + typeof value === "bigint" || + typeof value === "symbol") { + return value; + } + else if (typeof value === "function" || typeof value === "object") { + if (value === null) { + return null; + } + if ("byteLength" in value) { + return value; + } + if (value instanceof Date) { + return value; + } + if (ns.isDocumentSchema()) { + return value; + } + if (ns.isListSchema()) { + const newArray = []; + const memberSchema = ns.getValueSchema(); + const sparse = ns.isListSchema() && !!ns.getMergedTraits().sparse; + for (const item of value) { + newArray.push(this.readValue(memberSchema, item)); + if (!sparse && newArray[newArray.length - 1] == null) { + newArray.pop(); + } + } + return newArray; + } + const newObject = {}; + if (ns.isMapSchema()) { + const sparse = ns.getMergedTraits().sparse; + const targetSchema = ns.getValueSchema(); + for (const key of Object.keys(value)) { + newObject[key] = this.readValue(targetSchema, value[key]); + if (newObject[key] == null && !sparse) { + delete newObject[key]; + } + } + } + else if (ns.isStructSchema()) { + for (const [key, memberSchema] of ns.structIterator()) { + newObject[key] = this.readValue(memberSchema, value[key]); + } + } + return newObject; + } + else { + return value; + } + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js b/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js new file mode 100644 index 0000000..2b309b8 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js @@ -0,0 +1,74 @@ +import { RpcProtocol } from "@smithy/core/protocols"; +import { deref, TypeRegistry } from "@smithy/core/schema"; +import { getSmithyContext } from "@smithy/util-middleware"; +import { CborCodec } from "./CborCodec"; +import { loadSmithyRpcV2CborErrorCode } from "./parseCborBody"; +export class SmithyRpcV2CborProtocol extends RpcProtocol { + constructor({ defaultNamespace }) { + super({ defaultNamespace }); + this.codec = new CborCodec(); + this.serializer = this.codec.createSerializer(); + this.deserializer = this.codec.createDeserializer(); + } + getShapeId() { + return "smithy.protocols#rpcv2Cbor"; + } + getPayloadCodec() { + return this.codec; + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + Object.assign(request.headers, { + "content-type": "application/cbor", + "smithy-protocol": "rpc-v2-cbor", + accept: "application/cbor", + }); + if (deref(operationSchema.input) === "unit") { + delete request.body; + delete request.headers["content-type"]; + } + else { + if (!request.body) { + this.serializer.write(15, {}); + request.body = this.serializer.flush(); + } + try { + request.headers["content-length"] = String(request.body.byteLength); + } + catch (e) { } + } + const { service, operation } = getSmithyContext(context); + const path = `/service/${service}/operation/${operation}`; + if (request.path.endsWith("/")) { + request.path += path.slice(1); + } + else { + request.path += path; + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + return super.deserializeResponse(operationSchema, context, response); + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const error = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown"; + let namespace = this.options.defaultNamespace; + if (error.includes("#")) { + [namespace] = error.split("#"); + } + const registry = TypeRegistry.for(namespace); + const errorSchema = registry.getSchema(error); + if (!errorSchema) { + throw new Error("schema not found for " + error); + } + const message = dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new errorSchema.ctor(message); + Object.assign(exception, { + $metadata: metadata, + $response: response, + message, + ...dataObject, + }); + throw exception; + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/cbor/index.js b/node_modules/@smithy/core/dist-es/submodules/cbor/index.js index 0910d27..c53524e 100644 --- a/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +++ b/node_modules/@smithy/core/dist-es/submodules/cbor/index.js @@ -1,3 +1,5 @@ export { cbor } from "./cbor"; +export { tag, tagSymbol } from "./cbor-types"; export * from "./parseCborBody"; -export { tagSymbol, tag } from "./cbor-types"; +export * from "./SmithyRpcV2CborProtocol"; +export * from "./CborCodec"; diff --git a/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js b/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js index 03eeae6..df8b4ee 100644 --- a/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +++ b/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js @@ -50,8 +50,9 @@ export const loadSmithyRpcV2CborErrorCode = (output, data) => { if (data["__type"] !== undefined) { return sanitizeErrorCode(data["__type"]); } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); + const codeKey = Object.keys(data).find((key) => key.toLowerCase() === "code"); + if (codeKey && data[codeKey] !== undefined) { + return sanitizeErrorCode(data[codeKey]); } }; export const checkCborResponse = (response) => { diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js b/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js new file mode 100644 index 0000000..70b36a3 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js @@ -0,0 +1,178 @@ +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { HttpRequest } from "@smithy/protocol-http"; +import { collectBody } from "./collect-stream-body"; +import { extendedEncodeURIComponent } from "./extended-encode-uri-component"; +import { HttpProtocol } from "./HttpProtocol"; +export class HttpBindingProtocol extends HttpProtocol { + async serializeRequest(operationSchema, input, context) { + const serializer = this.serializer; + const query = {}; + const headers = {}; + const endpoint = await context.endpoint(); + const ns = NormalizedSchema.of(operationSchema?.input); + const schema = ns.getSchema(); + let hasNonHttpBindingMember = false; + let payload; + const request = new HttpRequest({ + protocol: "", + hostname: "", + port: undefined, + path: "", + fragment: undefined, + query: query, + headers: headers, + body: undefined, + }); + if (endpoint) { + this.updateServiceEndpoint(request, endpoint); + this.setHostPrefix(request, operationSchema, input); + const opTraits = NormalizedSchema.translateTraits(operationSchema.traits); + if (opTraits.http) { + request.method = opTraits.http[0]; + const [path, search] = opTraits.http[1].split("?"); + if (request.path == "/") { + request.path = path; + } + else { + request.path += path; + } + const traitSearchParams = new URLSearchParams(search ?? ""); + Object.assign(query, Object.fromEntries(traitSearchParams)); + } + } + const _input = { + ...input, + }; + for (const memberName of Object.keys(_input)) { + const memberNs = ns.getMemberSchema(memberName); + if (memberNs === undefined) { + continue; + } + const memberTraits = memberNs.getMergedTraits(); + const inputMember = _input[memberName]; + if (memberTraits.httpPayload) { + const isStreaming = memberNs.isStreaming(); + if (isStreaming) { + const isEventStream = memberNs.isStructSchema(); + if (isEventStream) { + throw new Error("serialization of event streams is not yet implemented"); + } + else { + payload = inputMember; + } + } + else { + serializer.write(memberNs, inputMember); + payload = serializer.flush(); + } + } + else if (memberTraits.httpLabel) { + serializer.write(memberNs, inputMember); + const replacement = serializer.flush(); + if (request.path.includes(`{${memberName}+}`)) { + request.path = request.path.replace(`{${memberName}+}`, replacement.split("/").map(extendedEncodeURIComponent).join("/")); + } + else if (request.path.includes(`{${memberName}}`)) { + request.path = request.path.replace(`{${memberName}}`, extendedEncodeURIComponent(replacement)); + } + delete _input[memberName]; + } + else if (memberTraits.httpHeader) { + serializer.write(memberNs, inputMember); + headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush()); + delete _input[memberName]; + } + else if (typeof memberTraits.httpPrefixHeaders === "string") { + for (const [key, val] of Object.entries(inputMember)) { + const amalgam = memberTraits.httpPrefixHeaders + key; + serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val); + headers[amalgam.toLowerCase()] = serializer.flush(); + } + delete _input[memberName]; + } + else if (memberTraits.httpQuery || memberTraits.httpQueryParams) { + this.serializeQuery(memberNs, inputMember, query); + delete _input[memberName]; + } + else { + hasNonHttpBindingMember = true; + } + } + if (hasNonHttpBindingMember && input) { + serializer.write(schema, _input); + payload = serializer.flush(); + } + request.headers = headers; + request.query = query; + request.body = payload; + return request; + } + serializeQuery(ns, data, query) { + const serializer = this.serializer; + const traits = ns.getMergedTraits(); + if (traits.httpQueryParams) { + for (const [key, val] of Object.entries(data)) { + if (!(key in query)) { + this.serializeQuery(NormalizedSchema.of([ + ns.getValueSchema(), + { + ...traits, + httpQuery: key, + httpQueryParams: undefined, + }, + ]), val, query); + } + } + return; + } + if (ns.isListSchema()) { + const sparse = !!ns.getMergedTraits().sparse; + const buffer = []; + for (const item of data) { + serializer.write([ns.getValueSchema(), traits], item); + const serializable = serializer.flush(); + if (sparse || serializable !== undefined) { + buffer.push(serializable); + } + } + query[traits.httpQuery] = buffer; + } + else { + serializer.write([ns, traits], data); + query[traits.httpQuery] = serializer.flush(); + } + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(SCHEMA.DOCUMENT, bytes)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw."); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject); + if (nonHttpBindingMembers.length) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + const dataFromBody = await deserializer.read(ns, bytes); + for (const member of nonHttpBindingMembers) { + dataObject[member] = dataFromBody[member]; + } + } + } + const output = { + $metadata: this.deserializeMetadata(response), + ...dataObject, + }; + return output; + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js b/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js new file mode 100644 index 0000000..12041d2 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js @@ -0,0 +1,171 @@ +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { splitEvery, splitHeader } from "@smithy/core/serde"; +import { HttpRequest, HttpResponse } from "@smithy/protocol-http"; +import { sdkStreamMixin } from "@smithy/util-stream"; +import { collectBody } from "./collect-stream-body"; +export class HttpProtocol { + constructor(options) { + this.options = options; + } + getRequestType() { + return HttpRequest; + } + getResponseType() { + return HttpResponse; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + this.serializer.setSerdeContext(serdeContext); + this.deserializer.setSerdeContext(serdeContext); + if (this.getPayloadCodec()) { + this.getPayloadCodec().setSerdeContext(serdeContext); + } + } + updateServiceEndpoint(request, endpoint) { + if ("url" in endpoint) { + request.protocol = endpoint.url.protocol; + request.hostname = endpoint.url.hostname; + request.port = endpoint.url.port ? Number(endpoint.url.port) : undefined; + request.path = endpoint.url.pathname; + request.fragment = endpoint.url.hash || void 0; + request.username = endpoint.url.username || void 0; + request.password = endpoint.url.password || void 0; + for (const [k, v] of endpoint.url.searchParams.entries()) { + if (!request.query) { + request.query = {}; + } + request.query[k] = v; + } + return request; + } + else { + request.protocol = endpoint.protocol; + request.hostname = endpoint.hostname; + request.port = endpoint.port ? Number(endpoint.port) : undefined; + request.path = endpoint.path; + request.query = { + ...endpoint.query, + }; + return request; + } + } + setHostPrefix(request, operationSchema, input) { + const operationNs = NormalizedSchema.of(operationSchema); + const inputNs = NormalizedSchema.of(operationSchema.input); + if (operationNs.getMergedTraits().endpoint) { + let hostPrefix = operationNs.getMergedTraits().endpoint?.[0]; + if (typeof hostPrefix === "string") { + const hostLabelInputs = [...inputNs.structIterator()].filter(([, member]) => member.getMergedTraits().hostLabel); + for (const [name] of hostLabelInputs) { + const replacement = input[name]; + if (typeof replacement !== "string") { + throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`); + } + hostPrefix = hostPrefix.replace(`{${name}}`, replacement); + } + request.hostname = hostPrefix + request.hostname; + } + } + } + deserializeMetadata(output) { + return { + httpStatusCode: output.statusCode, + requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], + }; + } + async deserializeHttpMessage(schema, context, response, arg4, arg5) { + let dataObject; + if (arg4 instanceof Set) { + dataObject = arg5; + } + else { + dataObject = arg4; + } + const deserializer = this.deserializer; + const ns = NormalizedSchema.of(schema); + const nonHttpBindingMembers = []; + for (const [memberName, memberSchema] of ns.structIterator()) { + const memberTraits = memberSchema.getMemberTraits(); + if (memberTraits.httpPayload) { + const isStreaming = memberSchema.isStreaming(); + if (isStreaming) { + const isEventStream = memberSchema.isStructSchema(); + if (isEventStream) { + const context = this.serdeContext; + if (!context.eventStreamMarshaller) { + throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext."); + } + const memberSchemas = memberSchema.getMemberSchemas(); + dataObject[memberName] = context.eventStreamMarshaller.deserialize(response.body, async (event) => { + const unionMember = Object.keys(event).find((key) => { + return key !== "__type"; + }) ?? ""; + if (unionMember in memberSchemas) { + const eventStreamSchema = memberSchemas[unionMember]; + return { + [unionMember]: await deserializer.read(eventStreamSchema, event[unionMember].body), + }; + } + else { + return { + $unknown: event, + }; + } + }); + } + else { + dataObject[memberName] = sdkStreamMixin(response.body); + } + } + else if (response.body) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + dataObject[memberName] = await deserializer.read(memberSchema, bytes); + } + } + } + else if (memberTraits.httpHeader) { + const key = String(memberTraits.httpHeader).toLowerCase(); + const value = response.headers[key]; + if (null != value) { + if (memberSchema.isListSchema()) { + const headerListValueSchema = memberSchema.getValueSchema(); + let sections; + if (headerListValueSchema.isTimestampSchema() && + headerListValueSchema.getSchema() === SCHEMA.TIMESTAMP_DEFAULT) { + sections = splitEvery(value, ",", 2); + } + else { + sections = splitHeader(value); + } + const list = []; + for (const section of sections) { + list.push(await deserializer.read([headerListValueSchema, { httpHeader: key }], section.trim())); + } + dataObject[memberName] = list; + } + else { + dataObject[memberName] = await deserializer.read(memberSchema, value); + } + } + } + else if (memberTraits.httpPrefixHeaders !== undefined) { + dataObject[memberName] = {}; + for (const [header, value] of Object.entries(response.headers)) { + if (header.startsWith(memberTraits.httpPrefixHeaders)) { + dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read([memberSchema.getValueSchema(), { httpHeader: header }], value); + } + } + } + else if (memberTraits.httpResponseCode) { + dataObject[memberName] = response.statusCode; + } + else { + nonHttpBindingMembers.push(memberName); + } + } + return nonHttpBindingMembers; + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js b/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js new file mode 100644 index 0000000..bb716a2 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js @@ -0,0 +1,68 @@ +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { HttpRequest } from "@smithy/protocol-http"; +import { collectBody } from "./collect-stream-body"; +import { HttpProtocol } from "./HttpProtocol"; +export class RpcProtocol extends HttpProtocol { + async serializeRequest(operationSchema, input, context) { + const serializer = this.serializer; + const query = {}; + const headers = {}; + const endpoint = await context.endpoint(); + const ns = NormalizedSchema.of(operationSchema?.input); + const schema = ns.getSchema(); + let payload; + const request = new HttpRequest({ + protocol: "", + hostname: "", + port: undefined, + path: "/", + fragment: undefined, + query: query, + headers: headers, + body: undefined, + }); + if (endpoint) { + this.updateServiceEndpoint(request, endpoint); + this.setHostPrefix(request, operationSchema, input); + } + const _input = { + ...input, + }; + if (input) { + serializer.write(schema, _input); + payload = serializer.flush(); + } + request.headers = headers; + request.query = query; + request.body = payload; + request.method = "POST"; + return request; + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(SCHEMA.DOCUMENT, bytes)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw."); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(ns, bytes)); + } + const output = { + $metadata: this.deserializeMetadata(response), + ...dataObject, + }; + return output; + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/index.js b/node_modules/@smithy/core/dist-es/submodules/protocols/index.js index a5de22f..33a857e 100644 --- a/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/index.js @@ -1,4 +1,11 @@ export * from "./collect-stream-body"; export * from "./extended-encode-uri-component"; +export * from "./HttpBindingProtocol"; +export * from "./RpcProtocol"; export * from "./requestBuilder"; export * from "./resolve-path"; +export * from "./serde/FromStringShapeDeserializer"; +export * from "./serde/HttpInterceptingShapeDeserializer"; +export * from "./serde/HttpInterceptingShapeSerializer"; +export * from "./serde/ToStringShapeSerializer"; +export * from "./serde/determineTimestampFormat"; diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js new file mode 100644 index 0000000..5a81e20 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js @@ -0,0 +1,64 @@ +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, splitHeader, } from "@smithy/core/serde"; +import { fromBase64 } from "@smithy/util-base64"; +import { toUtf8 } from "@smithy/util-utf8"; +import { determineTimestampFormat } from "./determineTimestampFormat"; +export class FromStringShapeDeserializer { + constructor(settings) { + this.settings = settings; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } + read(_schema, data) { + const ns = NormalizedSchema.of(_schema); + if (ns.isListSchema()) { + return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item)); + } + if (ns.isBlobSchema()) { + return (this.serdeContext?.base64Decoder ?? fromBase64)(data); + } + if (ns.isTimestampSchema()) { + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case SCHEMA.TIMESTAMP_DATE_TIME: + return parseRfc3339DateTimeWithOffset(data); + case SCHEMA.TIMESTAMP_HTTP_DATE: + return parseRfc7231DateTime(data); + case SCHEMA.TIMESTAMP_EPOCH_SECONDS: + return parseEpochTimestamp(data); + default: + console.warn("Missing timestamp format, parsing value with Date constructor:", data); + return new Date(data); + } + } + if (ns.isStringSchema()) { + const mediaType = ns.getMergedTraits().mediaType; + let intermediateValue = data; + if (mediaType) { + if (ns.getMergedTraits().httpHeader) { + intermediateValue = this.base64ToUtf8(intermediateValue); + } + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + intermediateValue = LazyJsonString.from(intermediateValue); + } + return intermediateValue; + } + } + switch (true) { + case ns.isNumericSchema(): + return Number(data); + case ns.isBigIntegerSchema(): + return BigInt(data); + case ns.isBigDecimalSchema(): + return new NumericValue(data, "bigDecimal"); + case ns.isBooleanSchema(): + return String(data).toLowerCase() === "true"; + } + return data; + } + base64ToUtf8(base64String) { + return (this.serdeContext?.utf8Encoder ?? toUtf8)((this.serdeContext?.base64Decoder ?? fromBase64)(base64String)); + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js new file mode 100644 index 0000000..41e2482 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js @@ -0,0 +1,38 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; +import { FromStringShapeDeserializer } from "./FromStringShapeDeserializer"; +export class HttpInterceptingShapeDeserializer { + constructor(codecDeserializer, codecSettings) { + this.codecDeserializer = codecDeserializer; + this.stringDeserializer = new FromStringShapeDeserializer(codecSettings); + } + setSerdeContext(serdeContext) { + this.stringDeserializer.setSerdeContext(serdeContext); + this.codecDeserializer.setSerdeContext(serdeContext); + this.serdeContext = serdeContext; + } + read(schema, data) { + const ns = NormalizedSchema.of(schema); + const traits = ns.getMergedTraits(); + const toString = this.serdeContext?.utf8Encoder ?? toUtf8; + if (traits.httpHeader || traits.httpResponseCode) { + return this.stringDeserializer.read(ns, toString(data)); + } + if (traits.httpPayload) { + if (ns.isBlobSchema()) { + const toBytes = this.serdeContext?.utf8Decoder ?? fromUtf8; + if (typeof data === "string") { + return toBytes(data); + } + return data; + } + else if (ns.isStringSchema()) { + if ("byteLength" in data) { + return toString(data); + } + return data; + } + } + return this.codecDeserializer.read(ns, data); + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js new file mode 100644 index 0000000..a38ab77 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js @@ -0,0 +1,30 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +import { ToStringShapeSerializer } from "./ToStringShapeSerializer"; +export class HttpInterceptingShapeSerializer { + constructor(codecSerializer, codecSettings, stringSerializer = new ToStringShapeSerializer(codecSettings)) { + this.codecSerializer = codecSerializer; + this.stringSerializer = stringSerializer; + } + setSerdeContext(serdeContext) { + this.codecSerializer.setSerdeContext(serdeContext); + this.stringSerializer.setSerdeContext(serdeContext); + } + write(schema, value) { + const ns = NormalizedSchema.of(schema); + const traits = ns.getMergedTraits(); + if (traits.httpHeader || traits.httpLabel || traits.httpQuery) { + this.stringSerializer.write(ns, value); + this.buffer = this.stringSerializer.flush(); + return; + } + return this.codecSerializer.write(ns, value); + } + flush() { + if (this.buffer !== undefined) { + const buffer = this.buffer; + this.buffer = undefined; + return buffer; + } + return this.codecSerializer.flush(); + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js new file mode 100644 index 0000000..3e0605a --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js @@ -0,0 +1,87 @@ +import { NormalizedSchema, SCHEMA } from "@smithy/core/schema"; +import { dateToUtcString, LazyJsonString, quoteHeader } from "@smithy/core/serde"; +import { toBase64 } from "@smithy/util-base64"; +import { determineTimestampFormat } from "./determineTimestampFormat"; +export class ToStringShapeSerializer { + constructor(settings) { + this.settings = settings; + this.stringBuffer = ""; + this.serdeContext = undefined; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } + write(schema, value) { + const ns = NormalizedSchema.of(schema); + switch (typeof value) { + case "object": + if (value === null) { + this.stringBuffer = "null"; + return; + } + if (ns.isTimestampSchema()) { + if (!(value instanceof Date)) { + throw new Error(`@smithy/core/protocols - received non-Date value ${value} when schema expected Date in ${ns.getName(true)}`); + } + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case SCHEMA.TIMESTAMP_DATE_TIME: + this.stringBuffer = value.toISOString().replace(".000Z", "Z"); + break; + case SCHEMA.TIMESTAMP_HTTP_DATE: + this.stringBuffer = dateToUtcString(value); + break; + case SCHEMA.TIMESTAMP_EPOCH_SECONDS: + this.stringBuffer = String(value.getTime() / 1000); + break; + default: + console.warn("Missing timestamp format, using epoch seconds", value); + this.stringBuffer = String(value.getTime() / 1000); + } + return; + } + if (ns.isBlobSchema() && "byteLength" in value) { + this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(value); + return; + } + if (ns.isListSchema() && Array.isArray(value)) { + let buffer = ""; + for (const item of value) { + this.write([ns.getValueSchema(), ns.getMergedTraits()], item); + const headerItem = this.flush(); + const serialized = ns.getValueSchema().isTimestampSchema() ? headerItem : quoteHeader(headerItem); + if (buffer !== "") { + buffer += ", "; + } + buffer += serialized; + } + this.stringBuffer = buffer; + return; + } + this.stringBuffer = JSON.stringify(value, null, 2); + break; + case "string": + const mediaType = ns.getMergedTraits().mediaType; + let intermediateValue = value; + if (mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + intermediateValue = LazyJsonString.from(intermediateValue); + } + if (ns.getMergedTraits().httpHeader) { + this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(intermediateValue.toString()); + return; + } + } + this.stringBuffer = value; + break; + default: + this.stringBuffer = String(value); + } + } + flush() { + const buffer = this.stringBuffer; + this.stringBuffer = ""; + return buffer; + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js new file mode 100644 index 0000000..051044a --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js @@ -0,0 +1,20 @@ +import { SCHEMA } from "@smithy/core/schema"; +export function determineTimestampFormat(ns, settings) { + if (settings.timestampFormat.useTrait) { + if (ns.isTimestampSchema() && + (ns.getSchema() === SCHEMA.TIMESTAMP_DATE_TIME || + ns.getSchema() === SCHEMA.TIMESTAMP_HTTP_DATE || + ns.getSchema() === SCHEMA.TIMESTAMP_EPOCH_SECONDS)) { + return ns.getSchema(); + } + } + const { httpLabel, httpPrefixHeaders, httpHeader, httpQuery } = ns.getMergedTraits(); + const bindingFormat = settings.httpBindings + ? typeof httpPrefixHeaders === "string" || Boolean(httpHeader) + ? SCHEMA.TIMESTAMP_HTTP_DATE + : Boolean(httpQuery) || Boolean(httpLabel) + ? SCHEMA.TIMESTAMP_DATE_TIME + : undefined + : undefined; + return bindingFormat ?? settings.timestampFormat.default; +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js b/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js new file mode 100644 index 0000000..0adf24e --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js @@ -0,0 +1,49 @@ +export class TypeRegistry { + constructor(namespace, schemas = new Map()) { + this.namespace = namespace; + this.schemas = schemas; + } + static for(namespace) { + if (!TypeRegistry.registries.has(namespace)) { + TypeRegistry.registries.set(namespace, new TypeRegistry(namespace)); + } + return TypeRegistry.registries.get(namespace); + } + register(shapeId, schema) { + const qualifiedName = this.normalizeShapeId(shapeId); + const registry = TypeRegistry.for(this.getNamespace(shapeId)); + registry.schemas.set(qualifiedName, schema); + } + getSchema(shapeId) { + const id = this.normalizeShapeId(shapeId); + if (!this.schemas.has(id)) { + throw new Error(`@smithy/core/schema - schema not found for ${id}`); + } + return this.schemas.get(id); + } + getBaseException() { + for (const [id, schema] of this.schemas.entries()) { + if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) { + return schema; + } + } + return undefined; + } + find(predicate) { + return [...this.schemas.values()].find(predicate); + } + destroy() { + TypeRegistry.registries.delete(this.namespace); + this.schemas.clear(); + } + normalizeShapeId(shapeId) { + if (shapeId.includes("#")) { + return shapeId; + } + return this.namespace + "#" + shapeId; + } + getNamespace(shapeId) { + return this.normalizeShapeId(shapeId).split("#")[0]; + } +} +TypeRegistry.registries = new Map(); diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/deref.js b/node_modules/@smithy/core/dist-es/submodules/schema/deref.js new file mode 100644 index 0000000..6004ae3 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/deref.js @@ -0,0 +1,6 @@ +export const deref = (schemaRef) => { + if (typeof schemaRef === "function") { + return schemaRef(); + } + return schemaRef; +}; diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/index.js b/node_modules/@smithy/core/dist-es/submodules/schema/index.js new file mode 100644 index 0000000..994b184 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/index.js @@ -0,0 +1,12 @@ +export * from "./deref"; +export * from "./middleware/getSchemaSerdePlugin"; +export * from "./schemas/ListSchema"; +export * from "./schemas/MapSchema"; +export * from "./schemas/OperationSchema"; +export * from "./schemas/ErrorSchema"; +export * from "./schemas/NormalizedSchema"; +export * from "./schemas/Schema"; +export * from "./schemas/SimpleSchema"; +export * from "./schemas/StructureSchema"; +export * from "./schemas/sentinels"; +export * from "./TypeRegistry"; diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js b/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js new file mode 100644 index 0000000..d8515bc --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js @@ -0,0 +1,23 @@ +import { schemaDeserializationMiddleware } from "./schemaDeserializationMiddleware"; +import { schemaSerializationMiddleware } from "./schemaSerializationMiddleware"; +export const deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true, +}; +export const serializerMiddlewareOption = { + name: "serializerMiddleware", + step: "serialize", + tags: ["SERIALIZER"], + override: true, +}; +export function getSchemaSerdePlugin(config) { + return { + applyToStack: (commandStack) => { + commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption); + commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption); + config.protocol.setSerdeContext(config); + }, + }; +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schema-middleware-types.js b/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schema-middleware-types.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schema-middleware-types.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js b/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js new file mode 100644 index 0000000..6dd969f --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js @@ -0,0 +1,60 @@ +import { HttpResponse } from "@smithy/protocol-http"; +import { getSmithyContext } from "@smithy/util-middleware"; +export const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => { + const { response } = await next(args); + const { operationSchema } = getSmithyContext(context); + try { + const parsed = await config.protocol.deserializeResponse(operationSchema, { + ...config, + ...context, + }, response); + return { + response, + output: parsed, + }; + } + catch (error) { + Object.defineProperty(error, "$response", { + value: response, + }); + if (!("$metadata" in error)) { + const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; + try { + error.message += "\n " + hint; + } + catch (e) { + if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") { + console.warn(hint); + } + else { + context.logger?.warn?.(hint); + } + } + if (typeof error.$responseBodyText !== "undefined") { + if (error.$response) { + error.$response.body = error.$responseBodyText; + } + } + try { + if (HttpResponse.isInstance(response)) { + const { headers = {} } = response; + const headerEntries = Object.entries(headers); + error.$metadata = { + httpStatusCode: response.statusCode, + requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries), + extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries), + cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries), + }; + } + } + catch (e) { + } + } + throw error; + } +}; +const findHeader = (pattern, headers) => { + return (headers.find(([k]) => { + return k.match(pattern); + }) || [void 0, void 1])[1]; +}; diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js b/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js new file mode 100644 index 0000000..918820f --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js @@ -0,0 +1,16 @@ +import { getSmithyContext } from "@smithy/util-middleware"; +export const schemaSerializationMiddleware = (config) => (next, context) => async (args) => { + const { operationSchema } = getSmithyContext(context); + const endpoint = context.endpointV2?.url && config.urlParser + ? async () => config.urlParser(context.endpointV2.url) + : config.endpoint; + const request = await config.protocol.serializeRequest(operationSchema, args.input, { + ...config, + ...context, + endpoint, + }); + return next({ + ...args, + request, + }); +}; diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js new file mode 100644 index 0000000..10c4946 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js @@ -0,0 +1,17 @@ +import { TypeRegistry } from "../TypeRegistry"; +import { StructureSchema } from "./StructureSchema"; +export class ErrorSchema extends StructureSchema { + constructor(name, traits, memberNames, memberList, ctor) { + super(name, traits, memberNames, memberList); + this.name = name; + this.traits = traits; + this.memberNames = memberNames; + this.memberList = memberList; + this.ctor = ctor; + } +} +export function error(namespace, name, traits = {}, memberNames, memberList, ctor) { + const schema = new ErrorSchema(namespace + "#" + name, traits, memberNames, memberList, ctor); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js new file mode 100644 index 0000000..f4c1191 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js @@ -0,0 +1,15 @@ +import { TypeRegistry } from "../TypeRegistry"; +import { Schema } from "./Schema"; +export class ListSchema extends Schema { + constructor(name, traits, valueSchema) { + super(name, traits); + this.name = name; + this.traits = traits; + this.valueSchema = valueSchema; + } +} +export function list(namespace, name, traits = {}, valueSchema) { + const schema = new ListSchema(namespace + "#" + name, traits, typeof valueSchema === "function" ? valueSchema() : valueSchema); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js new file mode 100644 index 0000000..d3a370b --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js @@ -0,0 +1,16 @@ +import { TypeRegistry } from "../TypeRegistry"; +import { Schema } from "./Schema"; +export class MapSchema extends Schema { + constructor(name, traits, keySchema, valueSchema) { + super(name, traits); + this.name = name; + this.traits = traits; + this.keySchema = keySchema; + this.valueSchema = valueSchema; + } +} +export function map(namespace, name, traits = {}, keySchema, valueSchema) { + const schema = new MapSchema(namespace + "#" + name, traits, keySchema, typeof valueSchema === "function" ? valueSchema() : valueSchema); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js new file mode 100644 index 0000000..bf5c086 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js @@ -0,0 +1,294 @@ +import { deref } from "../deref"; +import { ListSchema } from "./ListSchema"; +import { MapSchema } from "./MapSchema"; +import { SCHEMA } from "./sentinels"; +import { SimpleSchema } from "./SimpleSchema"; +import { StructureSchema } from "./StructureSchema"; +export class NormalizedSchema { + constructor(ref, memberName) { + this.ref = ref; + this.memberName = memberName; + const traitStack = []; + let _ref = ref; + let schema = ref; + this._isMemberSchema = false; + while (Array.isArray(_ref)) { + traitStack.push(_ref[1]); + _ref = _ref[0]; + schema = deref(_ref); + this._isMemberSchema = true; + } + if (traitStack.length > 0) { + this.memberTraits = {}; + for (let i = traitStack.length - 1; i >= 0; --i) { + const traitSet = traitStack[i]; + Object.assign(this.memberTraits, NormalizedSchema.translateTraits(traitSet)); + } + } + else { + this.memberTraits = 0; + } + if (schema instanceof NormalizedSchema) { + this.name = schema.name; + this.traits = schema.traits; + this._isMemberSchema = schema._isMemberSchema; + this.schema = schema.schema; + this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits()); + this.normalizedTraits = void 0; + this.ref = schema.ref; + this.memberName = memberName ?? schema.memberName; + return; + } + this.schema = deref(schema); + if (this.schema && typeof this.schema === "object") { + this.traits = this.schema?.traits ?? {}; + } + else { + this.traits = 0; + } + this.name = + (typeof this.schema === "object" ? this.schema?.name : void 0) ?? this.memberName ?? this.getSchemaName(); + if (this._isMemberSchema && !memberName) { + throw new Error(`@smithy/core/schema - NormalizedSchema member schema ${this.getName(true)} must initialize with memberName argument.`); + } + } + static of(ref, memberName) { + if (ref instanceof NormalizedSchema) { + return ref; + } + return new NormalizedSchema(ref, memberName); + } + static translateTraits(indicator) { + if (typeof indicator === "object") { + return indicator; + } + indicator = indicator | 0; + const traits = {}; + if ((indicator & 1) === 1) { + traits.httpLabel = 1; + } + if (((indicator >> 1) & 1) === 1) { + traits.idempotent = 1; + } + if (((indicator >> 2) & 1) === 1) { + traits.idempotencyToken = 1; + } + if (((indicator >> 3) & 1) === 1) { + traits.sensitive = 1; + } + if (((indicator >> 4) & 1) === 1) { + traits.httpPayload = 1; + } + if (((indicator >> 5) & 1) === 1) { + traits.httpResponseCode = 1; + } + if (((indicator >> 6) & 1) === 1) { + traits.httpQueryParams = 1; + } + return traits; + } + static memberFrom(memberSchema, memberName) { + if (memberSchema instanceof NormalizedSchema) { + memberSchema.memberName = memberName; + memberSchema._isMemberSchema = true; + return memberSchema; + } + return new NormalizedSchema(memberSchema, memberName); + } + getSchema() { + if (this.schema instanceof NormalizedSchema) { + return (this.schema = this.schema.getSchema()); + } + if (this.schema instanceof SimpleSchema) { + return deref(this.schema.schemaRef); + } + return deref(this.schema); + } + getName(withNamespace = false) { + if (!withNamespace) { + if (this.name && this.name.includes("#")) { + return this.name.split("#")[1]; + } + } + return this.name || undefined; + } + getMemberName() { + if (!this.isMemberSchema()) { + throw new Error(`@smithy/core/schema - cannot get member name on non-member schema: ${this.getName(true)}`); + } + return this.memberName; + } + isMemberSchema() { + return this._isMemberSchema; + } + isUnitSchema() { + return this.getSchema() === "unit"; + } + isListSchema() { + const inner = this.getSchema(); + if (typeof inner === "number") { + return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER; + } + return inner instanceof ListSchema; + } + isMapSchema() { + const inner = this.getSchema(); + if (typeof inner === "number") { + return inner >= SCHEMA.MAP_MODIFIER && inner <= 255; + } + return inner instanceof MapSchema; + } + isDocumentSchema() { + return this.getSchema() === SCHEMA.DOCUMENT; + } + isStructSchema() { + const inner = this.getSchema(); + return (inner !== null && typeof inner === "object" && "members" in inner) || inner instanceof StructureSchema; + } + isBlobSchema() { + return this.getSchema() === SCHEMA.BLOB || this.getSchema() === SCHEMA.STREAMING_BLOB; + } + isTimestampSchema() { + const schema = this.getSchema(); + return typeof schema === "number" && schema >= SCHEMA.TIMESTAMP_DEFAULT && schema <= SCHEMA.TIMESTAMP_EPOCH_SECONDS; + } + isStringSchema() { + return this.getSchema() === SCHEMA.STRING; + } + isBooleanSchema() { + return this.getSchema() === SCHEMA.BOOLEAN; + } + isNumericSchema() { + return this.getSchema() === SCHEMA.NUMERIC; + } + isBigIntegerSchema() { + return this.getSchema() === SCHEMA.BIG_INTEGER; + } + isBigDecimalSchema() { + return this.getSchema() === SCHEMA.BIG_DECIMAL; + } + isStreaming() { + const streaming = !!this.getMergedTraits().streaming; + if (streaming) { + return true; + } + return this.getSchema() === SCHEMA.STREAMING_BLOB; + } + getMergedTraits() { + if (this.normalizedTraits) { + return this.normalizedTraits; + } + this.normalizedTraits = { + ...this.getOwnTraits(), + ...this.getMemberTraits(), + }; + return this.normalizedTraits; + } + getMemberTraits() { + return NormalizedSchema.translateTraits(this.memberTraits); + } + getOwnTraits() { + return NormalizedSchema.translateTraits(this.traits); + } + getKeySchema() { + if (this.isDocumentSchema()) { + return NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "key"); + } + if (!this.isMapSchema()) { + throw new Error(`@smithy/core/schema - cannot get key schema for non-map schema: ${this.getName(true)}`); + } + const schema = this.getSchema(); + if (typeof schema === "number") { + return NormalizedSchema.memberFrom([63 & schema, 0], "key"); + } + return NormalizedSchema.memberFrom([schema.keySchema, 0], "key"); + } + getValueSchema() { + const schema = this.getSchema(); + if (typeof schema === "number") { + if (this.isMapSchema()) { + return NormalizedSchema.memberFrom([63 & schema, 0], "value"); + } + else if (this.isListSchema()) { + return NormalizedSchema.memberFrom([63 & schema, 0], "member"); + } + } + if (schema && typeof schema === "object") { + if (this.isStructSchema()) { + throw new Error(`cannot call getValueSchema() with StructureSchema ${this.getName(true)}`); + } + const collection = schema; + if ("valueSchema" in collection) { + if (this.isMapSchema()) { + return NormalizedSchema.memberFrom([collection.valueSchema, 0], "value"); + } + else if (this.isListSchema()) { + return NormalizedSchema.memberFrom([collection.valueSchema, 0], "member"); + } + } + } + if (this.isDocumentSchema()) { + return NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "value"); + } + throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have a value member.`); + } + getMemberSchema(member) { + if (this.isStructSchema()) { + const struct = this.getSchema(); + if (!(member in struct.members)) { + throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have a member with name=${member}.`); + } + return NormalizedSchema.memberFrom(struct.members[member], member); + } + if (this.isDocumentSchema()) { + return NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], member); + } + throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have members.`); + } + getMemberSchemas() { + const { schema } = this; + const struct = schema; + if (!struct || typeof struct !== "object") { + return {}; + } + if ("members" in struct) { + const buffer = {}; + for (const member of struct.memberNames) { + buffer[member] = this.getMemberSchema(member); + } + return buffer; + } + return {}; + } + *structIterator() { + if (this.isUnitSchema()) { + return; + } + if (!this.isStructSchema()) { + throw new Error("@smithy/core/schema - cannot acquire structIterator on non-struct schema."); + } + const struct = this.getSchema(); + for (let i = 0; i < struct.memberNames.length; ++i) { + yield [struct.memberNames[i], NormalizedSchema.memberFrom([struct.memberList[i], 0], struct.memberNames[i])]; + } + } + getSchemaName() { + const schema = this.getSchema(); + if (typeof schema === "number") { + const _schema = 63 & schema; + const container = 192 & schema; + const type = Object.entries(SCHEMA).find(([, value]) => { + return value === _schema; + })?.[0] ?? "Unknown"; + switch (container) { + case SCHEMA.MAP_MODIFIER: + return `${type}Map`; + case SCHEMA.LIST_MODIFIER: + return `${type}List`; + case 0: + return type; + } + } + return "Unknown"; + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js new file mode 100644 index 0000000..85b24c7 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js @@ -0,0 +1,16 @@ +import { TypeRegistry } from "../TypeRegistry"; +import { Schema } from "./Schema"; +export class OperationSchema extends Schema { + constructor(name, traits, input, output) { + super(name, traits); + this.name = name; + this.traits = traits; + this.input = input; + this.output = output; + } +} +export function op(namespace, name, traits = {}, input, output) { + const schema = new OperationSchema(namespace + "#" + name, traits, input, output); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js new file mode 100644 index 0000000..562d249 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js @@ -0,0 +1,6 @@ +export class Schema { + constructor(name, traits) { + this.name = name; + this.traits = traits; + } +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js new file mode 100644 index 0000000..c84661b --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js @@ -0,0 +1,15 @@ +import { TypeRegistry } from "../TypeRegistry"; +import { Schema } from "./Schema"; +export class SimpleSchema extends Schema { + constructor(name, schemaRef, traits) { + super(name, traits); + this.name = name; + this.schemaRef = schemaRef; + this.traits = traits; + } +} +export function sim(namespace, name, schemaRef, traits) { + const schema = new SimpleSchema(namespace + "#" + name, schemaRef, traits); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js new file mode 100644 index 0000000..2102f80 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js @@ -0,0 +1,22 @@ +import { TypeRegistry } from "../TypeRegistry"; +import { Schema } from "./Schema"; +export class StructureSchema extends Schema { + constructor(name, traits, memberNames, memberList) { + super(name, traits); + this.name = name; + this.traits = traits; + this.memberNames = memberNames; + this.memberList = memberList; + this.members = {}; + for (let i = 0; i < memberNames.length; ++i) { + this.members[memberNames[i]] = Array.isArray(memberList[i]) + ? memberList[i] + : [memberList[i], 0]; + } + } +} +export function struct(namespace, name, traits, memberNames, memberList) { + const schema = new StructureSchema(namespace + "#" + name, traits, memberNames, memberList); + TypeRegistry.for(namespace).register(name, schema); + return schema; +} diff --git a/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js new file mode 100644 index 0000000..6c64162 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js @@ -0,0 +1,16 @@ +export const SCHEMA = { + BLOB: 21, + STREAMING_BLOB: 42, + BOOLEAN: 2, + STRING: 0, + NUMERIC: 1, + BIG_INTEGER: 17, + BIG_DECIMAL: 19, + DOCUMENT: 15, + TIMESTAMP_DEFAULT: 4, + TIMESTAMP_DATE_TIME: 5, + TIMESTAMP_HTTP_DATE: 6, + TIMESTAMP_EPOCH_SECONDS: 7, + LIST_MODIFIER: 64, + MAP_MODIFIER: 128, +}; diff --git a/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js b/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js new file mode 100644 index 0000000..5b6f0a2 --- /dev/null +++ b/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js @@ -0,0 +1,53 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +export const copyDocumentWithTransform = (source, schemaRef, transform = (_) => _) => { + const ns = NormalizedSchema.of(schemaRef); + switch (typeof source) { + case "undefined": + case "boolean": + case "number": + case "string": + case "bigint": + case "symbol": + return transform(source, ns); + case "function": + case "object": + if (source === null) { + return transform(null, ns); + } + if (Array.isArray(source)) { + const newArray = new Array(source.length); + let i = 0; + for (const item of source) { + newArray[i++] = copyDocumentWithTransform(item, ns.getValueSchema(), transform); + } + return transform(newArray, ns); + } + if ("byteLength" in source) { + const newBytes = new Uint8Array(source.byteLength); + newBytes.set(source, 0); + return transform(newBytes, ns); + } + if (source instanceof Date) { + return transform(source, ns); + } + const newObject = {}; + if (ns.isMapSchema()) { + for (const key of Object.keys(source)) { + newObject[key] = copyDocumentWithTransform(source[key], ns.getValueSchema(), transform); + } + } + else if (ns.isStructSchema()) { + for (const [key, memberSchema] of ns.structIterator()) { + newObject[key] = copyDocumentWithTransform(source[key], memberSchema, transform); + } + } + else if (ns.isDocumentSchema()) { + for (const key of Object.keys(source)) { + newObject[key] = copyDocumentWithTransform(source[key], ns.getValueSchema(), transform); + } + } + return transform(newObject, ns); + default: + return transform(source, ns); + } +}; diff --git a/node_modules/@smithy/smithy-client/dist-es/date-utils.js b/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js similarity index 100% rename from node_modules/@smithy/smithy-client/dist-es/date-utils.js rename to node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js diff --git a/node_modules/@smithy/core/dist-es/submodules/serde/index.js b/node_modules/@smithy/core/dist-es/submodules/serde/index.js index a70d0dd..ae7219a 100644 --- a/node_modules/@smithy/core/dist-es/submodules/serde/index.js +++ b/node_modules/@smithy/core/dist-es/submodules/serde/index.js @@ -1 +1,8 @@ +export * from "./copyDocumentWithTransform"; +export * from "./date-utils"; +export * from "./lazy-json"; +export * from "./parse-utils"; +export * from "./quote-header"; +export * from "./split-every"; +export * from "./split-header"; export * from "./value/NumericValue"; diff --git a/node_modules/@smithy/smithy-client/dist-es/lazy-json.js b/node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js similarity index 100% rename from node_modules/@smithy/smithy-client/dist-es/lazy-json.js rename to node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js diff --git a/node_modules/@smithy/smithy-client/dist-es/parse-utils.js b/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js similarity index 100% rename from node_modules/@smithy/smithy-client/dist-es/parse-utils.js rename to node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js diff --git a/node_modules/@smithy/smithy-client/dist-es/quote-header.js b/node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js similarity index 100% rename from node_modules/@smithy/smithy-client/dist-es/quote-header.js rename to node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js diff --git a/node_modules/@smithy/smithy-client/dist-es/split-every.js b/node_modules/@smithy/core/dist-es/submodules/serde/split-every.js similarity index 100% rename from node_modules/@smithy/smithy-client/dist-es/split-every.js rename to node_modules/@smithy/core/dist-es/submodules/serde/split-every.js diff --git a/node_modules/@smithy/smithy-client/dist-es/split-header.js b/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js similarity index 100% rename from node_modules/@smithy/smithy-client/dist-es/split-header.js rename to node_modules/@smithy/core/dist-es/submodules/serde/split-header.js diff --git a/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts b/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts new file mode 100644 index 0000000..a1f50f6 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts @@ -0,0 +1,29 @@ +import { Codec, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; +/** + * @alpha + */ +export declare class CborCodec implements Codec { + private serdeContext?; + createSerializer(): CborShapeSerializer; + createDeserializer(): CborShapeDeserializer; + setSerdeContext(serdeContext: SerdeFunctions): void; +} +/** + * @alpha + */ +export declare class CborShapeSerializer implements ShapeSerializer { + private serdeContext?; + private value; + setSerdeContext(serdeContext: SerdeFunctions): void; + write(schema: Schema, value: unknown): void; + flush(): Uint8Array; +} +/** + * @alpha + */ +export declare class CborShapeDeserializer implements ShapeDeserializer { + private serdeContext?; + setSerdeContext(serdeContext: SerdeFunctions): void; + read(schema: Schema, bytes: Uint8Array): any; + private readValue; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts b/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts new file mode 100644 index 0000000..097623c --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts @@ -0,0 +1,22 @@ +import { RpcProtocol } from "@smithy/core/protocols"; +import { OperationSchema } from "@smithy/core/schema"; +import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata, SerdeFunctions } from "@smithy/types"; +import { CborCodec } from "./CborCodec"; +/** + * Client protocol for Smithy RPCv2 CBOR. + * + * @alpha + */ +export declare class SmithyRpcV2CborProtocol extends RpcProtocol { + private codec; + protected serializer: import("./CborCodec").CborShapeSerializer; + protected deserializer: import("./CborCodec").CborShapeDeserializer; + constructor({ defaultNamespace }: { + defaultNamespace: string; + }); + getShapeId(): string; + getPayloadCodec(): CborCodec; + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; + protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts b/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts index 0910d27..c53524e 100644 --- a/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +++ b/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts @@ -1,3 +1,5 @@ export { cbor } from "./cbor"; +export { tag, tagSymbol } from "./cbor-types"; export * from "./parseCborBody"; -export { tagSymbol, tag } from "./cbor-types"; +export * from "./SmithyRpcV2CborProtocol"; +export * from "./CborCodec"; diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts new file mode 100644 index 0000000..b9da06d --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts @@ -0,0 +1,15 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +import { HttpRequest } from "@smithy/protocol-http"; +import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, SerdeFunctions } from "@smithy/types"; +import { HttpProtocol } from "./HttpProtocol"; +/** + * Base for HTTP-binding protocols. Downstream examples + * include AWS REST JSON and AWS REST XML. + * + * @alpha + */ +export declare abstract class HttpBindingProtocol extends HttpProtocol { + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + protected serializeQuery(ns: NormalizedSchema, data: any, query: HttpRequest["query"]): void; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts new file mode 100644 index 0000000..352d2ef --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts @@ -0,0 +1,33 @@ +import { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; +/** + * Abstract base for HTTP-based client protocols. + * + * @alpha + */ +export declare abstract class HttpProtocol implements ClientProtocol { + readonly options: { + defaultNamespace: string; + }; + protected abstract serializer: ShapeSerializer; + protected abstract deserializer: ShapeDeserializer; + protected serdeContext?: SerdeFunctions; + protected constructor(options: { + defaultNamespace: string; + }); + abstract getShapeId(): string; + abstract getPayloadCodec(): Codec; + getRequestType(): new (...args: any[]) => IHttpRequest; + getResponseType(): new (...args: any[]) => IHttpResponse; + setSerdeContext(serdeContext: SerdeFunctions): void; + abstract serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + updateServiceEndpoint(request: IHttpRequest, endpoint: EndpointV2 | Endpoint): IHttpRequest; + abstract deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; + protected setHostPrefix(request: IHttpRequest, operationSchema: OperationSchema, input: Input): void; + protected abstract handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise; + protected deserializeMetadata(output: IHttpResponse): ResponseMetadata; + /** + * @deprecated use signature without headerBindings. + */ + protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set, dataObject: any): Promise; + protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts new file mode 100644 index 0000000..acb3805 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts @@ -0,0 +1,11 @@ +import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, SerdeFunctions } from "@smithy/types"; +import { HttpProtocol } from "./HttpProtocol"; +/** + * Abstract base for RPC-over-HTTP protocols. + * + * @alpha + */ +export declare abstract class RpcProtocol extends HttpProtocol { + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts index a5de22f..33a857e 100644 --- a/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts @@ -1,4 +1,11 @@ export * from "./collect-stream-body"; export * from "./extended-encode-uri-component"; +export * from "./HttpBindingProtocol"; +export * from "./RpcProtocol"; export * from "./requestBuilder"; export * from "./resolve-path"; +export * from "./serde/FromStringShapeDeserializer"; +export * from "./serde/HttpInterceptingShapeDeserializer"; +export * from "./serde/HttpInterceptingShapeSerializer"; +export * from "./serde/ToStringShapeSerializer"; +export * from "./serde/determineTimestampFormat"; diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts new file mode 100644 index 0000000..eabe4da --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts @@ -0,0 +1,14 @@ +import { CodecSettings, Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types"; +/** + * This deserializer reads strings. + * + * @alpha + */ +export declare class FromStringShapeDeserializer implements ShapeDeserializer { + private settings; + private serdeContext; + constructor(settings: CodecSettings); + setSerdeContext(serdeContext: SerdeFunctions): void; + read(_schema: Schema, data: string): any; + private base64ToUtf8; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts new file mode 100644 index 0000000..c33ac9e --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts @@ -0,0 +1,18 @@ +import { CodecSettings, Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types"; +/** + * This deserializer is a dispatcher that decides whether to use a string deserializer + * or a codec deserializer based on HTTP traits. + * + * For example, in a JSON HTTP message, the deserialization of a field will differ depending on whether + * it is bound to the HTTP header (string) or body (JSON). + * + * @alpha + */ +export declare class HttpInterceptingShapeDeserializer> implements ShapeDeserializer { + private codecDeserializer; + private stringDeserializer; + private serdeContext; + constructor(codecDeserializer: CodecShapeDeserializer, codecSettings: CodecSettings); + setSerdeContext(serdeContext: SerdeFunctions): void; + read(schema: Schema, data: string | Uint8Array): any | Promise; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts new file mode 100644 index 0000000..bcb6b84 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts @@ -0,0 +1,20 @@ +import { CodecSettings, Schema as ISchema, SerdeFunctions, ShapeSerializer } from "@smithy/types"; +import { ToStringShapeSerializer } from "./ToStringShapeSerializer"; +/** + * This serializer decides whether to dispatch to a string serializer or a codec serializer + * depending on HTTP binding traits within the given schema. + * + * For example, a JavaScript array is serialized differently when being written + * to a REST JSON HTTP header (comma-delimited string) and a REST JSON HTTP body (JSON array). + * + * @alpha + */ +export declare class HttpInterceptingShapeSerializer> implements ShapeSerializer { + private codecSerializer; + private stringSerializer; + private buffer; + constructor(codecSerializer: CodecShapeSerializer, codecSettings: CodecSettings, stringSerializer?: ToStringShapeSerializer); + setSerdeContext(serdeContext: SerdeFunctions): void; + write(schema: ISchema, value: unknown): void; + flush(): string | Uint8Array; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts new file mode 100644 index 0000000..957daf9 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts @@ -0,0 +1,15 @@ +import { CodecSettings, Schema, SerdeFunctions, ShapeSerializer } from "@smithy/types"; +/** + * Serializes a shape to string. + * + * @alpha + */ +export declare class ToStringShapeSerializer implements ShapeSerializer { + private settings; + private stringBuffer; + private serdeContext; + constructor(settings: CodecSettings); + setSerdeContext(serdeContext: SerdeFunctions): void; + write(schema: Schema, value: unknown): void; + flush(): string; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts new file mode 100644 index 0000000..2f38652 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts @@ -0,0 +1,9 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +import { type TimestampDateTimeSchema, type TimestampEpochSecondsSchema, type TimestampHttpDateSchema, CodecSettings } from "@smithy/types"; +/** + * Assuming the schema is a timestamp type, the function resolves the format using + * either the timestamp's own traits, or the default timestamp format from the CodecSettings. + * + * @internal + */ +export declare function determineTimestampFormat(ns: NormalizedSchema, settings: CodecSettings): TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts new file mode 100644 index 0000000..a7c487c --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts @@ -0,0 +1,55 @@ +import type { Schema as ISchema } from "@smithy/types"; +import { ErrorSchema } from "./schemas/ErrorSchema"; +/** + * A way to look up schema by their ShapeId values. + * + * @alpha + */ +export declare class TypeRegistry { + readonly namespace: string; + private schemas; + static readonly registries: Map; + private constructor(); + /** + * @param namespace - specifier. + * @returns the schema for that namespace, creating it if necessary. + */ + static for(namespace: string): TypeRegistry; + /** + * Adds the given schema to a type registry with the same namespace. + * + * @param shapeId - to be registered. + * @param schema - to be registered. + */ + register(shapeId: string, schema: ISchema): void; + /** + * @param shapeId - query. + * @returns the schema. + */ + getSchema(shapeId: string): ISchema; + /** + * The smithy-typescript code generator generates a synthetic (i.e. unmodeled) base exception, + * because generated SDKs before the introduction of schemas have the notion of a ServiceBaseException, which + * is unique per service/model. + * + * This is generated under a unique prefix that is combined with the service namespace, and this + * method is used to retrieve it. + * + * The base exception synthetic schema is used when an error is returned by a service, but we cannot + * determine what existing schema to use to deserialize it. + * + * @returns the synthetic base exception of the service namespace associated with this registry instance. + */ + getBaseException(): ErrorSchema | undefined; + /** + * @param predicate - criterion. + * @returns a schema in this registry matching the predicate. + */ + find(predicate: (schema: ISchema) => boolean): ISchema | undefined; + /** + * Unloads the current TypeRegistry. + */ + destroy(): void; + private normalizeShapeId; + private getNamespace; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/deref.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/deref.d.ts new file mode 100644 index 0000000..397dbc2 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/deref.d.ts @@ -0,0 +1,6 @@ +import type { Schema, SchemaRef } from "@smithy/types"; +/** + * Dereferences a SchemaRef if needed. + * @internal + */ +export declare const deref: (schemaRef: SchemaRef) => Schema; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts new file mode 100644 index 0000000..994b184 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts @@ -0,0 +1,12 @@ +export * from "./deref"; +export * from "./middleware/getSchemaSerdePlugin"; +export * from "./schemas/ListSchema"; +export * from "./schemas/MapSchema"; +export * from "./schemas/OperationSchema"; +export * from "./schemas/ErrorSchema"; +export * from "./schemas/NormalizedSchema"; +export * from "./schemas/Schema"; +export * from "./schemas/SimpleSchema"; +export * from "./schemas/StructureSchema"; +export * from "./schemas/sentinels"; +export * from "./TypeRegistry"; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts new file mode 100644 index 0000000..7311eb3 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts @@ -0,0 +1,14 @@ +import { DeserializeHandlerOptions, MetadataBearer, Pluggable, SerializeHandlerOptions } from "@smithy/types"; +import { PreviouslyResolved } from "./schema-middleware-types"; +/** + * @internal + */ +export declare const deserializerMiddlewareOption: DeserializeHandlerOptions; +/** + * @internal + */ +export declare const serializerMiddlewareOption: SerializeHandlerOptions; +/** + * @internal + */ +export declare function getSchemaSerdePlugin(config: PreviouslyResolved): Pluggable; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schema-middleware-types.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schema-middleware-types.d.ts new file mode 100644 index 0000000..283adb1 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schema-middleware-types.d.ts @@ -0,0 +1,8 @@ +import type { ClientProtocol, SerdeContext, UrlParser } from "@smithy/types"; +/** + * @internal + */ +export type PreviouslyResolved = Omit; +}, "endpoint">; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts new file mode 100644 index 0000000..3f1cace --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts @@ -0,0 +1,9 @@ +import { DeserializeHandler, DeserializeHandlerArguments, HandlerExecutionContext } from "@smithy/types"; +import { PreviouslyResolved } from "./schema-middleware-types"; +/** + * @internal + */ +export declare const schemaDeserializationMiddleware: (config: PreviouslyResolved) => (next: DeserializeHandler, context: HandlerExecutionContext) => (args: DeserializeHandlerArguments) => Promise<{ + response: unknown; + output: O; +}>; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts new file mode 100644 index 0000000..ecb8198 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts @@ -0,0 +1,6 @@ +import { HandlerExecutionContext, SerializeHandler, SerializeHandlerArguments } from "@smithy/types"; +import { PreviouslyResolved } from "./schema-middleware-types"; +/** + * @internal + */ +export declare const schemaSerializationMiddleware: (config: PreviouslyResolved) => (next: SerializeHandler, context: HandlerExecutionContext) => (args: SerializeHandlerArguments) => Promise>; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts new file mode 100644 index 0000000..39dd302 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts @@ -0,0 +1,38 @@ +import type { SchemaRef, SchemaTraits } from "@smithy/types"; +import { StructureSchema } from "./StructureSchema"; +/** + * A schema for a structure shape having the error trait. These represent enumerated operation errors. + * Because Smithy-TS SDKs use classes for exceptions, whereas plain objects are used for all other data, + * and have an existing notion of a XYZServiceBaseException, the ErrorSchema differs from a StructureSchema + * by additionally holding the class reference for the corresponding ServiceException class. + * + * @alpha + */ +export declare class ErrorSchema extends StructureSchema { + name: string; + traits: SchemaTraits; + memberNames: string[]; + memberList: SchemaRef[]; + /** + * Constructor for a modeled service exception class that extends Error. + */ + ctor: any; + constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[], + /** + * Constructor for a modeled service exception class that extends Error. + */ + ctor: any); +} +/** + * Factory for ErrorSchema, to reduce codegen output and register the schema. + * + * @internal + * + * @param namespace - shapeId namespace. + * @param name - shapeId name. + * @param traits - shape level serde traits. + * @param memberNames - list of member names. + * @param memberList - list of schemaRef corresponding to each + * @param ctor - class reference for the existing Error extending class. + */ +export declare function error(namespace: string, name: string, traits: SchemaTraits | undefined, memberNames: string[], memberList: SchemaRef[], ctor: any): ErrorSchema; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts new file mode 100644 index 0000000..d565a2a --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts @@ -0,0 +1,20 @@ +import type { ListSchema as IListSchema, SchemaRef, SchemaTraits } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * A schema with a single member schema. + * The deprecated Set type may be represented as a list. + * + * @alpha + */ +export declare class ListSchema extends Schema implements IListSchema { + name: string; + traits: SchemaTraits; + valueSchema: SchemaRef; + constructor(name: string, traits: SchemaTraits, valueSchema: SchemaRef); +} +/** + * Factory for ListSchema. + * + * @internal + */ +export declare function list(namespace: string, name: string, traits: SchemaTraits | undefined, valueSchema: SchemaRef): ListSchema; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts new file mode 100644 index 0000000..b8edc04 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts @@ -0,0 +1,25 @@ +import type { MapSchema as IMapSchema, SchemaRef, SchemaTraits } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * A schema with a key schema and value schema. + * @alpha + */ +export declare class MapSchema extends Schema implements IMapSchema { + name: string; + traits: SchemaTraits; + /** + * This is expected to be StringSchema, but may have traits. + */ + keySchema: SchemaRef; + valueSchema: SchemaRef; + constructor(name: string, traits: SchemaTraits, + /** + * This is expected to be StringSchema, but may have traits. + */ + keySchema: SchemaRef, valueSchema: SchemaRef); +} +/** + * Factory for MapSchema. + * @internal + */ +export declare function map(namespace: string, name: string, traits: SchemaTraits | undefined, keySchema: SchemaRef, valueSchema: SchemaRef): MapSchema; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts new file mode 100644 index 0000000..de974bc --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts @@ -0,0 +1,122 @@ +import type { MemberSchema, NormalizedSchema as INormalizedSchema, Schema as ISchema, SchemaRef, SchemaTraits, SchemaTraitsObject } from "@smithy/types"; +/** + * Wraps both class instances, numeric sentinel values, and member schema pairs. + * Presents a consistent interface for interacting with polymorphic schema representations. + * + * @alpha + */ +export declare class NormalizedSchema implements INormalizedSchema { + private readonly ref; + private memberName?; + private readonly name; + private readonly traits; + private _isMemberSchema; + private schema; + private memberTraits; + private normalizedTraits?; + /** + * @param ref - a polymorphic SchemaRef to be dereferenced/normalized. + * @param memberName - optional memberName if this NormalizedSchema should be considered a member schema. + */ + constructor(ref: SchemaRef, memberName?: string | undefined); + /** + * Static constructor that attempts to avoid wrapping a NormalizedSchema within another. + */ + static of(ref: SchemaRef, memberName?: string): NormalizedSchema; + /** + * @param indicator - numeric indicator for preset trait combination. + * @returns equivalent trait object. + */ + static translateTraits(indicator: SchemaTraits): SchemaTraitsObject; + /** + * Creates a normalized member schema from the given schema and member name. + */ + private static memberFrom; + /** + * @returns the underlying non-normalized schema. + */ + getSchema(): Exclude; + /** + * @param withNamespace - qualifies the name. + * @returns e.g. `MyShape` or `com.namespace#MyShape`. + */ + getName(withNamespace?: boolean): string | undefined; + /** + * @returns the member name if the schema is a member schema. + * @throws Error when the schema isn't a member schema. + */ + getMemberName(): string; + isMemberSchema(): boolean; + isUnitSchema(): boolean; + /** + * boolean methods on this class help control flow in shape serialization and deserialization. + */ + isListSchema(): boolean; + isMapSchema(): boolean; + isDocumentSchema(): boolean; + isStructSchema(): boolean; + isBlobSchema(): boolean; + isTimestampSchema(): boolean; + isStringSchema(): boolean; + isBooleanSchema(): boolean; + isNumericSchema(): boolean; + isBigIntegerSchema(): boolean; + isBigDecimalSchema(): boolean; + isStreaming(): boolean; + /** + * @returns own traits merged with member traits, where member traits of the same trait key take priority. + * This method is cached. + */ + getMergedTraits(): SchemaTraitsObject; + /** + * @returns only the member traits. If the schema is not a member, this returns empty. + */ + getMemberTraits(): SchemaTraitsObject; + /** + * @returns only the traits inherent to the shape or member target shape if this schema is a member. + * If there are any member traits they are excluded. + */ + getOwnTraits(): SchemaTraitsObject; + /** + * @returns the map's key's schema. Returns a dummy Document schema if this schema is a Document. + * + * @throws Error if the schema is not a Map or Document. + */ + getKeySchema(): NormalizedSchema; + /** + * @returns the schema of the map's value or list's member. + * Returns a dummy Document schema if this schema is a Document. + * + * @throws Error if the schema is not a Map, List, nor Document. + */ + getValueSchema(): NormalizedSchema; + /** + * @returns the NormalizedSchema for the given member name. The returned instance will return true for `isMemberSchema()` + * and will have the member name given. + * @param member - which member to retrieve and wrap. + * + * @throws Error if member does not exist or the schema is neither a document nor structure. + * Note that errors are assumed to be structures and unions are considered structures for these purposes. + */ + getMemberSchema(member: string): NormalizedSchema; + /** + * This can be used for checking the members as a hashmap. + * Prefer the structIterator method for iteration. + * + * This does NOT return list and map members, it is only for structures. + * + * @returns a map of member names to member schemas (normalized). + */ + getMemberSchemas(): Record; + /** + * Allows iteration over members of a structure schema. + * Each yield is a pair of the member name and member schema. + * + * This avoids the overhead of calling Object.entries(ns.getMemberSchemas()). + */ + structIterator(): Generator<[string, NormalizedSchema], undefined, undefined>; + /** + * @returns a last-resort human-readable name for the schema if it has no other identifiers. + */ + private getSchemaName; +} diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts new file mode 100644 index 0000000..15b025d --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts @@ -0,0 +1,20 @@ +import type { OperationSchema as IOperationSchema, SchemaRef, SchemaTraits } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * This is used as a reference container for the input/output pair of schema, and for trait + * detection on the operation that may affect client protocol logic. + * + * @alpha + */ +export declare class OperationSchema extends Schema implements IOperationSchema { + name: string; + traits: SchemaTraits; + input: SchemaRef; + output: SchemaRef; + constructor(name: string, traits: SchemaTraits, input: SchemaRef, output: SchemaRef); +} +/** + * Factory for OperationSchema. + * @internal + */ +export declare function op(namespace: string, name: string, traits: SchemaTraits | undefined, input: SchemaRef, output: SchemaRef): OperationSchema; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts new file mode 100644 index 0000000..c49551f --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts @@ -0,0 +1,11 @@ +import type { SchemaTraits, TraitsSchema } from "@smithy/types"; +/** + * Abstract base for class-based Schema except NormalizedSchema. + * + * @alpha + */ +export declare abstract class Schema implements TraitsSchema { + name: string; + traits: SchemaTraits; + protected constructor(name: string, traits: SchemaTraits); +} diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts new file mode 100644 index 0000000..96e77f4 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts @@ -0,0 +1,20 @@ +import { SchemaRef, SchemaTraits, TraitsSchema } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * Although numeric values exist for most simple schema, this class is used for cases where traits are + * attached to those schema, since a single number cannot easily represent both a schema and its traits. + * + * @alpha + */ +export declare class SimpleSchema extends Schema implements TraitsSchema { + name: string; + schemaRef: SchemaRef; + traits: SchemaTraits; + constructor(name: string, schemaRef: SchemaRef, traits: SchemaTraits); +} +/** + * Factory for simple schema class objects. + * + * @internal + */ +export declare function sim(namespace: string, name: string, schemaRef: SchemaRef, traits: SchemaTraits): SimpleSchema; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts new file mode 100644 index 0000000..7612f8c --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts @@ -0,0 +1,21 @@ +import type { SchemaRef, SchemaTraits, StructureSchema as IStructureSchema } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * A structure schema has a known list of members. This is also used for unions. + * + * @alpha + */ +export declare class StructureSchema extends Schema implements IStructureSchema { + name: string; + traits: SchemaTraits; + memberNames: string[]; + memberList: SchemaRef[]; + members: Record; + constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]); +} +/** + * Factory for StructureSchema. + * + * @internal + */ +export declare function struct(namespace: string, name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]): StructureSchema; diff --git a/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts new file mode 100644 index 0000000..de21696 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts @@ -0,0 +1,21 @@ +import { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, ListSchemaModifier, MapSchemaModifier, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "@smithy/types"; +/** + * Schema sentinel runtime values. + * @alpha + */ +export declare const SCHEMA: { + BLOB: BlobSchema; + STREAMING_BLOB: StreamingBlobSchema; + BOOLEAN: BooleanSchema; + STRING: StringSchema; + NUMERIC: NumericSchema; + BIG_INTEGER: BigIntegerSchema; + BIG_DECIMAL: BigDecimalSchema; + DOCUMENT: DocumentSchema; + TIMESTAMP_DEFAULT: TimestampDefaultSchema; + TIMESTAMP_DATE_TIME: TimestampDateTimeSchema; + TIMESTAMP_HTTP_DATE: TimestampHttpDateSchema; + TIMESTAMP_EPOCH_SECONDS: TimestampEpochSecondsSchema; + LIST_MODIFIER: ListSchemaModifier; + MAP_MODIFIER: MapSchemaModifier; +}; diff --git a/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts b/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts new file mode 100644 index 0000000..8421e33 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts @@ -0,0 +1,5 @@ +import { SchemaRef } from "@smithy/types"; +/** + * @internal + */ +export declare const copyDocumentWithTransform: (source: any, schemaRef: SchemaRef, transform?: (_: any, schemaRef: SchemaRef) => any) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts b/node_modules/@smithy/core/dist-types/submodules/serde/date-utils.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts rename to node_modules/@smithy/core/dist-types/submodules/serde/date-utils.d.ts diff --git a/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts b/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts index a70d0dd..ae7219a 100644 --- a/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +++ b/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts @@ -1 +1,8 @@ +export * from "./copyDocumentWithTransform"; +export * from "./date-utils"; +export * from "./lazy-json"; +export * from "./parse-utils"; +export * from "./quote-header"; +export * from "./split-every"; +export * from "./split-header"; export * from "./value/NumericValue"; diff --git a/node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts b/node_modules/@smithy/core/dist-types/submodules/serde/lazy-json.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts rename to node_modules/@smithy/core/dist-types/submodules/serde/lazy-json.d.ts diff --git a/node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts b/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts rename to node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts diff --git a/node_modules/@smithy/smithy-client/dist-types/quote-header.d.ts b/node_modules/@smithy/core/dist-types/submodules/serde/quote-header.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/quote-header.d.ts rename to node_modules/@smithy/core/dist-types/submodules/serde/quote-header.d.ts diff --git a/node_modules/@smithy/smithy-client/dist-types/split-every.d.ts b/node_modules/@smithy/core/dist-types/submodules/serde/split-every.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/split-every.d.ts rename to node_modules/@smithy/core/dist-types/submodules/serde/split-every.d.ts diff --git a/node_modules/@smithy/smithy-client/dist-types/split-header.d.ts b/node_modules/@smithy/core/dist-types/submodules/serde/split-header.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/split-header.d.ts rename to node_modules/@smithy/core/dist-types/submodules/serde/split-header.d.ts diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts new file mode 100644 index 0000000..a1f50f6 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts @@ -0,0 +1,29 @@ +import { Codec, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; +/** + * @alpha + */ +export declare class CborCodec implements Codec { + private serdeContext?; + createSerializer(): CborShapeSerializer; + createDeserializer(): CborShapeDeserializer; + setSerdeContext(serdeContext: SerdeFunctions): void; +} +/** + * @alpha + */ +export declare class CborShapeSerializer implements ShapeSerializer { + private serdeContext?; + private value; + setSerdeContext(serdeContext: SerdeFunctions): void; + write(schema: Schema, value: unknown): void; + flush(): Uint8Array; +} +/** + * @alpha + */ +export declare class CborShapeDeserializer implements ShapeDeserializer { + private serdeContext?; + setSerdeContext(serdeContext: SerdeFunctions): void; + read(schema: Schema, bytes: Uint8Array): any; + private readValue; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts new file mode 100644 index 0000000..2cef907 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts @@ -0,0 +1,22 @@ +import { RpcProtocol } from "@smithy/core/protocols"; +import { OperationSchema } from "@smithy/core/schema"; +import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata, SerdeFunctions } from "@smithy/types"; +import { CborCodec } from "./CborCodec"; +/** + * Client protocol for Smithy RPCv2 CBOR. + * + * @alpha + */ +export declare class SmithyRpcV2CborProtocol extends RpcProtocol { + private codec; + protected serializer: import("./CborCodec").CborShapeSerializer; + protected deserializer: import("./CborCodec").CborShapeDeserializer; + constructor({ defaultNamespace }: { + defaultNamespace: string; + }); + getShapeId(): string; + getPayloadCodec(): CborCodec; + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; + protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts index 0910d27..c53524e 100644 --- a/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts @@ -1,3 +1,5 @@ export { cbor } from "./cbor"; +export { tag, tagSymbol } from "./cbor-types"; export * from "./parseCborBody"; -export { tagSymbol, tag } from "./cbor-types"; +export * from "./SmithyRpcV2CborProtocol"; +export * from "./CborCodec"; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts new file mode 100644 index 0000000..b9da06d --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts @@ -0,0 +1,15 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +import { HttpRequest } from "@smithy/protocol-http"; +import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, SerdeFunctions } from "@smithy/types"; +import { HttpProtocol } from "./HttpProtocol"; +/** + * Base for HTTP-binding protocols. Downstream examples + * include AWS REST JSON and AWS REST XML. + * + * @alpha + */ +export declare abstract class HttpBindingProtocol extends HttpProtocol { + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + protected serializeQuery(ns: NormalizedSchema, data: any, query: HttpRequest["query"]): void; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts new file mode 100644 index 0000000..352d2ef --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts @@ -0,0 +1,33 @@ +import { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; +/** + * Abstract base for HTTP-based client protocols. + * + * @alpha + */ +export declare abstract class HttpProtocol implements ClientProtocol { + readonly options: { + defaultNamespace: string; + }; + protected abstract serializer: ShapeSerializer; + protected abstract deserializer: ShapeDeserializer; + protected serdeContext?: SerdeFunctions; + protected constructor(options: { + defaultNamespace: string; + }); + abstract getShapeId(): string; + abstract getPayloadCodec(): Codec; + getRequestType(): new (...args: any[]) => IHttpRequest; + getResponseType(): new (...args: any[]) => IHttpResponse; + setSerdeContext(serdeContext: SerdeFunctions): void; + abstract serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + updateServiceEndpoint(request: IHttpRequest, endpoint: EndpointV2 | Endpoint): IHttpRequest; + abstract deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; + protected setHostPrefix(request: IHttpRequest, operationSchema: OperationSchema, input: Input): void; + protected abstract handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise; + protected deserializeMetadata(output: IHttpResponse): ResponseMetadata; + /** + * @deprecated use signature without headerBindings. + */ + protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set, dataObject: any): Promise; + protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts new file mode 100644 index 0000000..acb3805 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts @@ -0,0 +1,11 @@ +import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, SerdeFunctions } from "@smithy/types"; +import { HttpProtocol } from "./HttpProtocol"; +/** + * Abstract base for RPC-over-HTTP protocols. + * + * @alpha + */ +export declare abstract class RpcProtocol extends HttpProtocol { + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts index a5de22f..33a857e 100644 --- a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts @@ -1,4 +1,11 @@ export * from "./collect-stream-body"; export * from "./extended-encode-uri-component"; +export * from "./HttpBindingProtocol"; +export * from "./RpcProtocol"; export * from "./requestBuilder"; export * from "./resolve-path"; +export * from "./serde/FromStringShapeDeserializer"; +export * from "./serde/HttpInterceptingShapeDeserializer"; +export * from "./serde/HttpInterceptingShapeSerializer"; +export * from "./serde/ToStringShapeSerializer"; +export * from "./serde/determineTimestampFormat"; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts new file mode 100644 index 0000000..eabe4da --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts @@ -0,0 +1,14 @@ +import { CodecSettings, Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types"; +/** + * This deserializer reads strings. + * + * @alpha + */ +export declare class FromStringShapeDeserializer implements ShapeDeserializer { + private settings; + private serdeContext; + constructor(settings: CodecSettings); + setSerdeContext(serdeContext: SerdeFunctions): void; + read(_schema: Schema, data: string): any; + private base64ToUtf8; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts new file mode 100644 index 0000000..c33ac9e --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts @@ -0,0 +1,18 @@ +import { CodecSettings, Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types"; +/** + * This deserializer is a dispatcher that decides whether to use a string deserializer + * or a codec deserializer based on HTTP traits. + * + * For example, in a JSON HTTP message, the deserialization of a field will differ depending on whether + * it is bound to the HTTP header (string) or body (JSON). + * + * @alpha + */ +export declare class HttpInterceptingShapeDeserializer> implements ShapeDeserializer { + private codecDeserializer; + private stringDeserializer; + private serdeContext; + constructor(codecDeserializer: CodecShapeDeserializer, codecSettings: CodecSettings); + setSerdeContext(serdeContext: SerdeFunctions): void; + read(schema: Schema, data: string | Uint8Array): any | Promise; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts new file mode 100644 index 0000000..bcb6b84 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts @@ -0,0 +1,20 @@ +import { CodecSettings, Schema as ISchema, SerdeFunctions, ShapeSerializer } from "@smithy/types"; +import { ToStringShapeSerializer } from "./ToStringShapeSerializer"; +/** + * This serializer decides whether to dispatch to a string serializer or a codec serializer + * depending on HTTP binding traits within the given schema. + * + * For example, a JavaScript array is serialized differently when being written + * to a REST JSON HTTP header (comma-delimited string) and a REST JSON HTTP body (JSON array). + * + * @alpha + */ +export declare class HttpInterceptingShapeSerializer> implements ShapeSerializer { + private codecSerializer; + private stringSerializer; + private buffer; + constructor(codecSerializer: CodecShapeSerializer, codecSettings: CodecSettings, stringSerializer?: ToStringShapeSerializer); + setSerdeContext(serdeContext: SerdeFunctions): void; + write(schema: ISchema, value: unknown): void; + flush(): string | Uint8Array; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts new file mode 100644 index 0000000..957daf9 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts @@ -0,0 +1,15 @@ +import { CodecSettings, Schema, SerdeFunctions, ShapeSerializer } from "@smithy/types"; +/** + * Serializes a shape to string. + * + * @alpha + */ +export declare class ToStringShapeSerializer implements ShapeSerializer { + private settings; + private stringBuffer; + private serdeContext; + constructor(settings: CodecSettings); + setSerdeContext(serdeContext: SerdeFunctions): void; + write(schema: Schema, value: unknown): void; + flush(): string; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts new file mode 100644 index 0000000..8973744 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts @@ -0,0 +1,9 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +import { TimestampDateTimeSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema, CodecSettings } from "@smithy/types"; +/** + * Assuming the schema is a timestamp type, the function resolves the format using + * either the timestamp's own traits, or the default timestamp format from the CodecSettings. + * + * @internal + */ +export declare function determineTimestampFormat(ns: NormalizedSchema, settings: CodecSettings): TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts new file mode 100644 index 0000000..23eaab1 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts @@ -0,0 +1,55 @@ +import { Schema as ISchema } from "@smithy/types"; +import { ErrorSchema } from "./schemas/ErrorSchema"; +/** + * A way to look up schema by their ShapeId values. + * + * @alpha + */ +export declare class TypeRegistry { + readonly namespace: string; + private schemas; + static readonly registries: Map; + private constructor(); + /** + * @param namespace - specifier. + * @returns the schema for that namespace, creating it if necessary. + */ + static for(namespace: string): TypeRegistry; + /** + * Adds the given schema to a type registry with the same namespace. + * + * @param shapeId - to be registered. + * @param schema - to be registered. + */ + register(shapeId: string, schema: ISchema): void; + /** + * @param shapeId - query. + * @returns the schema. + */ + getSchema(shapeId: string): ISchema; + /** + * The smithy-typescript code generator generates a synthetic (i.e. unmodeled) base exception, + * because generated SDKs before the introduction of schemas have the notion of a ServiceBaseException, which + * is unique per service/model. + * + * This is generated under a unique prefix that is combined with the service namespace, and this + * method is used to retrieve it. + * + * The base exception synthetic schema is used when an error is returned by a service, but we cannot + * determine what existing schema to use to deserialize it. + * + * @returns the synthetic base exception of the service namespace associated with this registry instance. + */ + getBaseException(): ErrorSchema | undefined; + /** + * @param predicate - criterion. + * @returns a schema in this registry matching the predicate. + */ + find(predicate: (schema: ISchema) => boolean): ISchema | undefined; + /** + * Unloads the current TypeRegistry. + */ + destroy(): void; + private normalizeShapeId; + private getNamespace; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/deref.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/deref.d.ts new file mode 100644 index 0000000..4e68515 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/deref.d.ts @@ -0,0 +1,6 @@ +import { Schema, SchemaRef } from "@smithy/types"; +/** + * Dereferences a SchemaRef if needed. + * @internal + */ +export declare const deref: (schemaRef: SchemaRef) => Schema; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts new file mode 100644 index 0000000..994b184 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts @@ -0,0 +1,12 @@ +export * from "./deref"; +export * from "./middleware/getSchemaSerdePlugin"; +export * from "./schemas/ListSchema"; +export * from "./schemas/MapSchema"; +export * from "./schemas/OperationSchema"; +export * from "./schemas/ErrorSchema"; +export * from "./schemas/NormalizedSchema"; +export * from "./schemas/Schema"; +export * from "./schemas/SimpleSchema"; +export * from "./schemas/StructureSchema"; +export * from "./schemas/sentinels"; +export * from "./TypeRegistry"; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/getSchemaSerdePlugin.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/getSchemaSerdePlugin.d.ts new file mode 100644 index 0000000..7311eb3 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/getSchemaSerdePlugin.d.ts @@ -0,0 +1,14 @@ +import { DeserializeHandlerOptions, MetadataBearer, Pluggable, SerializeHandlerOptions } from "@smithy/types"; +import { PreviouslyResolved } from "./schema-middleware-types"; +/** + * @internal + */ +export declare const deserializerMiddlewareOption: DeserializeHandlerOptions; +/** + * @internal + */ +export declare const serializerMiddlewareOption: SerializeHandlerOptions; +/** + * @internal + */ +export declare function getSchemaSerdePlugin(config: PreviouslyResolved): Pluggable; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schema-middleware-types.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schema-middleware-types.d.ts new file mode 100644 index 0000000..8cf6631 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schema-middleware-types.d.ts @@ -0,0 +1,11 @@ +import { ClientProtocol, SerdeContext, UrlParser } from "@smithy/types"; +/** + * @internal + */ +export type PreviouslyResolved = Pick; +}, Exclude; +}), "endpoint">>; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts new file mode 100644 index 0000000..3f1cace --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts @@ -0,0 +1,9 @@ +import { DeserializeHandler, DeserializeHandlerArguments, HandlerExecutionContext } from "@smithy/types"; +import { PreviouslyResolved } from "./schema-middleware-types"; +/** + * @internal + */ +export declare const schemaDeserializationMiddleware: (config: PreviouslyResolved) => (next: DeserializeHandler, context: HandlerExecutionContext) => (args: DeserializeHandlerArguments) => Promise<{ + response: unknown; + output: O; +}>; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaSerializationMiddleware.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaSerializationMiddleware.d.ts new file mode 100644 index 0000000..ecb8198 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaSerializationMiddleware.d.ts @@ -0,0 +1,6 @@ +import { HandlerExecutionContext, SerializeHandler, SerializeHandlerArguments } from "@smithy/types"; +import { PreviouslyResolved } from "./schema-middleware-types"; +/** + * @internal + */ +export declare const schemaSerializationMiddleware: (config: PreviouslyResolved) => (next: SerializeHandler, context: HandlerExecutionContext) => (args: SerializeHandlerArguments) => Promise>; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts new file mode 100644 index 0000000..21c9f50 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts @@ -0,0 +1,38 @@ +import { SchemaRef, SchemaTraits } from "@smithy/types"; +import { StructureSchema } from "./StructureSchema"; +/** + * A schema for a structure shape having the error trait. These represent enumerated operation errors. + * Because Smithy-TS SDKs use classes for exceptions, whereas plain objects are used for all other data, + * and have an existing notion of a XYZServiceBaseException, the ErrorSchema differs from a StructureSchema + * by additionally holding the class reference for the corresponding ServiceException class. + * + * @alpha + */ +export declare class ErrorSchema extends StructureSchema { + name: string; + traits: SchemaTraits; + memberNames: string[]; + memberList: SchemaRef[]; + /** + * Constructor for a modeled service exception class that extends Error. + */ + ctor: any; + constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[], + /** + * Constructor for a modeled service exception class that extends Error. + */ + ctor: any); +} +/** + * Factory for ErrorSchema, to reduce codegen output and register the schema. + * + * @internal + * + * @param namespace - shapeId namespace. + * @param name - shapeId name. + * @param traits - shape level serde traits. + * @param memberNames - list of member names. + * @param memberList - list of schemaRef corresponding to each + * @param ctor - class reference for the existing Error extending class. + */ +export declare function error(namespace: string, name: string, traits: SchemaTraits | undefined, memberNames: string[], memberList: SchemaRef[], ctor: any): ErrorSchema; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts new file mode 100644 index 0000000..6289fa0 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts @@ -0,0 +1,20 @@ +import { ListSchema as IListSchema, SchemaRef, SchemaTraits } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * A schema with a single member schema. + * The deprecated Set type may be represented as a list. + * + * @alpha + */ +export declare class ListSchema extends Schema implements IListSchema { + name: string; + traits: SchemaTraits; + valueSchema: SchemaRef; + constructor(name: string, traits: SchemaTraits, valueSchema: SchemaRef); +} +/** + * Factory for ListSchema. + * + * @internal + */ +export declare function list(namespace: string, name: string, traits: SchemaTraits | undefined, valueSchema: SchemaRef): ListSchema; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts new file mode 100644 index 0000000..0f0428b --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts @@ -0,0 +1,25 @@ +import { MapSchema as IMapSchema, SchemaRef, SchemaTraits } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * A schema with a key schema and value schema. + * @alpha + */ +export declare class MapSchema extends Schema implements IMapSchema { + name: string; + traits: SchemaTraits; + /** + * This is expected to be StringSchema, but may have traits. + */ + keySchema: SchemaRef; + valueSchema: SchemaRef; + constructor(name: string, traits: SchemaTraits, + /** + * This is expected to be StringSchema, but may have traits. + */ + keySchema: SchemaRef, valueSchema: SchemaRef); +} +/** + * Factory for MapSchema. + * @internal + */ +export declare function map(namespace: string, name: string, traits: SchemaTraits | undefined, keySchema: SchemaRef, valueSchema: SchemaRef): MapSchema; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts new file mode 100644 index 0000000..d4d95f3 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts @@ -0,0 +1,125 @@ +import { MemberSchema, NormalizedSchema as INormalizedSchema, Schema as ISchema, SchemaRef, SchemaTraits, SchemaTraitsObject } from "@smithy/types"; +/** + * Wraps both class instances, numeric sentinel values, and member schema pairs. + * Presents a consistent interface for interacting with polymorphic schema representations. + * + * @alpha + */ +export declare class NormalizedSchema implements INormalizedSchema { + private readonly ref; + private memberName?; + private readonly name; + private readonly traits; + private _isMemberSchema; + private schema; + private memberTraits; + private normalizedTraits?; + /** + * @param ref - a polymorphic SchemaRef to be dereferenced/normalized. + * @param memberName - optional memberName if this NormalizedSchema should be considered a member schema. + */ + constructor(ref: SchemaRef, memberName?: string | undefined); + /** + * Static constructor that attempts to avoid wrapping a NormalizedSchema within another. + */ + static of(ref: SchemaRef, memberName?: string): NormalizedSchema; + /** + * @param indicator - numeric indicator for preset trait combination. + * @returns equivalent trait object. + */ + static translateTraits(indicator: SchemaTraits): SchemaTraitsObject; + /** + * Creates a normalized member schema from the given schema and member name. + */ + private static memberFrom; + /** + * @returns the underlying non-normalized schema. + */ + getSchema(): Exclude; + /** + * @param withNamespace - qualifies the name. + * @returns e.g. `MyShape` or `com.namespace#MyShape`. + */ + getName(withNamespace?: boolean): string | undefined; + /** + * @returns the member name if the schema is a member schema. + * @throws Error when the schema isn't a member schema. + */ + getMemberName(): string; + isMemberSchema(): boolean; + isUnitSchema(): boolean; + /** + * boolean methods on this class help control flow in shape serialization and deserialization. + */ + isListSchema(): boolean; + isMapSchema(): boolean; + isDocumentSchema(): boolean; + isStructSchema(): boolean; + isBlobSchema(): boolean; + isTimestampSchema(): boolean; + isStringSchema(): boolean; + isBooleanSchema(): boolean; + isNumericSchema(): boolean; + isBigIntegerSchema(): boolean; + isBigDecimalSchema(): boolean; + isStreaming(): boolean; + /** + * @returns own traits merged with member traits, where member traits of the same trait key take priority. + * This method is cached. + */ + getMergedTraits(): SchemaTraitsObject; + /** + * @returns only the member traits. If the schema is not a member, this returns empty. + */ + getMemberTraits(): SchemaTraitsObject; + /** + * @returns only the traits inherent to the shape or member target shape if this schema is a member. + * If there are any member traits they are excluded. + */ + getOwnTraits(): SchemaTraitsObject; + /** + * @returns the map's key's schema. Returns a dummy Document schema if this schema is a Document. + * + * @throws Error if the schema is not a Map or Document. + */ + getKeySchema(): NormalizedSchema; + /** + * @returns the schema of the map's value or list's member. + * Returns a dummy Document schema if this schema is a Document. + * + * @throws Error if the schema is not a Map, List, nor Document. + */ + getValueSchema(): NormalizedSchema; + /** + * @returns the NormalizedSchema for the given member name. The returned instance will return true for `isMemberSchema()` + * and will have the member name given. + * @param member - which member to retrieve and wrap. + * + * @throws Error if member does not exist or the schema is neither a document nor structure. + * Note that errors are assumed to be structures and unions are considered structures for these purposes. + */ + getMemberSchema(member: string): NormalizedSchema; + /** + * This can be used for checking the members as a hashmap. + * Prefer the structIterator method for iteration. + * + * This does NOT return list and map members, it is only for structures. + * + * @returns a map of member names to member schemas (normalized). + */ + getMemberSchemas(): Record; + /** + * Allows iteration over members of a structure schema. + * Each yield is a pair of the member name and member schema. + * + * This avoids the overhead of calling Object.entries(ns.getMemberSchemas()). + */ + structIterator(): Generator<[ + string, + NormalizedSchema + ], undefined, undefined>; + /** + * @returns a last-resort human-readable name for the schema if it has no other identifiers. + */ + private getSchemaName; +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts new file mode 100644 index 0000000..9337b4e --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts @@ -0,0 +1,20 @@ +import { OperationSchema as IOperationSchema, SchemaRef, SchemaTraits } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * This is used as a reference container for the input/output pair of schema, and for trait + * detection on the operation that may affect client protocol logic. + * + * @alpha + */ +export declare class OperationSchema extends Schema implements IOperationSchema { + name: string; + traits: SchemaTraits; + input: SchemaRef; + output: SchemaRef; + constructor(name: string, traits: SchemaTraits, input: SchemaRef, output: SchemaRef); +} +/** + * Factory for OperationSchema. + * @internal + */ +export declare function op(namespace: string, name: string, traits: SchemaTraits | undefined, input: SchemaRef, output: SchemaRef): OperationSchema; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts new file mode 100644 index 0000000..3164791 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts @@ -0,0 +1,11 @@ +import { SchemaTraits, TraitsSchema } from "@smithy/types"; +/** + * Abstract base for class-based Schema except NormalizedSchema. + * + * @alpha + */ +export declare abstract class Schema implements TraitsSchema { + name: string; + traits: SchemaTraits; + protected constructor(name: string, traits: SchemaTraits); +} diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts new file mode 100644 index 0000000..96e77f4 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts @@ -0,0 +1,20 @@ +import { SchemaRef, SchemaTraits, TraitsSchema } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * Although numeric values exist for most simple schema, this class is used for cases where traits are + * attached to those schema, since a single number cannot easily represent both a schema and its traits. + * + * @alpha + */ +export declare class SimpleSchema extends Schema implements TraitsSchema { + name: string; + schemaRef: SchemaRef; + traits: SchemaTraits; + constructor(name: string, schemaRef: SchemaRef, traits: SchemaTraits); +} +/** + * Factory for simple schema class objects. + * + * @internal + */ +export declare function sim(namespace: string, name: string, schemaRef: SchemaRef, traits: SchemaTraits): SimpleSchema; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts new file mode 100644 index 0000000..be830c0 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts @@ -0,0 +1,24 @@ +import { SchemaRef, SchemaTraits, StructureSchema as IStructureSchema } from "@smithy/types"; +import { Schema } from "./Schema"; +/** + * A structure schema has a known list of members. This is also used for unions. + * + * @alpha + */ +export declare class StructureSchema extends Schema implements IStructureSchema { + name: string; + traits: SchemaTraits; + memberNames: string[]; + memberList: SchemaRef[]; + members: Record; + constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]); +} +/** + * Factory for StructureSchema. + * + * @internal + */ +export declare function struct(namespace: string, name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]): StructureSchema; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts new file mode 100644 index 0000000..de21696 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts @@ -0,0 +1,21 @@ +import { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, ListSchemaModifier, MapSchemaModifier, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "@smithy/types"; +/** + * Schema sentinel runtime values. + * @alpha + */ +export declare const SCHEMA: { + BLOB: BlobSchema; + STREAMING_BLOB: StreamingBlobSchema; + BOOLEAN: BooleanSchema; + STRING: StringSchema; + NUMERIC: NumericSchema; + BIG_INTEGER: BigIntegerSchema; + BIG_DECIMAL: BigDecimalSchema; + DOCUMENT: DocumentSchema; + TIMESTAMP_DEFAULT: TimestampDefaultSchema; + TIMESTAMP_DATE_TIME: TimestampDateTimeSchema; + TIMESTAMP_HTTP_DATE: TimestampHttpDateSchema; + TIMESTAMP_EPOCH_SECONDS: TimestampEpochSecondsSchema; + LIST_MODIFIER: ListSchemaModifier; + MAP_MODIFIER: MapSchemaModifier; +}; diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts new file mode 100644 index 0000000..8421e33 --- /dev/null +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts @@ -0,0 +1,5 @@ +import { SchemaRef } from "@smithy/types"; +/** + * @internal + */ +export declare const copyDocumentWithTransform: (source: any, schemaRef: SchemaRef, transform?: (_: any, schemaRef: SchemaRef) => any) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/date-utils.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/date-utils.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/ts3.4/date-utils.d.ts rename to node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/date-utils.d.ts diff --git a/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts index a70d0dd..ae7219a 100644 --- a/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +++ b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts @@ -1 +1,8 @@ +export * from "./copyDocumentWithTransform"; +export * from "./date-utils"; +export * from "./lazy-json"; +export * from "./parse-utils"; +export * from "./quote-header"; +export * from "./split-every"; +export * from "./split-header"; export * from "./value/NumericValue"; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/lazy-json.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts rename to node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/lazy-json.d.ts diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/parse-utils.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/ts3.4/parse-utils.d.ts rename to node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/quote-header.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/quote-header.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/ts3.4/quote-header.d.ts rename to node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/quote-header.d.ts diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/split-every.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/split-every.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/ts3.4/split-every.d.ts rename to node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/split-every.d.ts diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/split-header.d.ts b/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/split-header.d.ts similarity index 100% rename from node_modules/@smithy/smithy-client/dist-types/ts3.4/split-header.d.ts rename to node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/split-header.d.ts diff --git a/node_modules/@smithy/core/package.json b/node_modules/@smithy/core/package.json index a8e47df..d7f65f1 100644 --- a/node_modules/@smithy/core/package.json +++ b/node_modules/@smithy/core/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/core", - "version": "3.3.3", + "version": "3.5.3", "scripts": { "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline core", @@ -11,8 +11,9 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", "lint": "npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" --fix && node ./scripts/lint", "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:vitest run", + "extract:docs": "api-extractor run --local", "test:cbor:perf": "node ./scripts/cbor-perf.mjs", + "test": "yarn g:vitest run", "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", @@ -52,6 +53,13 @@ "import": "./dist-es/submodules/serde/index.js", "require": "./dist-cjs/submodules/serde/index.js", "types": "./dist-types/submodules/serde/index.d.ts" + }, + "./schema": { + "module": "./dist-es/submodules/schema/index.js", + "node": "./dist-cjs/submodules/schema/index.js", + "import": "./dist-es/submodules/schema/index.js", + "require": "./dist-cjs/submodules/schema/index.js", + "types": "./dist-types/submodules/schema/index.d.ts" } }, "author": { @@ -61,12 +69,13 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^4.0.5", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -85,6 +94,8 @@ "./cbor.js", "./protocols.d.ts", "./protocols.js", + "./schema.d.ts", + "./schema.js", "./serde.d.ts", "./serde.js", "dist-*/**" diff --git a/node_modules/@smithy/core/schema.d.ts b/node_modules/@smithy/core/schema.d.ts new file mode 100644 index 0000000..e29b358 --- /dev/null +++ b/node_modules/@smithy/core/schema.d.ts @@ -0,0 +1,7 @@ +/** + * Do not edit: + * This is a compatibility redirect for contexts that do not understand package.json exports field. + */ +declare module "@smithy/core/schema" { + export * from "@smithy/core/dist-types/submodules/schema/index.d"; +} diff --git a/node_modules/@smithy/core/schema.js b/node_modules/@smithy/core/schema.js new file mode 100644 index 0000000..a5035de --- /dev/null +++ b/node_modules/@smithy/core/schema.js @@ -0,0 +1,6 @@ + +/** + * Do not edit: + * This is a compatibility redirect for contexts that do not understand package.json exports field. + */ +module.exports = require("./dist-cjs/submodules/schema/index.js"); diff --git a/node_modules/@smithy/credential-provider-imds/package.json b/node_modules/@smithy/credential-provider-imds/package.json index 48decd1..9ca162e 100644 --- a/node_modules/@smithy/credential-provider-imds/package.json +++ b/node_modules/@smithy/credential-provider-imds/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/credential-provider-imds", - "version": "4.0.4", + "version": "4.0.6", "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -27,10 +27,10 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts index cdacd3c..70250aa 100644 --- a/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts +++ b/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts @@ -5,7 +5,7 @@ import { Message, MessageEncoder } from "@smithy/types"; export interface MessageEncoderStreamOptions { messageStream: AsyncIterable; encoder: MessageEncoder; - includeEndFrame?: Boolean; + includeEndFrame?: boolean; } /** * @internal diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts index cdacd3c..70250aa 100644 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts +++ b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts @@ -5,7 +5,7 @@ import { Message, MessageEncoder } from "@smithy/types"; export interface MessageEncoderStreamOptions { messageStream: AsyncIterable; encoder: MessageEncoder; - includeEndFrame?: Boolean; + includeEndFrame?: boolean; } /** * @internal diff --git a/node_modules/@smithy/eventstream-codec/package.json b/node_modules/@smithy/eventstream-codec/package.json index c0cc439..a9fe39f 100644 --- a/node_modules/@smithy/eventstream-codec/package.json +++ b/node_modules/@smithy/eventstream-codec/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/eventstream-codec", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline eventstream-codec", @@ -24,7 +24,7 @@ "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-hex-encoding": "^4.0.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@smithy/eventstream-serde-browser/package.json b/node_modules/@smithy/eventstream-serde-browser/package.json index 3858fa8..afdd23e 100644 --- a/node_modules/@smithy/eventstream-serde-browser/package.json +++ b/node_modules/@smithy/eventstream-serde-browser/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/eventstream-serde-browser", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline eventstream-serde-browser", @@ -22,8 +22,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-serde-universal": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/eventstream-serde-config-resolver/package.json b/node_modules/@smithy/eventstream-serde-config-resolver/package.json index a5e9d1a..b019354 100644 --- a/node_modules/@smithy/eventstream-serde-config-resolver/package.json +++ b/node_modules/@smithy/eventstream-serde-config-resolver/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/eventstream-serde-config-resolver", - "version": "4.1.0", + "version": "4.1.2", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline eventstream-serde-config-resolver", @@ -24,7 +24,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/eventstream-serde-node/dist-types/EventStreamMarshaller.d.ts b/node_modules/@smithy/eventstream-serde-node/dist-types/EventStreamMarshaller.d.ts index e3b9929..cebfc3c 100644 --- a/node_modules/@smithy/eventstream-serde-node/dist-types/EventStreamMarshaller.d.ts +++ b/node_modules/@smithy/eventstream-serde-node/dist-types/EventStreamMarshaller.d.ts @@ -1,4 +1,3 @@ -/// import { Decoder, Encoder, EventStreamMarshaller as IEventStreamMarshaller, Message } from "@smithy/types"; import { Readable } from "stream"; /** diff --git a/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/EventStreamMarshaller.d.ts b/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/EventStreamMarshaller.d.ts index e3b9929..cebfc3c 100644 --- a/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/EventStreamMarshaller.d.ts +++ b/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/EventStreamMarshaller.d.ts @@ -1,4 +1,3 @@ -/// import { Decoder, Encoder, EventStreamMarshaller as IEventStreamMarshaller, Message } from "@smithy/types"; import { Readable } from "stream"; /** diff --git a/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/utils.d.ts b/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/utils.d.ts index 271592d..4e2f1b6 100644 --- a/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/utils.d.ts +++ b/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/utils.d.ts @@ -1,4 +1,3 @@ -/// import { Readable } from "stream"; /** * Convert object stream piped in into an async iterable. This diff --git a/node_modules/@smithy/eventstream-serde-node/dist-types/utils.d.ts b/node_modules/@smithy/eventstream-serde-node/dist-types/utils.d.ts index 271592d..4e2f1b6 100644 --- a/node_modules/@smithy/eventstream-serde-node/dist-types/utils.d.ts +++ b/node_modules/@smithy/eventstream-serde-node/dist-types/utils.d.ts @@ -1,4 +1,3 @@ -/// import { Readable } from "stream"; /** * Convert object stream piped in into an async iterable. This diff --git a/node_modules/@smithy/eventstream-serde-node/package.json b/node_modules/@smithy/eventstream-serde-node/package.json index 0a340f6..128caac 100644 --- a/node_modules/@smithy/eventstream-serde-node/package.json +++ b/node_modules/@smithy/eventstream-serde-node/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/eventstream-serde-node", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline eventstream-serde-node", @@ -22,8 +22,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-serde-universal": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/eventstream-serde-universal/package.json b/node_modules/@smithy/eventstream-serde-universal/package.json index a7e7716..3f2122b 100644 --- a/node_modules/@smithy/eventstream-serde-universal/package.json +++ b/node_modules/@smithy/eventstream-serde-universal/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/eventstream-serde-universal", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline eventstream-serde-universal", @@ -23,8 +23,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-codec": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts index 446301c..77bba85 100644 --- a/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +++ b/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts @@ -10,7 +10,7 @@ export { FetchHttpHandlerOptions }; * Detection of keepalive support. Can be overridden for testing. */ export declare const keepAliveSupport: { - supported: boolean | undefined; + supported: undefined | boolean; }; /** * @internal diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts index 4e46ee9..19a97e2 100644 --- a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +++ b/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts @@ -10,7 +10,7 @@ export { FetchHttpHandlerOptions }; * Detection of keepalive support. Can be overridden for testing. */ export declare const keepAliveSupport: { - supported: boolean | undefined; + supported: undefined | boolean; }; /** * @internal diff --git a/node_modules/@smithy/fetch-http-handler/package.json b/node_modules/@smithy/fetch-http-handler/package.json index 8ebcaa1..8a48586 100644 --- a/node_modules/@smithy/fetch-http-handler/package.json +++ b/node_modules/@smithy/fetch-http-handler/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/fetch-http-handler", - "version": "5.0.2", + "version": "5.0.4", "description": "Provides a way to make requests", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", @@ -27,14 +27,14 @@ "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/querystring-builder": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/querystring-builder": "^4.0.4", + "@smithy/types": "^4.3.1", "@smithy/util-base64": "^4.0.0", "tslib": "^2.6.2" }, "devDependencies": { - "@smithy/abort-controller": "^4.0.2", + "@smithy/abort-controller": "^4.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/node_modules/@smithy/hash-blob-browser/package.json b/node_modules/@smithy/hash-blob-browser/package.json index f85507c..0cae6de 100644 --- a/node_modules/@smithy/hash-blob-browser/package.json +++ b/node_modules/@smithy/hash-blob-browser/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/hash-blob-browser", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline hash-blob-browser", @@ -25,7 +25,7 @@ "dependencies": { "@smithy/chunked-blob-reader": "^5.0.0", "@smithy/chunked-blob-reader-native": "^4.0.0", - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/hash-node/package.json b/node_modules/@smithy/hash-node/package.json index 527b45a..213a204 100644 --- a/node_modules/@smithy/hash-node/package.json +++ b/node_modules/@smithy/hash-node/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/hash-node", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline hash-node", @@ -31,7 +31,7 @@ "typedoc": "0.23.23" }, "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-buffer-from": "^4.0.0", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" diff --git a/node_modules/@smithy/hash-stream-node/dist-types/HashCalculator.d.ts b/node_modules/@smithy/hash-stream-node/dist-types/HashCalculator.d.ts index ed012ed..da5e6d1 100644 --- a/node_modules/@smithy/hash-stream-node/dist-types/HashCalculator.d.ts +++ b/node_modules/@smithy/hash-stream-node/dist-types/HashCalculator.d.ts @@ -1,6 +1,3 @@ -/// -/// -/// import { Checksum, Hash } from "@smithy/types"; import { Writable, WritableOptions } from "stream"; /** diff --git a/node_modules/@smithy/hash-stream-node/dist-types/fileStreamHasher.d.ts b/node_modules/@smithy/hash-stream-node/dist-types/fileStreamHasher.d.ts index 91dac8e..f2ee3e6 100644 --- a/node_modules/@smithy/hash-stream-node/dist-types/fileStreamHasher.d.ts +++ b/node_modules/@smithy/hash-stream-node/dist-types/fileStreamHasher.d.ts @@ -1,4 +1,3 @@ -/// import { StreamHasher } from "@smithy/types"; import { Readable } from "stream"; /** diff --git a/node_modules/@smithy/hash-stream-node/dist-types/readableStreamHasher.d.ts b/node_modules/@smithy/hash-stream-node/dist-types/readableStreamHasher.d.ts index b1f48a6..d9d233b 100644 --- a/node_modules/@smithy/hash-stream-node/dist-types/readableStreamHasher.d.ts +++ b/node_modules/@smithy/hash-stream-node/dist-types/readableStreamHasher.d.ts @@ -1,4 +1,3 @@ -/// import { StreamHasher } from "@smithy/types"; import { Readable } from "stream"; /** diff --git a/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/HashCalculator.d.ts b/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/HashCalculator.d.ts index c6e5ca4..da5e6d1 100644 --- a/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/HashCalculator.d.ts +++ b/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/HashCalculator.d.ts @@ -1,4 +1,3 @@ -/// import { Checksum, Hash } from "@smithy/types"; import { Writable, WritableOptions } from "stream"; /** diff --git a/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/fileStreamHasher.d.ts b/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/fileStreamHasher.d.ts index 91dac8e..f2ee3e6 100644 --- a/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/fileStreamHasher.d.ts +++ b/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/fileStreamHasher.d.ts @@ -1,4 +1,3 @@ -/// import { StreamHasher } from "@smithy/types"; import { Readable } from "stream"; /** diff --git a/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/readableStreamHasher.d.ts b/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/readableStreamHasher.d.ts index b1f48a6..d9d233b 100644 --- a/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/readableStreamHasher.d.ts +++ b/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/readableStreamHasher.d.ts @@ -1,4 +1,3 @@ -/// import { StreamHasher } from "@smithy/types"; import { Readable } from "stream"; /** diff --git a/node_modules/@smithy/hash-stream-node/package.json b/node_modules/@smithy/hash-stream-node/package.json index 29e12e8..078b8cc 100644 --- a/node_modules/@smithy/hash-stream-node/package.json +++ b/node_modules/@smithy/hash-stream-node/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/hash-stream-node", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline hash-stream-node", @@ -23,7 +23,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@smithy/invalid-dependency/package.json b/node_modules/@smithy/invalid-dependency/package.json index 4782ea4..650ad6a 100644 --- a/node_modules/@smithy/invalid-dependency/package.json +++ b/node_modules/@smithy/invalid-dependency/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/invalid-dependency", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline invalid-dependency", @@ -23,7 +23,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "typesVersions": { diff --git a/node_modules/@smithy/md5-js/package.json b/node_modules/@smithy/md5-js/package.json index ea1df50..5c5dac3 100644 --- a/node_modules/@smithy/md5-js/package.json +++ b/node_modules/@smithy/md5-js/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/md5-js", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline md5-js", @@ -33,7 +33,7 @@ "typedoc": "0.23.23" }, "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@smithy/middleware-content-length/dist-cjs/index.js b/node_modules/@smithy/middleware-content-length/dist-cjs/index.js index 9585153..6e27d2d 100644 --- a/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +++ b/node_modules/@smithy/middleware-content-length/dist-cjs/index.js @@ -64,8 +64,8 @@ var getContentLengthPlugin = /* @__PURE__ */ __name((options) => ({ // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { - contentLengthMiddleware, contentLengthMiddlewareOptions, - getContentLengthPlugin + getContentLengthPlugin, + contentLengthMiddleware }); diff --git a/node_modules/@smithy/middleware-content-length/package.json b/node_modules/@smithy/middleware-content-length/package.json index 807c95b..d7d466b 100644 --- a/node_modules/@smithy/middleware-content-length/package.json +++ b/node_modules/@smithy/middleware-content-length/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/middleware-content-length", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline middleware-content-length", @@ -24,8 +24,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/middleware-endpoint/package.json b/node_modules/@smithy/middleware-endpoint/package.json index 4e37328..e8dde27 100644 --- a/node_modules/@smithy/middleware-endpoint/package.json +++ b/node_modules/@smithy/middleware-endpoint/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/middleware-endpoint", - "version": "4.1.6", + "version": "4.1.11", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline middleware-endpoint", @@ -24,13 +24,13 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.3.3", - "@smithy/middleware-serde": "^4.0.5", - "@smithy/node-config-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", - "@smithy/util-middleware": "^4.0.2", + "@smithy/core": "^3.5.3", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/middleware-retry/package.json b/node_modules/@smithy/middleware-retry/package.json index eac5902..fd71cac 100644 --- a/node_modules/@smithy/middleware-retry/package.json +++ b/node_modules/@smithy/middleware-retry/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/middleware-retry", - "version": "4.1.7", + "version": "4.1.12", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline middleware-retry", @@ -33,13 +33,13 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/protocol-http": "^5.1.0", - "@smithy/service-error-classification": "^4.0.3", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/service-error-classification": "^4.0.5", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts b/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts index 4d81141..fb9a8fa 100644 --- a/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +++ b/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts @@ -1,5 +1,6 @@ import { DeserializeMiddleware, ResponseDeserializer, SerdeContext, SerdeFunctions } from "@smithy/types"; /** * @internal + * @deprecated will be replaced by schemaSerdePlugin from core/schema. */ export declare const deserializerMiddleware: (options: SerdeFunctions, deserializer: ResponseDeserializer) => DeserializeMiddleware; diff --git a/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts b/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts index bd0f8c6..61cf9d4 100644 --- a/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +++ b/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts @@ -1,5 +1,11 @@ import { DeserializeHandlerOptions, Endpoint, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerdeContext, SerdeFunctions, SerializeHandlerOptions, UrlParser } from "@smithy/types"; +/** + * @deprecated will be replaced by schemaSerdePlugin from core/schema. + */ export declare const deserializerMiddlewareOption: DeserializeHandlerOptions; +/** + * @deprecated will be replaced by schemaSerdePlugin from core/schema. + */ export declare const serializerMiddlewareOption: SerializeHandlerOptions; /** * Modifies the EndpointBearer to make it compatible with Endpoints 2.0 change. @@ -13,6 +19,6 @@ export type V1OrV2Endpoint = { }; /** * @internal - * + * @deprecated will be replaced by schemaSerdePlugin from core/schema. */ export declare function getSerdePlugin(config: SerdeFunctions, serializer: RequestSerializer, deserializer: ResponseDeserializer): Pluggable; diff --git a/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts b/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts index 4c83006..c506770 100644 --- a/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +++ b/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts @@ -1,5 +1,6 @@ import { RequestSerializer, SerdeContext, SerdeFunctions, SerializeMiddleware } from "@smithy/types"; /** * @internal + * @deprecated will be replaced by schemaSerdePlugin from core/schema. */ export declare const serializerMiddleware: (options: SerdeFunctions, serializer: RequestSerializer) => SerializeMiddleware; diff --git a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts index 4d81141..fb9a8fa 100644 --- a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +++ b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts @@ -1,5 +1,6 @@ import { DeserializeMiddleware, ResponseDeserializer, SerdeContext, SerdeFunctions } from "@smithy/types"; /** * @internal + * @deprecated will be replaced by schemaSerdePlugin from core/schema. */ export declare const deserializerMiddleware: (options: SerdeFunctions, deserializer: ResponseDeserializer) => DeserializeMiddleware; diff --git a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts index bd0f8c6..61cf9d4 100644 --- a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +++ b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts @@ -1,5 +1,11 @@ import { DeserializeHandlerOptions, Endpoint, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerdeContext, SerdeFunctions, SerializeHandlerOptions, UrlParser } from "@smithy/types"; +/** + * @deprecated will be replaced by schemaSerdePlugin from core/schema. + */ export declare const deserializerMiddlewareOption: DeserializeHandlerOptions; +/** + * @deprecated will be replaced by schemaSerdePlugin from core/schema. + */ export declare const serializerMiddlewareOption: SerializeHandlerOptions; /** * Modifies the EndpointBearer to make it compatible with Endpoints 2.0 change. @@ -13,6 +19,6 @@ export type V1OrV2Endpoint = { }; /** * @internal - * + * @deprecated will be replaced by schemaSerdePlugin from core/schema. */ export declare function getSerdePlugin(config: SerdeFunctions, serializer: RequestSerializer, deserializer: ResponseDeserializer): Pluggable; diff --git a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts index 4c83006..c506770 100644 --- a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +++ b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts @@ -1,5 +1,6 @@ import { RequestSerializer, SerdeContext, SerdeFunctions, SerializeMiddleware } from "@smithy/types"; /** * @internal + * @deprecated will be replaced by schemaSerdePlugin from core/schema. */ export declare const serializerMiddleware: (options: SerdeFunctions, serializer: RequestSerializer) => SerializeMiddleware; diff --git a/node_modules/@smithy/middleware-serde/package.json b/node_modules/@smithy/middleware-serde/package.json index 0f3bc2f..f142785 100644 --- a/node_modules/@smithy/middleware-serde/package.json +++ b/node_modules/@smithy/middleware-serde/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/middleware-serde", - "version": "4.0.5", + "version": "4.0.8", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline middleware-serde", @@ -25,8 +25,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/middleware-stack/package.json b/node_modules/@smithy/middleware-stack/package.json index 57077ab..a2d4dcd 100644 --- a/node_modules/@smithy/middleware-stack/package.json +++ b/node_modules/@smithy/middleware-stack/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/middleware-stack", - "version": "4.0.2", + "version": "4.0.4", "description": "Provides a means for composing multiple middleware functions into a single handler", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", @@ -26,7 +26,7 @@ "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/node-config-provider/package.json b/node_modules/@smithy/node-config-provider/package.json index a64ff73..32376e4 100644 --- a/node_modules/@smithy/node-config-provider/package.json +++ b/node_modules/@smithy/node-config-provider/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/node-config-provider", - "version": "4.1.1", + "version": "4.1.3", "description": "Load config default values from ini config files and environmental variable", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", @@ -25,9 +25,9 @@ "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", "dependencies": { - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts b/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts index b120313..b50ab34 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts @@ -1,5 +1,3 @@ -/// -/// import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import type { Logger, NodeHttpHandlerOptions } from "@smithy/types"; import { HttpHandlerOptions, Provider } from "@smithy/types"; diff --git a/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts b/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts index 24bc3b5..dc50e78 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts @@ -1,4 +1,3 @@ -/// import { RequestContext } from "@smithy/types"; import { ConnectConfiguration } from "@smithy/types"; import { ConnectionManager, ConnectionManagerConfiguration } from "@smithy/types"; diff --git a/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts b/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts index 6695893..7abe19b 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts @@ -1,4 +1,3 @@ -/// import { ConnectionPool } from "@smithy/types"; import { ClientHttp2Session } from "http2"; export declare class NodeHttp2ConnectionPool implements ConnectionPool { @@ -8,6 +7,6 @@ export declare class NodeHttp2ConnectionPool implements ConnectionPool; + [Symbol.iterator](): ArrayIterator; destroy(connection: ClientHttp2Session): void; } diff --git a/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts index cd7e77f..f27ac7f 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts @@ -1,6 +1,3 @@ -/// -/// -/// import { Readable, ReadableOptions } from "stream"; export interface ReadFromBuffersOptions extends ReadableOptions { buffers: Buffer[]; diff --git a/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts b/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts index 57b811f..69024af 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts @@ -1,9 +1,2 @@ -/// -/// -/// -/// -/// -/// -/// import { ClientRequest } from "http"; export declare const setConnectionTimeout: (request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number) => NodeJS.Timeout | number; diff --git a/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts b/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts index 80507d8..949e57e 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts @@ -1,10 +1,3 @@ -/// -/// -/// -/// -/// -/// -/// import { ClientRequest } from "http"; export interface SocketKeepAliveOptions { keepAlive: boolean; diff --git a/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts b/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts index 019a62b..246cc64 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts @@ -1,9 +1,2 @@ -/// -/// -/// -/// -/// -/// -/// import { ClientRequest } from "http"; export declare const setSocketTimeout: (request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number) => NodeJS.Timeout | number; diff --git a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts b/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts index b7d4d12..1401347 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts @@ -1,6 +1,3 @@ -/// -/// -/// import { Writable } from "stream"; export declare class Collector extends Writable { readonly bufferedBytes: Buffer[]; diff --git a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts index 2543a28..a30cb29 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts @@ -1,6 +1,3 @@ -/// -/// -/// import { Readable, ReadableOptions } from "stream"; export interface ReadFromBuffersOptions extends ReadableOptions { buffers: Buffer[]; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts index 6af97c4..5fcc92b 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts @@ -1,4 +1,3 @@ -/// import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Logger, NodeHttpHandlerOptions } from "@smithy/types"; import { HttpHandlerOptions, Provider } from "@smithy/types"; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts index 24bc3b5..dc50e78 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts @@ -1,4 +1,3 @@ -/// import { RequestContext } from "@smithy/types"; import { ConnectConfiguration } from "@smithy/types"; import { ConnectionManager, ConnectionManagerConfiguration } from "@smithy/types"; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts index 6695893..7abe19b 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts @@ -1,4 +1,3 @@ -/// import { ConnectionPool } from "@smithy/types"; import { ClientHttp2Session } from "http2"; export declare class NodeHttp2ConnectionPool implements ConnectionPool { @@ -8,6 +7,6 @@ export declare class NodeHttp2ConnectionPool implements ConnectionPool; + [Symbol.iterator](): ArrayIterator; destroy(connection: ClientHttp2Session): void; } diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts index 8f1266f..f27ac7f 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts @@ -1,4 +1,3 @@ -/// import { Readable, ReadableOptions } from "stream"; export interface ReadFromBuffersOptions extends ReadableOptions { buffers: Buffer[]; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts index bf12856..69024af 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts @@ -1,3 +1,2 @@ -/// import { ClientRequest } from "http"; export declare const setConnectionTimeout: (request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number) => NodeJS.Timeout | number; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts index c1488e5..949e57e 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts @@ -1,4 +1,3 @@ -/// import { ClientRequest } from "http"; export interface SocketKeepAliveOptions { keepAlive: boolean; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts index 8aaf7bf..246cc64 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts @@ -1,3 +1,2 @@ -/// import { ClientRequest } from "http"; export declare const setSocketTimeout: (request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number) => NodeJS.Timeout | number; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts index 679890f..1401347 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts @@ -1,4 +1,3 @@ -/// import { Writable } from "stream"; export declare class Collector extends Writable { readonly bufferedBytes: Buffer[]; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts index 5549bc6..a30cb29 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts @@ -1,4 +1,3 @@ -/// import { Readable, ReadableOptions } from "stream"; export interface ReadFromBuffersOptions extends ReadableOptions { buffers: Buffer[]; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts index cfc2266..9fa5ff1 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts @@ -1,4 +1,3 @@ -/// import { HttpRequest } from "@smithy/types"; import { ClientRequest } from "http"; import { ClientHttp2Stream } from "http2"; diff --git a/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts b/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts index 0c49e32..9fa5ff1 100644 --- a/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +++ b/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts @@ -1,5 +1,3 @@ -/// -/// import { HttpRequest } from "@smithy/types"; import { ClientRequest } from "http"; import { ClientHttp2Stream } from "http2"; diff --git a/node_modules/@smithy/node-http-handler/package.json b/node_modules/@smithy/node-http-handler/package.json index 2e4e1e3..9b4e31e 100644 --- a/node_modules/@smithy/node-http-handler/package.json +++ b/node_modules/@smithy/node-http-handler/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/node-http-handler", - "version": "4.0.4", + "version": "4.0.6", "description": "Provides a way to make requests", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", @@ -26,10 +26,10 @@ "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/querystring-builder": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/abort-controller": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/querystring-builder": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/property-provider/dist-types/chain.d.ts b/node_modules/@smithy/property-provider/dist-types/chain.d.ts index 168df5c..34e5f42 100644 --- a/node_modules/@smithy/property-provider/dist-types/chain.d.ts +++ b/node_modules/@smithy/property-provider/dist-types/chain.d.ts @@ -10,4 +10,4 @@ import { Provider } from "@smithy/types"; * If no providers were received or no provider resolves successfully, the * returned promise will be rejected. */ -export declare const chain: (...providers: Provider[]) => Provider; +export declare const chain: (...providers: Array>) => Provider; diff --git a/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts b/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts index 168df5c..34e5f42 100644 --- a/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +++ b/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts @@ -10,4 +10,4 @@ import { Provider } from "@smithy/types"; * If no providers were received or no provider resolves successfully, the * returned promise will be rejected. */ -export declare const chain: (...providers: Provider[]) => Provider; +export declare const chain: (...providers: Array>) => Provider; diff --git a/node_modules/@smithy/property-provider/package.json b/node_modules/@smithy/property-provider/package.json index b2e7fc6..d65a261 100644 --- a/node_modules/@smithy/property-provider/package.json +++ b/node_modules/@smithy/property-provider/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/property-provider", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline property-provider", @@ -23,7 +23,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts b/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts index bfe452d..ec7fc27 100644 --- a/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +++ b/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts @@ -19,12 +19,10 @@ export type HttpHandlerExtensionConfigType = * * Helper function to resolve default extension configuration from runtime config */ -export declare const getHttpHandlerExtensionConfiguration: (runtimeConfig: Partial<{ - httpHandler: HttpHandler; -}>) => { +export declare const getHttpHandlerExtensionConfiguration: (runtimeConfig: HttpHandlerExtensionConfigType) => { setHttpHandler(handler: HttpHandler): void; httpHandler(): HttpHandler; - updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[keyof HandlerConfig]): void; + updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[typeof key]): void; httpHandlerConfigs(): HandlerConfig; }; /** @@ -32,6 +30,4 @@ export declare const getHttpHandlerExtensionConfiguration: (httpHandlerExtensionConfiguration: HttpHandlerExtensionConfiguration) => Partial<{ - httpHandler: HttpHandler; -}>; +export declare const resolveHttpHandlerRuntimeConfig: (httpHandlerExtensionConfiguration: HttpHandlerExtensionConfiguration) => HttpHandlerExtensionConfigType; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts index bfe452d..ec7fc27 100644 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +++ b/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts @@ -19,12 +19,10 @@ export type HttpHandlerExtensionConfigType = * * Helper function to resolve default extension configuration from runtime config */ -export declare const getHttpHandlerExtensionConfiguration: (runtimeConfig: Partial<{ - httpHandler: HttpHandler; -}>) => { +export declare const getHttpHandlerExtensionConfiguration: (runtimeConfig: HttpHandlerExtensionConfigType) => { setHttpHandler(handler: HttpHandler): void; httpHandler(): HttpHandler; - updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[keyof HandlerConfig]): void; + updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[typeof key]): void; httpHandlerConfigs(): HandlerConfig; }; /** @@ -32,6 +30,4 @@ export declare const getHttpHandlerExtensionConfiguration: (httpHandlerExtensionConfiguration: HttpHandlerExtensionConfiguration) => Partial<{ - httpHandler: HttpHandler; -}>; +export declare const resolveHttpHandlerRuntimeConfig: (httpHandlerExtensionConfiguration: HttpHandlerExtensionConfiguration) => HttpHandlerExtensionConfigType; diff --git a/node_modules/@smithy/protocol-http/package.json b/node_modules/@smithy/protocol-http/package.json index 549711a..045d014 100644 --- a/node_modules/@smithy/protocol-http/package.json +++ b/node_modules/@smithy/protocol-http/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/protocol-http", - "version": "5.1.0", + "version": "5.1.2", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline protocol-http", @@ -24,7 +24,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/querystring-builder/package.json b/node_modules/@smithy/querystring-builder/package.json index d144f0a..6338f69 100644 --- a/node_modules/@smithy/querystring-builder/package.json +++ b/node_modules/@smithy/querystring-builder/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/querystring-builder", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline querystring-builder", @@ -22,7 +22,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-uri-escape": "^4.0.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@smithy/querystring-parser/package.json b/node_modules/@smithy/querystring-parser/package.json index 9a27e7e..111b2ad 100644 --- a/node_modules/@smithy/querystring-parser/package.json +++ b/node_modules/@smithy/querystring-parser/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/querystring-parser", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline querystring-parser", @@ -23,7 +23,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/service-error-classification/package.json b/node_modules/@smithy/service-error-classification/package.json index a568aee..c5c1158 100644 --- a/node_modules/@smithy/service-error-classification/package.json +++ b/node_modules/@smithy/service-error-classification/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/service-error-classification", - "version": "4.0.3", + "version": "4.0.5", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline service-error-classification", @@ -54,6 +54,6 @@ "directory": ".release/package" }, "dependencies": { - "@smithy/types": "^4.2.0" + "@smithy/types": "^4.3.1" } } \ No newline at end of file diff --git a/node_modules/@smithy/shared-ini-file-loader/package.json b/node_modules/@smithy/shared-ini-file-loader/package.json index e6dfbfe..58fb446 100644 --- a/node_modules/@smithy/shared-ini-file-loader/package.json +++ b/node_modules/@smithy/shared-ini-file-loader/package.json @@ -1,8 +1,8 @@ { "name": "@smithy/shared-ini-file-loader", - "version": "4.0.2", + "version": "4.0.4", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/signature-v4/package.json b/node_modules/@smithy/signature-v4/package.json index 56e028c..6c9276a 100644 --- a/node_modules/@smithy/signature-v4/package.json +++ b/node_modules/@smithy/signature-v4/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/signature-v4", - "version": "5.1.0", + "version": "5.1.2", "description": "A standalone implementation of the AWS Signature V4 request signing algorithm", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -26,10 +26,10 @@ "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^4.0.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "@smithy/util-hex-encoding": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "@smithy/util-uri-escape": "^4.0.0", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" diff --git a/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js b/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js deleted file mode 100644 index 532e610..0000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/smithy-client/dist-cjs/index.js b/node_modules/@smithy/smithy-client/dist-cjs/index.js index cea1bcc..c43f639 100644 --- a/node_modules/@smithy/smithy-client/dist-cjs/index.js +++ b/node_modules/@smithy/smithy-client/dist-cjs/index.js @@ -15,6 +15,7 @@ var __copyProps = (to, from, except, desc) => { } return to; }; +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.ts @@ -22,7 +23,6 @@ var src_exports = {}; __export(src_exports, { Client: () => Client, Command: () => Command, - LazyJsonString: () => LazyJsonString, NoOpLogger: () => NoOpLogger, SENSITIVE_STRING: () => SENSITIVE_STRING, ServiceException: () => ServiceException, @@ -30,54 +30,20 @@ __export(src_exports, { collectBody: () => import_protocols.collectBody, convertMap: () => convertMap, createAggregatedClient: () => createAggregatedClient, - dateToUtcString: () => dateToUtcString, decorateServiceException: () => decorateServiceException, emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion, - expectBoolean: () => expectBoolean, - expectByte: () => expectByte, - expectFloat32: () => expectFloat32, - expectInt: () => expectInt, - expectInt32: () => expectInt32, - expectLong: () => expectLong, - expectNonNull: () => expectNonNull, - expectNumber: () => expectNumber, - expectObject: () => expectObject, - expectShort: () => expectShort, - expectString: () => expectString, - expectUnion: () => expectUnion, extendedEncodeURIComponent: () => import_protocols.extendedEncodeURIComponent, getArrayIfSingleItem: () => getArrayIfSingleItem, getDefaultClientConfiguration: () => getDefaultClientConfiguration, getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration, getValueFromTextNode: () => getValueFromTextNode, - handleFloat: () => handleFloat, isSerializableHeaderValue: () => isSerializableHeaderValue, - limitedParseDouble: () => limitedParseDouble, - limitedParseFloat: () => limitedParseFloat, - limitedParseFloat32: () => limitedParseFloat32, loadConfigsForDefaultMode: () => loadConfigsForDefaultMode, - logger: () => logger, map: () => map, - parseBoolean: () => parseBoolean, - parseEpochTimestamp: () => parseEpochTimestamp, - parseRfc3339DateTime: () => parseRfc3339DateTime, - parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset, - parseRfc7231DateTime: () => parseRfc7231DateTime, - quoteHeader: () => quoteHeader, resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig, resolvedPath: () => import_protocols.resolvedPath, serializeDateTime: () => serializeDateTime, serializeFloat: () => serializeFloat, - splitEvery: () => splitEvery, - splitHeader: () => splitHeader, - strictParseByte: () => strictParseByte, - strictParseDouble: () => strictParseDouble, - strictParseFloat: () => strictParseFloat, - strictParseFloat32: () => strictParseFloat32, - strictParseInt: () => strictParseInt, - strictParseInt32: () => strictParseInt32, - strictParseLong: () => strictParseLong, - strictParseShort: () => strictParseShort, take: () => take, throwDefaultError: () => throwDefaultError, withBaseException: () => withBaseException @@ -171,9 +137,9 @@ var Command = class { this.middlewareStack.use(mw); } const stack = clientStack.concat(this.middlewareStack); - const { logger: logger2 } = configuration; + const { logger } = configuration; const handlerExecutionContext = { - logger: logger2, + logger, clientName, commandName, inputFilterSensitiveLog, @@ -277,6 +243,14 @@ var ClassBuilder = class { this._deserializer = deserializer; return this; } + /** + * Sets input/output schema for the operation. + */ + sc(operation) { + this._operationSchema = operation; + this._smithyContext.operationSchema = operation; + return this; + } /** * @returns a Command class with the classBuilder properties. */ @@ -301,6 +275,7 @@ var ClassBuilder = class { this.deserialize = closure._deserializer; this.input = input ?? {}; closure._init(this); + this.schema = closure._operationSchema; } static { __name(this, "CommandRef"); @@ -354,460 +329,6 @@ var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => { } }, "createAggregatedClient"); -// src/parse-utils.ts -var parseBoolean = /* @__PURE__ */ __name((value) => { - switch (value) { - case "true": - return true; - case "false": - return false; - default: - throw new Error(`Unable to parse boolean value "${value}"`); - } -}, "parseBoolean"); -var expectBoolean = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === "number") { - if (value === 0 || value === 1) { - logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); - } - if (value === 0) { - return false; - } - if (value === 1) { - return true; - } - } - if (typeof value === "string") { - const lower = value.toLowerCase(); - if (lower === "false" || lower === "true") { - logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); - } - if (lower === "false") { - return false; - } - if (lower === "true") { - return true; - } - } - if (typeof value === "boolean") { - return value; - } - throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); -}, "expectBoolean"); -var expectNumber = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === "string") { - const parsed = parseFloat(value); - if (!Number.isNaN(parsed)) { - if (String(parsed) !== String(value)) { - logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); - } - return parsed; - } - } - if (typeof value === "number") { - return value; - } - throw new TypeError(`Expected number, got ${typeof value}: ${value}`); -}, "expectNumber"); -var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); -var expectFloat32 = /* @__PURE__ */ __name((value) => { - const expected = expectNumber(value); - if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { - if (Math.abs(expected) > MAX_FLOAT) { - throw new TypeError(`Expected 32-bit float, got ${value}`); - } - } - return expected; -}, "expectFloat32"); -var expectLong = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - if (Number.isInteger(value) && !Number.isNaN(value)) { - return value; - } - throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); -}, "expectLong"); -var expectInt = expectLong; -var expectInt32 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 32), "expectInt32"); -var expectShort = /* @__PURE__ */ __name((value) => expectSizedInt(value, 16), "expectShort"); -var expectByte = /* @__PURE__ */ __name((value) => expectSizedInt(value, 8), "expectByte"); -var expectSizedInt = /* @__PURE__ */ __name((value, size) => { - const expected = expectLong(value); - if (expected !== void 0 && castInt(expected, size) !== expected) { - throw new TypeError(`Expected ${size}-bit integer, got ${value}`); - } - return expected; -}, "expectSizedInt"); -var castInt = /* @__PURE__ */ __name((value, size) => { - switch (size) { - case 32: - return Int32Array.of(value)[0]; - case 16: - return Int16Array.of(value)[0]; - case 8: - return Int8Array.of(value)[0]; - } -}, "castInt"); -var expectNonNull = /* @__PURE__ */ __name((value, location) => { - if (value === null || value === void 0) { - if (location) { - throw new TypeError(`Expected a non-null value for ${location}`); - } - throw new TypeError("Expected a non-null value"); - } - return value; -}, "expectNonNull"); -var expectObject = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === "object" && !Array.isArray(value)) { - return value; - } - const receivedType = Array.isArray(value) ? "array" : typeof value; - throw new TypeError(`Expected object, got ${receivedType}: ${value}`); -}, "expectObject"); -var expectString = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === "string") { - return value; - } - if (["boolean", "number", "bigint"].includes(typeof value)) { - logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); - return String(value); - } - throw new TypeError(`Expected string, got ${typeof value}: ${value}`); -}, "expectString"); -var expectUnion = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - const asObject = expectObject(value); - const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); - if (setKeys.length === 0) { - throw new TypeError(`Unions must have exactly one non-null member. None were found.`); - } - if (setKeys.length > 1) { - throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); - } - return asObject; -}, "expectUnion"); -var strictParseDouble = /* @__PURE__ */ __name((value) => { - if (typeof value == "string") { - return expectNumber(parseNumber(value)); - } - return expectNumber(value); -}, "strictParseDouble"); -var strictParseFloat = strictParseDouble; -var strictParseFloat32 = /* @__PURE__ */ __name((value) => { - if (typeof value == "string") { - return expectFloat32(parseNumber(value)); - } - return expectFloat32(value); -}, "strictParseFloat32"); -var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; -var parseNumber = /* @__PURE__ */ __name((value) => { - const matches = value.match(NUMBER_REGEX); - if (matches === null || matches[0].length !== value.length) { - throw new TypeError(`Expected real number, got implicit NaN`); - } - return parseFloat(value); -}, "parseNumber"); -var limitedParseDouble = /* @__PURE__ */ __name((value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return expectNumber(value); -}, "limitedParseDouble"); -var handleFloat = limitedParseDouble; -var limitedParseFloat = limitedParseDouble; -var limitedParseFloat32 = /* @__PURE__ */ __name((value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return expectFloat32(value); -}, "limitedParseFloat32"); -var parseFloatString = /* @__PURE__ */ __name((value) => { - switch (value) { - case "NaN": - return NaN; - case "Infinity": - return Infinity; - case "-Infinity": - return -Infinity; - default: - throw new Error(`Unable to parse float value: ${value}`); - } -}, "parseFloatString"); -var strictParseLong = /* @__PURE__ */ __name((value) => { - if (typeof value === "string") { - return expectLong(parseNumber(value)); - } - return expectLong(value); -}, "strictParseLong"); -var strictParseInt = strictParseLong; -var strictParseInt32 = /* @__PURE__ */ __name((value) => { - if (typeof value === "string") { - return expectInt32(parseNumber(value)); - } - return expectInt32(value); -}, "strictParseInt32"); -var strictParseShort = /* @__PURE__ */ __name((value) => { - if (typeof value === "string") { - return expectShort(parseNumber(value)); - } - return expectShort(value); -}, "strictParseShort"); -var strictParseByte = /* @__PURE__ */ __name((value) => { - if (typeof value === "string") { - return expectByte(parseNumber(value)); - } - return expectByte(value); -}, "strictParseByte"); -var stackTraceWarning = /* @__PURE__ */ __name((message) => { - return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); -}, "stackTraceWarning"); -var logger = { - warn: console.warn -}; - -// src/date-utils.ts -var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; -var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; -function dateToUtcString(date) { - const year = date.getUTCFullYear(); - const month = date.getUTCMonth(); - const dayOfWeek = date.getUTCDay(); - const dayOfMonthInt = date.getUTCDate(); - const hoursInt = date.getUTCHours(); - const minutesInt = date.getUTCMinutes(); - const secondsInt = date.getUTCSeconds(); - const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; - const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; - const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; - const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; - return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; -} -__name(dateToUtcString, "dateToUtcString"); -var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); -var parseRfc3339DateTime = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = strictParseShort(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); -}, "parseRfc3339DateTime"); -var RFC3339_WITH_OFFSET = new RegExp( - /^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/ -); -var parseRfc3339DateTimeWithOffset = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339_WITH_OFFSET.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; - const year = strictParseShort(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); - if (offsetStr.toUpperCase() != "Z") { - date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); - } - return date; -}, "parseRfc3339DateTimeWithOffset"); -var IMF_FIXDATE = new RegExp( - /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ -); -var RFC_850_DATE = new RegExp( - /^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ -); -var ASC_TIME = new RegExp( - /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/ -); -var parseRfc7231DateTime = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== "string") { - throw new TypeError("RFC-7231 date-times must be expressed as strings"); - } - let match = IMF_FIXDATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate( - strictParseShort(stripLeadingZeroes(yearStr)), - parseMonthByShortName(monthStr), - parseDateValue(dayStr, "day", 1, 31), - { hours, minutes, seconds, fractionalMilliseconds } - ); - } - match = RFC_850_DATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year( - buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds - }) - ); - } - match = ASC_TIME.exec(value); - if (match) { - const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate( - strictParseShort(stripLeadingZeroes(yearStr)), - parseMonthByShortName(monthStr), - parseDateValue(dayStr.trimLeft(), "day", 1, 31), - { hours, minutes, seconds, fractionalMilliseconds } - ); - } - throw new TypeError("Invalid RFC-7231 date-time value"); -}, "parseRfc7231DateTime"); -var parseEpochTimestamp = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return void 0; - } - let valueAsDouble; - if (typeof value === "number") { - valueAsDouble = value; - } else if (typeof value === "string") { - valueAsDouble = strictParseDouble(value); - } else if (typeof value === "object" && value.tag === 1) { - valueAsDouble = value.value; - } else { - throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); - } - if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { - throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); - } - return new Date(Math.round(valueAsDouble * 1e3)); -}, "parseEpochTimestamp"); -var buildDate = /* @__PURE__ */ __name((year, month, day, time) => { - const adjustedMonth = month - 1; - validateDayOfMonth(year, adjustedMonth, day); - return new Date( - Date.UTC( - year, - adjustedMonth, - day, - parseDateValue(time.hours, "hour", 0, 23), - parseDateValue(time.minutes, "minute", 0, 59), - // seconds can go up to 60 for leap seconds - parseDateValue(time.seconds, "seconds", 0, 60), - parseMilliseconds(time.fractionalMilliseconds) - ) - ); -}, "buildDate"); -var parseTwoDigitYear = /* @__PURE__ */ __name((value) => { - const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value)); - if (valueInThisCentury < thisYear) { - return valueInThisCentury + 100; - } - return valueInThisCentury; -}, "parseTwoDigitYear"); -var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; -var adjustRfc850Year = /* @__PURE__ */ __name((input) => { - if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date( - Date.UTC( - input.getUTCFullYear() - 100, - input.getUTCMonth(), - input.getUTCDate(), - input.getUTCHours(), - input.getUTCMinutes(), - input.getUTCSeconds(), - input.getUTCMilliseconds() - ) - ); - } - return input; -}, "adjustRfc850Year"); -var parseMonthByShortName = /* @__PURE__ */ __name((value) => { - const monthIdx = MONTHS.indexOf(value); - if (monthIdx < 0) { - throw new TypeError(`Invalid month: ${value}`); - } - return monthIdx + 1; -}, "parseMonthByShortName"); -var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -var validateDayOfMonth = /* @__PURE__ */ __name((year, month, day) => { - let maxDays = DAYS_IN_MONTH[month]; - if (month === 1 && isLeapYear(year)) { - maxDays = 29; - } - if (day > maxDays) { - throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); - } -}, "validateDayOfMonth"); -var isLeapYear = /* @__PURE__ */ __name((year) => { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -}, "isLeapYear"); -var parseDateValue = /* @__PURE__ */ __name((value, type, lower, upper) => { - const dateVal = strictParseByte(stripLeadingZeroes(value)); - if (dateVal < lower || dateVal > upper) { - throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); - } - return dateVal; -}, "parseDateValue"); -var parseMilliseconds = /* @__PURE__ */ __name((value) => { - if (value === null || value === void 0) { - return 0; - } - return strictParseFloat32("0." + value) * 1e3; -}, "parseMilliseconds"); -var parseOffsetToMilliseconds = /* @__PURE__ */ __name((value) => { - const directionStr = value[0]; - let direction = 1; - if (directionStr == "+") { - direction = 1; - } else if (directionStr == "-") { - direction = -1; - } else { - throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); - } - const hour = Number(value.substring(1, 3)); - const minute = Number(value.substring(4, 6)); - return direction * (hour * 60 + minute) * 60 * 1e3; -}, "parseOffsetToMilliseconds"); -var stripLeadingZeroes = /* @__PURE__ */ __name((value) => { - let idx = 0; - while (idx < value.length - 1 && value.charAt(idx) === "0") { - idx++; - } - if (idx === 0) { - return value; - } - return value.slice(idx); -}, "stripLeadingZeroes"); - // src/exceptions.ts var ServiceException = class _ServiceException extends Error { static { @@ -1000,31 +521,6 @@ var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => { return value != null; }, "isSerializableHeaderValue"); -// src/lazy-json.ts -var LazyJsonString = /* @__PURE__ */ __name(function LazyJsonString2(val) { - const str = Object.assign(new String(val), { - deserializeJSON() { - return JSON.parse(String(val)); - }, - toString() { - return String(val); - }, - toJSON() { - return String(val); - } - }); - return str; -}, "LazyJsonString"); -LazyJsonString.from = (object) => { - if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) { - return object; - } else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) { - return LazyJsonString(String(object)); - } - return LazyJsonString(JSON.stringify(object)); -}; -LazyJsonString.fromObject = LazyJsonString.from; - // src/NoOpLogger.ts var NoOpLogger = class { static { @@ -1137,15 +633,6 @@ var applyInstruction = /* @__PURE__ */ __name((target, source, instructions, tar var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish"); var pass = /* @__PURE__ */ __name((_) => _, "pass"); -// src/quote-header.ts -function quoteHeader(part) { - if (part.includes(",") || part.includes('"')) { - part = `"${part.replace(/"/g, '\\"')}"`; - } - return part; -} -__name(quoteHeader, "quoteHeader"); - // src/resolve-path.ts @@ -1186,73 +673,8 @@ var _json = /* @__PURE__ */ __name((obj) => { return obj; }, "_json"); -// src/split-every.ts -function splitEvery(value, delimiter, numDelimiters) { - if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { - throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); - } - const segments = value.split(delimiter); - if (numDelimiters === 1) { - return segments; - } - const compoundSegments = []; - let currentSegment = ""; - for (let i = 0; i < segments.length; i++) { - if (currentSegment === "") { - currentSegment = segments[i]; - } else { - currentSegment += delimiter + segments[i]; - } - if ((i + 1) % numDelimiters === 0) { - compoundSegments.push(currentSegment); - currentSegment = ""; - } - } - if (currentSegment !== "") { - compoundSegments.push(currentSegment); - } - return compoundSegments; -} -__name(splitEvery, "splitEvery"); - -// src/split-header.ts -var splitHeader = /* @__PURE__ */ __name((value) => { - const z = value.length; - const values = []; - let withinQuotes = false; - let prevChar = void 0; - let anchor = 0; - for (let i = 0; i < z; ++i) { - const char = value[i]; - switch (char) { - case `"`: - if (prevChar !== "\\") { - withinQuotes = !withinQuotes; - } - break; - case ",": - if (!withinQuotes) { - values.push(value.slice(anchor, i)); - anchor = i + 1; - } - break; - default: - } - prevChar = char; - } - values.push(value.slice(anchor)); - return values.map((v) => { - v = v.trim(); - const z2 = v.length; - if (z2 < 2) { - return v; - } - if (v[0] === `"` && v[z2 - 1] === `"`) { - v = v.slice(1, z2 - 1); - } - return v.replace(/\\"/g, '"'); - }); -}, "splitHeader"); +// src/index.ts +__reExport(src_exports, require("@smithy/core/serde"), module.exports); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { @@ -1261,11 +683,6 @@ var splitHeader = /* @__PURE__ */ __name((value) => { Command, SENSITIVE_STRING, createAggregatedClient, - parseRfc3339DateTime, - parseRfc3339DateTimeWithOffset, - parseRfc7231DateTime, - parseEpochTimestamp, - dateToUtcString, throwDefaultError, withBaseException, loadConfigsForDefaultMode, @@ -1279,43 +696,51 @@ var splitHeader = /* @__PURE__ */ __name((value) => { getArrayIfSingleItem, getValueFromTextNode, isSerializableHeaderValue, - LazyJsonString, NoOpLogger, convertMap, take, map, - parseBoolean, + resolvedPath, + serializeFloat, + serializeDateTime, + _json, + LazyJsonString, + NumericValue, + copyDocumentWithTransform, + dateToUtcString, expectBoolean, - expectNumber, + expectByte, expectFloat32, - expectLong, expectInt, expectInt32, - expectShort, - expectByte, + expectLong, expectNonNull, + expectNumber, expectObject, + expectShort, expectString, expectUnion, - strictParseDouble, - strictParseFloat, - strictParseFloat32, - limitedParseDouble, handleFloat, + limitedParseDouble, limitedParseFloat, limitedParseFloat32, - strictParseLong, - strictParseInt, - strictParseInt32, - strictParseShort, - strictParseByte, logger, + nv, + parseBoolean, + parseEpochTimestamp, + parseRfc3339DateTime, + parseRfc3339DateTimeWithOffset, + parseRfc7231DateTime, quoteHeader, - resolvedPath, - serializeFloat, - serializeDateTime, - _json, splitEvery, - splitHeader + splitHeader, + strictParseByte, + strictParseDouble, + strictParseFloat, + strictParseFloat32, + strictParseInt, + strictParseInt32, + strictParseLong, + strictParseShort }); diff --git a/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js b/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js deleted file mode 100644 index 532e610..0000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js b/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js deleted file mode 100644 index 532e610..0000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/smithy-client/dist-cjs/quote-header.js b/node_modules/@smithy/smithy-client/dist-cjs/quote-header.js deleted file mode 100644 index 532e610..0000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/quote-header.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/smithy-client/dist-cjs/split-every.js b/node_modules/@smithy/smithy-client/dist-cjs/split-every.js deleted file mode 100644 index 532e610..0000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/smithy-client/dist-cjs/split-header.js b/node_modules/@smithy/smithy-client/dist-cjs/split-header.js deleted file mode 100644 index 532e610..0000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/split-header.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/smithy-client/dist-es/command.js b/node_modules/@smithy/smithy-client/dist-es/command.js index 078eecb..09c093e 100644 --- a/node_modules/@smithy/smithy-client/dist-es/command.js +++ b/node_modules/@smithy/smithy-client/dist-es/command.js @@ -84,6 +84,11 @@ class ClassBuilder { this._deserializer = deserializer; return this; } + sc(operation) { + this._operationSchema = operation; + this._smithyContext.operationSchema = operation; + return this; + } build() { const closure = this; let CommandRef; @@ -97,6 +102,7 @@ class ClassBuilder { this.deserialize = closure._deserializer; this.input = input ?? {}; closure._init(this); + this.schema = closure._operationSchema; } resolveMiddleware(stack, configuration, options) { return this.resolveMiddlewareWithContext(stack, configuration, options, { diff --git a/node_modules/@smithy/smithy-client/dist-es/index.js b/node_modules/@smithy/smithy-client/dist-es/index.js index b05ab01..7dbe607 100644 --- a/node_modules/@smithy/smithy-client/dist-es/index.js +++ b/node_modules/@smithy/smithy-client/dist-es/index.js @@ -3,7 +3,6 @@ export * from "./collect-stream-body"; export * from "./command"; export * from "./constants"; export * from "./create-aggregated-client"; -export * from "./date-utils"; export * from "./default-error-handler"; export * from "./defaults-mode"; export * from "./emitWarningIfUnsupportedVersion"; @@ -13,13 +12,9 @@ export * from "./extensions"; export * from "./get-array-if-single-item"; export * from "./get-value-from-text-node"; export * from "./is-serializable-header-value"; -export * from "./lazy-json"; export * from "./NoOpLogger"; export * from "./object-mapping"; -export * from "./parse-utils"; -export * from "./quote-header"; export * from "./resolve-path"; export * from "./ser-utils"; export * from "./serde-json"; -export * from "./split-every"; -export * from "./split-header"; +export * from "@smithy/core/serde"; diff --git a/node_modules/@smithy/smithy-client/dist-types/command.d.ts b/node_modules/@smithy/smithy-client/dist-types/command.d.ts index 3625b88..7f1ca95 100644 --- a/node_modules/@smithy/smithy-client/dist-types/command.d.ts +++ b/node_modules/@smithy/smithy-client/dist-types/command.d.ts @@ -1,11 +1,12 @@ import type { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import type { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types"; +import type { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types"; /** * @public */ export declare abstract class Command implements ICommand { abstract input: Input; readonly middlewareStack: IMiddlewareStack; + readonly schema?: OperationSchema; /** * Factory for Command ClassBuilder. * @internal @@ -54,6 +55,7 @@ declare class ClassBuilder Promise): ClassBuilder; + /** + * Sets input/output schema for the operation. + */ + sc(operation: OperationSchema): ClassBuilder; /** * @returns a Command class with the classBuilder properties. */ diff --git a/node_modules/@smithy/smithy-client/dist-types/index.d.ts b/node_modules/@smithy/smithy-client/dist-types/index.d.ts index 4a4ac19..666ce52 100644 --- a/node_modules/@smithy/smithy-client/dist-types/index.d.ts +++ b/node_modules/@smithy/smithy-client/dist-types/index.d.ts @@ -4,7 +4,6 @@ export * from "./collect-stream-body"; export * from "./command"; export * from "./constants"; export * from "./create-aggregated-client"; -export * from "./date-utils"; export * from "./default-error-handler"; export * from "./defaults-mode"; export * from "./emitWarningIfUnsupportedVersion"; @@ -14,13 +13,9 @@ export * from "./extensions"; export * from "./get-array-if-single-item"; export * from "./get-value-from-text-node"; export * from "./is-serializable-header-value"; -export * from "./lazy-json"; export * from "./NoOpLogger"; export * from "./object-mapping"; -export * from "./parse-utils"; -export * from "./quote-header"; export * from "./resolve-path"; export * from "./ser-utils"; export * from "./serde-json"; -export * from "./split-every"; -export * from "./split-header"; +export * from "@smithy/core/serde"; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts index f911f27..8d26197 100644 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +++ b/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts @@ -1,11 +1,12 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types"; +import { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types"; /** * @public */ export declare abstract class Command implements ICommand { abstract input: Input; readonly middlewareStack: IMiddlewareStack; + readonly schema?: OperationSchema; /** * Factory for Command ClassBuilder. * @internal @@ -54,6 +55,7 @@ declare class ClassBuilder Promise): ClassBuilder; + /** + * Sets input/output schema for the operation. + */ + sc(operation: OperationSchema): ClassBuilder; /** * @returns a Command class with the classBuilder properties. */ diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts index cb0d4ff..1f8d0bf 100644 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +++ b/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts @@ -4,7 +4,6 @@ export * from "./collect-stream-body"; export * from "./command"; export * from "./constants"; export * from "./create-aggregated-client"; -export * from "./date-utils"; export * from "./default-error-handler"; export * from "./defaults-mode"; export * from "./emitWarningIfUnsupportedVersion"; @@ -14,13 +13,9 @@ export * from "./extensions"; export * from "./get-array-if-single-item"; export * from "./get-value-from-text-node"; export * from "./is-serializable-header-value"; -export * from "./lazy-json"; export * from "./NoOpLogger"; export * from "./object-mapping"; -export * from "./parse-utils"; -export * from "./quote-header"; export * from "./resolve-path"; export * from "./ser-utils"; export * from "./serde-json"; -export * from "./split-every"; -export * from "./split-header"; +export * from "@smithy/core/serde"; diff --git a/node_modules/@smithy/smithy-client/package.json b/node_modules/@smithy/smithy-client/package.json index 407b73c..f68e3b7 100644 --- a/node_modules/@smithy/smithy-client/package.json +++ b/node_modules/@smithy/smithy-client/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/smithy-client", - "version": "4.2.6", + "version": "4.4.3", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline smithy-client", @@ -11,7 +11,7 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", + "extract:docs": "node ./scripts/fix-api-extractor && api-extractor run --local && node ./scripts/fix-api-extractor --unset", "test": "yarn g:vitest run", "test:watch": "yarn g:vitest watch" }, @@ -24,12 +24,12 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.3.3", - "@smithy/middleware-endpoint": "^4.1.6", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", - "@smithy/util-stream": "^4.2.0", + "@smithy/core": "^3.5.3", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-stream": "^4.2.2", "tslib": "^2.6.2" }, "engines": { diff --git a/node_modules/@smithy/types/dist-cjs/schema/schema.js b/node_modules/@smithy/types/dist-cjs/schema/schema.js new file mode 100644 index 0000000..0440577 --- /dev/null +++ b/node_modules/@smithy/types/dist-cjs/schema/schema.js @@ -0,0 +1 @@ +module.exports = require("../index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/types/dist-cjs/schema/sentinels.js b/node_modules/@smithy/types/dist-cjs/schema/sentinels.js new file mode 100644 index 0000000..0440577 --- /dev/null +++ b/node_modules/@smithy/types/dist-cjs/schema/sentinels.js @@ -0,0 +1 @@ +module.exports = require("../index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/types/dist-cjs/schema/traits.js b/node_modules/@smithy/types/dist-cjs/schema/traits.js new file mode 100644 index 0000000..0440577 --- /dev/null +++ b/node_modules/@smithy/types/dist-cjs/schema/traits.js @@ -0,0 +1 @@ +module.exports = require("../index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/types/dist-cjs/transform/mutable.js b/node_modules/@smithy/types/dist-cjs/transform/mutable.js new file mode 100644 index 0000000..0440577 --- /dev/null +++ b/node_modules/@smithy/types/dist-cjs/transform/mutable.js @@ -0,0 +1 @@ +module.exports = require("../index.js"); \ No newline at end of file diff --git a/node_modules/@smithy/types/dist-es/index.js b/node_modules/@smithy/types/dist-es/index.js index c370335..b1dfb30 100644 --- a/node_modules/@smithy/types/dist-es/index.js +++ b/node_modules/@smithy/types/dist-es/index.js @@ -21,6 +21,8 @@ export * from "./pagination"; export * from "./profile"; export * from "./response"; export * from "./retry"; +export * from "./schema/schema"; +export * from "./schema/sentinels"; export * from "./serde"; export * from "./shapes"; export * from "./signature"; @@ -30,6 +32,7 @@ export * from "./streaming-payload/streaming-blob-payload-input-types"; export * from "./streaming-payload/streaming-blob-payload-output-types"; export * from "./transfer"; export * from "./transform/client-payload-blob-type-narrow"; +export * from "./transform/mutable"; export * from "./transform/no-undefined"; export * from "./transform/type-transform"; export * from "./uri"; diff --git a/node_modules/@smithy/types/dist-es/schema/schema.js b/node_modules/@smithy/types/dist-es/schema/schema.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/node_modules/@smithy/types/dist-es/schema/schema.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@smithy/types/dist-es/schema/sentinels.js b/node_modules/@smithy/types/dist-es/schema/sentinels.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/node_modules/@smithy/types/dist-es/schema/sentinels.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@smithy/types/dist-es/schema/traits.js b/node_modules/@smithy/types/dist-es/schema/traits.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/node_modules/@smithy/types/dist-es/schema/traits.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@smithy/types/dist-es/transform/mutable.js b/node_modules/@smithy/types/dist-es/transform/mutable.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/node_modules/@smithy/types/dist-es/transform/mutable.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts b/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts index e468bae..8b633cd 100644 --- a/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +++ b/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts @@ -1,6 +1,3 @@ -/// -/// -/// import { Readable } from "stream"; import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; /** diff --git a/node_modules/@smithy/types/dist-types/command.d.ts b/node_modules/@smithy/types/dist-types/command.d.ts index 3a71ee7..dadbaa4 100644 --- a/node_modules/@smithy/types/dist-types/command.d.ts +++ b/node_modules/@smithy/types/dist-types/command.d.ts @@ -6,6 +6,11 @@ import { MetadataBearer } from "./response"; export interface Command extends CommandIO { readonly input: InputType; readonly middlewareStack: MiddlewareStack; + /** + * This should be OperationSchema from @smithy/types, but would + * create problems with the client transform type adaptors. + */ + readonly schema?: any; resolveMiddleware(stack: MiddlewareStack, configuration: ResolvedConfiguration, options: any): Handler; } /** diff --git a/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts b/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts index bca0851..4cb87f4 100644 --- a/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +++ b/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts @@ -1,5 +1,3 @@ -/// -/// import type { Agent as hAgent, AgentOptions as hAgentOptions } from "http"; import type { Agent as hsAgent, AgentOptions as hsAgentOptions } from "https"; import { HttpRequest as IHttpRequest } from "../http"; diff --git a/node_modules/@smithy/types/dist-types/index.d.ts b/node_modules/@smithy/types/dist-types/index.d.ts index c370335..b1dfb30 100644 --- a/node_modules/@smithy/types/dist-types/index.d.ts +++ b/node_modules/@smithy/types/dist-types/index.d.ts @@ -21,6 +21,8 @@ export * from "./pagination"; export * from "./profile"; export * from "./response"; export * from "./retry"; +export * from "./schema/schema"; +export * from "./schema/sentinels"; export * from "./serde"; export * from "./shapes"; export * from "./signature"; @@ -30,6 +32,7 @@ export * from "./streaming-payload/streaming-blob-payload-input-types"; export * from "./streaming-payload/streaming-blob-payload-output-types"; export * from "./transfer"; export * from "./transform/client-payload-blob-type-narrow"; +export * from "./transform/mutable"; export * from "./transform/no-undefined"; export * from "./transform/type-transform"; export * from "./uri"; diff --git a/node_modules/@smithy/types/dist-types/schema/schema.d.ts b/node_modules/@smithy/types/dist-types/schema/schema.d.ts new file mode 100644 index 0000000..72d4162 --- /dev/null +++ b/node_modules/@smithy/types/dist-types/schema/schema.d.ts @@ -0,0 +1,261 @@ +import type { EndpointV2 } from "../endpoint"; +import type { HandlerExecutionContext } from "../middleware"; +import type { MetadataBearer } from "../response"; +import type { EndpointBearer, SerdeFunctions } from "../serde"; +import type { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "./sentinels"; +import type { TraitBitVector } from "./traits"; +/** + * A schema is an object or value that describes how to serialize/deserialize data. + * @public + */ +export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | NormalizedSchema; +/** + * Traits attached to schema objects. + * + * When this is a number, it refers to a pre-allocated + * trait combination that is equivalent to one of the + * object type's variations. + * + * @public + */ +export type SchemaTraits = TraitBitVector | SchemaTraitsObject; +/** + * A schema that has traits. + * + * @public + */ +export interface TraitsSchema { + name: string; + traits: SchemaTraits; +} +/** + * Simple schemas are those corresponding to simple Smithy types. + * @see https://smithy.io/2.0/spec/simple-types.html + * @public + */ +export type SimpleSchema = BlobSchemas | StringSchema | BooleanSchema | NumericSchema | BigIntegerSchema | BigDecimalSchema | DocumentSchema | TimestampSchemas | number; +/** + * Sentinel value for Timestamp schema. + * "Default" means unspecified and to use the protocol serializer's default format. + * + * @public + */ +export type TimestampSchemas = TimestampDefaultSchema | TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema; +/** + * Sentinel values for Blob schema. + * @public + */ +export type BlobSchemas = BlobSchema | StreamingBlobSchema; +/** + * Signal value for the Smithy void value. Typically used for + * operation input and outputs. + * + * @internal + */ +export type UnitSchema = "unit"; +/** + * See https://smithy.io/2.0/trait-index.html for individual definitions. + * + * @public + */ +export type SchemaTraitsObject = { + idempotent?: 1; + idempotencyToken?: 1; + sensitive?: 1; + sparse?: 1; + /** + * timestampFormat is expressed by the schema sentinel values of 4, 5, 6, and 7, + * and not contained in trait objects. + * @deprecated use schema value. + */ + timestampFormat?: never; + httpLabel?: 1; + httpHeader?: string; + httpQuery?: string; + httpPrefixHeaders?: string; + httpQueryParams?: 1; + httpPayload?: 1; + /** + * [method, path, statusCode] + */ + http?: [string, string, number]; + httpResponseCode?: 1; + /** + * [hostPrefix] + */ + endpoint?: [string]; + xmlAttribute?: 1; + xmlName?: string; + /** + * [prefix, uri] + */ + xmlNamespace?: [string, string]; + xmlFlattened?: 1; + jsonName?: string; + mediaType?: string; + error?: "client" | "server"; + [traitName: string]: unknown; +}; +/** + * Schema for the structure aggregate type. + * @public + */ +export interface StructureSchema extends TraitsSchema { + name: string; + traits: SchemaTraits; + members: Record; +} +/** + * Schema for the list aggregate type. + * @public + */ +export interface ListSchema extends TraitsSchema { + name: string; + traits: SchemaTraits; + valueSchema: SchemaRef; +} +/** + * Schema for the map aggregate type. + * @public + */ +export interface MapSchema extends TraitsSchema { + name: string; + traits: SchemaTraits; + keySchema: SchemaRef; + valueSchema: SchemaRef; +} +/** + * @public + */ +export type MemberSchema = [SchemaRef, SchemaTraits]; +/** + * Schema for an operation. + * + * @public + */ +export interface OperationSchema extends TraitsSchema { + name: string; + traits: SchemaTraits; + input: SchemaRef; + output: SchemaRef; +} +/** + * Normalization wrapper for various schema data objects. + * @public + */ +export interface NormalizedSchema { + getSchema(): Schema; + getName(): string | undefined; + isMemberSchema(): boolean; + isListSchema(): boolean; + isMapSchema(): boolean; + isStructSchema(): boolean; + isBlobSchema(): boolean; + isTimestampSchema(): boolean; + isStringSchema(): boolean; + isBooleanSchema(): boolean; + isNumericSchema(): boolean; + isBigIntegerSchema(): boolean; + isBigDecimalSchema(): boolean; + isStreaming(): boolean; + getMergedTraits(): SchemaTraitsObject; + getMemberTraits(): SchemaTraitsObject; + getOwnTraits(): SchemaTraitsObject; + /** + * For list/set/map. + */ + getValueSchema(): NormalizedSchema; + /** + * For struct/union. + */ + getMemberSchema(member: string): NormalizedSchema | undefined; + getMemberSchemas(): Record; +} +/** + * A schema "reference" is either a schema or a function that + * provides a schema. This is useful for lazy loading, and to allow + * code generation to define schema out of dependency order. + * @public + */ +export type SchemaRef = Schema | (() => Schema); +/** + * A codec creates serializers and deserializers for some format such as JSON, XML, or CBOR. + * + * @public + */ +export interface Codec extends ConfigurableSerdeContext { + createSerializer(): ShapeSerializer; + createDeserializer(): ShapeDeserializer; +} +/** + * Configuration for codecs. Different protocols may share codecs, but require different behaviors from them. + * + * @public + */ +export type CodecSettings = { + timestampFormat: { + /** + * Whether to use member timestamp format traits. + */ + useTrait: boolean; + /** + * Default timestamp format. + */ + default: TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema; + }; + /** + * Whether to use HTTP binding traits. + */ + httpBindings?: boolean; +}; +/** + * Turns a serialization into a data object. + * @public + */ +export interface ShapeDeserializer extends ConfigurableSerdeContext { + /** + * Optionally async. + */ + read(schema: Schema, data: SerializationType): any | Promise; +} +/** + * Turns a data object into a serialization. + * @public + */ +export interface ShapeSerializer extends ConfigurableSerdeContext { + write(schema: Schema, value: unknown): void; + flush(): SerializationType; +} +/** + * A client protocol defines how to convert a message (e.g. HTTP request/response) to and from a data object. + * @public + */ +export interface ClientProtocol extends ConfigurableSerdeContext { + /** + * @returns the Smithy qualified shape id. + */ + getShapeId(): string; + getRequestType(): { + new (...args: any[]): Request; + }; + getResponseType(): { + new (...args: any[]): Response; + }; + /** + * @returns the payload codec if the requests/responses have a symmetric format. + * It otherwise may return null. + */ + getPayloadCodec(): Codec; + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise; +} +/** + * Allows a protocol, codec, or serde utility to accept the serdeContext + * from a client configuration or request/response handlerExecutionContext. + * + * @public + */ +export interface ConfigurableSerdeContext { + setSerdeContext(serdeContext: SerdeFunctions): void; +} diff --git a/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts b/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts new file mode 100644 index 0000000..939e807 --- /dev/null +++ b/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts @@ -0,0 +1,65 @@ +/** + * The blob Smithy type, in JS as Uint8Array and other representations + * such as Buffer, string, or Readable(Stream) depending on circumstances. + * @public + */ +export type BlobSchema = 21; +/** + * @public + */ +export type StreamingBlobSchema = 42; +/** + * @public + */ +export type BooleanSchema = 2; +/** + * Includes string and enum Smithy types. + * @public + */ +export type StringSchema = 0; +/** + * Includes all numeric Smithy types except bigInteger and bigDecimal. + * byte, short, integer, long, float, double, intEnum. + * + * @public + */ +export type NumericSchema = 1; +/** + * @public + */ +export type BigIntegerSchema = 17; +/** + * @public + */ +export type BigDecimalSchema = 19; +/** + * @public + */ +export type DocumentSchema = 15; +/** + * Smithy type timestamp, in JS as native Date object. + * @public + */ +export type TimestampDefaultSchema = 4; +/** + * @public + */ +export type TimestampDateTimeSchema = 5; +/** + * @public + */ +export type TimestampHttpDateSchema = 6; +/** + * @public + */ +export type TimestampEpochSecondsSchema = 7; +/** + * Additional bit indicating the type is a list. + * @public + */ +export type ListSchemaModifier = 64; +/** + * Additional bit indicating the type is a map. + * @public + */ +export type MapSchemaModifier = 128; diff --git a/node_modules/@smithy/types/dist-types/schema/traits.d.ts b/node_modules/@smithy/types/dist-types/schema/traits.d.ts new file mode 100644 index 0000000..0825f81 --- /dev/null +++ b/node_modules/@smithy/types/dist-types/schema/traits.d.ts @@ -0,0 +1,46 @@ +/** + * A bitvector representing a traits object. + * + * Vector index to trait: + * 0 - httpLabel + * 1 - idempotent + * 2 - idempotencyToken + * 3 - sensitive + * 4 - httpPayload + * 5 - httpResponseCode + * 6 - httpQueryParams + * + * The singular trait values are enumerated for quick identification, but + * combination values are left to the `number` union type. + * + * @public + */ +export type TraitBitVector = HttpLabelBitMask | IdempotentBitMask | IdempotencyTokenBitMask | SensitiveBitMask | HttpPayloadBitMask | HttpResponseCodeBitMask | HttpQueryParamsBitMask | number; +/** + * @public + */ +export type HttpLabelBitMask = 1; +/** + * @public + */ +export type IdempotentBitMask = 2; +/** + * @public + */ +export type IdempotencyTokenBitMask = 4; +/** + * @public + */ +export type SensitiveBitMask = 8; +/** + * @public + */ +export type HttpPayloadBitMask = 16; +/** + * @public + */ +export type HttpResponseCodeBitMask = 32; +/** + * @public + */ +export type HttpQueryParamsBitMask = 64; diff --git a/node_modules/@smithy/types/dist-types/serde.d.ts b/node_modules/@smithy/types/dist-types/serde.d.ts index a81314f..349c78c 100644 --- a/node_modules/@smithy/types/dist-types/serde.d.ts +++ b/node_modules/@smithy/types/dist-types/serde.d.ts @@ -1,4 +1,5 @@ import { Endpoint } from "./http"; +import { ClientProtocol } from "./schema/schema"; import { RequestHandler } from "./transfer"; import { Decoder, Encoder, Provider } from "./util"; /** @@ -28,6 +29,7 @@ export interface StreamCollector { export interface SerdeContext extends SerdeFunctions, EndpointBearer { requestHandler: RequestHandler; disableHostPrefix: boolean; + protocol?: ClientProtocol; } /** * @public diff --git a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts index 92c52da..a93a8ca 100644 --- a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +++ b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts @@ -1,4 +1,3 @@ -/// import type { Readable } from "stream"; import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; /** diff --git a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts index 9bcc164..3bbd587 100644 --- a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +++ b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts @@ -1,6 +1,3 @@ -/// -/// -/// import type { Readable } from "stream"; import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; /** diff --git a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts index b64a878..54ab128 100644 --- a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +++ b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts @@ -1,5 +1,3 @@ -/// -/// import type { IncomingMessage } from "http"; import type { Readable } from "stream"; import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; diff --git a/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts b/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts index 243a40f..28d92f6 100644 --- a/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +++ b/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts @@ -1,5 +1,3 @@ -/// -/// import type { IncomingMessage } from "http"; import type { ClientHttp2Stream } from "http2"; import type { InvokeMethod } from "../client"; diff --git a/node_modules/@smithy/types/dist-types/transform/mutable.d.ts b/node_modules/@smithy/types/dist-types/transform/mutable.d.ts new file mode 100644 index 0000000..4ba55e3 --- /dev/null +++ b/node_modules/@smithy/types/dist-types/transform/mutable.d.ts @@ -0,0 +1,6 @@ +/** + * @internal + */ +export type Mutable = { + -readonly [Property in keyof Type]: Type[Property]; +}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts index 6fd2063..c76bd3d 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts @@ -1,4 +1,3 @@ -/// import { Readable } from "stream"; import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; /** diff --git a/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts index 3a71ee7..dadbaa4 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts @@ -6,6 +6,11 @@ import { MetadataBearer } from "./response"; export interface Command extends CommandIO { readonly input: InputType; readonly middlewareStack: MiddlewareStack; + /** + * This should be OperationSchema from @smithy/types, but would + * create problems with the client transform type adaptors. + */ + readonly schema?: any; resolveMiddleware(stack: MiddlewareStack, configuration: ResolvedConfiguration, options: any): Handler; } /** diff --git a/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts index 211608c..0defffd 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts @@ -1,4 +1,3 @@ -/// import { Agent as hAgent, AgentOptions as hAgentOptions } from "http"; import { Agent as hsAgent, AgentOptions as hsAgentOptions } from "https"; import { HttpRequest as IHttpRequest } from "../http"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts index c370335..b1dfb30 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts @@ -21,6 +21,8 @@ export * from "./pagination"; export * from "./profile"; export * from "./response"; export * from "./retry"; +export * from "./schema/schema"; +export * from "./schema/sentinels"; export * from "./serde"; export * from "./shapes"; export * from "./signature"; @@ -30,6 +32,7 @@ export * from "./streaming-payload/streaming-blob-payload-input-types"; export * from "./streaming-payload/streaming-blob-payload-output-types"; export * from "./transfer"; export * from "./transform/client-payload-blob-type-narrow"; +export * from "./transform/mutable"; export * from "./transform/no-undefined"; export * from "./transform/type-transform"; export * from "./uri"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts new file mode 100644 index 0000000..2d975ec --- /dev/null +++ b/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts @@ -0,0 +1,276 @@ +import { EndpointV2 } from "../endpoint"; +import { HandlerExecutionContext } from "../middleware"; +import { MetadataBearer } from "../response"; +import { EndpointBearer, SerdeFunctions } from "../serde"; +import { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "./sentinels"; +import { TraitBitVector } from "./traits"; +/** + * A schema is an object or value that describes how to serialize/deserialize data. + * @public + */ +export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | NormalizedSchema; +/** + * Traits attached to schema objects. + * + * When this is a number, it refers to a pre-allocated + * trait combination that is equivalent to one of the + * object type's variations. + * + * @public + */ +export type SchemaTraits = TraitBitVector | SchemaTraitsObject; +/** + * A schema that has traits. + * + * @public + */ +export interface TraitsSchema { + name: string; + traits: SchemaTraits; +} +/** + * Simple schemas are those corresponding to simple Smithy types. + * @see https://smithy.io/2.0/spec/simple-types.html + * @public + */ +export type SimpleSchema = BlobSchemas | StringSchema | BooleanSchema | NumericSchema | BigIntegerSchema | BigDecimalSchema | DocumentSchema | TimestampSchemas | number; +/** + * Sentinel value for Timestamp schema. + * "Default" means unspecified and to use the protocol serializer's default format. + * + * @public + */ +export type TimestampSchemas = TimestampDefaultSchema | TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema; +/** + * Sentinel values for Blob schema. + * @public + */ +export type BlobSchemas = BlobSchema | StreamingBlobSchema; +/** + * Signal value for the Smithy void value. Typically used for + * operation input and outputs. + * + * @internal + */ +export type UnitSchema = "unit"; +/** + * See https://smithy.io/2.0/trait-index.html for individual definitions. + * + * @public + */ +export type SchemaTraitsObject = { + idempotent?: 1; + idempotencyToken?: 1; + sensitive?: 1; + sparse?: 1; + /** + * timestampFormat is expressed by the schema sentinel values of 4, 5, 6, and 7, + * and not contained in trait objects. + * @deprecated use schema value. + */ + timestampFormat?: never; + httpLabel?: 1; + httpHeader?: string; + httpQuery?: string; + httpPrefixHeaders?: string; + httpQueryParams?: 1; + httpPayload?: 1; + /** + * [method, path, statusCode] + */ + http?: [ + string, + string, + number + ]; + httpResponseCode?: 1; + /** + * [hostPrefix] + */ + endpoint?: [ + string + ]; + xmlAttribute?: 1; + xmlName?: string; + /** + * [prefix, uri] + */ + xmlNamespace?: [ + string, + string + ]; + xmlFlattened?: 1; + jsonName?: string; + mediaType?: string; + error?: "client" | "server"; + [traitName: string]: unknown; +}; +/** + * Schema for the structure aggregate type. + * @public + */ +export interface StructureSchema extends TraitsSchema { + name: string; + traits: SchemaTraits; + members: Record; +} +/** + * Schema for the list aggregate type. + * @public + */ +export interface ListSchema extends TraitsSchema { + name: string; + traits: SchemaTraits; + valueSchema: SchemaRef; +} +/** + * Schema for the map aggregate type. + * @public + */ +export interface MapSchema extends TraitsSchema { + name: string; + traits: SchemaTraits; + keySchema: SchemaRef; + valueSchema: SchemaRef; +} +/** + * @public + */ +export type MemberSchema = [ + SchemaRef, + SchemaTraits +]; +/** + * Schema for an operation. + * + * @public + */ +export interface OperationSchema extends TraitsSchema { + name: string; + traits: SchemaTraits; + input: SchemaRef; + output: SchemaRef; +} +/** + * Normalization wrapper for various schema data objects. + * @public + */ +export interface NormalizedSchema { + getSchema(): Schema; + getName(): string | undefined; + isMemberSchema(): boolean; + isListSchema(): boolean; + isMapSchema(): boolean; + isStructSchema(): boolean; + isBlobSchema(): boolean; + isTimestampSchema(): boolean; + isStringSchema(): boolean; + isBooleanSchema(): boolean; + isNumericSchema(): boolean; + isBigIntegerSchema(): boolean; + isBigDecimalSchema(): boolean; + isStreaming(): boolean; + getMergedTraits(): SchemaTraitsObject; + getMemberTraits(): SchemaTraitsObject; + getOwnTraits(): SchemaTraitsObject; + /** + * For list/set/map. + */ + getValueSchema(): NormalizedSchema; + /** + * For struct/union. + */ + getMemberSchema(member: string): NormalizedSchema | undefined; + getMemberSchemas(): Record; +} +/** + * A schema "reference" is either a schema or a function that + * provides a schema. This is useful for lazy loading, and to allow + * code generation to define schema out of dependency order. + * @public + */ +export type SchemaRef = Schema | (() => Schema); +/** + * A codec creates serializers and deserializers for some format such as JSON, XML, or CBOR. + * + * @public + */ +export interface Codec extends ConfigurableSerdeContext { + createSerializer(): ShapeSerializer; + createDeserializer(): ShapeDeserializer; +} +/** + * Configuration for codecs. Different protocols may share codecs, but require different behaviors from them. + * + * @public + */ +export type CodecSettings = { + timestampFormat: { + /** + * Whether to use member timestamp format traits. + */ + useTrait: boolean; + /** + * Default timestamp format. + */ + default: TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema; + }; + /** + * Whether to use HTTP binding traits. + */ + httpBindings?: boolean; +}; +/** + * Turns a serialization into a data object. + * @public + */ +export interface ShapeDeserializer extends ConfigurableSerdeContext { + /** + * Optionally async. + */ + read(schema: Schema, data: SerializationType): any | Promise; +} +/** + * Turns a data object into a serialization. + * @public + */ +export interface ShapeSerializer extends ConfigurableSerdeContext { + write(schema: Schema, value: unknown): void; + flush(): SerializationType; +} +/** + * A client protocol defines how to convert a message (e.g. HTTP request/response) to and from a data object. + * @public + */ +export interface ClientProtocol extends ConfigurableSerdeContext { + /** + * @returns the Smithy qualified shape id. + */ + getShapeId(): string; + getRequestType(): { + new (...args: any[]): Request; + }; + getResponseType(): { + new (...args: any[]): Response; + }; + /** + * @returns the payload codec if the requests/responses have a symmetric format. + * It otherwise may return null. + */ + getPayloadCodec(): Codec; + serializeRequest(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise; + updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request; + deserializeResponse(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise; +} +/** + * Allows a protocol, codec, or serde utility to accept the serdeContext + * from a client configuration or request/response handlerExecutionContext. + * + * @public + */ +export interface ConfigurableSerdeContext { + setSerdeContext(serdeContext: SerdeFunctions): void; +} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts new file mode 100644 index 0000000..939e807 --- /dev/null +++ b/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts @@ -0,0 +1,65 @@ +/** + * The blob Smithy type, in JS as Uint8Array and other representations + * such as Buffer, string, or Readable(Stream) depending on circumstances. + * @public + */ +export type BlobSchema = 21; +/** + * @public + */ +export type StreamingBlobSchema = 42; +/** + * @public + */ +export type BooleanSchema = 2; +/** + * Includes string and enum Smithy types. + * @public + */ +export type StringSchema = 0; +/** + * Includes all numeric Smithy types except bigInteger and bigDecimal. + * byte, short, integer, long, float, double, intEnum. + * + * @public + */ +export type NumericSchema = 1; +/** + * @public + */ +export type BigIntegerSchema = 17; +/** + * @public + */ +export type BigDecimalSchema = 19; +/** + * @public + */ +export type DocumentSchema = 15; +/** + * Smithy type timestamp, in JS as native Date object. + * @public + */ +export type TimestampDefaultSchema = 4; +/** + * @public + */ +export type TimestampDateTimeSchema = 5; +/** + * @public + */ +export type TimestampHttpDateSchema = 6; +/** + * @public + */ +export type TimestampEpochSecondsSchema = 7; +/** + * Additional bit indicating the type is a list. + * @public + */ +export type ListSchemaModifier = 64; +/** + * Additional bit indicating the type is a map. + * @public + */ +export type MapSchemaModifier = 128; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts new file mode 100644 index 0000000..0825f81 --- /dev/null +++ b/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts @@ -0,0 +1,46 @@ +/** + * A bitvector representing a traits object. + * + * Vector index to trait: + * 0 - httpLabel + * 1 - idempotent + * 2 - idempotencyToken + * 3 - sensitive + * 4 - httpPayload + * 5 - httpResponseCode + * 6 - httpQueryParams + * + * The singular trait values are enumerated for quick identification, but + * combination values are left to the `number` union type. + * + * @public + */ +export type TraitBitVector = HttpLabelBitMask | IdempotentBitMask | IdempotencyTokenBitMask | SensitiveBitMask | HttpPayloadBitMask | HttpResponseCodeBitMask | HttpQueryParamsBitMask | number; +/** + * @public + */ +export type HttpLabelBitMask = 1; +/** + * @public + */ +export type IdempotentBitMask = 2; +/** + * @public + */ +export type IdempotencyTokenBitMask = 4; +/** + * @public + */ +export type SensitiveBitMask = 8; +/** + * @public + */ +export type HttpPayloadBitMask = 16; +/** + * @public + */ +export type HttpResponseCodeBitMask = 32; +/** + * @public + */ +export type HttpQueryParamsBitMask = 64; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts index a81314f..349c78c 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts @@ -1,4 +1,5 @@ import { Endpoint } from "./http"; +import { ClientProtocol } from "./schema/schema"; import { RequestHandler } from "./transfer"; import { Decoder, Encoder, Provider } from "./util"; /** @@ -28,6 +29,7 @@ export interface StreamCollector { export interface SerdeContext extends SerdeFunctions, EndpointBearer { requestHandler: RequestHandler; disableHostPrefix: boolean; + protocol?: ClientProtocol; } /** * @public diff --git a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts index 5217a8b..bff7c52 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts @@ -1,4 +1,3 @@ -/// import { Readable } from "stream"; import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; /** diff --git a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts index d4b5512..7d30454 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts @@ -1,4 +1,3 @@ -/// import { Readable } from "stream"; import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; /** diff --git a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts index 1c240b3..146e517 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts @@ -1,4 +1,3 @@ -/// import { IncomingMessage } from "http"; import { Readable } from "stream"; import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts index 31b85db..a83bdc5 100644 --- a/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +++ b/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts @@ -1,4 +1,3 @@ -/// import { IncomingMessage } from "http"; import { ClientHttp2Stream } from "http2"; import { InvokeMethod } from "../client"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts new file mode 100644 index 0000000..4ba55e3 --- /dev/null +++ b/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts @@ -0,0 +1,6 @@ +/** + * @internal + */ +export type Mutable = { + -readonly [Property in keyof Type]: Type[Property]; +}; diff --git a/node_modules/@smithy/types/package.json b/node_modules/@smithy/types/package.json index 87c5ad0..b033c9e 100644 --- a/node_modules/@smithy/types/package.json +++ b/node_modules/@smithy/types/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/types", - "version": "4.2.0", + "version": "4.3.1", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline types", diff --git a/node_modules/@smithy/url-parser/package.json b/node_modules/@smithy/url-parser/package.json index 10aebb8..c1371f0 100644 --- a/node_modules/@smithy/url-parser/package.json +++ b/node_modules/@smithy/url-parser/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/url-parser", - "version": "4.0.2", + "version": "4.0.4", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline url-parser", @@ -23,8 +23,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/querystring-parser": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "typesVersions": { diff --git a/node_modules/@smithy/util-defaults-mode-browser/package.json b/node_modules/@smithy/util-defaults-mode-browser/package.json index f0897f8..440f1f4 100644 --- a/node_modules/@smithy/util-defaults-mode-browser/package.json +++ b/node_modules/@smithy/util-defaults-mode-browser/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/util-defaults-mode-browser", - "version": "4.0.14", + "version": "4.0.19", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline util-defaults-mode-browser", @@ -23,9 +23,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^4.0.2", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "bowser": "^2.11.0", "tslib": "^2.6.2" }, diff --git a/node_modules/@smithy/util-defaults-mode-node/package.json b/node_modules/@smithy/util-defaults-mode-node/package.json index ae62883..1fcac3e 100644 --- a/node_modules/@smithy/util-defaults-mode-node/package.json +++ b/node_modules/@smithy/util-defaults-mode-node/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/util-defaults-mode-node", - "version": "4.0.14", + "version": "4.0.19", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline util-defaults-mode-node", @@ -23,12 +23,12 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^4.1.2", - "@smithy/credential-provider-imds": "^4.0.4", - "@smithy/node-config-provider": "^4.1.1", - "@smithy/property-provider": "^4.0.2", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/util-endpoints/package.json b/node_modules/@smithy/util-endpoints/package.json index 6636ab6..c7a14b0 100644 --- a/node_modules/@smithy/util-endpoints/package.json +++ b/node_modules/@smithy/util-endpoints/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/util-endpoints", - "version": "3.0.4", + "version": "3.0.6", "description": "Utilities to help with endpoint resolution.", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -28,8 +28,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/util-middleware/package.json b/node_modules/@smithy/util-middleware/package.json index b9aa172..d462433 100644 --- a/node_modules/@smithy/util-middleware/package.json +++ b/node_modules/@smithy/util-middleware/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/util-middleware", - "version": "4.0.2", + "version": "4.0.4", "description": "Shared utilities for to be used in middleware packages.", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -27,7 +27,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts b/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts index 947b68f..502b473 100644 --- a/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +++ b/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts @@ -5,5 +5,5 @@ import { StandardRetryToken } from "@smithy/types"; export declare const createDefaultRetryToken: ({ retryDelay, retryCount, retryCost, }: { retryDelay: number; retryCount: number; - retryCost?: number | undefined; + retryCost?: number; }) => StandardRetryToken; diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts index 947b68f..502b473 100644 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +++ b/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts @@ -5,5 +5,5 @@ import { StandardRetryToken } from "@smithy/types"; export declare const createDefaultRetryToken: ({ retryDelay, retryCount, retryCost, }: { retryDelay: number; retryCount: number; - retryCost?: number | undefined; + retryCost?: number; }) => StandardRetryToken; diff --git a/node_modules/@smithy/util-retry/package.json b/node_modules/@smithy/util-retry/package.json index 6379727..f40907c 100644 --- a/node_modules/@smithy/util-retry/package.json +++ b/node_modules/@smithy/util-retry/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/util-retry", - "version": "4.0.3", + "version": "4.0.5", "description": "Shared retry utilities to be used in middleware packages.", "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", @@ -28,8 +28,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^4.0.3", - "@smithy/types": "^4.2.0", + "@smithy/service-error-classification": "^4.0.5", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js b/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js index 57e2a2f..9638f02 100644 --- a/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +++ b/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.createChecksumStream = void 0; +exports.createChecksumStream = createChecksumStream; const stream_type_check_1 = require("../stream-type-check"); const ChecksumStream_1 = require("./ChecksumStream"); const createChecksumStream_browser_1 = require("./createChecksumStream.browser"); @@ -10,4 +10,3 @@ function createChecksumStream(init) { } return new ChecksumStream_1.ChecksumStream(init); } -exports.createChecksumStream = createChecksumStream; diff --git a/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js b/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js index 4c10847..0dcb1c9 100644 --- a/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +++ b/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.createBufferedReadable = void 0; +exports.createBufferedReadable = createBufferedReadable; const node_stream_1 = require("node:stream"); const ByteArrayCollector_1 = require("./ByteArrayCollector"); const createBufferedReadableStream_1 = require("./createBufferedReadableStream"); @@ -58,4 +58,3 @@ function createBufferedReadable(upstream, size, logger) { }); return downstream; } -exports.createBufferedReadable = createBufferedReadable; diff --git a/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js b/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js index 2cd72aa..1982358 100644 --- a/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +++ b/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js @@ -1,6 +1,11 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.modeOf = exports.sizeOf = exports.flush = exports.merge = exports.createBufferedReadable = exports.createBufferedReadableStream = void 0; +exports.createBufferedReadable = void 0; +exports.createBufferedReadableStream = createBufferedReadableStream; +exports.merge = merge; +exports.flush = flush; +exports.sizeOf = sizeOf; +exports.modeOf = modeOf; const ByteArrayCollector_1 = require("./ByteArrayCollector"); function createBufferedReadableStream(upstream, size, logger) { const reader = upstream.getReader(); @@ -57,7 +62,6 @@ function createBufferedReadableStream(upstream, size, logger) { pull, }); } -exports.createBufferedReadableStream = createBufferedReadableStream; exports.createBufferedReadable = createBufferedReadableStream; function merge(buffers, mode, chunk) { switch (mode) { @@ -70,7 +74,6 @@ function merge(buffers, mode, chunk) { return sizeOf(buffers[mode]); } } -exports.merge = merge; function flush(buffers, mode) { switch (mode) { case 0: @@ -83,12 +86,10 @@ function flush(buffers, mode) { } throw new Error(`@smithy/util-stream - invalid index ${mode} given to flush()`); } -exports.flush = flush; function sizeOf(chunk) { var _a, _b; return (_b = (_a = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a !== void 0 ? _a : chunk === null || chunk === void 0 ? void 0 : chunk.length) !== null && _b !== void 0 ? _b : 0; } -exports.sizeOf = sizeOf; function modeOf(chunk, allowBuffer = true) { if (allowBuffer && typeof Buffer !== "undefined" && chunk instanceof Buffer) { return 2; @@ -101,4 +102,3 @@ function modeOf(chunk, allowBuffer = true) { } return -1; } -exports.modeOf = modeOf; diff --git a/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js b/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js index 38512c1..efde8b4 100644 --- a/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +++ b/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.headStream = void 0; +exports.headStream = headStream; async function headStream(stream, bytes) { var _a; let byteLengthCounter = 0; @@ -33,4 +33,3 @@ async function headStream(stream, bytes) { } return collected; } -exports.headStream = headStream; diff --git a/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js b/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js index eb890cc..1a4cc07 100644 --- a/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +++ b/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.splitStream = void 0; +exports.splitStream = splitStream; async function splitStream(stream) { if (typeof stream.stream === "function") { stream = stream.stream(); @@ -8,4 +8,3 @@ async function splitStream(stream) { const readableStream = stream; return readableStream.tee(); } -exports.splitStream = splitStream; diff --git a/node_modules/@smithy/util-stream/dist-cjs/splitStream.js b/node_modules/@smithy/util-stream/dist-cjs/splitStream.js index c55b628..a60ffad 100644 --- a/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +++ b/node_modules/@smithy/util-stream/dist-cjs/splitStream.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.splitStream = void 0; +exports.splitStream = splitStream; const stream_1 = require("stream"); const splitStream_browser_1 = require("./splitStream.browser"); const stream_type_check_1 = require("./stream-type-check"); @@ -14,4 +14,3 @@ async function splitStream(stream) { stream.pipe(stream2); return [stream1, stream2]; } -exports.splitStream = splitStream; diff --git a/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts b/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts index a1bbd53..4a335b9 100644 --- a/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts @@ -8,6 +8,6 @@ export declare class ByteArrayCollector { private byteArrays; constructor(allocByteArray: (size: number) => Uint8Array); push(byteArray: Uint8Array): void; - flush(): Uint8Array; + flush(): Uint8Array; private reset; } diff --git a/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts b/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts index 6893e55..224fdd3 100644 --- a/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts @@ -1,6 +1,3 @@ -/// -/// -/// import { Checksum, Encoder } from "@smithy/types"; import { Duplex, Readable } from "stream"; /** diff --git a/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts b/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts index db09f80..8d62053 100644 --- a/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts @@ -1,4 +1,3 @@ -/// import { Readable } from "stream"; import { ChecksumStreamInit } from "./ChecksumStream"; import { ReadableStreamType } from "./createChecksumStream.browser"; diff --git a/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts b/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts index b173636..95f07ac 100644 --- a/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts @@ -1,4 +1,3 @@ -/// import type { Logger } from "@smithy/types"; import { Readable } from "node:stream"; /** diff --git a/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts b/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts index d3997d0..8d26256 100644 --- a/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts @@ -1,4 +1,3 @@ -/// import { GetAwsChunkedEncodingStream } from "@smithy/types"; import { Readable } from "stream"; /** diff --git a/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts b/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts index 8a8a48c..002aeac 100644 --- a/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts @@ -1,4 +1,3 @@ -/// import type { Readable } from "stream"; /** * @internal diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts index a1bbd53..4a335b9 100644 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts @@ -8,6 +8,6 @@ export declare class ByteArrayCollector { private byteArrays; constructor(allocByteArray: (size: number) => Uint8Array); push(byteArray: Uint8Array): void; - flush(): Uint8Array; + flush(): Uint8Array; private reset; } diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts index 855b031..224fdd3 100644 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts @@ -1,4 +1,3 @@ -/// import { Checksum, Encoder } from "@smithy/types"; import { Duplex, Readable } from "stream"; /** diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts index db09f80..8d62053 100644 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts @@ -1,4 +1,3 @@ -/// import { Readable } from "stream"; import { ChecksumStreamInit } from "./ChecksumStream"; import { ReadableStreamType } from "./createChecksumStream.browser"; diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts index 0477f72..ba6c04e 100644 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts @@ -1,4 +1,3 @@ -/// import { Logger } from "@smithy/types"; import { Readable } from "node:stream"; /** diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts index d3997d0..8d26256 100644 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts @@ -1,4 +1,3 @@ -/// import { GetAwsChunkedEncodingStream } from "@smithy/types"; import { Readable } from "stream"; /** diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts index 0564414..9f21d97 100644 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +++ b/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts @@ -1,4 +1,3 @@ -/// import { Readable } from "stream"; /** * @internal diff --git a/node_modules/@smithy/util-stream/package.json b/node_modules/@smithy/util-stream/package.json index 769bfc1..292a93f 100644 --- a/node_modules/@smithy/util-stream/package.json +++ b/node_modules/@smithy/util-stream/package.json @@ -1,6 +1,6 @@ { "name": "@smithy/util-stream", - "version": "4.2.0", + "version": "4.2.2", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", "build:cjs": "node ../../scripts/inline util-stream", @@ -28,9 +28,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/types": "^4.2.0", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/types": "^4.3.1", "@smithy/util-base64": "^4.0.0", "@smithy/util-buffer-from": "^4.0.0", "@smithy/util-hex-encoding": "^4.0.0", diff --git a/node_modules/@smithy/util-waiter/package.json b/node_modules/@smithy/util-waiter/package.json index 2706fd7..5140719 100644 --- a/node_modules/@smithy/util-waiter/package.json +++ b/node_modules/@smithy/util-waiter/package.json @@ -1,10 +1,10 @@ { "name": "@smithy/util-waiter", - "version": "4.0.3", + "version": "4.0.5", "description": "Shared utilities for client waiters for the AWS SDK", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/abort-controller": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "scripts": { diff --git a/package-lock.json b/package-lock.json index 7f374b2..d7e753c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "archive-release", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "archive-release", - "version": "0.0.1", + "version": "0.0.2", "license": "UNLICENSED", "dependencies": { "@actions/core": "1.11.1", "@actions/github": "6.0.1", "@actions/glob": "0.5.0", - "@aws-sdk/client-s3": "3.804.0", - "@aws-sdk/lib-storage": "3.804.0" + "@aws-sdk/client-s3": "3.828.0", + "@aws-sdk/lib-storage": "3.828.0" }, "devDependencies": { "eslint": "9.27.0", @@ -287,66 +287,66 @@ } }, "node_modules/@aws-sdk/client-s3": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.804.0.tgz", - "integrity": "sha512-oLBCq/wOzMEv4HhEDxttl5km0KGuptqnl4MlzzDcxPpsDmXjQU7egZdfQtwKRlB7748F+/uTcYc7khFvX2I1DA==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.828.0.tgz", + "integrity": "sha512-TvFyrEfJkf9NN3cq5mXCgFv/sPaA8Rm5tEPgV5emuLedeGsORlWmVpdSKqfZ4lSoED1tMfNM6LY4uA9D8/RS5g==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/credential-provider-node": "3.804.0", - "@aws-sdk/middleware-bucket-endpoint": "3.804.0", - "@aws-sdk/middleware-expect-continue": "3.804.0", - "@aws-sdk/middleware-flexible-checksums": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-location-constraint": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-sdk-s3": "3.804.0", - "@aws-sdk/middleware-ssec": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/signature-v4-multi-region": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@aws-sdk/xml-builder": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/eventstream-serde-browser": "^4.0.2", - "@smithy/eventstream-serde-config-resolver": "^4.1.0", - "@smithy/eventstream-serde-node": "^4.0.2", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-blob-browser": "^4.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/hash-stream-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/md5-js": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/credential-provider-node": "3.828.0", + "@aws-sdk/middleware-bucket-endpoint": "3.821.0", + "@aws-sdk/middleware-expect-continue": "3.821.0", + "@aws-sdk/middleware-flexible-checksums": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-location-constraint": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-sdk-s3": "3.826.0", + "@aws-sdk/middleware-ssec": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/signature-v4-multi-region": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@aws-sdk/xml-builder": "3.821.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/eventstream-serde-browser": "^4.0.4", + "@smithy/eventstream-serde-config-resolver": "^4.1.2", + "@smithy/eventstream-serde-node": "^4.0.4", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-blob-browser": "^4.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/hash-stream-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/md5-js": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", - "@smithy/util-waiter": "^4.0.3", + "@smithy/util-waiter": "^4.0.5", "tslib": "^2.6.2" }, "engines": { @@ -354,47 +354,47 @@ } }, "node_modules/@aws-sdk/client-sso": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.804.0.tgz", - "integrity": "sha512-6D5iQbL0MqlJ7B5aaHdP21k9+3H/od0jHjHSXegvFd4h2KQbD+QVTdEOSLeakgBGgHYRfiQXsrdMMzUz8vcpsw==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.828.0.tgz", + "integrity": "sha512-qxw8JcPTaFaBwTBUr4YmLajaMh3En65SuBWAKEtjctbITRRekzR7tvr/TkwoyVOh+XoAtkwOn+BQeQbX+/wgHw==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -403,20 +403,24 @@ } }, "node_modules/@aws-sdk/core": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.804.0.tgz", - "integrity": "sha512-KrYDEc6HaJE+Mx5lrwq6uhJxj1RYYfggQ+X+zQeKRyrZHl2GOxFl7PdnpdwtnaQIjX0gNkDzquhZSdyT0ar5rA==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.826.0.tgz", + "integrity": "sha512-BGbQYzWj3ps+dblq33FY5tz/SsgJCcXX0zjQlSC07tYvU1jHTUvsefphyig+fY38xZ4wdKjbTop+KUmXUYrOXw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.821.0", + "@aws-sdk/xml-builder": "3.821.0", + "@smithy/core": "^3.5.3", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-utf8": "^4.0.0", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, @@ -425,15 +429,15 @@ } }, "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.804.0.tgz", - "integrity": "sha512-5mjrWPa4iaBK9/HDEIVN8lGxsnjk60eBjwGaJV0I2uqxnTo1EuQmpLV3XdY/OzQeqJdpuH/DbC6XUIdy9bXNQA==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.826.0.tgz", + "integrity": "sha512-DK3pQY8+iKK3MGDdC3uOZQ2psU01obaKlTYhEwNu4VWzgwQL4Vi3sWj4xSWGEK41vqZxiRLq6fOq7ysRI+qEZA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -441,20 +445,20 @@ } }, "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.804.0.tgz", - "integrity": "sha512-TD84TXS/iDWcf+ggCq3n6yx36p1WXB2qgyHkbP/yVbdmix/vKU1twuB5qJvaY0PJWI0TOwBa9680XfsYrzaJAA==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.826.0.tgz", + "integrity": "sha512-N+IVZBh+yx/9GbMZTKO/gErBi/FYZQtcFRItoLbY+6WU+0cSWyZYfkoeOxHmQV3iX9k65oljERIWUmL9x6OSQg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/property-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/util-stream": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-stream": "^4.2.2", "tslib": "^2.6.2" }, "engines": { @@ -462,23 +466,23 @@ } }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.804.0.tgz", - "integrity": "sha512-LfReL9TnOOunJWeZbDXPePFEnvJE+jcA7iY/ItsThUALgTy+ydLUdOiwzMZFo1f0JZN/Rfrsb9FOd/xTOoZiFw==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.828.0.tgz", + "integrity": "sha512-T3DJMo2/j7gCPpFg2+xEHWgua05t8WP89ye7PaZxA2Fc6CgScHkZsJZTri1QQIU2h+eOZ75EZWkeFLIPgN0kRQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/credential-provider-env": "3.804.0", - "@aws-sdk/credential-provider-http": "3.804.0", - "@aws-sdk/credential-provider-process": "3.804.0", - "@aws-sdk/credential-provider-sso": "3.804.0", - "@aws-sdk/credential-provider-web-identity": "3.804.0", - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/credential-provider-imds": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/credential-provider-env": "3.826.0", + "@aws-sdk/credential-provider-http": "3.826.0", + "@aws-sdk/credential-provider-process": "3.826.0", + "@aws-sdk/credential-provider-sso": "3.828.0", + "@aws-sdk/credential-provider-web-identity": "3.828.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -486,22 +490,22 @@ } }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.804.0.tgz", - "integrity": "sha512-L2EK5fy2+7El7j7TcRcuwr2lzU5tQfXsfscg+dtFkLPjOqShknnqV/lXylb3QlWx8B3K/c/KK5rcWQl6cYUiDQ==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.828.0.tgz", + "integrity": "sha512-9z3iPwVYOQYNzVZj8qycZaS/BOSKRXWA+QVNQlfEnQ4sA4sOcKR4kmV2h+rJcuBsSFfmOF62ZDxyIBGvvM4t/w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.804.0", - "@aws-sdk/credential-provider-http": "3.804.0", - "@aws-sdk/credential-provider-ini": "3.804.0", - "@aws-sdk/credential-provider-process": "3.804.0", - "@aws-sdk/credential-provider-sso": "3.804.0", - "@aws-sdk/credential-provider-web-identity": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/credential-provider-imds": "^4.0.2", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/credential-provider-env": "3.826.0", + "@aws-sdk/credential-provider-http": "3.826.0", + "@aws-sdk/credential-provider-ini": "3.828.0", + "@aws-sdk/credential-provider-process": "3.826.0", + "@aws-sdk/credential-provider-sso": "3.828.0", + "@aws-sdk/credential-provider-web-identity": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -509,16 +513,16 @@ } }, "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.804.0.tgz", - "integrity": "sha512-s6ng/rZj7WP8GGgxBXsoPZYlSu7MZAm9O8OLgSSWcw8/vaYW7hBVSEVVNMEUkJiJeEo7Lh+Y/3d6SY27S1of/g==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.826.0.tgz", + "integrity": "sha512-kURrc4amu3NLtw1yZw7EoLNEVhmOMRUTs+chaNcmS+ERm3yK0nKjaJzmKahmwlTQTSl3wJ8jjK7x962VPo+zWw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -526,18 +530,18 @@ } }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.804.0.tgz", - "integrity": "sha512-9Tt5zmhiK2nBfJv52Is5gNtW6bhK0W20GRhckg4T+BlnxOkPy//2ui23DzYacrwETH6TE3kdoyL3xgEL++HSLg==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.828.0.tgz", + "integrity": "sha512-9CEAXzUDSzOjOCb3XfM15TZhTaM+l07kumZyx2z8NC6T2U4qbCJqn4h8mFlRvYrs6cBj2SN40sD3r5Wp0Cq2Kw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.804.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/token-providers": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/client-sso": "3.828.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/token-providers": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -545,16 +549,16 @@ } }, "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.804.0.tgz", - "integrity": "sha512-eBICjQUnqaoiHl9/AHKVPt/YkrifDddAUNGWUj+9cb3bRml6PEBSHE0k/tbbCTMq1xz7CCP+gmnnAA92ChnseA==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.828.0.tgz", + "integrity": "sha512-MguDhGHlQBeK9CQ/P4NOY0whAJ4HJU4x+f1dphg3I1sGlccFqfB8Moor2vXNKu0Th2kvAwkn9pr7gGb/+NGR9g==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -562,14 +566,14 @@ } }, "node_modules/@aws-sdk/lib-storage": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/lib-storage/-/lib-storage-3.804.0.tgz", - "integrity": "sha512-o7/YYquJeIbsplqHwo78L39UigmQpsXHY3WrJ3j2kAzBBN9T6rPsBU6dPIBMHdtx06uHehcZwm/+B8GVMfMc8A==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/lib-storage/-/lib-storage-3.828.0.tgz", + "integrity": "sha512-nBJmRzveYtdqL0u76tv62JGtkUfvyyZhAKNHFlzO8lCO7lxa0muRTG/ptUSS0ruFHq1K2MXHnDtLX90xiErIsQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/smithy-client": "^4.2.2", + "@smithy/abort-controller": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/smithy-client": "^4.4.3", "buffer": "5.6.0", "events": "3.3.0", "stream-browserify": "3.0.0", @@ -579,20 +583,20 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@aws-sdk/client-s3": "^3.804.0" + "@aws-sdk/client-s3": "^3.828.0" } }, "node_modules/@aws-sdk/middleware-bucket-endpoint": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.804.0.tgz", - "integrity": "sha512-vVphifJ5Ab2JUjB27UvdNV51ezxTn3f/jNbC/Y+KF1vNcYkwWXqo+U1gD8SUsDK+NhnD3wasfVBVLOdJa7qqKw==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.821.0.tgz", + "integrity": "sha512-cebgeytKlWOgGczLo3BPvNY9XlzAzGZQANSysgJ2/8PSldmUpXRIF+GKPXDVhXeInWYHIfB8zZi3RqrPoXcNYQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", + "@aws-sdk/types": "3.821.0", "@aws-sdk/util-arn-parser": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", "tslib": "^2.6.2" }, @@ -601,14 +605,14 @@ } }, "node_modules/@aws-sdk/middleware-expect-continue": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.804.0.tgz", - "integrity": "sha512-YW1hySBolALMII6C8y7Z0CRG2UX1dGJjLEBNFeefhO/xP7ZuE1dvnmfJGaEuBMnvc3wkRS63VZ3aqX6sevM1CA==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.821.0.tgz", + "integrity": "sha512-zAOoSZKe1njOrtynvK6ZORU57YGv5I7KP4+rwOvUN3ZhJbQ7QPf8gKtFUCYAPRMegaXCKF/ADPtDZBAmM+zZ9g==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -616,22 +620,22 @@ } }, "node_modules/@aws-sdk/middleware-flexible-checksums": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.804.0.tgz", - "integrity": "sha512-bQbh3hTrp+3XEuu8G5DkPDK9u3nnIabw2N1GpqlIwv8oGM+GTtGH35gBZtbbd2WAxfSUIBOAwkc86kTS0g0mFg==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.826.0.tgz", + "integrity": "sha512-Fz9w8CFYPfSlHEB6feSsi06hdS+s+FB8k5pO4L7IV0tUa78mlhxF/VNlAJaVWYyOkZXl4HPH2K48aapACSQOXw==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", "@aws-crypto/crc32c": "5.2.0", "@aws-crypto/util": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", "@smithy/is-array-buffer": "^4.0.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -640,14 +644,14 @@ } }, "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.804.0.tgz", - "integrity": "sha512-bum1hLVBrn2lJCi423Z2fMUYtsbkGI2s4N+2RI2WSjvbaVyMSv/WcejIrjkqiiMR+2Y7m5exgoKeg4/TODLDPQ==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.821.0.tgz", + "integrity": "sha512-xSMR+sopSeWGx5/4pAGhhfMvGBHioVBbqGvDs6pG64xfNwM5vq5s5v6D04e2i+uSTj4qGa71dLUs5I0UzAK3sw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -655,13 +659,13 @@ } }, "node_modules/@aws-sdk/middleware-location-constraint": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.804.0.tgz", - "integrity": "sha512-AMtKnllIWKgoo7hiJfphLYotEwTERfjVMO2+cKAncz9w1g+bnYhHxiVhJJoR94y047c06X4PU5MsTxvdQ73Znw==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.821.0.tgz", + "integrity": "sha512-sKrm80k0t3R0on8aA/WhWFoMaAl4yvdk+riotmMElLUpcMcRXAd1+600uFVrxJqZdbrKQ0mjX0PjT68DlkYXLg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -669,13 +673,13 @@ } }, "node_modules/@aws-sdk/middleware-logger": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.804.0.tgz", - "integrity": "sha512-w/qLwL3iq0KOPQNat0Kb7sKndl9BtceigINwBU7SpkYWX9L/Lem6f8NPEKrC9Tl4wDBht3Yztub4oRTy/horJA==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.821.0.tgz", + "integrity": "sha512-0cvI0ipf2tGx7fXYEEN5fBeZDz2RnHyb9xftSgUsEq7NBxjV0yTZfLJw6Za5rjE6snC80dRN8+bTNR1tuG89zA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -683,14 +687,14 @@ } }, "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.804.0.tgz", - "integrity": "sha512-zqHOrvLRdsUdN/ehYfZ9Tf8svhbiLLz5VaWUz22YndFv6m9qaAcijkpAOlKexsv3nLBMJdSdJ6GUTAeIy3BZzw==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.821.0.tgz", + "integrity": "sha512-efmaifbhBoqKG3bAoEfDdcM8hn1psF+4qa7ykWuYmfmah59JBeqHLfz5W9m9JoTwoKPkFcVLWZxnyZzAnVBOIg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -698,23 +702,23 @@ } }, "node_modules/@aws-sdk/middleware-sdk-s3": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.804.0.tgz", - "integrity": "sha512-kiuqjV2ozoyI6w34+KMhZU+YVOLTPgh1Kp1DSpuS+tbkwkxnQCrPGziQhuSA5/Y0bUFaa2zLwUh2jpCmJQbLyA==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.826.0.tgz", + "integrity": "sha512-8F0qWaYKfvD/de1AKccXuigM+gb/IZSncCqxdnFWqd+TFzo9qI9Hh+TpUhWOMYSgxsMsYQ8ipmLzlD/lDhjrmA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", "@aws-sdk/util-arn-parser": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", + "@smithy/core": "^3.5.3", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -723,13 +727,13 @@ } }, "node_modules/@aws-sdk/middleware-ssec": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.804.0.tgz", - "integrity": "sha512-Tk8jK0gOIUBvEPTz/wwSlP1V70zVQ3QYqsLPAjQRMO6zfOK9ax31dln3MgKvFDJxBydS2tS3wsn53v+brxDxTA==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.821.0.tgz", + "integrity": "sha512-YYi1Hhr2AYiU/24cQc8HIB+SWbQo6FBkMYojVuz/zgrtkFmALxENGF/21OPg7f/QWd+eadZJRxCjmRwh5F2Cxg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -737,17 +741,17 @@ } }, "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.804.0.tgz", - "integrity": "sha512-HoBaun4t3vAFhMj/I7L/HNBKBrAYu7Sb5bTFINx8kFCxPbqsvF+jOrEE8WiljHNy7FbPjz0mPVRUwO7RZSYNiQ==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.828.0.tgz", + "integrity": "sha512-nixvI/SETXRdmrVab4D9LvXT3lrXkwAWGWk2GVvQvzlqN1/M/RfClj+o37Sn4FqRkGH9o9g7Fqb1YqZ4mqDAtA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@smithy/core": "^3.3.1", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@smithy/core": "^3.5.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -755,47 +759,47 @@ } }, "node_modules/@aws-sdk/nested-clients": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.804.0.tgz", - "integrity": "sha512-IOUcw6stjqYBMhLoAXlLVipYpAqLlA17jcyI0OzpS0pTD1RvBqEBckYibF4HJeReI+IiEHu/m0If0SKVR5WyXQ==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.828.0.tgz", + "integrity": "sha512-xmeOILiR9LvfC8MctgeRXXN8nQTwbOvO4wHvgE8tDRsjnBpyyO0j50R4+viHXdMUGtgGkHEXRv8fFNBq54RgnA==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.804.0", - "@aws-sdk/middleware-host-header": "3.804.0", - "@aws-sdk/middleware-logger": "3.804.0", - "@aws-sdk/middleware-recursion-detection": "3.804.0", - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/region-config-resolver": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@aws-sdk/util-endpoints": "3.804.0", - "@aws-sdk/util-user-agent-browser": "3.804.0", - "@aws-sdk/util-user-agent-node": "3.804.0", - "@smithy/config-resolver": "^4.1.0", - "@smithy/core": "^3.3.1", - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/hash-node": "^4.0.2", - "@smithy/invalid-dependency": "^4.0.2", - "@smithy/middleware-content-length": "^4.0.2", - "@smithy/middleware-endpoint": "^4.1.2", - "@smithy/middleware-retry": "^4.1.3", - "@smithy/middleware-serde": "^4.0.3", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/protocol-http": "^5.1.0", - "@smithy/smithy-client": "^4.2.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/middleware-host-header": "3.821.0", + "@aws-sdk/middleware-logger": "3.821.0", + "@aws-sdk/middleware-recursion-detection": "3.821.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/region-config-resolver": "3.821.0", + "@aws-sdk/types": "3.821.0", + "@aws-sdk/util-endpoints": "3.828.0", + "@aws-sdk/util-user-agent-browser": "3.821.0", + "@aws-sdk/util-user-agent-node": "3.828.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/core": "^3.5.3", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/hash-node": "^4.0.4", + "@smithy/invalid-dependency": "^4.0.4", + "@smithy/middleware-content-length": "^4.0.4", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-retry": "^4.1.12", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/protocol-http": "^5.1.2", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.10", - "@smithy/util-defaults-mode-node": "^4.0.10", - "@smithy/util-endpoints": "^3.0.2", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "@smithy/util-defaults-mode-browser": "^4.0.19", + "@smithy/util-defaults-mode-node": "^4.0.19", + "@smithy/util-endpoints": "^3.0.6", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -804,16 +808,16 @@ } }, "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.804.0.tgz", - "integrity": "sha512-Qlr8jVUL5U8Ej+84ElUTGeOok6hQXcJdx5IOSRoqKs6bCKVa8TtwgX1zZIajzjMhMgMlR3/V+M8oDVDKPB43Ug==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.821.0.tgz", + "integrity": "sha512-t8og+lRCIIy5nlId0bScNpCkif8sc0LhmtaKsbm0ZPm3sCa/WhCbSZibjbZ28FNjVCV+p0D9RYZx0VDDbtWyjw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "engines": { @@ -821,16 +825,16 @@ } }, "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.804.0.tgz", - "integrity": "sha512-6wxi+f/uvddm2PVRG1gDkjnukfwhEtu3JUAvGqQ56VWbDyM69pxPnGjcwoxCKf0dX16mU8+kHT5CpXsRIpEkkw==", + "version": "3.826.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.826.0.tgz", + "integrity": "sha512-3fEi/zy6tpMzomYosksGtu7jZqGFcdBXoL7YRsG7OEeQzBbOW9B+fVaQZ4jnsViSjzA/yKydLahMrfPnt+iaxg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-sdk-s3": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/signature-v4": "^5.1.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/middleware-sdk-s3": "3.826.0", + "@aws-sdk/types": "3.821.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/signature-v4": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -838,16 +842,17 @@ } }, "node_modules/@aws-sdk/token-providers": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.804.0.tgz", - "integrity": "sha512-ndcLGD1nHEVJdWRl0lK8SfC0dN4j3X4gcGXEJxK16KZD23veMB2adHP69ySYXNFNo5gI6W9Ct9QXnB+tJCCS1Q==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.828.0.tgz", + "integrity": "sha512-JdOjI/TxkfQpY/bWbdGMdCiePESXTbtl6MfnJxz35zZ3tfHvBnxAWCoYJirdmjzY/j/dFo5oEyS6mQuXAG9w2w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/nested-clients": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/core": "3.826.0", + "@aws-sdk/nested-clients": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -855,12 +860,12 @@ } }, "node_modules/@aws-sdk/types": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.804.0.tgz", - "integrity": "sha512-A9qnsy9zQ8G89vrPPlNG9d1d8QcKRGqJKqwyGgS0dclJpwy6d1EWgQLIolKPl6vcFpLoe6avLOLxr+h8ur5wpg==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.821.0.tgz", + "integrity": "sha512-Znroqdai1a90TlxGaJ+FK1lwC0fHpo97Xjsp5UKGR5JODYm7f9+/fF17ebO1KdoBr/Rm0UIFiF5VmI8ts9F1eA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -880,14 +885,14 @@ } }, "node_modules/@aws-sdk/util-endpoints": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.804.0.tgz", - "integrity": "sha512-mT2R1De1fBT3vgm00ELVFoaArblW3PqGUCVteGGSUdJA525To7h6xPThrNrw3Dn8blAcR8VYGYte/JX7vKgFxw==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.828.0.tgz", + "integrity": "sha512-RvKch111SblqdkPzg3oCIdlGxlQs+k+P7Etory9FmxPHyPDvsP1j1c74PmgYqtzzMWmoXTjd+c9naUHh9xG8xg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", - "@smithy/util-endpoints": "^3.0.2", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", + "@smithy/util-endpoints": "^3.0.6", "tslib": "^2.6.2" }, "engines": { @@ -907,27 +912,27 @@ } }, "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.804.0.tgz", - "integrity": "sha512-KfW6T6nQHHM/vZBBdGn6fMyG/MgX5lq82TDdX4HRQRRuHKLgBWGpKXqqvBwqIaCdXwWHgDrg2VQups6GqOWW2A==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.821.0.tgz", + "integrity": "sha512-irWZHyM0Jr1xhC+38OuZ7JB6OXMLPZlj48thElpsO1ZSLRkLZx5+I7VV6k3sp2yZ7BYbKz/G2ojSv4wdm7XTLw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.804.0", - "@smithy/types": "^4.2.0", + "@aws-sdk/types": "3.821.0", + "@smithy/types": "^4.3.1", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.804.0.tgz", - "integrity": "sha512-TacXL50ZHOeTUvN9LbHjS3muvvJNpzZp9cAtGRKpKXzlu8zCxPHrVU7dGOF6ONuNG30GpN2xzz81/XcCtg+8/A==", + "version": "3.828.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.828.0.tgz", + "integrity": "sha512-LdN6fTBzTlQmc8O8f1wiZN0qF3yBWVGis7NwpWK7FUEzP9bEZRxYfIkV9oV9zpt6iNRze1SedK3JQVB/udxBoA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.804.0", - "@aws-sdk/types": "3.804.0", - "@smithy/node-config-provider": "^4.0.2", - "@smithy/types": "^4.2.0", + "@aws-sdk/middleware-user-agent": "3.828.0", + "@aws-sdk/types": "3.821.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -943,12 +948,12 @@ } }, "node_modules/@aws-sdk/xml-builder": { - "version": "3.804.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.804.0.tgz", - "integrity": "sha512-JbGWp36IG9dgxtvC6+YXwt5WDZYfuamWFtVfK6fQpnmL96dx+GUPOXPKRWdw67WLKf2comHY28iX2d3z35I53Q==", + "version": "3.821.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.821.0.tgz", + "integrity": "sha512-DIIotRnefVL6DiaHtO6/21DhJ4JZnnIwdNbpwiAhdt/AVbttcE4yw925gsjur0OGv5BTYXQXU3YnANBYnZjuQA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1396,12 +1401,12 @@ } }, "node_modules/@smithy/abort-controller": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.0.2.tgz", - "integrity": "sha512-Sl/78VDtgqKxN2+1qduaVE140XF+Xg+TafkncspwM4jFP/LHr76ZHmIY/y3V1M0mMLNk+Je6IGbzxy23RSToMw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.0.4.tgz", + "integrity": "sha512-gJnEjZMvigPDQWHrW3oPrFhQtkrgqBkyjj3pCIdF3A5M6vsZODG93KNlfJprv6bp4245bdT32fsHK4kkH3KYDA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1434,15 +1439,15 @@ } }, "node_modules/@smithy/config-resolver": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.1.2.tgz", - "integrity": "sha512-7r6mZGwb5LmLJ+zPtkLoznf2EtwEuSWdtid10pjGl/7HefCE4mueOkrfki8JCUm99W6UfP47/r3tbxx9CfBN5A==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.1.4.tgz", + "integrity": "sha512-prmU+rDddxHOH0oNcwemL+SwnzcG65sBF2yXRO7aeXIn/xTlq2pX7JLVbkBnVLowHLg4/OL4+jBmv9hVrVGS+w==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "@smithy/util-config-provider": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "engines": { @@ -1450,17 +1455,18 @@ } }, "node_modules/@smithy/core": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.3.3.tgz", - "integrity": "sha512-CiJNc0b/WdnttAfQ6uMkxPQ3Z8hG/ba8wF89x9KtBBLDdZk6CX52K4F8hbe94uNbc8LDUuZFtbqfdhM3T21naw==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.5.3.tgz", + "integrity": "sha512-xa5byV9fEguZNofCclv6v9ra0FYh5FATQW/da7FQUVTic94DfrN/NvmKZjrMyzbpqfot9ZjBaO8U1UeTbmSLuA==", "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^4.0.5", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-stream": "^4.2.0", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -1469,15 +1475,15 @@ } }, "node_modules/@smithy/credential-provider-imds": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.4.tgz", - "integrity": "sha512-jN6M6zaGVyB8FmNGG+xOPQB4N89M1x97MMdMnm1ESjljLS3Qju/IegQizKujaNcy2vXAvrz0en8bobe6E55FEA==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.6.tgz", + "integrity": "sha512-hKMWcANhUiNbCJouYkZ9V3+/Qf9pteR1dnwgdyzR09R4ODEYx8BbUysHwRSyex4rZ9zapddZhLFTnT4ZijR4pw==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/property-provider": "^4.0.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", "tslib": "^2.6.2" }, "engines": { @@ -1485,13 +1491,13 @@ } }, "node_modules/@smithy/eventstream-codec": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.0.2.tgz", - "integrity": "sha512-p+f2kLSK7ZrXVfskU/f5dzksKTewZk8pJLPvER3aFHPt76C2MxD9vNatSfLzzQSQB4FNO96RK4PSXfhD1TTeMQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.0.4.tgz", + "integrity": "sha512-7XoWfZqWb/QoR/rAU4VSi0mWnO2vu9/ltS6JZ5ZSZv0eovLVfDfu0/AX4ub33RsJTOth3TiFWSHS5YdztvFnig==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-hex-encoding": "^4.0.0", "tslib": "^2.6.2" }, @@ -1500,13 +1506,13 @@ } }, "node_modules/@smithy/eventstream-serde-browser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.0.2.tgz", - "integrity": "sha512-CepZCDs2xgVUtH7ZZ7oDdZFH8e6Y2zOv8iiX6RhndH69nlojCALSKK+OXwZUgOtUZEUaZ5e1hULVCHYbCn7pug==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.0.4.tgz", + "integrity": "sha512-3fb/9SYaYqbpy/z/H3yIi0bYKyAa89y6xPmIqwr2vQiUT2St+avRt8UKwsWt9fEdEasc5d/V+QjrviRaX1JRFA==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-serde-universal": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1514,12 +1520,12 @@ } }, "node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.1.0.tgz", - "integrity": "sha512-1PI+WPZ5TWXrfj3CIoKyUycYynYJgZjuQo8U+sphneOtjsgrttYybdqESFReQrdWJ+LKt6NEdbYzmmfDBmjX2A==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.1.2.tgz", + "integrity": "sha512-JGtambizrWP50xHgbzZI04IWU7LdI0nh/wGbqH3sJesYToMi2j/DcoElqyOcqEIG/D4tNyxgRuaqBXWE3zOFhQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1527,13 +1533,13 @@ } }, "node_modules/@smithy/eventstream-serde-node": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.0.2.tgz", - "integrity": "sha512-C5bJ/C6x9ENPMx2cFOirspnF9ZsBVnBMtP6BdPl/qYSuUawdGQ34Lq0dMcf42QTjUZgWGbUIZnz6+zLxJlb9aw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.0.4.tgz", + "integrity": "sha512-RD6UwNZ5zISpOWPuhVgRz60GkSIp0dy1fuZmj4RYmqLVRtejFqQ16WmfYDdoSoAjlp1LX+FnZo+/hkdmyyGZ1w==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-serde-universal": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1541,13 +1547,13 @@ } }, "node_modules/@smithy/eventstream-serde-universal": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.0.2.tgz", - "integrity": "sha512-St8h9JqzvnbB52FtckiHPN4U/cnXcarMniXRXTKn0r4b4XesZOGiAyUdj1aXbqqn1icSqBlzzUsCl6nPB018ng==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.0.4.tgz", + "integrity": "sha512-UeJpOmLGhq1SLox79QWw/0n2PFX+oPRE1ZyRMxPIaFEfCqWaqpB7BU9C8kpPOGEhLF7AwEqfFbtwNxGy4ReENA==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/eventstream-codec": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1555,14 +1561,14 @@ } }, "node_modules/@smithy/fetch-http-handler": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.2.tgz", - "integrity": "sha512-+9Dz8sakS9pe7f2cBocpJXdeVjMopUDLgZs1yWeu7h++WqSbjUYv/JAJwKwXw1HV6gq1jyWjxuyn24E2GhoEcQ==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.4.tgz", + "integrity": "sha512-AMtBR5pHppYMVD7z7G+OlHHAcgAN7v0kVKEpHuTO4Gb199Gowh0taYi9oDStFeUhetkeP55JLSVlTW1n9rFtUw==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/querystring-builder": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/querystring-builder": "^4.0.4", + "@smithy/types": "^4.3.1", "@smithy/util-base64": "^4.0.0", "tslib": "^2.6.2" }, @@ -1571,14 +1577,14 @@ } }, "node_modules/@smithy/hash-blob-browser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.0.2.tgz", - "integrity": "sha512-3g188Z3DyhtzfBRxpZjU8R9PpOQuYsbNnyStc/ZVS+9nVX1f6XeNOa9IrAh35HwwIZg+XWk8bFVtNINVscBP+g==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.0.4.tgz", + "integrity": "sha512-WszRiACJiQV3QG6XMV44i5YWlkrlsM5Yxgz4jvsksuu7LDXA6wAtypfPajtNTadzpJy3KyJPoWehYpmZGKUFIQ==", "license": "Apache-2.0", "dependencies": { "@smithy/chunked-blob-reader": "^5.0.0", "@smithy/chunked-blob-reader-native": "^4.0.0", - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1586,12 +1592,12 @@ } }, "node_modules/@smithy/hash-node": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.0.2.tgz", - "integrity": "sha512-VnTpYPnRUE7yVhWozFdlxcYknv9UN7CeOqSrMH+V877v4oqtVYuoqhIhtSjmGPvYrYnAkaM61sLMKHvxL138yg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.0.4.tgz", + "integrity": "sha512-qnbTPUhCVnCgBp4z4BUJUhOEkVwxiEi1cyFM+Zj6o+aY8OFGxUQleKWq8ltgp3dujuhXojIvJWdoqpm6dVO3lQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-buffer-from": "^4.0.0", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" @@ -1601,12 +1607,12 @@ } }, "node_modules/@smithy/hash-stream-node": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.0.2.tgz", - "integrity": "sha512-POWDuTznzbIwlEXEvvXoPMS10y0WKXK790soe57tFRfvf4zBHyzE529HpZMqmDdwG9MfFflnyzndUQ8j78ZdSg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.0.4.tgz", + "integrity": "sha512-wHo0d8GXyVmpmMh/qOR0R7Y46/G1y6OR8U+bSTB4ppEzRxd1xVAQ9xOE9hOc0bSjhz0ujCPAbfNLkLrpa6cevg==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -1615,12 +1621,12 @@ } }, "node_modules/@smithy/invalid-dependency": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.0.2.tgz", - "integrity": "sha512-GatB4+2DTpgWPday+mnUkoumP54u/MDM/5u44KF9hIu8jF0uafZtQLcdfIKkIcUNuF/fBojpLEHZS/56JqPeXQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.0.4.tgz", + "integrity": "sha512-bNYMi7WKTJHu0gn26wg8OscncTt1t2b8KcsZxvOv56XA6cyXtOAAAaNP7+m45xfppXfOatXF3Sb1MNsLUgVLTw==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1640,12 +1646,12 @@ } }, "node_modules/@smithy/md5-js": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.0.2.tgz", - "integrity": "sha512-Hc0R8EiuVunUewCse2syVgA2AfSRco3LyAv07B/zCOMa+jpXI9ll+Q21Nc6FAlYPcpNcAXqBzMhNs1CD/pP2bA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.0.4.tgz", + "integrity": "sha512-uGLBVqcOwrLvGh/v/jw423yWHq/ofUGK1W31M2TNspLQbUV1Va0F5kTxtirkoHawODAZcjXTSGi7JwbnPcDPJg==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, @@ -1654,13 +1660,13 @@ } }, "node_modules/@smithy/middleware-content-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.0.2.tgz", - "integrity": "sha512-hAfEXm1zU+ELvucxqQ7I8SszwQ4znWMbNv6PLMndN83JJN41EPuS93AIyh2N+gJ6x8QFhzSO6b7q2e6oClDI8A==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.0.4.tgz", + "integrity": "sha512-F7gDyfI2BB1Kc+4M6rpuOLne5LOcEknH1n6UQB69qv+HucXBR1rkzXBnQTB2q46sFy1PM/zuSJOB532yc8bg3w==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1668,18 +1674,18 @@ } }, "node_modules/@smithy/middleware-endpoint": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.6.tgz", - "integrity": "sha512-Zdieg07c3ua3ap5ungdcyNnY1OsxmsXXtKDTk28+/YbwIPju0Z1ZX9X5AnkjmDE3+AbqgvhtC/ZuCMSr6VSfPw==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.11.tgz", + "integrity": "sha512-zDogwtRLzKl58lVS8wPcARevFZNBOOqnmzWWxVe9XiaXU2CADFjvJ9XfNibgkOWs08sxLuSr81NrpY4mgp9OwQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.3.3", - "@smithy/middleware-serde": "^4.0.5", - "@smithy/node-config-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", - "@smithy/url-parser": "^4.0.2", - "@smithy/util-middleware": "^4.0.2", + "@smithy/core": "^3.5.3", + "@smithy/middleware-serde": "^4.0.8", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", + "@smithy/url-parser": "^4.0.4", + "@smithy/util-middleware": "^4.0.4", "tslib": "^2.6.2" }, "engines": { @@ -1687,18 +1693,18 @@ } }, "node_modules/@smithy/middleware-retry": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.1.7.tgz", - "integrity": "sha512-lFIFUJ0E/4I0UaIDY5usNUzNKAghhxO0lDH4TZktXMmE+e4ActD9F154Si0Unc01aCPzcwd+NcOwQw6AfXXRRQ==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/protocol-http": "^5.1.0", - "@smithy/service-error-classification": "^4.0.3", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", - "@smithy/util-middleware": "^4.0.2", - "@smithy/util-retry": "^4.0.3", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.1.12.tgz", + "integrity": "sha512-wvIH70c4e91NtRxdaLZF+mbLZ/HcC6yg7ySKUiufL6ESp6zJUSnJucZ309AvG9nqCFHSRB5I6T3Ez1Q9wCh0Ww==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^4.1.3", + "@smithy/protocol-http": "^5.1.2", + "@smithy/service-error-classification": "^4.0.5", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", + "@smithy/util-middleware": "^4.0.4", + "@smithy/util-retry": "^4.0.5", "tslib": "^2.6.2", "uuid": "^9.0.1" }, @@ -1707,13 +1713,13 @@ } }, "node_modules/@smithy/middleware-serde": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.0.5.tgz", - "integrity": "sha512-yREC3q/HXqQigq29xX3hiy6tFi+kjPKXoYUQmwQdgPORLbQ0n6V2Z/Iw9Nnlu66da9fM/WhDtGvYvqwecrCljQ==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.0.8.tgz", + "integrity": "sha512-iSSl7HJoJaGyMIoNn2B7czghOVwJ9nD7TMvLhMWeSB5vt0TnEYyRRqPJu/TqW76WScaNvYYB8nRoiBHR9S1Ddw==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1721,12 +1727,12 @@ } }, "node_modules/@smithy/middleware-stack": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.0.2.tgz", - "integrity": "sha512-eSPVcuJJGVYrFYu2hEq8g8WWdJav3sdrI4o2c6z/rjnYDd3xH9j9E7deZQCzFn4QvGPouLngH3dQ+QVTxv5bOQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.0.4.tgz", + "integrity": "sha512-kagK5ggDrBUCCzI93ft6DjteNSfY8Ulr83UtySog/h09lTIOAJ/xUSObutanlPT0nhoHAkpmW9V5K8oPyLh+QA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1734,14 +1740,14 @@ } }, "node_modules/@smithy/node-config-provider": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.1.1.tgz", - "integrity": "sha512-1slS5jf5icHETwl5hxEVBj+mh6B+LbVW4yRINsGtUKH+nxM5Pw2H59+qf+JqYFCHp9jssG4vX81f5WKnjMN3Vw==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.1.3.tgz", + "integrity": "sha512-HGHQr2s59qaU1lrVH6MbLlmOBxadtzTsoO4c+bF5asdgVik3I8o7JIOzoeqWc5MjVa+vD36/LWE0iXKpNqooRw==", "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^4.0.2", - "@smithy/shared-ini-file-loader": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/shared-ini-file-loader": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1749,15 +1755,15 @@ } }, "node_modules/@smithy/node-http-handler": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.0.4.tgz", - "integrity": "sha512-/mdqabuAT3o/ihBGjL94PUbTSPSRJ0eeVTdgADzow0wRJ0rN4A27EOrtlK56MYiO1fDvlO3jVTCxQtQmK9dZ1g==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.0.6.tgz", + "integrity": "sha512-NqbmSz7AW2rvw4kXhKGrYTiJVDHnMsFnX4i+/FzcZAfbOBauPYs2ekuECkSbtqaxETLLTu9Rl/ex6+I2BKErPA==", "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/querystring-builder": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/abort-controller": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/querystring-builder": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1765,12 +1771,12 @@ } }, "node_modules/@smithy/property-provider": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.0.2.tgz", - "integrity": "sha512-wNRoQC1uISOuNc2s4hkOYwYllmiyrvVXWMtq+TysNRVQaHm4yoafYQyjN/goYZS+QbYlPIbb/QRjaUZMuzwQ7A==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.0.4.tgz", + "integrity": "sha512-qHJ2sSgu4FqF4U/5UUp4DhXNmdTrgmoAai6oQiM+c5RZ/sbDwJ12qxB1M6FnP+Tn/ggkPZf9ccn4jqKSINaquw==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1778,12 +1784,12 @@ } }, "node_modules/@smithy/protocol-http": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.1.0.tgz", - "integrity": "sha512-KxAOL1nUNw2JTYrtviRRjEnykIDhxc84qMBzxvu1MUfQfHTuBlCG7PA6EdVwqpJjH7glw7FqQoFxUJSyBQgu7g==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.1.2.tgz", + "integrity": "sha512-rOG5cNLBXovxIrICSBm95dLqzfvxjEmuZx4KK3hWwPFHGdW3lxY0fZNXfv2zebfRO7sJZ5pKJYHScsqopeIWtQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1791,12 +1797,12 @@ } }, "node_modules/@smithy/querystring-builder": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.2.tgz", - "integrity": "sha512-NTOs0FwHw1vimmQM4ebh+wFQvOwkEf/kQL6bSM1Lock+Bv4I89B3hGYoUEPkmvYPkDKyp5UdXJYu+PoTQ3T31Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.4.tgz", + "integrity": "sha512-SwREZcDnEYoh9tLNgMbpop+UTGq44Hl9tdj3rf+yeLcfH7+J8OXEBaMc2kDxtyRHu8BhSg9ADEx0gFHvpJgU8w==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "@smithy/util-uri-escape": "^4.0.0", "tslib": "^2.6.2" }, @@ -1805,12 +1811,12 @@ } }, "node_modules/@smithy/querystring-parser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.0.2.tgz", - "integrity": "sha512-v6w8wnmZcVXjfVLjxw8qF7OwESD9wnpjp0Dqry/Pod0/5vcEA3qxCr+BhbOHlxS8O+29eLpT3aagxXGwIoEk7Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.0.4.tgz", + "integrity": "sha512-6yZf53i/qB8gRHH/l2ZwUG5xgkPgQF15/KxH0DdXMDHjesA9MeZje/853ifkSY0x4m5S+dfDZ+c4x439PF0M2w==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1818,24 +1824,24 @@ } }, "node_modules/@smithy/service-error-classification": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.0.3.tgz", - "integrity": "sha512-FTbcajmltovWMjj3tksDQdD23b2w6gH+A0DYA1Yz3iSpjDj8fmkwy62UnXcWMy4d5YoMoSyLFHMfkEVEzbiN8Q==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.0.5.tgz", + "integrity": "sha512-LvcfhrnCBvCmTee81pRlh1F39yTS/+kYleVeLCwNtkY8wtGg8V/ca9rbZZvYIl8OjlMtL6KIjaiL/lgVqHD2nA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0" + "@smithy/types": "^4.3.1" }, "engines": { "node": ">=18.0.0" } }, "node_modules/@smithy/shared-ini-file-loader": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", - "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.4.tgz", + "integrity": "sha512-63X0260LoFBjrHifPDs+nM9tV0VMkOTl4JRMYNuKh/f5PauSjowTfvF3LogfkWdcPoxsA9UjqEOgjeYIbhb7Nw==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1843,16 +1849,16 @@ } }, "node_modules/@smithy/signature-v4": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.1.0.tgz", - "integrity": "sha512-4t5WX60sL3zGJF/CtZsUQTs3UrZEDO2P7pEaElrekbLqkWPYkgqNW1oeiNYC6xXifBnT9dVBOnNQRvOE9riU9w==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.1.2.tgz", + "integrity": "sha512-d3+U/VpX7a60seHziWnVZOHuEgJlclufjkS6zhXvxcJgkJq4UWdH5eOBLzHRMx6gXjsdT9h6lfpmLzbrdupHgQ==", "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^4.0.0", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", "@smithy/util-hex-encoding": "^4.0.0", - "@smithy/util-middleware": "^4.0.2", + "@smithy/util-middleware": "^4.0.4", "@smithy/util-uri-escape": "^4.0.0", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" @@ -1862,17 +1868,17 @@ } }, "node_modules/@smithy/smithy-client": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.2.6.tgz", - "integrity": "sha512-WEqP0wQ1N/lVS4pwNK1Vk+0i6QIr66cq/xbu1dVy1tM0A0qYwAYyz0JhbquzM5pMa8s89lyDBtoGKxo7iG74GA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.4.3.tgz", + "integrity": "sha512-xxzNYgA0HD6ETCe5QJubsxP0hQH3QK3kbpJz3QrosBCuIWyEXLR/CO5hFb2OeawEKUxMNhz3a1nuJNN2np2RMA==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.3.3", - "@smithy/middleware-endpoint": "^4.1.6", - "@smithy/middleware-stack": "^4.0.2", - "@smithy/protocol-http": "^5.1.0", - "@smithy/types": "^4.2.0", - "@smithy/util-stream": "^4.2.0", + "@smithy/core": "^3.5.3", + "@smithy/middleware-endpoint": "^4.1.11", + "@smithy/middleware-stack": "^4.0.4", + "@smithy/protocol-http": "^5.1.2", + "@smithy/types": "^4.3.1", + "@smithy/util-stream": "^4.2.2", "tslib": "^2.6.2" }, "engines": { @@ -1880,9 +1886,9 @@ } }, "node_modules/@smithy/types": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.2.0.tgz", - "integrity": "sha512-7eMk09zQKCO+E/ivsjQv+fDlOupcFUCSC/L2YUPgwhvowVGWbPQHjEFcmjt7QQ4ra5lyowS92SV53Zc6XD4+fg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.3.1.tgz", + "integrity": "sha512-UqKOQBL2x6+HWl3P+3QqFD4ncKq0I8Nuz9QItGv5WuKuMHuuwlhvqcZCoXGfc+P1QmfJE7VieykoYYmrOoFJxA==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -1892,13 +1898,13 @@ } }, "node_modules/@smithy/url-parser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.0.2.tgz", - "integrity": "sha512-Bm8n3j2ScqnT+kJaClSVCMeiSenK6jVAzZCNewsYWuZtnBehEz4r2qP0riZySZVfzB+03XZHJeqfmJDkeeSLiQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.0.4.tgz", + "integrity": "sha512-eMkc144MuN7B0TDA4U2fKs+BqczVbk3W+qIvcoCY6D1JY3hnAdCuhCZODC+GAeaxj0p6Jroz4+XMUn3PCxQQeQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/querystring-parser": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -1969,14 +1975,14 @@ } }, "node_modules/@smithy/util-defaults-mode-browser": { - "version": "4.0.14", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.14.tgz", - "integrity": "sha512-l7QnMX8VcDOH6n/fBRu4zqguSlOBZxFzWqp58dXFSARFBjNlmEDk5G/z4T7BMGr+rI0Pg8MkhmMUfEtHFgpy2g==", + "version": "4.0.19", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.19.tgz", + "integrity": "sha512-mvLMh87xSmQrV5XqnUYEPoiFFeEGYeAKIDDKdhE2ahqitm8OHM3aSvhqL6rrK6wm1brIk90JhxDf5lf2hbrLbQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^4.0.2", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", + "@smithy/property-provider": "^4.0.4", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "bowser": "^2.11.0", "tslib": "^2.6.2" }, @@ -1985,17 +1991,17 @@ } }, "node_modules/@smithy/util-defaults-mode-node": { - "version": "4.0.14", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.14.tgz", - "integrity": "sha512-Ujs1gsWDo3m/T63VWBTBmHLTD2UlU6J6FEokLCEp7OZQv45jcjLHoxTwgWsi8ULpsYozvH4MTWkRP+bhwr0vDg==", + "version": "4.0.19", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.19.tgz", + "integrity": "sha512-8tYnx+LUfj6m+zkUUIrIQJxPM1xVxfRBvoGHua7R/i6qAxOMjqR6CpEpDwKoIs1o0+hOjGvkKE23CafKL0vJ9w==", "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^4.1.2", - "@smithy/credential-provider-imds": "^4.0.4", - "@smithy/node-config-provider": "^4.1.1", - "@smithy/property-provider": "^4.0.2", - "@smithy/smithy-client": "^4.2.6", - "@smithy/types": "^4.2.0", + "@smithy/config-resolver": "^4.1.4", + "@smithy/credential-provider-imds": "^4.0.6", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/property-provider": "^4.0.4", + "@smithy/smithy-client": "^4.4.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -2003,13 +2009,13 @@ } }, "node_modules/@smithy/util-endpoints": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.0.4.tgz", - "integrity": "sha512-VfFATC1bmZLV2858B/O1NpMcL32wYo8DPPhHxYxDCodDl3f3mSZ5oJheW1IF91A0EeAADz2WsakM/hGGPGNKLg==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.0.6.tgz", + "integrity": "sha512-YARl3tFL3WgPuLzljRUnrS2ngLiUtkwhQtj8PAL13XZSyUiNLQxwG3fBBq3QXFqGFUXepIN73pINp3y8c2nBmA==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.1.1", - "@smithy/types": "^4.2.0", + "@smithy/node-config-provider": "^4.1.3", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -2029,12 +2035,12 @@ } }, "node_modules/@smithy/util-middleware": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.0.2.tgz", - "integrity": "sha512-6GDamTGLuBQVAEuQ4yDQ+ti/YINf/MEmIegrEeg7DdB/sld8BX1lqt9RRuIcABOhAGTA50bRbPzErez7SlDtDQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.0.4.tgz", + "integrity": "sha512-9MLKmkBmf4PRb0ONJikCbCwORACcil6gUWojwARCClT7RmLzF04hUR4WdRprIXal7XVyrddadYNfp2eF3nrvtQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.2.0", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -2042,13 +2048,13 @@ } }, "node_modules/@smithy/util-retry": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.0.3.tgz", - "integrity": "sha512-DPuYjZQDXmKr/sNvy9Spu8R/ESa2e22wXZzSAY6NkjOLj6spbIje/Aq8rT97iUMdDj0qHMRIe+bTxvlU74d9Ng==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.0.5.tgz", + "integrity": "sha512-V7MSjVDTlEt/plmOFBn1762Dyu5uqMrV2Pl2X0dYk4XvWfdWJNe9Bs5Bzb56wkCuiWjSfClVMGcsuKrGj7S/yg==", "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^4.0.3", - "@smithy/types": "^4.2.0", + "@smithy/service-error-classification": "^4.0.5", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { @@ -2056,14 +2062,14 @@ } }, "node_modules/@smithy/util-stream": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.2.0.tgz", - "integrity": "sha512-Vj1TtwWnuWqdgQI6YTUF5hQ/0jmFiOYsc51CSMgj7QfyO+RF4EnT2HNjoviNlOOmgzgvf3f5yno+EiC4vrnaWQ==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.2.2.tgz", + "integrity": "sha512-aI+GLi7MJoVxg24/3J1ipwLoYzgkB4kUfogZfnslcYlynj3xsQ0e7vk4TnTro9hhsS5PvX1mwmkRqqHQjwcU7w==", "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^5.0.2", - "@smithy/node-http-handler": "^4.0.4", - "@smithy/types": "^4.2.0", + "@smithy/fetch-http-handler": "^5.0.4", + "@smithy/node-http-handler": "^4.0.6", + "@smithy/types": "^4.3.1", "@smithy/util-base64": "^4.0.0", "@smithy/util-buffer-from": "^4.0.0", "@smithy/util-hex-encoding": "^4.0.0", @@ -2100,13 +2106,13 @@ } }, "node_modules/@smithy/util-waiter": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.0.3.tgz", - "integrity": "sha512-JtaY3FxmD+te+KSI2FJuEcfNC9T/DGGVf551babM7fAaXhjJUt7oSYurH1Devxd2+BOSUACCgt3buinx4UnmEA==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.0.5.tgz", + "integrity": "sha512-4QvC49HTteI1gfemu0I1syWovJgPvGn7CVUoN9ZFkdvr/cCFkrEL7qNCdx/2eICqDWEGnnr68oMdSIPCLAriSQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^4.0.2", - "@smithy/types": "^4.2.0", + "@smithy/abort-controller": "^4.0.4", + "@smithy/types": "^4.3.1", "tslib": "^2.6.2" }, "engines": { diff --git a/package.json b/package.json index 8659f97..0822e63 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "author": "", "license": "UNLICENSED", "dependencies": { - "@aws-sdk/client-s3": "3.804.0", - "@aws-sdk/lib-storage": "3.804.0", + "@aws-sdk/client-s3": "3.828.0", + "@aws-sdk/lib-storage": "3.828.0", "@actions/core": "1.11.1", "@actions/github": "6.0.1", "@actions/glob": "0.5.0"