agent-relay 4.0.33 → 4.0.35

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 (129) 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/setup.js +2 -2
  7. package/dist/src/cli/commands/setup.js.map +1 -1
  8. package/node_modules/@agent-relay/cloud/package.json +2 -2
  9. package/node_modules/@agent-relay/config/package.json +1 -1
  10. package/node_modules/@agent-relay/hooks/package.json +4 -4
  11. package/node_modules/@agent-relay/sdk/dist/workflows/runner.d.ts.map +1 -1
  12. package/node_modules/@agent-relay/sdk/dist/workflows/runner.js +7 -5
  13. package/node_modules/@agent-relay/sdk/dist/workflows/runner.js.map +1 -1
  14. package/node_modules/@agent-relay/sdk/package.json +3 -3
  15. package/node_modules/@agent-relay/telemetry/dist/config.d.ts +1 -1
  16. package/node_modules/@agent-relay/telemetry/dist/config.d.ts.map +1 -1
  17. package/node_modules/@agent-relay/telemetry/dist/config.js +6 -3
  18. package/node_modules/@agent-relay/telemetry/dist/config.js.map +1 -1
  19. package/node_modules/@agent-relay/telemetry/package.json +1 -1
  20. package/node_modules/@agent-relay/trajectory/package.json +2 -2
  21. package/node_modules/@agent-relay/user-directory/package.json +2 -2
  22. package/node_modules/@agent-relay/utils/package.json +2 -2
  23. package/node_modules/@aws-sdk/core/dist-cjs/index.js +18 -10
  24. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +18 -10
  25. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +6 -4
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +6 -3
  27. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  29. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -2
  30. package/node_modules/@aws-sdk/core/package.json +1 -1
  31. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  32. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  33. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  34. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  35. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  36. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  37. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  38. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  39. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
  40. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  41. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  42. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
  43. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
  44. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
  46. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
  47. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
  48. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +1 -0
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
  53. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
  54. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
  55. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
  58. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +87 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
  60. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +77 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
  62. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
  63. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
  64. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -0
  65. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
  66. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +147 -0
  67. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
  68. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +7 -1
  69. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
  70. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
  71. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
  72. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
  73. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
  74. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
  75. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
  76. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
  77. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
  78. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
  79. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
  80. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
  81. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
  82. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
  83. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
  84. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
  85. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
  86. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
  87. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
  88. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
  89. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
  90. package/node_modules/@aws-sdk/nested-clients/package.json +5 -4
  91. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  92. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  93. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  94. package/package.json +9 -9
  95. package/packages/cloud/package.json +2 -2
  96. package/packages/config/package.json +1 -1
  97. package/packages/hooks/package.json +4 -4
  98. package/packages/sdk/dist/workflows/runner.d.ts.map +1 -1
  99. package/packages/sdk/dist/workflows/runner.js +7 -5
  100. package/packages/sdk/dist/workflows/runner.js.map +1 -1
  101. package/packages/sdk/package.json +3 -3
  102. package/packages/telemetry/dist/config.d.ts +1 -1
  103. package/packages/telemetry/dist/config.d.ts.map +1 -1
  104. package/packages/telemetry/dist/config.js +6 -3
  105. package/packages/telemetry/dist/config.js.map +1 -1
  106. package/packages/telemetry/package.json +1 -1
  107. package/packages/trajectory/package.json +2 -2
  108. package/packages/user-directory/package.json +2 -2
  109. package/packages/utils/package.json +2 -2
  110. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
  111. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
  112. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
  113. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
  114. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
  115. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
  116. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
  117. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
  118. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
  119. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
  120. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
  121. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
  122. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
  123. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
  124. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
  125. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
  126. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
  127. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
  128. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
  129. 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));