@cdk8s/awscdk-resolver 0.0.296 → 0.0.298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +625 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +6 -0
- package/node_modules/@smithy/core/package.json +7 -6
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -2
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +1 -1
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +3 -7
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +3 -7
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +32 -617
- package/node_modules/@smithy/smithy-client/dist-es/index.js +1 -6
- package/node_modules/@smithy/smithy-client/dist-types/index.d.ts +1 -6
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +1 -6
- package/node_modules/@smithy/smithy-client/package.json +8 -8
- package/node_modules/@smithy/types/dist-cjs/schema/schema.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/schema/traits.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +1 -0
- package/node_modules/@smithy/types/dist-es/index.js +3 -0
- package/node_modules/@smithy/types/dist-es/schema/schema.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/sentinels.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/traits.js +1 -0
- package/node_modules/@smithy/types/dist-es/transform/mutable.js +1 -0
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +0 -3
- package/node_modules/@smithy/types/dist-types/command.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +263 -0
- package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +65 -0
- package/node_modules/@smithy/types/dist-types/schema/traits.d.ts +46 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -3
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +278 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +6 -6
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +1 -2
- package/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +0 -3
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +3 -3
- package/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/quote-header.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/split-header.js +0 -1
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/date-utils.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/lazy-json.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/parse-utils.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/quote-header.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-every.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-header.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/date-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/lazy-json.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/parse-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/quote-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-every.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/date-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/lazy-json.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/parse-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/quote-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-every.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-header.d.ts +0 -0
@@ -3,7 +3,6 @@ export * from "./collect-stream-body";
|
|
3
3
|
export * from "./command";
|
4
4
|
export * from "./constants";
|
5
5
|
export * from "./create-aggregated-client";
|
6
|
-
export * from "./date-utils";
|
7
6
|
export * from "./default-error-handler";
|
8
7
|
export * from "./defaults-mode";
|
9
8
|
export * from "./emitWarningIfUnsupportedVersion";
|
@@ -13,13 +12,9 @@ export * from "./extensions";
|
|
13
12
|
export * from "./get-array-if-single-item";
|
14
13
|
export * from "./get-value-from-text-node";
|
15
14
|
export * from "./is-serializable-header-value";
|
16
|
-
export * from "./lazy-json";
|
17
15
|
export * from "./NoOpLogger";
|
18
16
|
export * from "./object-mapping";
|
19
|
-
export * from "./parse-utils";
|
20
|
-
export * from "./quote-header";
|
21
17
|
export * from "./resolve-path";
|
22
18
|
export * from "./ser-utils";
|
23
19
|
export * from "./serde-json";
|
24
|
-
export * from "
|
25
|
-
export * from "./split-header";
|
20
|
+
export * from "@smithy/core/serde";
|
@@ -4,7 +4,6 @@ export * from "./collect-stream-body";
|
|
4
4
|
export * from "./command";
|
5
5
|
export * from "./constants";
|
6
6
|
export * from "./create-aggregated-client";
|
7
|
-
export * from "./date-utils";
|
8
7
|
export * from "./default-error-handler";
|
9
8
|
export * from "./defaults-mode";
|
10
9
|
export * from "./emitWarningIfUnsupportedVersion";
|
@@ -14,13 +13,9 @@ export * from "./extensions";
|
|
14
13
|
export * from "./get-array-if-single-item";
|
15
14
|
export * from "./get-value-from-text-node";
|
16
15
|
export * from "./is-serializable-header-value";
|
17
|
-
export * from "./lazy-json";
|
18
16
|
export * from "./NoOpLogger";
|
19
17
|
export * from "./object-mapping";
|
20
|
-
export * from "./parse-utils";
|
21
|
-
export * from "./quote-header";
|
22
18
|
export * from "./resolve-path";
|
23
19
|
export * from "./ser-utils";
|
24
20
|
export * from "./serde-json";
|
25
|
-
export * from "
|
26
|
-
export * from "./split-header";
|
21
|
+
export * from "@smithy/core/serde";
|
@@ -4,7 +4,6 @@ export * from "./collect-stream-body";
|
|
4
4
|
export * from "./command";
|
5
5
|
export * from "./constants";
|
6
6
|
export * from "./create-aggregated-client";
|
7
|
-
export * from "./date-utils";
|
8
7
|
export * from "./default-error-handler";
|
9
8
|
export * from "./defaults-mode";
|
10
9
|
export * from "./emitWarningIfUnsupportedVersion";
|
@@ -14,13 +13,9 @@ export * from "./extensions";
|
|
14
13
|
export * from "./get-array-if-single-item";
|
15
14
|
export * from "./get-value-from-text-node";
|
16
15
|
export * from "./is-serializable-header-value";
|
17
|
-
export * from "./lazy-json";
|
18
16
|
export * from "./NoOpLogger";
|
19
17
|
export * from "./object-mapping";
|
20
|
-
export * from "./parse-utils";
|
21
|
-
export * from "./quote-header";
|
22
18
|
export * from "./resolve-path";
|
23
19
|
export * from "./ser-utils";
|
24
20
|
export * from "./serde-json";
|
25
|
-
export * from "
|
26
|
-
export * from "./split-header";
|
21
|
+
export * from "@smithy/core/serde";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/smithy-client",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.3.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline smithy-client",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
12
12
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
14
|
-
"extract:docs": "api-extractor run --local",
|
14
|
+
"extract:docs": "node ./scripts/fix-api-extractor && api-extractor run --local && node ./scripts/fix-api-extractor --unset",
|
15
15
|
"test": "yarn g:vitest run",
|
16
16
|
"test:watch": "yarn g:vitest watch"
|
17
17
|
},
|
@@ -24,12 +24,12 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@smithy/core": "^3.
|
28
|
-
"@smithy/middleware-endpoint": "^4.1.
|
29
|
-
"@smithy/middleware-stack": "^4.0.
|
30
|
-
"@smithy/protocol-http": "^5.1.
|
31
|
-
"@smithy/types": "^4.
|
32
|
-
"@smithy/util-stream": "^4.2.
|
27
|
+
"@smithy/core": "^3.4.0",
|
28
|
+
"@smithy/middleware-endpoint": "^4.1.7",
|
29
|
+
"@smithy/middleware-stack": "^4.0.3",
|
30
|
+
"@smithy/protocol-http": "^5.1.1",
|
31
|
+
"@smithy/types": "^4.3.0",
|
32
|
+
"@smithy/util-stream": "^4.2.1",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
35
35
|
"engines": {
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require("../index.js");
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require("../index.js");
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require("../index.js");
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require("../index.js");
|
@@ -21,6 +21,8 @@ export * from "./pagination";
|
|
21
21
|
export * from "./profile";
|
22
22
|
export * from "./response";
|
23
23
|
export * from "./retry";
|
24
|
+
export * from "./schema/schema";
|
25
|
+
export * from "./schema/sentinels";
|
24
26
|
export * from "./serde";
|
25
27
|
export * from "./shapes";
|
26
28
|
export * from "./signature";
|
@@ -30,6 +32,7 @@ export * from "./streaming-payload/streaming-blob-payload-input-types";
|
|
30
32
|
export * from "./streaming-payload/streaming-blob-payload-output-types";
|
31
33
|
export * from "./transfer";
|
32
34
|
export * from "./transform/client-payload-blob-type-narrow";
|
35
|
+
export * from "./transform/mutable";
|
33
36
|
export * from "./transform/no-undefined";
|
34
37
|
export * from "./transform/type-transform";
|
35
38
|
export * from "./uri";
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { Handler, MiddlewareStack } from "./middleware";
|
2
2
|
import { MetadataBearer } from "./response";
|
3
|
+
import { OperationSchema } from "./schema/schema";
|
3
4
|
/**
|
4
5
|
* @public
|
5
6
|
*/
|
6
7
|
export interface Command<ClientInput extends object, InputType extends ClientInput, ClientOutput extends MetadataBearer, OutputType extends ClientOutput, ResolvedConfiguration> extends CommandIO<InputType, OutputType> {
|
7
8
|
readonly input: InputType;
|
8
9
|
readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
|
10
|
+
readonly schema?: OperationSchema;
|
9
11
|
resolveMiddleware(stack: MiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedConfiguration, options: any): Handler<InputType, OutputType>;
|
10
12
|
}
|
11
13
|
/**
|
@@ -1,5 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
/// <reference types="node" />
|
3
1
|
import type { Agent as hAgent, AgentOptions as hAgentOptions } from "http";
|
4
2
|
import type { Agent as hsAgent, AgentOptions as hsAgentOptions } from "https";
|
5
3
|
import { HttpRequest as IHttpRequest } from "../http";
|
@@ -21,6 +21,8 @@ export * from "./pagination";
|
|
21
21
|
export * from "./profile";
|
22
22
|
export * from "./response";
|
23
23
|
export * from "./retry";
|
24
|
+
export * from "./schema/schema";
|
25
|
+
export * from "./schema/sentinels";
|
24
26
|
export * from "./serde";
|
25
27
|
export * from "./shapes";
|
26
28
|
export * from "./signature";
|
@@ -30,6 +32,7 @@ export * from "./streaming-payload/streaming-blob-payload-input-types";
|
|
30
32
|
export * from "./streaming-payload/streaming-blob-payload-output-types";
|
31
33
|
export * from "./transfer";
|
32
34
|
export * from "./transform/client-payload-blob-type-narrow";
|
35
|
+
export * from "./transform/mutable";
|
33
36
|
export * from "./transform/no-undefined";
|
34
37
|
export * from "./transform/type-transform";
|
35
38
|
export * from "./uri";
|
@@ -0,0 +1,263 @@
|
|
1
|
+
import type { EndpointV2 } from "../endpoint";
|
2
|
+
import type { HandlerExecutionContext } from "../middleware";
|
3
|
+
import type { MetadataBearer } from "../response";
|
4
|
+
import type { EndpointBearer, SerdeFunctions } from "../serde";
|
5
|
+
import type { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "./sentinels";
|
6
|
+
import type { TraitBitVector } from "./traits";
|
7
|
+
/**
|
8
|
+
* A schema is an object or value that describes how to serialize/deserialize data.
|
9
|
+
* @public
|
10
|
+
*/
|
11
|
+
export type Schema = UnitSchema | TraitsSchema | SimpleSchema | ListSchema | MapSchema | StructureSchema | MemberSchema | OperationSchema | NormalizedSchema;
|
12
|
+
/**
|
13
|
+
* Traits attached to schema objects.
|
14
|
+
*
|
15
|
+
* When this is a number, it refers to a pre-allocated
|
16
|
+
* trait combination that is equivalent to one of the
|
17
|
+
* object type's variations.
|
18
|
+
*
|
19
|
+
* @public
|
20
|
+
*/
|
21
|
+
export type SchemaTraits = TraitBitVector | SchemaTraitsObject;
|
22
|
+
/**
|
23
|
+
* A schema that has traits.
|
24
|
+
*
|
25
|
+
* @public
|
26
|
+
*/
|
27
|
+
export interface TraitsSchema {
|
28
|
+
name: string;
|
29
|
+
traits: SchemaTraits;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Simple schemas are those corresponding to simple Smithy types.
|
33
|
+
* @see https://smithy.io/2.0/spec/simple-types.html
|
34
|
+
* @public
|
35
|
+
*/
|
36
|
+
export type SimpleSchema = BlobSchemas | StringSchema | BooleanSchema | NumericSchema | BigIntegerSchema | BigDecimalSchema | DocumentSchema | TimestampSchemas | number;
|
37
|
+
/**
|
38
|
+
* Sentinel value for Timestamp schema.
|
39
|
+
* "Default" means unspecified and to use the protocol serializer's default format.
|
40
|
+
*
|
41
|
+
* @public
|
42
|
+
*/
|
43
|
+
export type TimestampSchemas = TimestampDefaultSchema | TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema;
|
44
|
+
/**
|
45
|
+
* Sentinel values for Blob schema.
|
46
|
+
* @public
|
47
|
+
*/
|
48
|
+
export type BlobSchemas = BlobSchema | StreamingBlobSchema;
|
49
|
+
/**
|
50
|
+
* Signal value for the Smithy void value. Typically used for
|
51
|
+
* operation input and outputs.
|
52
|
+
*
|
53
|
+
* @internal
|
54
|
+
*/
|
55
|
+
export type UnitSchema = "unit";
|
56
|
+
/**
|
57
|
+
* See https://smithy.io/2.0/trait-index.html for individual definitions.
|
58
|
+
*
|
59
|
+
* @public
|
60
|
+
*/
|
61
|
+
export type SchemaTraitsObject = {
|
62
|
+
idempotent?: 1;
|
63
|
+
idempotencyToken?: 1;
|
64
|
+
sensitive?: 1;
|
65
|
+
sparse?: 1;
|
66
|
+
/**
|
67
|
+
* timestampFormat is expressed by the schema sentinel values of 4, 5, 6, and 7,
|
68
|
+
* and not contained in trait objects.
|
69
|
+
* @deprecated use schema value.
|
70
|
+
*/
|
71
|
+
timestampFormat?: never;
|
72
|
+
httpLabel?: 1;
|
73
|
+
httpHeader?: string;
|
74
|
+
httpQuery?: string;
|
75
|
+
httpPrefixHeaders?: string;
|
76
|
+
httpQueryParams?: 1;
|
77
|
+
httpPayload?: 1;
|
78
|
+
/**
|
79
|
+
* [method, path, statusCode]
|
80
|
+
*/
|
81
|
+
http?: [string, string, number];
|
82
|
+
httpResponseCode?: 1;
|
83
|
+
/**
|
84
|
+
* [hostPrefix]
|
85
|
+
*/
|
86
|
+
endpoint?: [string];
|
87
|
+
xmlAttribute?: 1;
|
88
|
+
xmlName?: string;
|
89
|
+
/**
|
90
|
+
* [prefix, uri]
|
91
|
+
*/
|
92
|
+
xmlNamespace?: [string, string];
|
93
|
+
xmlFlattened?: 1;
|
94
|
+
jsonName?: string;
|
95
|
+
mediaType?: string;
|
96
|
+
error?: "client" | "server";
|
97
|
+
[traitName: string]: unknown;
|
98
|
+
};
|
99
|
+
/**
|
100
|
+
* Schema for the structure aggregate type.
|
101
|
+
* @public
|
102
|
+
*/
|
103
|
+
export interface StructureSchema extends TraitsSchema {
|
104
|
+
name: string;
|
105
|
+
traits: SchemaTraits;
|
106
|
+
members: Record<string, [SchemaRef, SchemaTraits]>;
|
107
|
+
}
|
108
|
+
/**
|
109
|
+
* Schema for the list aggregate type.
|
110
|
+
* @public
|
111
|
+
*/
|
112
|
+
export interface ListSchema extends TraitsSchema {
|
113
|
+
name: string;
|
114
|
+
traits: SchemaTraits;
|
115
|
+
valueSchema: SchemaRef;
|
116
|
+
}
|
117
|
+
/**
|
118
|
+
* Schema for the map aggregate type.
|
119
|
+
* @public
|
120
|
+
*/
|
121
|
+
export interface MapSchema extends TraitsSchema {
|
122
|
+
name: string;
|
123
|
+
traits: SchemaTraits;
|
124
|
+
keySchema: SchemaRef;
|
125
|
+
valueSchema: SchemaRef;
|
126
|
+
}
|
127
|
+
/**
|
128
|
+
* @public
|
129
|
+
*/
|
130
|
+
export type MemberSchema = [SchemaRef, SchemaTraits];
|
131
|
+
/**
|
132
|
+
* Schema for an operation.
|
133
|
+
*
|
134
|
+
* @public
|
135
|
+
*/
|
136
|
+
export interface OperationSchema extends TraitsSchema {
|
137
|
+
name: string;
|
138
|
+
traits: SchemaTraits;
|
139
|
+
input: SchemaRef;
|
140
|
+
output: SchemaRef;
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* Normalization wrapper for various schema data objects.
|
144
|
+
* @internal
|
145
|
+
*/
|
146
|
+
export interface NormalizedSchema extends TraitsSchema {
|
147
|
+
name: string;
|
148
|
+
traits: SchemaTraits;
|
149
|
+
getSchema(): Schema;
|
150
|
+
getName(): string | undefined;
|
151
|
+
isMemberSchema(): boolean;
|
152
|
+
isListSchema(): boolean;
|
153
|
+
isMapSchema(): boolean;
|
154
|
+
isStructSchema(): boolean;
|
155
|
+
isBlobSchema(): boolean;
|
156
|
+
isTimestampSchema(): boolean;
|
157
|
+
isStringSchema(): boolean;
|
158
|
+
isBooleanSchema(): boolean;
|
159
|
+
isNumericSchema(): boolean;
|
160
|
+
isBigIntegerSchema(): boolean;
|
161
|
+
isBigDecimalSchema(): boolean;
|
162
|
+
isStreaming(): boolean;
|
163
|
+
getMergedTraits(): SchemaTraitsObject;
|
164
|
+
getMemberTraits(): SchemaTraitsObject;
|
165
|
+
getOwnTraits(): SchemaTraitsObject;
|
166
|
+
/**
|
167
|
+
* For list/set/map.
|
168
|
+
*/
|
169
|
+
getValueSchema(): NormalizedSchema;
|
170
|
+
/**
|
171
|
+
* For struct/union.
|
172
|
+
*/
|
173
|
+
getMemberSchema(member: string): NormalizedSchema | undefined;
|
174
|
+
getMemberSchemas(): Record<string, NormalizedSchema>;
|
175
|
+
}
|
176
|
+
/**
|
177
|
+
* A schema "reference" is either a schema or a function that
|
178
|
+
* provides a schema. This is useful for lazy loading, and to allow
|
179
|
+
* code generation to define schema out of dependency order.
|
180
|
+
* @public
|
181
|
+
*/
|
182
|
+
export type SchemaRef = Schema | (() => Schema);
|
183
|
+
/**
|
184
|
+
* A codec creates serializers and deserializers for some format such as JSON, XML, or CBOR.
|
185
|
+
*
|
186
|
+
* @public
|
187
|
+
*/
|
188
|
+
export interface Codec<S, D> extends ConfigurableSerdeContext {
|
189
|
+
createSerializer(): ShapeSerializer<S>;
|
190
|
+
createDeserializer(): ShapeDeserializer<D>;
|
191
|
+
}
|
192
|
+
/**
|
193
|
+
* Configuration for codecs. Different protocols may share codecs, but require different behaviors from them.
|
194
|
+
*
|
195
|
+
* @public
|
196
|
+
*/
|
197
|
+
export type CodecSettings = {
|
198
|
+
timestampFormat: {
|
199
|
+
/**
|
200
|
+
* Whether to use member timestamp format traits.
|
201
|
+
*/
|
202
|
+
useTrait: boolean;
|
203
|
+
/**
|
204
|
+
* Default timestamp format.
|
205
|
+
*/
|
206
|
+
default: TimestampDateTimeSchema | TimestampHttpDateSchema | TimestampEpochSecondsSchema;
|
207
|
+
};
|
208
|
+
/**
|
209
|
+
* Whether to use HTTP binding traits.
|
210
|
+
*/
|
211
|
+
httpBindings?: boolean;
|
212
|
+
};
|
213
|
+
/**
|
214
|
+
* Turns a serialization into a data object.
|
215
|
+
* @public
|
216
|
+
*/
|
217
|
+
export interface ShapeDeserializer<SerializationType = Uint8Array> extends ConfigurableSerdeContext {
|
218
|
+
/**
|
219
|
+
* Optionally async.
|
220
|
+
*/
|
221
|
+
read(schema: Schema, data: SerializationType): any | Promise<any>;
|
222
|
+
}
|
223
|
+
/**
|
224
|
+
* Turns a data object into a serialization.
|
225
|
+
* @public
|
226
|
+
*/
|
227
|
+
export interface ShapeSerializer<SerializationType = Uint8Array> extends ConfigurableSerdeContext {
|
228
|
+
write(schema: Schema, value: unknown): void;
|
229
|
+
flush(): SerializationType;
|
230
|
+
}
|
231
|
+
/**
|
232
|
+
* A client protocol defines how to convert a message (e.g. HTTP request/response) to and from a data object.
|
233
|
+
* @public
|
234
|
+
*/
|
235
|
+
export interface ClientProtocol<Request, Response> extends ConfigurableSerdeContext {
|
236
|
+
/**
|
237
|
+
* @returns the Smithy qualified shape id.
|
238
|
+
*/
|
239
|
+
getShapeId(): string;
|
240
|
+
getRequestType(): {
|
241
|
+
new (...args: any[]): Request;
|
242
|
+
};
|
243
|
+
getResponseType(): {
|
244
|
+
new (...args: any[]): Response;
|
245
|
+
};
|
246
|
+
/**
|
247
|
+
* @returns the payload codec if the requests/responses have a symmetric format.
|
248
|
+
* It otherwise may return null.
|
249
|
+
*/
|
250
|
+
getPayloadCodec(): Codec<any, any>;
|
251
|
+
serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<Request>;
|
252
|
+
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
253
|
+
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
254
|
+
}
|
255
|
+
/**
|
256
|
+
* Allows a protocol, codec, or serde utility to accept the serdeContext
|
257
|
+
* from a client configuration or request/response handlerExecutionContext.
|
258
|
+
*
|
259
|
+
* @public
|
260
|
+
*/
|
261
|
+
export interface ConfigurableSerdeContext {
|
262
|
+
setSerdeContext(serdeContext: SerdeFunctions): void;
|
263
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/**
|
2
|
+
* The blob Smithy type, in JS as Uint8Array and other representations
|
3
|
+
* such as Buffer, string, or Readable(Stream) depending on circumstances.
|
4
|
+
* @public
|
5
|
+
*/
|
6
|
+
export type BlobSchema = 21;
|
7
|
+
/**
|
8
|
+
* @public
|
9
|
+
*/
|
10
|
+
export type StreamingBlobSchema = 42;
|
11
|
+
/**
|
12
|
+
* @public
|
13
|
+
*/
|
14
|
+
export type BooleanSchema = 2;
|
15
|
+
/**
|
16
|
+
* Includes string and enum Smithy types.
|
17
|
+
* @public
|
18
|
+
*/
|
19
|
+
export type StringSchema = 0;
|
20
|
+
/**
|
21
|
+
* Includes all numeric Smithy types except bigInteger and bigDecimal.
|
22
|
+
* byte, short, integer, long, float, double, intEnum.
|
23
|
+
*
|
24
|
+
* @public
|
25
|
+
*/
|
26
|
+
export type NumericSchema = 1;
|
27
|
+
/**
|
28
|
+
* @public
|
29
|
+
*/
|
30
|
+
export type BigIntegerSchema = 17;
|
31
|
+
/**
|
32
|
+
* @public
|
33
|
+
*/
|
34
|
+
export type BigDecimalSchema = 19;
|
35
|
+
/**
|
36
|
+
* @public
|
37
|
+
*/
|
38
|
+
export type DocumentSchema = 15;
|
39
|
+
/**
|
40
|
+
* Smithy type timestamp, in JS as native Date object.
|
41
|
+
* @public
|
42
|
+
*/
|
43
|
+
export type TimestampDefaultSchema = 4;
|
44
|
+
/**
|
45
|
+
* @public
|
46
|
+
*/
|
47
|
+
export type TimestampDateTimeSchema = 5;
|
48
|
+
/**
|
49
|
+
* @public
|
50
|
+
*/
|
51
|
+
export type TimestampHttpDateSchema = 6;
|
52
|
+
/**
|
53
|
+
* @public
|
54
|
+
*/
|
55
|
+
export type TimestampEpochSecondsSchema = 7;
|
56
|
+
/**
|
57
|
+
* Additional bit indicating the type is a list.
|
58
|
+
* @public
|
59
|
+
*/
|
60
|
+
export type ListSchemaModifier = 64;
|
61
|
+
/**
|
62
|
+
* Additional bit indicating the type is a map.
|
63
|
+
* @public
|
64
|
+
*/
|
65
|
+
export type MapSchemaModifier = 128;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* A bitvector representing a traits object.
|
3
|
+
*
|
4
|
+
* Vector index to trait:
|
5
|
+
* 0 - httpLabel
|
6
|
+
* 1 - idempotent
|
7
|
+
* 2 - idempotencyToken
|
8
|
+
* 3 - sensitive
|
9
|
+
* 4 - httpPayload
|
10
|
+
* 5 - httpResponseCode
|
11
|
+
* 6 - httpQueryParams
|
12
|
+
*
|
13
|
+
* The singular trait values are enumerated for quick identification, but
|
14
|
+
* combination values are left to the `number` union type.
|
15
|
+
*
|
16
|
+
* @public
|
17
|
+
*/
|
18
|
+
export type TraitBitVector = HttpLabelBitMask | IdempotentBitMask | IdempotencyTokenBitMask | SensitiveBitMask | HttpPayloadBitMask | HttpResponseCodeBitMask | HttpQueryParamsBitMask | number;
|
19
|
+
/**
|
20
|
+
* @public
|
21
|
+
*/
|
22
|
+
export type HttpLabelBitMask = 1;
|
23
|
+
/**
|
24
|
+
* @public
|
25
|
+
*/
|
26
|
+
export type IdempotentBitMask = 2;
|
27
|
+
/**
|
28
|
+
* @public
|
29
|
+
*/
|
30
|
+
export type IdempotencyTokenBitMask = 4;
|
31
|
+
/**
|
32
|
+
* @public
|
33
|
+
*/
|
34
|
+
export type SensitiveBitMask = 8;
|
35
|
+
/**
|
36
|
+
* @public
|
37
|
+
*/
|
38
|
+
export type HttpPayloadBitMask = 16;
|
39
|
+
/**
|
40
|
+
* @public
|
41
|
+
*/
|
42
|
+
export type HttpResponseCodeBitMask = 32;
|
43
|
+
/**
|
44
|
+
* @public
|
45
|
+
*/
|
46
|
+
export type HttpQueryParamsBitMask = 64;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Endpoint } from "./http";
|
2
|
+
import { ClientProtocol } from "./schema/schema";
|
2
3
|
import { RequestHandler } from "./transfer";
|
3
4
|
import { Decoder, Encoder, Provider } from "./util";
|
4
5
|
/**
|
@@ -28,6 +29,7 @@ export interface StreamCollector {
|
|
28
29
|
export interface SerdeContext extends SerdeFunctions, EndpointBearer {
|
29
30
|
requestHandler: RequestHandler<any, any>;
|
30
31
|
disableHostPrefix: boolean;
|
32
|
+
protocol?: ClientProtocol<any, any>;
|
31
33
|
}
|
32
34
|
/**
|
33
35
|
* @public
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { Handler, MiddlewareStack } from "./middleware";
|
2
2
|
import { MetadataBearer } from "./response";
|
3
|
+
import { OperationSchema } from "./schema/schema";
|
3
4
|
/**
|
4
5
|
* @public
|
5
6
|
*/
|
6
7
|
export interface Command<ClientInput extends object, InputType extends ClientInput, ClientOutput extends MetadataBearer, OutputType extends ClientOutput, ResolvedConfiguration> extends CommandIO<InputType, OutputType> {
|
7
8
|
readonly input: InputType;
|
8
9
|
readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
|
10
|
+
readonly schema?: OperationSchema;
|
9
11
|
resolveMiddleware(stack: MiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedConfiguration, options: any): Handler<InputType, OutputType>;
|
10
12
|
}
|
11
13
|
/**
|
@@ -21,6 +21,8 @@ export * from "./pagination";
|
|
21
21
|
export * from "./profile";
|
22
22
|
export * from "./response";
|
23
23
|
export * from "./retry";
|
24
|
+
export * from "./schema/schema";
|
25
|
+
export * from "./schema/sentinels";
|
24
26
|
export * from "./serde";
|
25
27
|
export * from "./shapes";
|
26
28
|
export * from "./signature";
|
@@ -30,6 +32,7 @@ export * from "./streaming-payload/streaming-blob-payload-input-types";
|
|
30
32
|
export * from "./streaming-payload/streaming-blob-payload-output-types";
|
31
33
|
export * from "./transfer";
|
32
34
|
export * from "./transform/client-payload-blob-type-narrow";
|
35
|
+
export * from "./transform/mutable";
|
33
36
|
export * from "./transform/no-undefined";
|
34
37
|
export * from "./transform/type-transform";
|
35
38
|
export * from "./uri";
|