@cdklabs/cdk-ecs-codedeploy 0.0.360 → 0.0.362
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/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +865 -701
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/models_0.js +220 -220
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-codedeploy/package.json +44 -44
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +57 -42
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +8 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +15 -5
- package/node_modules/@aws-sdk/client-sso/package.json +40 -40
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +295 -92
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +58 -28
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +42 -42
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +115 -104
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +16 -16
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-sts/package.json +42 -42
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +18 -22
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +3 -4
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-http/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +12 -17
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +11 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +15 -15
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -5
- package/node_modules/@aws-sdk/credential-provider-process/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +5 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +9 -9
- package/node_modules/@aws-sdk/middleware-host-header/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +13 -17
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -9
- package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +5 -7
- package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -0
- package/node_modules/@aws-sdk/token-providers/package.json +9 -9
- package/node_modules/@aws-sdk/types/package.json +4 -4
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -8
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +8 -6
- package/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +8 -12
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/package.json +6 -6
- package/node_modules/@smithy/core/dist-cjs/index.js +19 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +10 -10
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +10 -11
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +37 -10
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +27 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +6 -4
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +6 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +9 -6
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +4 -3
- package/node_modules/@smithy/hash-node/package.json +6 -6
- package/node_modules/@smithy/invalid-dependency/package.json +5 -2
- package/node_modules/@smithy/is-array-buffer/package.json +5 -4
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +7 -9
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +4 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +4 -1
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +18 -17
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +1 -2
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +4 -12
- package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +3 -0
- package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts +3 -0
- package/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +9 -0
- package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +9 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/package.json +6 -6
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +36 -36
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/package.json +7 -7
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +16 -14
- package/node_modules/@smithy/property-provider/package.json +3 -3
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +16 -12
- package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -2
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +3 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +13 -0
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -2
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +3 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +13 -0
- package/node_modules/@smithy/protocol-http/package.json +3 -3
- package/node_modules/@smithy/querystring-builder/package.json +4 -4
- package/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +4 -14
- package/node_modules/@smithy/service-error-classification/package.json +3 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +2 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +7 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +3 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +2 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +7 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +3 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +6 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +6 -3
- package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -4
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +16 -14
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +9 -0
- package/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +13 -9
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +9 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts +13 -9
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/package.json +9 -9
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +27 -24
- package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +0 -3
- package/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +0 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/exceptions.d.ts +0 -1
- package/node_modules/@smithy/smithy-client/package.json +9 -9
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/client.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/connection/config.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/connection/pool.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/encode.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +9 -0
- package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +30 -0
- package/node_modules/@smithy/types/dist-types/eventStream.d.ts +31 -2
- package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +3 -2
- package/node_modules/@smithy/types/dist-types/http.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/transfer.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +9 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +30 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +31 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +3 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +8 -0
- package/node_modules/@smithy/types/package.json +2 -2
- package/node_modules/@smithy/url-parser/package.json +6 -3
- package/node_modules/@smithy/util-base64/package.json +8 -7
- package/node_modules/@smithy/util-body-length-browser/package.json +7 -3
- package/node_modules/@smithy/util-body-length-node/package.json +6 -5
- package/node_modules/@smithy/util-buffer-from/package.json +7 -6
- package/node_modules/@smithy/util-config-provider/package.json +6 -5
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -6
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -9
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +13 -15
- package/node_modules/@smithy/util-endpoints/package.json +5 -5
- package/node_modules/@smithy/util-hex-encoding/package.json +5 -4
- package/node_modules/@smithy/util-middleware/package.json +4 -4
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +27 -21
- package/node_modules/@smithy/util-retry/package.json +5 -5
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +4 -3
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +1 -0
- package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +2 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +2 -1
- package/node_modules/@smithy/util-stream/package.json +10 -10
- package/node_modules/@smithy/util-uri-escape/package.json +5 -4
- package/node_modules/@smithy/util-utf8/package.json +6 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +4 -6
- package/node_modules/@smithy/util-waiter/package.json +4 -4
- package/package.json +3 -3
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AwsCredentialIdentity, ChecksumConstructor, EventSigner, EventSigningArguments, FormattedEvent, HashConstructor, HttpRequest, MessageSigner, Provider, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export interface SignatureV4Init {
|
|
3
6
|
/**
|
|
4
7
|
* The service signing name.
|
|
@@ -37,9 +40,15 @@ export interface SignatureV4Init {
|
|
|
37
40
|
*/
|
|
38
41
|
applyChecksum?: boolean;
|
|
39
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
40
46
|
export interface SignatureV4CryptoInit {
|
|
41
47
|
sha256: ChecksumConstructor | HashConstructor;
|
|
42
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
43
52
|
export declare class SignatureV4 implements RequestPresigner, RequestSigner, StringSigner, EventSigner, MessageSigner {
|
|
44
53
|
private readonly service;
|
|
45
54
|
private readonly regionProvider;
|
|
@@ -2,21 +2,25 @@ import { AwsCredentialIdentity, ChecksumConstructor, HashConstructor } from "@sm
|
|
|
2
2
|
/**
|
|
3
3
|
* Create a string describing the scope of credentials used to sign a request.
|
|
4
4
|
*
|
|
5
|
-
* @
|
|
6
|
-
*
|
|
7
|
-
* @param
|
|
5
|
+
* @internal
|
|
6
|
+
*
|
|
7
|
+
* @param shortDate - the current calendar date in the form YYYYMMDD.
|
|
8
|
+
* @param region - the AWS region in which the service resides.
|
|
9
|
+
* @param service - the service to which the signed request is being sent.
|
|
8
10
|
*/
|
|
9
11
|
export declare const createScope: (shortDate: string, region: string, service: string) => string;
|
|
10
12
|
/**
|
|
11
|
-
* Derive a signing key from its composite parts
|
|
13
|
+
* Derive a signing key from its composite parts.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
12
16
|
*
|
|
13
|
-
* @param sha256Constructor
|
|
17
|
+
* @param sha256Constructor - a constructor function that can instantiate SHA-256
|
|
14
18
|
* hash objects.
|
|
15
|
-
* @param credentials
|
|
19
|
+
* @param credentials - the credentials with which the request will be
|
|
16
20
|
* signed.
|
|
17
|
-
* @param shortDate
|
|
18
|
-
* @param region
|
|
19
|
-
* @param service
|
|
21
|
+
* @param shortDate - the current calendar date in the form YYYYMMDD.
|
|
22
|
+
* @param region - the AWS region in which the service resides.
|
|
23
|
+
* @param service - the service to which the signed request is being
|
|
20
24
|
* sent.
|
|
21
25
|
*/
|
|
22
26
|
export declare const getSigningKey: (sha256Constructor: ChecksumConstructor | HashConstructor, credentials: AwsCredentialIdentity, shortDate: string, region: string, service: string) => Promise<Uint8Array>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/signature-v4",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/is-array-buffer": "^
|
|
29
|
-
"@smithy/protocol-http": "^
|
|
30
|
-
"@smithy/types": "^
|
|
31
|
-
"@smithy/util-hex-encoding": "^
|
|
32
|
-
"@smithy/util-middleware": "^
|
|
33
|
-
"@smithy/util-uri-escape": "^
|
|
34
|
-
"@smithy/util-utf8": "^
|
|
28
|
+
"@smithy/is-array-buffer": "^4.0.0",
|
|
29
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
30
|
+
"@smithy/types": "^4.0.0",
|
|
31
|
+
"@smithy/util-hex-encoding": "^4.0.0",
|
|
32
|
+
"@smithy/util-middleware": "^4.0.0",
|
|
33
|
+
"@smithy/util-uri-escape": "^4.0.0",
|
|
34
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typedoc": "0.23.23"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
46
|
},
|
|
47
47
|
"typesVersions": {
|
|
48
48
|
"<4.0": {
|
|
@@ -86,11 +86,14 @@ module.exports = __toCommonJS(src_exports);
|
|
|
86
86
|
|
|
87
87
|
// src/client.ts
|
|
88
88
|
var import_middleware_stack = require("@smithy/middleware-stack");
|
|
89
|
-
var
|
|
89
|
+
var Client = class {
|
|
90
90
|
constructor(config) {
|
|
91
91
|
this.config = config;
|
|
92
92
|
this.middlewareStack = (0, import_middleware_stack.constructStack)();
|
|
93
93
|
}
|
|
94
|
+
static {
|
|
95
|
+
__name(this, "Client");
|
|
96
|
+
}
|
|
94
97
|
send(command, optionsOrCb, cb) {
|
|
95
98
|
const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
|
|
96
99
|
const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
|
|
@@ -126,13 +129,10 @@ var _Client = class _Client {
|
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
131
|
destroy() {
|
|
129
|
-
|
|
130
|
-
(_c = (_b = (_a = this.config) == null ? void 0 : _a.requestHandler) == null ? void 0 : _b.destroy) == null ? void 0 : _c.call(_b);
|
|
132
|
+
this.config?.requestHandler?.destroy?.();
|
|
131
133
|
delete this.handlers;
|
|
132
134
|
}
|
|
133
135
|
};
|
|
134
|
-
__name(_Client, "Client");
|
|
135
|
-
var Client = _Client;
|
|
136
136
|
|
|
137
137
|
// src/collect-stream-body.ts
|
|
138
138
|
var import_protocols = require("@smithy/core/protocols");
|
|
@@ -140,10 +140,13 @@ var import_protocols = require("@smithy/core/protocols");
|
|
|
140
140
|
// src/command.ts
|
|
141
141
|
|
|
142
142
|
var import_types = require("@smithy/types");
|
|
143
|
-
var
|
|
143
|
+
var Command = class {
|
|
144
144
|
constructor() {
|
|
145
145
|
this.middlewareStack = (0, import_middleware_stack.constructStack)();
|
|
146
146
|
}
|
|
147
|
+
static {
|
|
148
|
+
__name(this, "Command");
|
|
149
|
+
}
|
|
147
150
|
/**
|
|
148
151
|
* Factory for Command ClassBuilder.
|
|
149
152
|
* @internal
|
|
@@ -188,9 +191,7 @@ var _Command = class _Command {
|
|
|
188
191
|
);
|
|
189
192
|
}
|
|
190
193
|
};
|
|
191
|
-
|
|
192
|
-
var Command = _Command;
|
|
193
|
-
var _ClassBuilder = class _ClassBuilder {
|
|
194
|
+
var ClassBuilder = class {
|
|
194
195
|
constructor() {
|
|
195
196
|
this._init = () => {
|
|
196
197
|
};
|
|
@@ -205,6 +206,9 @@ var _ClassBuilder = class _ClassBuilder {
|
|
|
205
206
|
this._serializer = null;
|
|
206
207
|
this._deserializer = null;
|
|
207
208
|
}
|
|
209
|
+
static {
|
|
210
|
+
__name(this, "ClassBuilder");
|
|
211
|
+
}
|
|
208
212
|
/**
|
|
209
213
|
* Optional init callback.
|
|
210
214
|
*/
|
|
@@ -277,10 +281,9 @@ var _ClassBuilder = class _ClassBuilder {
|
|
|
277
281
|
* @returns a Command class with the classBuilder properties.
|
|
278
282
|
*/
|
|
279
283
|
build() {
|
|
280
|
-
var _a;
|
|
281
284
|
const closure = this;
|
|
282
285
|
let CommandRef;
|
|
283
|
-
return CommandRef =
|
|
286
|
+
return CommandRef = class extends Command {
|
|
284
287
|
/**
|
|
285
288
|
* @public
|
|
286
289
|
*/
|
|
@@ -299,6 +302,9 @@ var _ClassBuilder = class _ClassBuilder {
|
|
|
299
302
|
this.input = input ?? {};
|
|
300
303
|
closure._init(this);
|
|
301
304
|
}
|
|
305
|
+
static {
|
|
306
|
+
__name(this, "CommandRef");
|
|
307
|
+
}
|
|
302
308
|
/**
|
|
303
309
|
* @public
|
|
304
310
|
*/
|
|
@@ -320,11 +326,9 @@ var _ClassBuilder = class _ClassBuilder {
|
|
|
320
326
|
additionalContext: closure._additionalContext
|
|
321
327
|
});
|
|
322
328
|
}
|
|
323
|
-
}
|
|
329
|
+
};
|
|
324
330
|
}
|
|
325
331
|
};
|
|
326
|
-
__name(_ClassBuilder, "ClassBuilder");
|
|
327
|
-
var ClassBuilder = _ClassBuilder;
|
|
328
332
|
|
|
329
333
|
// src/constants.ts
|
|
330
334
|
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
@@ -805,7 +809,10 @@ var stripLeadingZeroes = /* @__PURE__ */ __name((value) => {
|
|
|
805
809
|
}, "stripLeadingZeroes");
|
|
806
810
|
|
|
807
811
|
// src/exceptions.ts
|
|
808
|
-
var
|
|
812
|
+
var ServiceException = class _ServiceException extends Error {
|
|
813
|
+
static {
|
|
814
|
+
__name(this, "ServiceException");
|
|
815
|
+
}
|
|
809
816
|
constructor(options) {
|
|
810
817
|
super(options.message);
|
|
811
818
|
Object.setPrototypeOf(this, _ServiceException.prototype);
|
|
@@ -822,12 +829,7 @@ var _ServiceException = class _ServiceException extends Error {
|
|
|
822
829
|
const candidate = value;
|
|
823
830
|
return Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
|
|
824
831
|
}
|
|
825
|
-
static [Symbol.hasInstance](instance) {
|
|
826
|
-
return _ServiceException.isInstance(instance);
|
|
827
|
-
}
|
|
828
832
|
};
|
|
829
|
-
__name(_ServiceException, "ServiceException");
|
|
830
|
-
var ServiceException = _ServiceException;
|
|
831
833
|
var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => {
|
|
832
834
|
Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
|
|
833
835
|
if (exception[k] == void 0 || exception[k] === "") {
|
|
@@ -845,7 +847,7 @@ var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionC
|
|
|
845
847
|
const $metadata = deserializeMetadata(output);
|
|
846
848
|
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0;
|
|
847
849
|
const response = new exceptionCtor({
|
|
848
|
-
name:
|
|
850
|
+
name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
|
|
849
851
|
$fault: "client",
|
|
850
852
|
$metadata
|
|
851
853
|
});
|
|
@@ -1014,7 +1016,10 @@ LazyJsonString.from = (object) => {
|
|
|
1014
1016
|
LazyJsonString.fromObject = LazyJsonString.from;
|
|
1015
1017
|
|
|
1016
1018
|
// src/NoOpLogger.ts
|
|
1017
|
-
var
|
|
1019
|
+
var NoOpLogger = class {
|
|
1020
|
+
static {
|
|
1021
|
+
__name(this, "NoOpLogger");
|
|
1022
|
+
}
|
|
1018
1023
|
trace() {
|
|
1019
1024
|
}
|
|
1020
1025
|
debug() {
|
|
@@ -1026,8 +1031,6 @@ var _NoOpLogger = class _NoOpLogger {
|
|
|
1026
1031
|
error() {
|
|
1027
1032
|
}
|
|
1028
1033
|
};
|
|
1029
|
-
__name(_NoOpLogger, "NoOpLogger");
|
|
1030
|
-
var NoOpLogger = _NoOpLogger;
|
|
1031
1034
|
|
|
1032
1035
|
// src/object-mapping.ts
|
|
1033
1036
|
function map(arg0, arg1, arg2) {
|
|
@@ -14,9 +14,6 @@ export class ServiceException extends Error {
|
|
|
14
14
|
Boolean(candidate.$metadata) &&
|
|
15
15
|
(candidate.$fault === "client" || candidate.$fault === "server"));
|
|
16
16
|
}
|
|
17
|
-
static [Symbol.hasInstance](instance) {
|
|
18
|
-
return ServiceException.isInstance(instance);
|
|
19
|
-
}
|
|
20
17
|
}
|
|
21
18
|
export const decorateServiceException = (exception, additions = {}) => {
|
|
22
19
|
Object.entries(additions)
|
|
@@ -27,7 +27,6 @@ export declare class ServiceException extends Error implements SmithyException,
|
|
|
27
27
|
* Checks if a value is an instance of ServiceException (duck typed)
|
|
28
28
|
*/
|
|
29
29
|
static isInstance(value: unknown): value is ServiceException;
|
|
30
|
-
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
32
|
* This method inject unmodeled member to a deserialized SDK exception,
|
|
@@ -27,7 +27,6 @@ export declare class ServiceException extends Error implements SmithyException,
|
|
|
27
27
|
* Checks if a value is an instance of ServiceException (duck typed)
|
|
28
28
|
*/
|
|
29
29
|
static isInstance(value: unknown): value is ServiceException;
|
|
30
|
-
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
32
|
* This method inject unmodeled member to a deserialized SDK exception,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.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",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/core": "^
|
|
28
|
-
"@smithy/middleware-endpoint": "^
|
|
29
|
-
"@smithy/middleware-stack": "^
|
|
30
|
-
"@smithy/protocol-http": "^
|
|
31
|
-
"@smithy/types": "^
|
|
32
|
-
"@smithy/util-stream": "^
|
|
27
|
+
"@smithy/core": "^3.0.0",
|
|
28
|
+
"@smithy/middleware-endpoint": "^4.0.0",
|
|
29
|
+
"@smithy/middleware-stack": "^4.0.0",
|
|
30
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
31
|
+
"@smithy/types": "^4.0.0",
|
|
32
|
+
"@smithy/util-stream": "^4.0.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"typesVersions": {
|
|
39
39
|
"<4.0": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"directory": "packages/smithy-client"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^
|
|
55
|
+
"@types/node": "^18.11.9",
|
|
56
56
|
"concurrently": "7.0.0",
|
|
57
57
|
"downlevel-dts": "0.10.1",
|
|
58
58
|
"rimraf": "3.0.2",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
3
4
|
import { Readable } from "stream";
|
|
4
5
|
import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check";
|
|
5
6
|
/**
|
|
@@ -36,6 +37,7 @@ export type NodeJsRuntimeBlobTypes = Readable | Buffer;
|
|
|
36
37
|
*/
|
|
37
38
|
export type BrowserRuntimeBlobTypes = BlobOptionalType | ReadableStreamOptionalType;
|
|
38
39
|
/**
|
|
40
|
+
* @internal
|
|
39
41
|
* @deprecated renamed to BlobPayloadInputTypes.
|
|
40
42
|
*/
|
|
41
43
|
export type BlobTypes = BlobPayloadInputTypes;
|
|
@@ -47,6 +47,7 @@ export interface InvokeMethodOptionalArgs<InputType extends object, OutputType e
|
|
|
47
47
|
* A general interface for service clients, idempotent to browser or node clients
|
|
48
48
|
* This type corresponds to SmithyClient(https://github.com/aws/aws-sdk-js-v3/blob/main/packages/smithy-client/src/client.ts).
|
|
49
49
|
* It's provided for using without importing the SmithyClient class.
|
|
50
|
+
* @internal
|
|
50
51
|
*/
|
|
51
52
|
export interface Client<Input extends object, Output extends MetadataBearer, ResolvedClientConfiguration> {
|
|
52
53
|
readonly config: ResolvedClientConfiguration;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { RequestContext } from "../transfer";
|
|
2
2
|
import { ConnectConfiguration } from "./config";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
3
6
|
export interface ConnectionManagerConfiguration {
|
|
4
7
|
/**
|
|
5
8
|
* Maximum number of allowed concurrent requests per connection.
|
|
@@ -10,6 +13,9 @@ export interface ConnectionManagerConfiguration {
|
|
|
10
13
|
*/
|
|
11
14
|
disableConcurrency?: boolean;
|
|
12
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
13
19
|
export interface ConnectionManager<T> {
|
|
14
20
|
/**
|
|
15
21
|
* Retrieves a connection from the connection pool if available,
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*/
|
|
1
4
|
export interface ConnectionPool<T> {
|
|
2
5
|
/**
|
|
3
6
|
* Retrieve the first connection in the pool
|
|
@@ -19,6 +22,11 @@ export interface ConnectionPool<T> {
|
|
|
19
22
|
*/
|
|
20
23
|
[Symbol.iterator](): Iterator<T>;
|
|
21
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Unused.
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated
|
|
29
|
+
*/
|
|
22
30
|
export interface CacheKey {
|
|
23
31
|
destination: string;
|
|
24
32
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Message } from "./eventStream";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export interface MessageEncoder {
|
|
3
6
|
encode(message: Message): Uint8Array;
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
5
11
|
export interface MessageDecoder {
|
|
6
12
|
decode(message: ArrayBufferView): Message;
|
|
7
13
|
feed(message: ArrayBufferView): void;
|
|
@@ -9,10 +15,16 @@ export interface MessageDecoder {
|
|
|
9
15
|
getMessage(): AvailableMessage;
|
|
10
16
|
getAvailableMessages(): AvailableMessages;
|
|
11
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
12
21
|
export interface AvailableMessage {
|
|
13
22
|
getMessage(): Message | undefined;
|
|
14
23
|
isEndOfStream(): boolean;
|
|
15
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
16
28
|
export interface AvailableMessages {
|
|
17
29
|
getMessages(): Message[];
|
|
18
30
|
isEndOfStream(): boolean;
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { EndpointObjectProperty } from "../endpoint";
|
|
2
2
|
import { ConditionObject, Expression } from "./shared";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
3
6
|
export type EndpointObjectProperties = Record<string, EndpointObjectProperty>;
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
4
10
|
export type EndpointObjectHeaders = Record<string, Expression[]>;
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
5
14
|
export type EndpointObject = {
|
|
6
15
|
url: Expression;
|
|
7
16
|
properties?: EndpointObjectProperties;
|
|
8
17
|
headers?: EndpointObjectHeaders;
|
|
9
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
10
22
|
export type EndpointRuleObject = {
|
|
11
23
|
type: "endpoint";
|
|
12
24
|
conditions?: ConditionObject[];
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { RuleSetRules } from "./TreeRuleObject";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export type DeprecatedObject = {
|
|
3
6
|
message?: string;
|
|
4
7
|
since?: string;
|
|
5
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
6
12
|
export type ParameterObject = {
|
|
7
13
|
type: "String" | "string" | "Boolean" | "boolean";
|
|
8
14
|
default?: string | boolean;
|
|
@@ -11,6 +17,9 @@ export type ParameterObject = {
|
|
|
11
17
|
builtIn?: string;
|
|
12
18
|
deprecated?: DeprecatedObject;
|
|
13
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
14
23
|
export type RuleSetObject = {
|
|
15
24
|
version: string;
|
|
16
25
|
serviceId?: string;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { EndpointRuleObject } from "./EndpointRuleObject";
|
|
2
2
|
import { ErrorRuleObject } from "./ErrorRuleObject";
|
|
3
3
|
import { ConditionObject } from "./shared";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
4
7
|
export type RuleSetRules = Array<EndpointRuleObject | ErrorRuleObject | TreeRuleObject>;
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
5
11
|
export type TreeRuleObject = {
|
|
6
12
|
type: "tree";
|
|
7
13
|
conditions?: ConditionObject[];
|
|
@@ -1,25 +1,55 @@
|
|
|
1
1
|
import { Logger } from "../logger";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export type ReferenceObject = {
|
|
3
6
|
ref: string;
|
|
4
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
5
11
|
export type FunctionObject = {
|
|
6
12
|
fn: string;
|
|
7
13
|
argv: FunctionArgv;
|
|
8
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
9
18
|
export type FunctionArgv = Array<Expression | boolean | number>;
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
10
22
|
export type FunctionReturn = string | boolean | number | {
|
|
11
23
|
[key: string]: FunctionReturn;
|
|
12
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
13
28
|
export type ConditionObject = FunctionObject & {
|
|
14
29
|
assign?: string;
|
|
15
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
16
34
|
export type Expression = string | ReferenceObject | FunctionObject;
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
17
38
|
export type EndpointParams = Record<string, string | boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
18
42
|
export type EndpointResolverOptions = {
|
|
19
43
|
endpointParams: EndpointParams;
|
|
20
44
|
logger?: Logger;
|
|
21
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
22
49
|
export type ReferenceRecord = Record<string, FunctionReturn>;
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
23
53
|
export type EvaluateOptions = EndpointResolverOptions & {
|
|
24
54
|
referenceRecord: ReferenceRecord;
|
|
25
55
|
};
|