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.
Files changed (226) hide show
  1. package/bin/agent-relay-broker-darwin-arm64 +0 -0
  2. package/bin/agent-relay-broker-darwin-x64 +0 -0
  3. package/bin/agent-relay-broker-linux-arm64 +0 -0
  4. package/bin/agent-relay-broker-linux-x64 +0 -0
  5. package/dist/index.cjs +1 -3
  6. package/dist/src/cli/commands/on/start.d.ts.map +1 -1
  7. package/dist/src/cli/commands/on/start.js +149 -111
  8. package/dist/src/cli/commands/on/start.js.map +1 -1
  9. package/dist/src/cli/commands/setup.js +2 -2
  10. package/dist/src/cli/commands/setup.js.map +1 -1
  11. package/node_modules/@agent-relay/cloud/package.json +2 -2
  12. package/node_modules/@agent-relay/config/package.json +1 -1
  13. package/node_modules/@agent-relay/hooks/package.json +4 -4
  14. package/node_modules/@agent-relay/sdk/dist/workflows/runner.d.ts.map +1 -1
  15. package/node_modules/@agent-relay/sdk/dist/workflows/runner.js +7 -5
  16. package/node_modules/@agent-relay/sdk/dist/workflows/runner.js.map +1 -1
  17. package/node_modules/@agent-relay/sdk/package.json +2 -2
  18. package/node_modules/@agent-relay/telemetry/dist/config.d.ts +1 -1
  19. package/node_modules/@agent-relay/telemetry/dist/config.d.ts.map +1 -1
  20. package/node_modules/@agent-relay/telemetry/dist/config.js +6 -3
  21. package/node_modules/@agent-relay/telemetry/dist/config.js.map +1 -1
  22. package/node_modules/@agent-relay/telemetry/package.json +1 -1
  23. package/node_modules/@agent-relay/trajectory/package.json +2 -2
  24. package/node_modules/@agent-relay/user-directory/package.json +2 -2
  25. package/node_modules/@agent-relay/utils/package.json +2 -2
  26. package/node_modules/@aws-sdk/core/dist-cjs/index.js +18 -10
  27. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +18 -10
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +6 -4
  29. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +6 -3
  30. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -2
  33. package/node_modules/@aws-sdk/core/package.json +1 -1
  34. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  35. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  36. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  37. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  38. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  39. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  40. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  41. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  42. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
  43. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  44. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  45. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
  46. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
  47. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
  48. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
  53. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +1 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
  55. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
  56. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
  57. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
  60. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +87 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
  63. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +77 -0
  64. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
  65. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
  67. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -0
  68. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
  69. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +147 -0
  70. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
  71. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +7 -1
  72. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
  73. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
  74. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
  75. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
  76. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
  77. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
  78. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
  79. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
  80. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
  81. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
  82. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
  83. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
  84. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
  85. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
  86. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
  87. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
  88. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
  89. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
  90. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
  91. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
  92. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
  93. package/node_modules/@aws-sdk/nested-clients/package.json +5 -4
  94. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  95. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  96. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  97. package/node_modules/@relayfile/local-mount/README.md +215 -0
  98. package/node_modules/@relayfile/local-mount/dist/auto-sync.d.ts +31 -0
  99. package/node_modules/@relayfile/local-mount/dist/auto-sync.js +466 -0
  100. package/node_modules/@relayfile/local-mount/dist/dotfiles.d.ts +18 -0
  101. package/node_modules/@relayfile/local-mount/dist/dotfiles.js +43 -0
  102. package/node_modules/@relayfile/local-mount/dist/index.d.ts +4 -0
  103. package/node_modules/@relayfile/local-mount/dist/index.js +3 -0
  104. package/node_modules/@relayfile/local-mount/dist/launch.d.ts +50 -0
  105. package/node_modules/@relayfile/local-mount/dist/launch.js +129 -0
  106. package/node_modules/@relayfile/local-mount/dist/symlink-mount.d.ts +23 -0
  107. package/{dist/src/cli/commands/on → node_modules/@relayfile/local-mount/dist}/symlink-mount.js +88 -20
  108. package/node_modules/@relayfile/local-mount/node_modules/chokidar/LICENSE +21 -0
  109. package/node_modules/@relayfile/local-mount/node_modules/chokidar/README.md +305 -0
  110. package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/handler.d.ts +90 -0
  111. package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/handler.js +629 -0
  112. package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/index.d.ts +215 -0
  113. package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/index.js +798 -0
  114. package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/package.json +1 -0
  115. package/node_modules/@relayfile/local-mount/node_modules/chokidar/handler.d.ts +90 -0
  116. package/node_modules/@relayfile/local-mount/node_modules/chokidar/handler.js +635 -0
  117. package/node_modules/@relayfile/local-mount/node_modules/chokidar/index.d.ts +215 -0
  118. package/node_modules/@relayfile/local-mount/node_modules/chokidar/index.js +804 -0
  119. package/node_modules/@relayfile/local-mount/node_modules/chokidar/package.json +69 -0
  120. package/node_modules/@relayfile/local-mount/node_modules/readdirp/LICENSE +21 -0
  121. package/node_modules/@relayfile/local-mount/node_modules/readdirp/README.md +120 -0
  122. package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/index.d.ts +108 -0
  123. package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/index.js +257 -0
  124. package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/package.json +1 -0
  125. package/node_modules/@relayfile/local-mount/node_modules/readdirp/index.d.ts +108 -0
  126. package/node_modules/@relayfile/local-mount/node_modules/readdirp/index.js +263 -0
  127. package/node_modules/@relayfile/local-mount/node_modules/readdirp/package.json +70 -0
  128. package/node_modules/@relayfile/local-mount/package.json +47 -0
  129. package/node_modules/@smithy/config-resolver/package.json +2 -2
  130. package/node_modules/@smithy/core/dist-cjs/index.js +2 -1
  131. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -14
  132. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
  133. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +16 -8
  134. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +17 -10
  135. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +6 -1
  136. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +6 -3
  137. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  138. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +23 -11
  139. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +9 -3
  140. package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +2 -2
  141. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +16 -8
  142. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -4
  143. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +8 -6
  144. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +6 -1
  145. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +6 -3
  146. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  147. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  148. package/node_modules/@smithy/core/package.json +2 -2
  149. package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
  150. package/node_modules/@smithy/middleware-retry/package.json +5 -5
  151. package/node_modules/@smithy/middleware-serde/package.json +2 -2
  152. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +188 -93
  153. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +45 -0
  154. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +71 -35
  155. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -18
  156. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +41 -40
  157. package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +42 -0
  158. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +34 -14
  159. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +32 -8
  160. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +0 -5
  161. package/node_modules/@smithy/node-http-handler/package.json +1 -1
  162. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +5 -0
  163. package/node_modules/@smithy/service-error-classification/dist-es/index.js +4 -0
  164. package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +6 -0
  165. package/node_modules/@smithy/service-error-classification/package.json +1 -1
  166. package/node_modules/@smithy/smithy-client/package.json +4 -4
  167. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  168. package/node_modules/@smithy/util-defaults-mode-node/package.json +3 -3
  169. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +65 -53
  170. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +9 -7
  171. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +12 -8
  172. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +14 -13
  173. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +7 -4
  174. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +10 -8
  175. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +4 -4
  176. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +5 -5
  177. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +4 -4
  178. package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +3 -3
  179. package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +2 -15
  180. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +6 -3
  181. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +3 -3
  182. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
  183. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -2
  184. package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +2 -2
  185. package/node_modules/@smithy/util-endpoints/package.json +1 -1
  186. package/node_modules/@smithy/util-retry/package.json +2 -2
  187. package/node_modules/@smithy/util-stream/package.json +2 -2
  188. package/package.json +25 -11
  189. package/packages/cloud/package.json +2 -2
  190. package/packages/config/package.json +1 -1
  191. package/packages/hooks/package.json +4 -4
  192. package/packages/sdk/dist/workflows/runner.d.ts.map +1 -1
  193. package/packages/sdk/dist/workflows/runner.js +7 -5
  194. package/packages/sdk/dist/workflows/runner.js.map +1 -1
  195. package/packages/sdk/package.json +2 -2
  196. package/packages/telemetry/dist/config.d.ts +1 -1
  197. package/packages/telemetry/dist/config.d.ts.map +1 -1
  198. package/packages/telemetry/dist/config.js +6 -3
  199. package/packages/telemetry/dist/config.js.map +1 -1
  200. package/packages/telemetry/package.json +1 -1
  201. package/packages/trajectory/package.json +2 -2
  202. package/packages/user-directory/package.json +2 -2
  203. package/packages/utils/package.json +2 -2
  204. package/dist/src/cli/commands/on/symlink-mount.d.ts +0 -12
  205. package/dist/src/cli/commands/on/symlink-mount.d.ts.map +0 -1
  206. package/dist/src/cli/commands/on/symlink-mount.js.map +0 -1
  207. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
  208. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
  209. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
  210. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
  211. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
  212. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
  213. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
  214. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
  215. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
  216. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
  217. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
  218. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
  219. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
  220. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
  221. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
  222. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
  223. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
  224. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
  225. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
  226. 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 = Object.entries(asObject)
145
- .filter(([, v]) => v != null)
146
- .map(([k]) => k);
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
  }
@@ -4,7 +4,8 @@ exports.DefaultIdentityProviderConfig = void 0;
4
4
  class DefaultIdentityProviderConfig {
5
5
  authSchemes = new Map();
6
6
  constructor(config) {
7
- for (const [key, value] of Object.entries(config)) {
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 of Object.keys(sourceObject)) {
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 [k, v] of Object.entries(sourceObject)) {
85
+ for (const k in sourceObject) {
86
86
  if (!(k in newObject)) {
87
- newObject[k] = this.serialize(15, v);
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 of Object.keys(sourceObject)) {
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 of Object.keys(value)) {
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(Object.keys(value).filter((k) => k !== "__type"));
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 && Object.keys(newObject).length === 0) {
186
- const k = keys.values().next().value;
187
- newObject.$unknown = [k, value[k]];
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 [k, v] of Object.entries(value)) {
202
+ for (const k in value) {
191
203
  if (!(k in newObject)) {
192
- newObject[k] = v;
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
- const codeKey = Object.keys(data).find((key) => key.toLowerCase() === "code");
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 [name, value] of Object.entries(endpoint.headers)) {
81
- contents.headers[name] = value;
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 [name, values] of Object.entries(endpoint.headers)) {
9
- v1Endpoint.headers[name.toLowerCase()] = values.join(", ");
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
- const unionMember = Object.keys(event).find((key) => {
51
- return key !== "__type";
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
- const unionMember = Object.keys(event).find((key) => {
74
- return key !== "__type";
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 [key, value] of Object.entries(firstEvent.value)) {
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
- Object.assign(query, Object.fromEntries(traitSearchParams));
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 [key, val] of Object.entries(inputMemberValue)) {
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 [key, val] of Object.entries(data)) {
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 [header, value] of Object.entries(response.headers)) {
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 [name, values] of Object.entries(endpoint.headers)) {
46
- request.headers[name] = values.join(", ");
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 [name, value] of Object.entries(endpoint.headers)) {
61
- request.headers[name] = value;
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 hostLabelInputs = [...inputNs.structIterator()].filter(([, member]) => member.getMergedTraits().hostLabel);
77
- for (const [name] of hostLabelInputs) {
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
- return [...this.schemas.values()].find(predicate);
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 = Object.entries(asObject)
139
- .filter(([, v]) => v != null)
140
- .map(([k]) => k);
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
  }
@@ -1,7 +1,8 @@
1
1
  export class DefaultIdentityProviderConfig {
2
2
  authSchemes = new Map();
3
3
  constructor(config) {
4
- for (const [key, value] of Object.entries(config)) {
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): ISchema | undefined;
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.15",
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.23",
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.30",
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.15",
28
- "@smithy/middleware-serde": "^4.2.18",
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",
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.15",
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.2.14",
40
- "@smithy/smithy-client": "^4.12.11",
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.2",
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.18",
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.15",
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"