agent-relay 4.0.32 → 4.0.34
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 +1 -3
- package/dist/src/cli/commands/on/start.d.ts.map +1 -1
- package/dist/src/cli/commands/on/start.js +149 -111
- package/dist/src/cli/commands/on/start.js.map +1 -1
- package/dist/src/cli/commands/setup.js +2 -2
- package/dist/src/cli/commands/setup.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/workflows/runner.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js +7 -5
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +2 -2
- package/node_modules/@agent-relay/telemetry/dist/config.d.ts +1 -1
- package/node_modules/@agent-relay/telemetry/dist/config.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/config.js +6 -3
- package/node_modules/@agent-relay/telemetry/dist/config.js.map +1 -1
- 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 +18 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +18 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -2
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +87 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +147 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -4
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@relayfile/local-mount/README.md +215 -0
- package/node_modules/@relayfile/local-mount/dist/auto-sync.d.ts +31 -0
- package/node_modules/@relayfile/local-mount/dist/auto-sync.js +466 -0
- package/node_modules/@relayfile/local-mount/dist/dotfiles.d.ts +18 -0
- package/node_modules/@relayfile/local-mount/dist/dotfiles.js +43 -0
- package/node_modules/@relayfile/local-mount/dist/index.d.ts +4 -0
- package/node_modules/@relayfile/local-mount/dist/index.js +3 -0
- package/node_modules/@relayfile/local-mount/dist/launch.d.ts +50 -0
- package/node_modules/@relayfile/local-mount/dist/launch.js +129 -0
- package/node_modules/@relayfile/local-mount/dist/symlink-mount.d.ts +23 -0
- package/{dist/src/cli/commands/on → node_modules/@relayfile/local-mount/dist}/symlink-mount.js +88 -20
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/LICENSE +21 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/README.md +305 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/handler.d.ts +90 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/handler.js +629 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/index.d.ts +215 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/index.js +798 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/package.json +1 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/handler.d.ts +90 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/handler.js +635 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/index.d.ts +215 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/index.js +804 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/package.json +69 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/LICENSE +21 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/README.md +120 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/index.d.ts +108 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/index.js +257 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/package.json +1 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/index.d.ts +108 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/index.js +263 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/package.json +70 -0
- package/node_modules/@relayfile/local-mount/package.json +47 -0
- package/node_modules/@smithy/config-resolver/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -14
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +17 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +6 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +6 -3
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +23 -11
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +9 -3
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +16 -8
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +8 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +6 -3
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +5 -5
- package/node_modules/@smithy/middleware-serde/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +188 -93
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +45 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +71 -35
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -18
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +41 -40
- package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +42 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +34 -14
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +32 -8
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +0 -5
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +5 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +4 -0
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +6 -0
- package/node_modules/@smithy/service-error-classification/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +3 -3
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +65 -53
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +9 -7
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +12 -8
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +14 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +7 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +10 -8
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +4 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +5 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +4 -4
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +2 -15
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +6 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/package.json +1 -1
- package/node_modules/@smithy/util-retry/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/package.json +25 -11
- 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/workflows/runner.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/runner.js +7 -5
- package/packages/sdk/dist/workflows/runner.js.map +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/telemetry/dist/config.d.ts +1 -1
- package/packages/telemetry/dist/config.d.ts.map +1 -1
- package/packages/telemetry/dist/config.js +6 -3
- package/packages/telemetry/dist/config.js.map +1 -1
- 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
- package/dist/src/cli/commands/on/symlink-mount.d.ts +0 -12
- package/dist/src/cli/commands/on/symlink-mount.d.ts.map +0 -1
- package/dist/src/cli/commands/on/symlink-mount.js.map +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +0 -2
|
@@ -141,9 +141,12 @@ const expectUnion = (value) => {
|
|
|
141
141
|
return undefined;
|
|
142
142
|
}
|
|
143
143
|
const asObject = expectObject(value);
|
|
144
|
-
const setKeys =
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
const setKeys = [];
|
|
145
|
+
for (const k in asObject) {
|
|
146
|
+
if (asObject[k] != null) {
|
|
147
|
+
setKeys.push(k);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
147
150
|
if (setKeys.length === 0) {
|
|
148
151
|
throw new TypeError(`Unions must have exactly one non-null member. None were found.`);
|
|
149
152
|
}
|
package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js
CHANGED
|
@@ -4,7 +4,8 @@ exports.DefaultIdentityProviderConfig = void 0;
|
|
|
4
4
|
class DefaultIdentityProviderConfig {
|
|
5
5
|
authSchemes = new Map();
|
|
6
6
|
constructor(config) {
|
|
7
|
-
for (const
|
|
7
|
+
for (const key in config) {
|
|
8
|
+
const value = config[key];
|
|
8
9
|
if (value !== undefined) {
|
|
9
10
|
this.authSchemes.set(key, value);
|
|
10
11
|
}
|
|
@@ -62,7 +62,7 @@ export class CborShapeSerializer extends SerdeContext {
|
|
|
62
62
|
const newObject = {};
|
|
63
63
|
if (ns.isMapSchema()) {
|
|
64
64
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
65
|
-
for (const key
|
|
65
|
+
for (const key in sourceObject) {
|
|
66
66
|
const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
67
67
|
if (value != null || sparse) {
|
|
68
68
|
newObject[key] = value;
|
|
@@ -82,15 +82,15 @@ export class CborShapeSerializer extends SerdeContext {
|
|
|
82
82
|
newObject[k] = v;
|
|
83
83
|
}
|
|
84
84
|
else if (typeof sourceObject.__type === "string") {
|
|
85
|
-
for (const
|
|
85
|
+
for (const k in sourceObject) {
|
|
86
86
|
if (!(k in newObject)) {
|
|
87
|
-
newObject[k] = this.serialize(15,
|
|
87
|
+
newObject[k] = this.serialize(15, sourceObject[k]);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
else if (ns.isDocumentSchema()) {
|
|
93
|
-
for (const key
|
|
93
|
+
for (const key in sourceObject) {
|
|
94
94
|
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -163,7 +163,7 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
163
163
|
const newObject = {};
|
|
164
164
|
if (ns.isMapSchema()) {
|
|
165
165
|
const targetSchema = ns.getValueSchema();
|
|
166
|
-
for (const key
|
|
166
|
+
for (const key in value) {
|
|
167
167
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
168
168
|
newObject[key] = itemValue;
|
|
169
169
|
}
|
|
@@ -172,7 +172,12 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
172
172
|
const isUnion = ns.isUnionSchema();
|
|
173
173
|
let keys;
|
|
174
174
|
if (isUnion) {
|
|
175
|
-
keys = new Set(
|
|
175
|
+
keys = new Set();
|
|
176
|
+
for (const k in value) {
|
|
177
|
+
if (k !== "__type") {
|
|
178
|
+
keys.add(k);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
176
181
|
}
|
|
177
182
|
for (const [key, memberSchema] of ns.structIterator()) {
|
|
178
183
|
if (isUnion) {
|
|
@@ -182,14 +187,21 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
182
187
|
newObject[key] = this.readValue(memberSchema, value[key]);
|
|
183
188
|
}
|
|
184
189
|
}
|
|
185
|
-
if (isUnion && keys?.size === 1
|
|
186
|
-
|
|
187
|
-
|
|
190
|
+
if (isUnion && keys?.size === 1) {
|
|
191
|
+
let newObjectEmpty = true;
|
|
192
|
+
for (const _ in newObject) {
|
|
193
|
+
newObjectEmpty = false;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
if (newObjectEmpty) {
|
|
197
|
+
const k = keys.values().next().value;
|
|
198
|
+
newObject.$unknown = [k, value[k]];
|
|
199
|
+
}
|
|
188
200
|
}
|
|
189
201
|
else if (typeof value.__type === "string") {
|
|
190
|
-
for (const
|
|
202
|
+
for (const k in value) {
|
|
191
203
|
if (!(k in newObject)) {
|
|
192
|
-
newObject[k] =
|
|
204
|
+
newObject[k] = value[k];
|
|
193
205
|
}
|
|
194
206
|
}
|
|
195
207
|
}
|
|
@@ -50,7 +50,13 @@ export const loadSmithyRpcV2CborErrorCode = (output, data) => {
|
|
|
50
50
|
if (data["__type"] !== undefined) {
|
|
51
51
|
return sanitizeErrorCode(data["__type"]);
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
let codeKey;
|
|
54
|
+
for (const key in data) {
|
|
55
|
+
if (key.toLowerCase() === "code") {
|
|
56
|
+
codeKey = key;
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
54
60
|
if (codeKey && data[codeKey] !== undefined) {
|
|
55
61
|
return sanitizeErrorCode(data[codeKey]);
|
|
56
62
|
}
|
|
@@ -77,8 +83,8 @@ export const buildHttpRpcRequest = async (context, headers, path, resolvedHostna
|
|
|
77
83
|
contents.hostname = resolvedHostname;
|
|
78
84
|
}
|
|
79
85
|
if (endpoint.headers) {
|
|
80
|
-
for (const
|
|
81
|
-
contents.headers[name] =
|
|
86
|
+
for (const name in endpoint.headers) {
|
|
87
|
+
contents.headers[name] = endpoint.headers[name];
|
|
82
88
|
}
|
|
83
89
|
}
|
|
84
90
|
if (body !== undefined) {
|
|
@@ -5,8 +5,8 @@ export const toEndpointV1 = (endpoint) => {
|
|
|
5
5
|
const v1Endpoint = parseUrl(endpoint.url);
|
|
6
6
|
if (endpoint.headers) {
|
|
7
7
|
v1Endpoint.headers = {};
|
|
8
|
-
for (const
|
|
9
|
-
v1Endpoint.headers[name.toLowerCase()] =
|
|
8
|
+
for (const name in endpoint.headers) {
|
|
9
|
+
v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
return v1Endpoint;
|
|
@@ -47,9 +47,13 @@ export class EventStreamSerde {
|
|
|
47
47
|
body: event.body,
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
let unionMember = "";
|
|
51
|
+
for (const key in event) {
|
|
52
|
+
if (key !== "__type") {
|
|
53
|
+
unionMember = key;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
53
57
|
const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event);
|
|
54
58
|
const headers = {
|
|
55
59
|
":event-type": { type: "string", value: eventType },
|
|
@@ -70,9 +74,13 @@ export class EventStreamSerde {
|
|
|
70
74
|
const memberSchemas = unionSchema.getMemberSchemas();
|
|
71
75
|
const initialResponseMarker = Symbol("initialResponseMarker");
|
|
72
76
|
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
let unionMember = "";
|
|
78
|
+
for (const key in event) {
|
|
79
|
+
if (key !== "__type") {
|
|
80
|
+
unionMember = key;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
76
84
|
const body = event[unionMember].body;
|
|
77
85
|
if (unionMember === "initial-response") {
|
|
78
86
|
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
@@ -148,8 +156,8 @@ export class EventStreamSerde {
|
|
|
148
156
|
if (!responseSchema) {
|
|
149
157
|
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
150
158
|
}
|
|
151
|
-
for (const
|
|
152
|
-
initialResponseContainer[key] = value;
|
|
159
|
+
for (const key in firstEvent.value) {
|
|
160
|
+
initialResponseContainer[key] = firstEvent.value[key];
|
|
153
161
|
}
|
|
154
162
|
}
|
|
155
163
|
return {
|
|
@@ -41,7 +41,9 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
41
41
|
request.path += path;
|
|
42
42
|
}
|
|
43
43
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
44
|
-
|
|
44
|
+
for (const [key, value] of traitSearchParams) {
|
|
45
|
+
query[key] = value;
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
for (const [memberName, memberNs] of ns.structIterator()) {
|
|
@@ -91,7 +93,8 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
91
93
|
headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
|
|
92
94
|
}
|
|
93
95
|
else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
94
|
-
for (const
|
|
96
|
+
for (const key in inputMemberValue) {
|
|
97
|
+
const val = inputMemberValue[key];
|
|
95
98
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
96
99
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
97
100
|
headers[amalgam.toLowerCase()] = serializer.flush();
|
|
@@ -136,8 +139,9 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
136
139
|
const serializer = this.serializer;
|
|
137
140
|
const traits = ns.getMergedTraits();
|
|
138
141
|
if (traits.httpQueryParams) {
|
|
139
|
-
for (const
|
|
142
|
+
for (const key in data) {
|
|
140
143
|
if (!(key in query)) {
|
|
144
|
+
const val = data[key];
|
|
141
145
|
const valueSchema = ns.getValueSchema();
|
|
142
146
|
Object.assign(valueSchema.getMergedTraits(), {
|
|
143
147
|
...traits,
|
|
@@ -265,8 +269,9 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
265
269
|
}
|
|
266
270
|
else if (memberTraits.httpPrefixHeaders !== undefined) {
|
|
267
271
|
dataObject[memberName] = {};
|
|
268
|
-
for (const
|
|
272
|
+
for (const header in response.headers) {
|
|
269
273
|
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
|
274
|
+
const value = response.headers[header];
|
|
270
275
|
const valueSchema = memberSchema.getValueSchema();
|
|
271
276
|
valueSchema.getMergedTraits().httpHeader = header;
|
|
272
277
|
dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(valueSchema, value);
|
|
@@ -42,8 +42,8 @@ export class HttpProtocol extends SerdeContext {
|
|
|
42
42
|
request.query[k] = v;
|
|
43
43
|
}
|
|
44
44
|
if (endpoint.headers) {
|
|
45
|
-
for (const
|
|
46
|
-
request.headers[name] =
|
|
45
|
+
for (const name in endpoint.headers) {
|
|
46
|
+
request.headers[name] = endpoint.headers[name].join(", ");
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
return request;
|
|
@@ -57,8 +57,8 @@ export class HttpProtocol extends SerdeContext {
|
|
|
57
57
|
...endpoint.query,
|
|
58
58
|
};
|
|
59
59
|
if (endpoint.headers) {
|
|
60
|
-
for (const
|
|
61
|
-
request.headers[name] =
|
|
60
|
+
for (const name in endpoint.headers) {
|
|
61
|
+
request.headers[name] = endpoint.headers[name];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
return request;
|
|
@@ -73,8 +73,10 @@ export class HttpProtocol extends SerdeContext {
|
|
|
73
73
|
if (opTraits.endpoint) {
|
|
74
74
|
let hostPrefix = opTraits.endpoint?.[0];
|
|
75
75
|
if (typeof hostPrefix === "string") {
|
|
76
|
-
const
|
|
77
|
-
|
|
76
|
+
for (const [name, member] of inputNs.structIterator()) {
|
|
77
|
+
if (!member.getMergedTraits().hostLabel) {
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
78
80
|
const replacement = input[name];
|
|
79
81
|
if (typeof replacement !== "string") {
|
|
80
82
|
throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`);
|
|
@@ -69,7 +69,12 @@ export class TypeRegistry {
|
|
|
69
69
|
return undefined;
|
|
70
70
|
}
|
|
71
71
|
find(predicate) {
|
|
72
|
-
|
|
72
|
+
for (const schema of this.schemas.values()) {
|
|
73
|
+
if (predicate(schema)) {
|
|
74
|
+
return schema;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return undefined;
|
|
73
78
|
}
|
|
74
79
|
clear() {
|
|
75
80
|
this.schemas.clear();
|
|
@@ -135,9 +135,12 @@ export const expectUnion = (value) => {
|
|
|
135
135
|
return undefined;
|
|
136
136
|
}
|
|
137
137
|
const asObject = expectObject(value);
|
|
138
|
-
const setKeys =
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
const setKeys = [];
|
|
139
|
+
for (const k in asObject) {
|
|
140
|
+
if (asObject[k] != null) {
|
|
141
|
+
setKeys.push(k);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
141
144
|
if (setKeys.length === 0) {
|
|
142
145
|
throw new TypeError(`Unions must have exactly one non-null member. None were found.`);
|
|
143
146
|
}
|
package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export class DefaultIdentityProviderConfig {
|
|
2
2
|
authSchemes = new Map();
|
|
3
3
|
constructor(config) {
|
|
4
|
-
for (const
|
|
4
|
+
for (const key in config) {
|
|
5
|
+
const value = config[key];
|
|
5
6
|
if (value !== undefined) {
|
|
6
7
|
this.authSchemes.set(key, value);
|
|
7
8
|
}
|
|
@@ -62,7 +62,7 @@ export declare class TypeRegistry {
|
|
|
62
62
|
* @param predicate - criterion.
|
|
63
63
|
* @returns a schema in this registry matching the predicate.
|
|
64
64
|
*/
|
|
65
|
-
find(predicate: (schema: ISchema) => boolean):
|
|
65
|
+
find(predicate: (schema: ISchema) => boolean): number | import("@smithy/types").StaticSimpleSchema | import("@smithy/types").StaticListSchema | import("@smithy/types").StaticMapSchema | import("@smithy/types").StaticStructureSchema | import("@smithy/types").StaticUnionSchema | StaticErrorSchema | import("@smithy/types").StaticOperationSchema | "unit" | import("@smithy/types").NormalizedSchema | import("@smithy/types").TraitsSchema | import("@smithy/types").MemberSchema | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Unloads the current TypeRegistry.
|
|
68
68
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.16",
|
|
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 core",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@smithy/util-base64": "^4.3.2",
|
|
92
92
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
93
93
|
"@smithy/util-middleware": "^4.2.14",
|
|
94
|
-
"@smithy/util-stream": "^4.5.
|
|
94
|
+
"@smithy/util-stream": "^4.5.24",
|
|
95
95
|
"@smithy/util-utf8": "^4.2.2",
|
|
96
96
|
"@smithy/uuid": "^1.1.2",
|
|
97
97
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.31",
|
|
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,8 +24,8 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/core": "^3.23.
|
|
28
|
-
"@smithy/middleware-serde": "^4.2.
|
|
27
|
+
"@smithy/core": "^3.23.16",
|
|
28
|
+
"@smithy/middleware-serde": "^4.2.19",
|
|
29
29
|
"@smithy/node-config-provider": "^4.3.14",
|
|
30
30
|
"@smithy/shared-ini-file-loader": "^4.4.9",
|
|
31
31
|
"@smithy/types": "^4.14.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.4",
|
|
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.
|
|
36
|
+
"@smithy/core": "^3.23.16",
|
|
37
37
|
"@smithy/node-config-provider": "^4.3.14",
|
|
38
38
|
"@smithy/protocol-http": "^5.3.14",
|
|
39
|
-
"@smithy/service-error-classification": "^4.
|
|
40
|
-
"@smithy/smithy-client": "^4.12.
|
|
39
|
+
"@smithy/service-error-classification": "^4.3.0",
|
|
40
|
+
"@smithy/smithy-client": "^4.12.12",
|
|
41
41
|
"@smithy/types": "^4.14.1",
|
|
42
42
|
"@smithy/util-middleware": "^4.2.14",
|
|
43
|
-
"@smithy/util-retry": "^4.3.
|
|
43
|
+
"@smithy/util-retry": "^4.3.3",
|
|
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.19",
|
|
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,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.23.
|
|
28
|
+
"@smithy/core": "^3.23.16",
|
|
29
29
|
"@smithy/protocol-http": "^5.3.14",
|
|
30
30
|
"@smithy/types": "^4.14.1",
|
|
31
31
|
"tslib": "^2.6.2"
|