agent-relay 4.0.27 → 4.0.29
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/bin/agent-relay-broker-darwin-arm64 +0 -0
- package/bin/agent-relay-broker-darwin-x64 +0 -0
- package/bin/agent-relay-broker-linux-arm64 +0 -0
- package/bin/agent-relay-broker-linux-x64 +0 -0
- package/dist/index.cjs +148 -27
- package/dist/src/cli/lib/ssh-interactive.d.ts.map +1 -1
- package/dist/src/cli/lib/ssh-interactive.js +1 -0
- package/dist/src/cli/lib/ssh-interactive.js.map +1 -1
- package/node_modules/@agent-relay/cloud/package.json +2 -2
- package/node_modules/@agent-relay/config/package.json +1 -1
- package/node_modules/@agent-relay/hooks/package.json +4 -4
- package/node_modules/@agent-relay/sdk/dist/relay.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/relay.js +6 -1
- package/node_modules/@agent-relay/sdk/dist/relay.js.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/__tests__/process-backend-executor.test.d.ts +2 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/__tests__/process-backend-executor.test.d.ts.map +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/__tests__/process-backend-executor.test.js +83 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/__tests__/process-backend-executor.test.js.map +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/index.d.ts +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/index.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/index.js +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/index.js.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/process-backend-executor.d.ts +19 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/process-backend-executor.d.ts.map +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/process-backend-executor.js +74 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/process-backend-executor.js.map +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.d.ts +14 -2
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js +12 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/types.d.ts +25 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/types.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +2 -2
- package/node_modules/@agent-relay/telemetry/package.json +1 -1
- package/node_modules/@agent-relay/trajectory/package.json +2 -2
- package/node_modules/@agent-relay/user-directory/package.json +2 -2
- package/node_modules/@agent-relay/utils/package.json +2 -2
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +52 -50
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +52 -50
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +11 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js +4 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +9 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +17 -17
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@relaycast/sdk/dist/agent.d.ts +1 -0
- package/node_modules/@relaycast/sdk/dist/agent.d.ts.map +1 -1
- package/node_modules/@relaycast/sdk/dist/agent.js +13 -4
- package/node_modules/@relaycast/sdk/dist/agent.js.map +1 -1
- package/node_modules/@relaycast/sdk/dist/relay.d.ts +21 -8
- package/node_modules/@relaycast/sdk/dist/relay.d.ts.map +1 -1
- package/node_modules/@relaycast/sdk/dist/relay.js +59 -18
- package/node_modules/@relaycast/sdk/dist/relay.js.map +1 -1
- package/node_modules/@relaycast/sdk/dist/types.d.ts +142 -0
- package/node_modules/@relaycast/sdk/dist/types.d.ts.map +1 -1
- package/node_modules/@relaycast/sdk/dist/version.d.ts +1 -1
- package/node_modules/@relaycast/sdk/dist/version.js +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.d.ts +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.js +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.js.map +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/package.json +2 -2
- package/node_modules/@relaycast/sdk/package.json +3 -3
- package/node_modules/@relayfile/sdk/dist/client.js +1 -1
- package/node_modules/@relayfile/sdk/package.json +1 -1
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/hash-stream-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/md5-js/package.json +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 +9 -9
- package/node_modules/@smithy/middleware-serde/package.json +4 -4
- 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-cjs/index.js +6 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +5 -5
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +14 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- 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/dist-cjs/index.js +11 -5
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +11 -5
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -3
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +8 -1
- package/node_modules/@smithy/smithy-client/dist-es/command.js +8 -1
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/connection/config.d.ts +5 -0
- package/node_modules/@smithy/types/dist-types/signature.d.ts +20 -3
- 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/dist-cjs/index.js +15 -19
- package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +4 -3
- package/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js +2 -1
- package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +8 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +2 -2
- 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/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/fast-xml-builder/package.json +1 -1
- package/node_modules/fast-xml-builder/src/fxb.js +6 -2
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +16 -2
- package/package.json +9 -9
- package/packages/cloud/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/hooks/package.json +4 -4
- package/packages/sdk/dist/relay.d.ts.map +1 -1
- package/packages/sdk/dist/relay.js +6 -1
- package/packages/sdk/dist/relay.js.map +1 -1
- package/packages/sdk/dist/workflows/__tests__/process-backend-executor.test.d.ts +2 -0
- package/packages/sdk/dist/workflows/__tests__/process-backend-executor.test.d.ts.map +1 -0
- package/packages/sdk/dist/workflows/__tests__/process-backend-executor.test.js +83 -0
- package/packages/sdk/dist/workflows/__tests__/process-backend-executor.test.js.map +1 -0
- package/packages/sdk/dist/workflows/index.d.ts +1 -0
- package/packages/sdk/dist/workflows/index.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/index.js +1 -0
- package/packages/sdk/dist/workflows/index.js.map +1 -1
- package/packages/sdk/dist/workflows/process-backend-executor.d.ts +19 -0
- package/packages/sdk/dist/workflows/process-backend-executor.d.ts.map +1 -0
- package/packages/sdk/dist/workflows/process-backend-executor.js +74 -0
- package/packages/sdk/dist/workflows/process-backend-executor.js.map +1 -0
- package/packages/sdk/dist/workflows/runner.d.ts +14 -2
- package/packages/sdk/dist/workflows/runner.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/runner.js +12 -0
- package/packages/sdk/dist/workflows/runner.js.map +1 -1
- package/packages/sdk/dist/workflows/types.d.ts +25 -0
- package/packages/sdk/dist/workflows/types.d.ts.map +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/telemetry/package.json +1 -1
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-universal",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline eventstream-serde-universal",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/eventstream-codec": "^4.2.
|
|
29
|
-
"@smithy/types": "^4.14.
|
|
28
|
+
"@smithy/eventstream-codec": "^4.2.14",
|
|
29
|
+
"@smithy/types": "^4.14.1",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.17",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"types": "./dist-types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/protocol-http": "^5.3.
|
|
31
|
-
"@smithy/querystring-builder": "^4.2.
|
|
32
|
-
"@smithy/types": "^4.14.
|
|
30
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
31
|
+
"@smithy/querystring-builder": "^4.2.14",
|
|
32
|
+
"@smithy/types": "^4.14.1",
|
|
33
33
|
"@smithy/util-base64": "^4.3.2",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@smithy/abort-controller": "^4.2.
|
|
37
|
+
"@smithy/abort-controller": "^4.2.14",
|
|
38
38
|
"concurrently": "7.0.0",
|
|
39
39
|
"downlevel-dts": "0.10.1",
|
|
40
40
|
"premove": "4.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-blob-browser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.15",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline hash-blob-browser",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@smithy/chunked-blob-reader": "^5.2.2",
|
|
27
27
|
"@smithy/chunked-blob-reader-native": "^4.2.3",
|
|
28
|
-
"@smithy/types": "^4.14.
|
|
28
|
+
"@smithy/types": "^4.14.1",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline hash-node",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"typedoc": "0.23.23"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/types": "^4.14.
|
|
34
|
+
"@smithy/types": "^4.14.1",
|
|
35
35
|
"@smithy/util-buffer-from": "^4.2.2",
|
|
36
36
|
"@smithy/util-utf8": "^4.2.2",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-stream-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline hash-stream-node",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/types": "^4.14.1",
|
|
27
27
|
"@smithy/util-utf8": "^4.2.2",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/invalid-dependency",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline invalid-dependency",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/types": "^4.14.1",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/md5-js",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline md5-js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typedoc": "0.23.23"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@smithy/types": "^4.14.
|
|
36
|
+
"@smithy/types": "^4.14.1",
|
|
37
37
|
"@smithy/util-utf8": "^4.2.2",
|
|
38
38
|
"tslib": "^2.6.2"
|
|
39
39
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-content-length",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-content-length",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/protocol-http": "^5.3.
|
|
28
|
-
"@smithy/types": "^4.14.
|
|
27
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
28
|
+
"@smithy/types": "^4.14.1",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.30",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-endpoint",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/core": "^3.23.
|
|
28
|
-
"@smithy/middleware-serde": "^4.2.
|
|
29
|
-
"@smithy/node-config-provider": "^4.3.
|
|
30
|
-
"@smithy/shared-ini-file-loader": "^4.4.
|
|
31
|
-
"@smithy/types": "^4.14.
|
|
32
|
-
"@smithy/url-parser": "^4.2.
|
|
33
|
-
"@smithy/util-middleware": "^4.2.
|
|
27
|
+
"@smithy/core": "^3.23.15",
|
|
28
|
+
"@smithy/middleware-serde": "^4.2.18",
|
|
29
|
+
"@smithy/node-config-provider": "^4.3.14",
|
|
30
|
+
"@smithy/shared-ini-file-loader": "^4.4.9",
|
|
31
|
+
"@smithy/types": "^4.14.1",
|
|
32
|
+
"@smithy/url-parser": "^4.2.14",
|
|
33
|
+
"@smithy/util-middleware": "^4.2.14",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-retry",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"sideEffects": false,
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@smithy/core": "^3.23.
|
|
37
|
-
"@smithy/node-config-provider": "^4.3.
|
|
38
|
-
"@smithy/protocol-http": "^5.3.
|
|
39
|
-
"@smithy/service-error-classification": "^4.2.
|
|
40
|
-
"@smithy/smithy-client": "^4.12.
|
|
41
|
-
"@smithy/types": "^4.14.
|
|
42
|
-
"@smithy/util-middleware": "^4.2.
|
|
43
|
-
"@smithy/util-retry": "^4.3.
|
|
36
|
+
"@smithy/core": "^3.23.15",
|
|
37
|
+
"@smithy/node-config-provider": "^4.3.14",
|
|
38
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
39
|
+
"@smithy/service-error-classification": "^4.2.14",
|
|
40
|
+
"@smithy/smithy-client": "^4.12.11",
|
|
41
|
+
"@smithy/types": "^4.14.1",
|
|
42
|
+
"@smithy/util-middleware": "^4.2.14",
|
|
43
|
+
"@smithy/util-retry": "^4.3.2",
|
|
44
44
|
"@smithy/uuid": "^1.1.2",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-serde",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.18",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-serde",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.23.
|
|
29
|
-
"@smithy/protocol-http": "^5.3.
|
|
30
|
-
"@smithy/types": "^4.14.
|
|
28
|
+
"@smithy/core": "^3.23.15",
|
|
29
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
30
|
+
"@smithy/types": "^4.14.1",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-stack",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"description": "Provides a means for composing multiple middleware functions into a single handler",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"module": "./dist-es/index.js",
|
|
27
27
|
"types": "./dist-types/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/types": "^4.14.
|
|
29
|
+
"@smithy/types": "^4.14.1",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-config-provider",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.14",
|
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"module": "./dist-es/index.js",
|
|
26
26
|
"types": "./dist-types/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/property-provider": "^4.2.
|
|
29
|
-
"@smithy/shared-ini-file-loader": "^4.4.
|
|
30
|
-
"@smithy/types": "^4.14.
|
|
28
|
+
"@smithy/property-provider": "^4.2.14",
|
|
29
|
+
"@smithy/shared-ini-file-loader": "^4.4.9",
|
|
30
|
+
"@smithy/types": "^4.14.1",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -472,7 +472,7 @@ class NodeHttp2ConnectionManager {
|
|
|
472
472
|
const existingPool = this.sessionCache.get(url);
|
|
473
473
|
if (existingPool) {
|
|
474
474
|
const existingSession = existingPool.poll();
|
|
475
|
-
if (existingSession && !this.config.disableConcurrency) {
|
|
475
|
+
if (existingSession && !this.config.disableConcurrency && !connectionConfiguration.isEventStream) {
|
|
476
476
|
return existingSession;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
@@ -572,10 +572,10 @@ class NodeHttp2Handler {
|
|
|
572
572
|
destroy() {
|
|
573
573
|
this.connectionManager.destroy();
|
|
574
574
|
}
|
|
575
|
-
async handle(request, { abortSignal, requestTimeout } = {}) {
|
|
575
|
+
async handle(request, { abortSignal, requestTimeout, isEventStream } = {}) {
|
|
576
576
|
if (!this.config) {
|
|
577
577
|
this.config = await this.configProvider;
|
|
578
|
-
this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams
|
|
578
|
+
this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams ?? false);
|
|
579
579
|
if (this.config.maxConcurrentStreams) {
|
|
580
580
|
this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
|
|
581
581
|
}
|
|
@@ -610,7 +610,7 @@ class NodeHttp2Handler {
|
|
|
610
610
|
const requestContext = { destination: new URL(authority) };
|
|
611
611
|
const session = this.connectionManager.lease(requestContext, {
|
|
612
612
|
requestTimeout: this.config?.sessionTimeout,
|
|
613
|
-
|
|
613
|
+
isEventStream,
|
|
614
614
|
});
|
|
615
615
|
const rejectWithDestroy = (err) => {
|
|
616
616
|
if (disableConcurrentStreams) {
|
|
@@ -619,7 +619,7 @@ class NodeHttp2Handler {
|
|
|
619
619
|
fulfilled = true;
|
|
620
620
|
reject(err);
|
|
621
621
|
};
|
|
622
|
-
const queryString = querystringBuilder.buildQueryString(query
|
|
622
|
+
const queryString = querystringBuilder.buildQueryString(query ?? {});
|
|
623
623
|
let path = request.path;
|
|
624
624
|
if (queryString) {
|
|
625
625
|
path += `?${queryString}`;
|
|
@@ -635,7 +635,7 @@ class NodeHttp2Handler {
|
|
|
635
635
|
session.ref();
|
|
636
636
|
req.on("response", (headers) => {
|
|
637
637
|
const httpResponse = new protocolHttp.HttpResponse({
|
|
638
|
-
statusCode: headers[":status"]
|
|
638
|
+
statusCode: headers[":status"] ?? -1,
|
|
639
639
|
headers: getTransformedHeaders(headers),
|
|
640
640
|
body: req,
|
|
641
641
|
});
|
|
@@ -14,7 +14,7 @@ export class NodeHttp2ConnectionManager {
|
|
|
14
14
|
const existingPool = this.sessionCache.get(url);
|
|
15
15
|
if (existingPool) {
|
|
16
16
|
const existingSession = existingPool.poll();
|
|
17
|
-
if (existingSession && !this.config.disableConcurrency) {
|
|
17
|
+
if (existingSession && !this.config.disableConcurrency && !connectionConfiguration.isEventStream) {
|
|
18
18
|
return existingSession;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -33,10 +33,10 @@ export class NodeHttp2Handler {
|
|
|
33
33
|
destroy() {
|
|
34
34
|
this.connectionManager.destroy();
|
|
35
35
|
}
|
|
36
|
-
async handle(request, { abortSignal, requestTimeout } = {}) {
|
|
36
|
+
async handle(request, { abortSignal, requestTimeout, isEventStream } = {}) {
|
|
37
37
|
if (!this.config) {
|
|
38
38
|
this.config = await this.configProvider;
|
|
39
|
-
this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams
|
|
39
|
+
this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams ?? false);
|
|
40
40
|
if (this.config.maxConcurrentStreams) {
|
|
41
41
|
this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
|
|
42
42
|
}
|
|
@@ -71,7 +71,7 @@ export class NodeHttp2Handler {
|
|
|
71
71
|
const requestContext = { destination: new URL(authority) };
|
|
72
72
|
const session = this.connectionManager.lease(requestContext, {
|
|
73
73
|
requestTimeout: this.config?.sessionTimeout,
|
|
74
|
-
|
|
74
|
+
isEventStream,
|
|
75
75
|
});
|
|
76
76
|
const rejectWithDestroy = (err) => {
|
|
77
77
|
if (disableConcurrentStreams) {
|
|
@@ -80,7 +80,7 @@ export class NodeHttp2Handler {
|
|
|
80
80
|
fulfilled = true;
|
|
81
81
|
reject(err);
|
|
82
82
|
};
|
|
83
|
-
const queryString = buildQueryString(query
|
|
83
|
+
const queryString = buildQueryString(query ?? {});
|
|
84
84
|
let path = request.path;
|
|
85
85
|
if (queryString) {
|
|
86
86
|
path += `?${queryString}`;
|
|
@@ -96,7 +96,7 @@ export class NodeHttp2Handler {
|
|
|
96
96
|
session.ref();
|
|
97
97
|
req.on("response", (headers) => {
|
|
98
98
|
const httpResponse = new HttpResponse({
|
|
99
|
-
statusCode: headers[":status"]
|
|
99
|
+
statusCode: headers[":status"] ?? -1,
|
|
100
100
|
headers: getTransformedHeaders(headers),
|
|
101
101
|
body: req,
|
|
102
102
|
});
|
|
@@ -32,6 +32,18 @@ export interface NodeHttp2HandlerOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
maxConcurrentStreams?: number;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* This is derived from the smithyContext object. This signals to the NodeHttp2Handler specifically
|
|
37
|
+
* that the connection pool should not be used to acquire a connection. The event stream should
|
|
38
|
+
* have its own new connection.
|
|
39
|
+
*
|
|
40
|
+
* This does not apply to WebSocket event streams, since there is no pooling.
|
|
41
|
+
*
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
type EventStreamSignal = {
|
|
45
|
+
isEventStream?: boolean;
|
|
46
|
+
};
|
|
35
47
|
/**
|
|
36
48
|
* A request handler using the node:http2 package.
|
|
37
49
|
* @public
|
|
@@ -50,7 +62,7 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
|
|
|
50
62
|
static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any> | NodeHttp2Handler;
|
|
51
63
|
constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
|
|
52
64
|
destroy(): void;
|
|
53
|
-
handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
|
|
65
|
+
handle(request: HttpRequest, { abortSignal, requestTimeout, isEventStream }?: HttpHandlerOptions & EventStreamSignal): Promise<{
|
|
54
66
|
response: HttpResponse;
|
|
55
67
|
}>;
|
|
56
68
|
updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void;
|
|
@@ -61,3 +73,4 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
|
|
|
61
73
|
*/
|
|
62
74
|
private destroySession;
|
|
63
75
|
}
|
|
76
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"module": "./dist-es/index.js",
|
|
27
27
|
"types": "./dist-types/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/protocol-http": "^5.3.
|
|
30
|
-
"@smithy/querystring-builder": "^4.2.
|
|
31
|
-
"@smithy/types": "^4.14.
|
|
29
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
30
|
+
"@smithy/querystring-builder": "^4.2.14",
|
|
31
|
+
"@smithy/types": "^4.14.1",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@smithy/abort-controller": "^4.2.
|
|
35
|
+
"@smithy/abort-controller": "^4.2.14",
|
|
36
36
|
"@types/node": "^18.11.9",
|
|
37
37
|
"concurrently": "7.0.0",
|
|
38
38
|
"downlevel-dts": "0.10.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/property-provider",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline property-provider",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/types": "^4.14.1",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/protocol-http",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline protocol-http",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.14.
|
|
27
|
+
"@smithy/types": "^4.14.1",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-builder",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline querystring-builder",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/types": "^4.14.
|
|
25
|
+
"@smithy/types": "^4.14.1",
|
|
26
26
|
"@smithy/util-uri-escape": "^4.2.2",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-parser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline querystring-parser",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/types": "^4.14.1",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/service-error-classification",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline service-error-classification",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"directory": ".release/package"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@smithy/types": "^4.14.
|
|
57
|
+
"@smithy/types": "^4.14.1"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -448,7 +448,7 @@ class SignatureV4 extends SignatureV4Base {
|
|
|
448
448
|
return this.signRequest(toSign, options);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) {
|
|
451
|
+
async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService, eventStreamCredentials, }) {
|
|
452
452
|
const region = signingRegion ?? (await this.regionProvider());
|
|
453
453
|
const { shortDate, longDate } = this.formatDate(signingDate);
|
|
454
454
|
const scope = createScope(shortDate, region, signingService ?? this.service);
|
|
@@ -464,9 +464,14 @@ class SignatureV4 extends SignatureV4Base {
|
|
|
464
464
|
hashedHeaders,
|
|
465
465
|
hashedPayload,
|
|
466
466
|
].join("\n");
|
|
467
|
-
return this.signString(stringToSign, {
|
|
467
|
+
return this.signString(stringToSign, {
|
|
468
|
+
signingDate,
|
|
469
|
+
signingRegion: region,
|
|
470
|
+
signingService,
|
|
471
|
+
eventStreamCredentials,
|
|
472
|
+
});
|
|
468
473
|
}
|
|
469
|
-
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService }) {
|
|
474
|
+
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials }) {
|
|
470
475
|
const promise = this.signEvent({
|
|
471
476
|
headers: this.headerFormatter.format(signableMessage.message.headers),
|
|
472
477
|
payload: signableMessage.message.body,
|
|
@@ -475,13 +480,14 @@ class SignatureV4 extends SignatureV4Base {
|
|
|
475
480
|
signingRegion,
|
|
476
481
|
signingService,
|
|
477
482
|
priorSignature: signableMessage.priorSignature,
|
|
483
|
+
eventStreamCredentials,
|
|
478
484
|
});
|
|
479
485
|
return promise.then((signature) => {
|
|
480
486
|
return { message: signableMessage.message, signature };
|
|
481
487
|
});
|
|
482
488
|
}
|
|
483
|
-
async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) {
|
|
484
|
-
const credentials = await this.credentialProvider();
|
|
489
|
+
async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials, } = {}) {
|
|
490
|
+
const credentials = eventStreamCredentials ?? (await this.credentialProvider());
|
|
485
491
|
this.validateResolvedCredentials(credentials);
|
|
486
492
|
const region = signingRegion ?? (await this.regionProvider());
|
|
487
493
|
const { shortDate } = this.formatDate(signingDate);
|
|
@@ -58,7 +58,7 @@ export class SignatureV4 extends SignatureV4Base {
|
|
|
58
58
|
return this.signRequest(toSign, options);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) {
|
|
61
|
+
async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService, eventStreamCredentials, }) {
|
|
62
62
|
const region = signingRegion ?? (await this.regionProvider());
|
|
63
63
|
const { shortDate, longDate } = this.formatDate(signingDate);
|
|
64
64
|
const scope = createScope(shortDate, region, signingService ?? this.service);
|
|
@@ -74,9 +74,14 @@ export class SignatureV4 extends SignatureV4Base {
|
|
|
74
74
|
hashedHeaders,
|
|
75
75
|
hashedPayload,
|
|
76
76
|
].join("\n");
|
|
77
|
-
return this.signString(stringToSign, {
|
|
77
|
+
return this.signString(stringToSign, {
|
|
78
|
+
signingDate,
|
|
79
|
+
signingRegion: region,
|
|
80
|
+
signingService,
|
|
81
|
+
eventStreamCredentials,
|
|
82
|
+
});
|
|
78
83
|
}
|
|
79
|
-
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService }) {
|
|
84
|
+
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials }) {
|
|
80
85
|
const promise = this.signEvent({
|
|
81
86
|
headers: this.headerFormatter.format(signableMessage.message.headers),
|
|
82
87
|
payload: signableMessage.message.body,
|
|
@@ -85,13 +90,14 @@ export class SignatureV4 extends SignatureV4Base {
|
|
|
85
90
|
signingRegion,
|
|
86
91
|
signingService,
|
|
87
92
|
priorSignature: signableMessage.priorSignature,
|
|
93
|
+
eventStreamCredentials,
|
|
88
94
|
});
|
|
89
95
|
return promise.then((signature) => {
|
|
90
96
|
return { message: signableMessage.message, signature };
|
|
91
97
|
});
|
|
92
98
|
}
|
|
93
|
-
async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) {
|
|
94
|
-
const credentials = await this.credentialProvider();
|
|
99
|
+
async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials, } = {}) {
|
|
100
|
+
const credentials = eventStreamCredentials ?? (await this.credentialProvider());
|
|
95
101
|
this.validateResolvedCredentials(credentials);
|
|
96
102
|
const region = signingRegion ?? (await this.regionProvider());
|
|
97
103
|
const { shortDate } = this.formatDate(signingDate);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventSigner, EventSigningArguments, FormattedEvent, HttpRequest, MessageSigner, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
|
|
1
|
+
import type { EventSigner, EventSigningArguments, FormattedEvent, HttpRequest, MessageSigner, MessageSigningArguments, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
|
|
2
2
|
import type { SignatureV4CryptoInit, SignatureV4Init } from "./SignatureV4Base";
|
|
3
3
|
import { SignatureV4Base } from "./SignatureV4Base";
|
|
4
4
|
/**
|
|
@@ -10,10 +10,10 @@ export declare class SignatureV4 extends SignatureV4Base implements RequestPresi
|
|
|
10
10
|
presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise<HttpRequest>;
|
|
11
11
|
sign(stringToSign: string, options?: SigningArguments): Promise<string>;
|
|
12
12
|
sign(event: FormattedEvent, options: EventSigningArguments): Promise<string>;
|
|
13
|
-
sign(event: SignableMessage, options:
|
|
13
|
+
sign(event: SignableMessage, options: MessageSigningArguments): Promise<SignedMessage>;
|
|
14
14
|
sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise<HttpRequest>;
|
|
15
15
|
private signEvent;
|
|
16
|
-
signMessage(signableMessage: SignableMessage, { signingDate, signingRegion, signingService }:
|
|
16
|
+
signMessage(signableMessage: SignableMessage, { signingDate, signingRegion, signingService, eventStreamCredentials }: MessageSigningArguments): Promise<SignedMessage>;
|
|
17
17
|
private signString;
|
|
18
18
|
private signRequest;
|
|
19
19
|
private getSignature;
|