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
@@ -0,0 +1,150 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bdd = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const q = "ref";
6
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
7
+ const _data = {
8
+ conditions: [
9
+ [c, [l]],
10
+ [c, p],
11
+ ["aws.partition", p, d],
12
+ [e, [{ [q]: "UseFIPS" }, b]],
13
+ [e, [{ [q]: "UseDualStack" }, b]],
14
+ [f, [m, "aws-global"]],
15
+ [e, [{ [q]: "UseGlobalEndpoint" }, b]],
16
+ [f, [m, "eu-central-1"]],
17
+ [e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]],
18
+ [e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]],
19
+ [f, [m, "ap-south-1"]],
20
+ [f, [m, "eu-north-1"]],
21
+ [f, [m, "eu-west-1"]],
22
+ [f, [m, "eu-west-2"]],
23
+ [f, [m, "eu-west-3"]],
24
+ [f, [m, "sa-east-1"]],
25
+ [f, [m, h]],
26
+ [f, [m, "us-east-2"]],
27
+ [f, [m, "us-west-2"]],
28
+ [f, [m, "us-west-1"]],
29
+ [f, [m, "ca-central-1"]],
30
+ [f, [m, "ap-southeast-1"]],
31
+ [f, [m, "ap-northeast-1"]],
32
+ [f, [m, "ap-southeast-2"]],
33
+ [f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]],
34
+ ],
35
+ results: [
36
+ [a],
37
+ ["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }],
38
+ [k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }],
39
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
40
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
41
+ [l, o],
42
+ ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
43
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
44
+ ["https://sts.{Region}.amazonaws.com", o],
45
+ ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
46
+ [a, "FIPS is enabled but this partition does not support FIPS"],
47
+ ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
48
+ [a, "DualStack is enabled but this partition does not support DualStack"],
49
+ [k, o],
50
+ [a, "Invalid Configuration: Missing Region"],
51
+ ],
52
+ };
53
+ const root = 2;
54
+ const r = 100_000_000;
55
+ const nodes = new Int32Array([
56
+ -1,
57
+ 1,
58
+ -1,
59
+ 0,
60
+ 30,
61
+ 3,
62
+ 1,
63
+ 4,
64
+ r + 14,
65
+ 2,
66
+ 5,
67
+ r + 14,
68
+ 3,
69
+ 25,
70
+ 6,
71
+ 4,
72
+ 24,
73
+ 7,
74
+ 5,
75
+ r + 1,
76
+ 8,
77
+ 6,
78
+ 9,
79
+ r + 13,
80
+ 7,
81
+ r + 1,
82
+ 10,
83
+ 10,
84
+ r + 1,
85
+ 11,
86
+ 11,
87
+ r + 1,
88
+ 12,
89
+ 12,
90
+ r + 1,
91
+ 13,
92
+ 13,
93
+ r + 1,
94
+ 14,
95
+ 14,
96
+ r + 1,
97
+ 15,
98
+ 15,
99
+ r + 1,
100
+ 16,
101
+ 16,
102
+ r + 1,
103
+ 17,
104
+ 17,
105
+ r + 1,
106
+ 18,
107
+ 18,
108
+ r + 1,
109
+ 19,
110
+ 19,
111
+ r + 1,
112
+ 20,
113
+ 20,
114
+ r + 1,
115
+ 21,
116
+ 21,
117
+ r + 1,
118
+ 22,
119
+ 22,
120
+ r + 1,
121
+ 23,
122
+ 23,
123
+ r + 1,
124
+ r + 2,
125
+ 8,
126
+ r + 11,
127
+ r + 12,
128
+ 4,
129
+ 28,
130
+ 26,
131
+ 9,
132
+ 27,
133
+ r + 10,
134
+ 24,
135
+ r + 8,
136
+ r + 9,
137
+ 8,
138
+ 29,
139
+ r + 7,
140
+ 9,
141
+ r + 6,
142
+ r + 7,
143
+ 3,
144
+ r + 3,
145
+ 31,
146
+ 4,
147
+ r + 4,
148
+ r + 5,
149
+ ]);
150
+ exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
- const ruleset_1 = require("./ruleset");
6
+ const bdd_1 = require("./bdd");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
@@ -43,6 +43,11 @@ const getRuntimeConfig = (config) => {
43
43
  (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
44
44
  signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
45
45
  },
46
+ {
47
+ schemeId: "aws.auth#sigv4a",
48
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
49
+ signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner(),
50
+ },
46
51
  {
47
52
  schemeId: "smithy.api#noAuth",
48
53
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
@@ -59,6 +64,7 @@ const getRuntimeConfig = (config) => {
59
64
  default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
60
65
  }, config),
61
66
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
67
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
62
68
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
63
69
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
64
70
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
5
  const protocols_1 = require("@aws-sdk/core/protocols");
6
+ const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
6
7
  const core_1 = require("@smithy/core");
7
8
  const smithy_client_1 = require("@smithy/smithy-client");
8
9
  const url_parser_1 = require("@smithy/url-parser");
@@ -26,6 +27,11 @@ const getRuntimeConfig = (config) => {
26
27
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
27
28
  signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
28
29
  },
30
+ {
31
+ schemeId: "aws.auth#sigv4a",
32
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
33
+ signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner(),
34
+ },
29
35
  {
30
36
  schemeId: "smithy.api#noAuth",
31
37
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
@@ -42,6 +48,7 @@ const getRuntimeConfig = (config) => {
42
48
  serviceTarget: "AWSSecurityTokenServiceV20110615",
43
49
  },
44
50
  serviceId: config?.serviceId ?? "STS",
51
+ signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
45
52
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
46
53
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
47
54
  utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
@@ -0,0 +1,97 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const m = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [h]],
7
+ [c, l],
8
+ ["aws.partition", l, d],
9
+ [e, [{ [m]: "UseFIPS" }, b]],
10
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
11
+ [e, [{ [m]: "UseDualStack" }, b]],
12
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
13
+ [g, [{ fn: f, argv: [i, "name"] }, "aws"]],
14
+ [g, [j, "us-east-1"]],
15
+ [g, [j, "us-east-2"]],
16
+ [g, [j, "us-west-1"]],
17
+ [g, [j, "us-west-2"]],
18
+ ],
19
+ results: [
20
+ [a],
21
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
22
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
23
+ [h, k],
24
+ ["https://cognito-identity-fips.us-east-1.amazonaws.com", k],
25
+ ["https://cognito-identity-fips.us-east-2.amazonaws.com", k],
26
+ ["https://cognito-identity-fips.us-west-1.amazonaws.com", k],
27
+ ["https://cognito-identity-fips.us-west-2.amazonaws.com", k],
28
+ ["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
29
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
30
+ ["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", k],
31
+ [a, "FIPS is enabled but this partition does not support FIPS"],
32
+ ["https://cognito-identity.{Region}.amazonaws.com", k],
33
+ ["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
34
+ [a, "DualStack is enabled but this partition does not support DualStack"],
35
+ ["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", k],
36
+ [a, "Invalid Configuration: Missing Region"],
37
+ ],
38
+ };
39
+ const root = 2;
40
+ const r = 100_000_000;
41
+ const nodes = new Int32Array([
42
+ -1,
43
+ 1,
44
+ -1,
45
+ 0,
46
+ 17,
47
+ 3,
48
+ 1,
49
+ 4,
50
+ r + 16,
51
+ 2,
52
+ 5,
53
+ r + 16,
54
+ 3,
55
+ 9,
56
+ 6,
57
+ 5,
58
+ 7,
59
+ r + 15,
60
+ 6,
61
+ 8,
62
+ r + 14,
63
+ 7,
64
+ r + 12,
65
+ r + 13,
66
+ 4,
67
+ 11,
68
+ 10,
69
+ 5,
70
+ r + 9,
71
+ r + 11,
72
+ 5,
73
+ 12,
74
+ r + 10,
75
+ 6,
76
+ 13,
77
+ r + 9,
78
+ 8,
79
+ r + 4,
80
+ 14,
81
+ 9,
82
+ r + 5,
83
+ 15,
84
+ 10,
85
+ r + 6,
86
+ 16,
87
+ 11,
88
+ r + 7,
89
+ r + 8,
90
+ 3,
91
+ r + 1,
92
+ 18,
93
+ 5,
94
+ r + 2,
95
+ r + 3,
96
+ ]);
97
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -0,0 +1,87 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const m = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { fn: f, argv: [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [h]],
7
+ [c, l],
8
+ ["aws.partition", l, d],
9
+ [e, [{ [m]: "UseFIPS" }, b]],
10
+ [e, [{ [m]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
13
+ [g, [j, "aws"]],
14
+ [g, [j, "aws-cn"]],
15
+ [g, [j, "aws-us-gov"]],
16
+ ],
17
+ results: [
18
+ [a],
19
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
20
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
21
+ [h, k],
22
+ ["https://{Region}.signin.aws.amazon.com", k],
23
+ ["https://{Region}.signin.amazonaws.cn", k],
24
+ ["https://{Region}.signin.amazonaws-us-gov.com", k],
25
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
26
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
27
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k],
28
+ [a, "FIPS is enabled but this partition does not support FIPS"],
29
+ ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
30
+ [a, "DualStack is enabled but this partition does not support DualStack"],
31
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
32
+ [a, "Invalid Configuration: Missing Region"],
33
+ ],
34
+ };
35
+ const root = 2;
36
+ const r = 100_000_000;
37
+ const nodes = new Int32Array([
38
+ -1,
39
+ 1,
40
+ -1,
41
+ 0,
42
+ 15,
43
+ 3,
44
+ 1,
45
+ 4,
46
+ r + 14,
47
+ 2,
48
+ 5,
49
+ r + 14,
50
+ 3,
51
+ 11,
52
+ 6,
53
+ 4,
54
+ 10,
55
+ 7,
56
+ 7,
57
+ r + 4,
58
+ 8,
59
+ 8,
60
+ r + 5,
61
+ 9,
62
+ 9,
63
+ r + 6,
64
+ r + 13,
65
+ 5,
66
+ r + 11,
67
+ r + 12,
68
+ 4,
69
+ 13,
70
+ 12,
71
+ 6,
72
+ r + 9,
73
+ r + 10,
74
+ 5,
75
+ 14,
76
+ r + 8,
77
+ 6,
78
+ r + 7,
79
+ r + 8,
80
+ 3,
81
+ r + 1,
82
+ 16,
83
+ 4,
84
+ r + 2,
85
+ r + 3,
86
+ ]);
87
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -0,0 +1,77 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const k = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [g]],
7
+ [c, j],
8
+ ["aws.partition", j, d],
9
+ [e, [{ [k]: "UseFIPS" }, b]],
10
+ [e, [{ [k]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
13
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
14
+ ],
15
+ results: [
16
+ [a],
17
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
19
+ [g, i],
20
+ ["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
21
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
22
+ ["https://portal.sso.{Region}.amazonaws.com", i],
23
+ ["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
24
+ [a, "FIPS is enabled but this partition does not support FIPS"],
25
+ ["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
26
+ [a, "DualStack is enabled but this partition does not support DualStack"],
27
+ ["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
28
+ [a, "Invalid Configuration: Missing Region"],
29
+ ],
30
+ };
31
+ const root = 2;
32
+ const r = 100_000_000;
33
+ const nodes = new Int32Array([
34
+ -1,
35
+ 1,
36
+ -1,
37
+ 0,
38
+ 13,
39
+ 3,
40
+ 1,
41
+ 4,
42
+ r + 12,
43
+ 2,
44
+ 5,
45
+ r + 12,
46
+ 3,
47
+ 8,
48
+ 6,
49
+ 4,
50
+ 7,
51
+ r + 11,
52
+ 5,
53
+ r + 9,
54
+ r + 10,
55
+ 4,
56
+ 11,
57
+ 9,
58
+ 6,
59
+ 10,
60
+ r + 8,
61
+ 7,
62
+ r + 6,
63
+ r + 7,
64
+ 5,
65
+ 12,
66
+ r + 5,
67
+ 6,
68
+ r + 4,
69
+ r + 5,
70
+ 3,
71
+ r + 1,
72
+ 14,
73
+ 4,
74
+ r + 2,
75
+ r + 3,
76
+ ]);
77
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -0,0 +1,77 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const k = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [g]],
7
+ [c, j],
8
+ ["aws.partition", j, d],
9
+ [e, [{ [k]: "UseFIPS" }, b]],
10
+ [e, [{ [k]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
13
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
14
+ ],
15
+ results: [
16
+ [a],
17
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
19
+ [g, i],
20
+ ["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
21
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
22
+ ["https://oidc.{Region}.amazonaws.com", i],
23
+ ["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
24
+ [a, "FIPS is enabled but this partition does not support FIPS"],
25
+ ["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
26
+ [a, "DualStack is enabled but this partition does not support DualStack"],
27
+ ["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
28
+ [a, "Invalid Configuration: Missing Region"],
29
+ ],
30
+ };
31
+ const root = 2;
32
+ const r = 100_000_000;
33
+ const nodes = new Int32Array([
34
+ -1,
35
+ 1,
36
+ -1,
37
+ 0,
38
+ 13,
39
+ 3,
40
+ 1,
41
+ 4,
42
+ r + 12,
43
+ 2,
44
+ 5,
45
+ r + 12,
46
+ 3,
47
+ 8,
48
+ 6,
49
+ 4,
50
+ 7,
51
+ r + 11,
52
+ 5,
53
+ r + 9,
54
+ r + 10,
55
+ 4,
56
+ 11,
57
+ 9,
58
+ 6,
59
+ 10,
60
+ r + 8,
61
+ 7,
62
+ r + 6,
63
+ r + 7,
64
+ 5,
65
+ 12,
66
+ r + 5,
67
+ 6,
68
+ r + 4,
69
+ r + 5,
70
+ 3,
71
+ r + 1,
72
+ 14,
73
+ 4,
74
+ r + 2,
75
+ r + 3,
76
+ ]);
77
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -40,6 +40,7 @@ export class STSClient extends __Client {
40
40
  httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
41
41
  identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
42
42
  "aws.auth#sigv4": config.credentials,
43
+ "aws.auth#sigv4a": config.credentials,
43
44
  }),
44
45
  }));
45
46
  this.middlewareStack.use(getHttpSigningPlugin(this.config));