@ampless/mcp-server 0.2.0-alpha.0 → 0.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bowser-WRHMEFK3.js +2822 -0
- package/dist/chunk-3NCQATCK.js +1385 -0
- package/dist/chunk-5PA6IP7O.js +435 -0
- package/dist/{chunk-27JGNXJE.js → chunk-6OXXSXKN.js} +8 -37
- package/dist/{chunk-YDYRXGHR.js → chunk-A4YPJIDF.js} +3 -3
- package/dist/chunk-CVNCRUML.js +1355 -0
- package/dist/chunk-IKXKDSVH.js +1414 -0
- package/dist/chunk-ISXSZYT4.js +1375 -0
- package/dist/{chunk-GSC7CBT2.js → chunk-IW52OUIR.js} +117 -1025
- package/dist/chunk-QBXY5RRO.js +3559 -0
- package/dist/chunk-UMEQ5ALV.js +14 -0
- package/dist/{chunk-OLRXGK7L.js → chunk-YHHXORQ4.js} +48 -32
- package/dist/{dist-es-J7V6TEWZ.js → dist-es-3P7CNKGV.js} +15 -16
- package/dist/{dist-es-6QUIY4X7.js → dist-es-NAMW5ZZ4.js} +21 -31
- package/dist/{dist-es-MQG4P6NF.js → dist-es-OI6XP2CN.js} +9 -10
- package/dist/{dist-es-W5H6GQXM.js → dist-es-OO5RVJZO.js} +10 -11
- package/dist/{dist-es-NGSDZSP2.js → dist-es-PRQWND46.js} +4 -3
- package/dist/{dist-es-2HK4JUU7.js → dist-es-T6J3WJJK.js} +32 -36
- package/dist/{dist-es-OYHIBJO3.js → dist-es-ZP52SD4G.js} +27 -32
- package/dist/event-streams-WFL2DK34.js +43 -0
- package/dist/index.js +2061 -2633
- package/dist/{loadSso-3FWOSWL4.js → loadSso-C2Y2WOQK.js} +56 -58
- package/dist/{signin-EATRRDTG.js → signin-IY5CLTYR.js} +59 -63
- package/dist/{sso-oidc-5GRHV5HA.js → sso-oidc-KZTDOR7Y.js} +59 -63
- package/dist/{sts-IMPWC7YM.js → sts-2UABQZ6D.js} +625 -740
- package/package.json +3 -3
- package/dist/chunk-44FZZOIP.js +0 -14
- package/dist/chunk-72G5HA35.js +0 -62
- package/dist/chunk-B57O737J.js +0 -52
- package/dist/chunk-E6YHJFDU.js +0 -44
- package/dist/chunk-FCBONYCH.js +0 -6008
- package/dist/chunk-GBNV7FEX.js +0 -164
- package/dist/chunk-MQF5MXOW.js +0 -1040
- package/dist/chunk-NZ2AQICN.js +0 -29
- package/dist/chunk-YVOTBVHL.js +0 -243
- package/dist/chunk-ZB7FTU7J.js +0 -39
- package/dist/event-streams-6T3GMAVH.js +0 -253
|
@@ -2,291 +2,516 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SignatureV4MultiRegion,
|
|
4
4
|
XmlShapeDeserializer
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
createAggregatedClient
|
|
8
|
-
} from "./chunk-B57O737J.js";
|
|
5
|
+
} from "./chunk-IW52OUIR.js";
|
|
9
6
|
import {
|
|
10
7
|
NoAuthSigner,
|
|
11
8
|
package_default
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6OXXSXKN.js";
|
|
13
10
|
import {
|
|
14
11
|
AwsSdkSigV4ASigner,
|
|
15
12
|
AwsSdkSigV4Signer,
|
|
13
|
+
DefaultIdentityProviderConfig,
|
|
14
|
+
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
15
|
+
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
16
|
+
ProtocolLib,
|
|
17
|
+
SerdeContextConfig,
|
|
18
|
+
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
19
|
+
getHttpSigningPlugin,
|
|
20
|
+
getSchemaSerdePlugin,
|
|
21
|
+
resolveAwsSdkSigV4AConfig,
|
|
22
|
+
resolveAwsSdkSigV4Config,
|
|
23
|
+
streamCollector
|
|
24
|
+
} from "./chunk-CVNCRUML.js";
|
|
25
|
+
import {
|
|
26
|
+
NodeHttpHandler
|
|
27
|
+
} from "./chunk-5PA6IP7O.js";
|
|
28
|
+
import {
|
|
29
|
+
DEFAULT_RETRY_MODE,
|
|
30
|
+
NODE_APP_ID_CONFIG_OPTIONS,
|
|
31
|
+
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
32
|
+
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
33
|
+
awsEndpointFunctions,
|
|
34
|
+
createDefaultUserAgentProvider,
|
|
35
|
+
emitWarningIfUnsupportedVersion,
|
|
36
|
+
getAwsRegionExtensionConfiguration,
|
|
37
|
+
getHostHeaderPlugin,
|
|
38
|
+
getLoggerPlugin,
|
|
39
|
+
getRecursionDetectionPlugin,
|
|
40
|
+
getRetryPlugin,
|
|
41
|
+
getUserAgentPlugin,
|
|
42
|
+
resolveAwsRegionExtensionConfiguration,
|
|
43
|
+
resolveHostHeaderConfig,
|
|
44
|
+
resolveRetryConfig,
|
|
45
|
+
resolveUserAgentConfig,
|
|
46
|
+
setCredentialFeature,
|
|
47
|
+
stsRegionDefaultResolver
|
|
48
|
+
} from "./chunk-ISXSZYT4.js";
|
|
49
|
+
import {
|
|
16
50
|
BinaryDecisionDiagram,
|
|
17
51
|
Client,
|
|
18
52
|
Command,
|
|
19
|
-
DEFAULT_RETRY_MODE,
|
|
20
|
-
DefaultIdentityProviderConfig,
|
|
21
53
|
EndpointCache,
|
|
22
|
-
Hash,
|
|
23
|
-
HttpProtocol,
|
|
24
|
-
NODE_APP_ID_CONFIG_OPTIONS,
|
|
25
|
-
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
26
|
-
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
27
54
|
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
28
55
|
NODE_REGION_CONFIG_OPTIONS,
|
|
29
|
-
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
30
|
-
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
31
56
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
32
57
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
33
58
|
NoOpLogger,
|
|
34
59
|
NormalizedSchema,
|
|
35
|
-
|
|
36
|
-
ProtocolLib,
|
|
37
|
-
SerdeContextConfig,
|
|
60
|
+
RpcProtocol,
|
|
38
61
|
ServiceException,
|
|
39
62
|
TypeRegistry,
|
|
40
|
-
awsEndpointFunctions,
|
|
41
|
-
calculateBodyLength,
|
|
42
63
|
collectBody,
|
|
43
|
-
|
|
64
|
+
createAggregatedClient,
|
|
44
65
|
customEndpointFunctions,
|
|
45
66
|
decideEndpoint,
|
|
46
67
|
deref,
|
|
47
68
|
determineTimestampFormat,
|
|
48
|
-
emitWarningIfUnsupportedVersion,
|
|
49
|
-
emitWarningIfUnsupportedVersion2,
|
|
69
|
+
emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion2,
|
|
50
70
|
extendedEncodeURIComponent,
|
|
51
|
-
getAwsRegionExtensionConfiguration,
|
|
52
71
|
getContentLengthPlugin,
|
|
53
72
|
getDefaultExtensionConfiguration,
|
|
54
73
|
getEndpointPlugin,
|
|
55
|
-
getHostHeaderPlugin,
|
|
56
|
-
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
57
74
|
getHttpHandlerExtensionConfiguration,
|
|
58
|
-
getHttpSigningPlugin,
|
|
59
|
-
getLoggerPlugin,
|
|
60
|
-
getRecursionDetectionPlugin,
|
|
61
|
-
getRetryPlugin,
|
|
62
|
-
getSchemaSerdePlugin,
|
|
63
75
|
getSmithyContext,
|
|
64
|
-
|
|
76
|
+
loadConfig,
|
|
65
77
|
loadConfigsForDefaultMode,
|
|
66
78
|
normalizeProvider,
|
|
67
|
-
|
|
68
|
-
resolveAwsSdkSigV4AConfig,
|
|
69
|
-
resolveAwsSdkSigV4Config,
|
|
79
|
+
parseUrl,
|
|
70
80
|
resolveDefaultRuntimeConfig,
|
|
71
81
|
resolveDefaultsModeConfig,
|
|
72
82
|
resolveEndpointConfig,
|
|
73
|
-
resolveHostHeaderConfig,
|
|
74
83
|
resolveHttpHandlerRuntimeConfig,
|
|
75
84
|
resolveParams,
|
|
76
|
-
resolveRegionConfig
|
|
77
|
-
|
|
78
|
-
resolveUserAgentConfig,
|
|
79
|
-
v4
|
|
80
|
-
} from "./chunk-FCBONYCH.js";
|
|
81
|
-
import {
|
|
82
|
-
loadConfig,
|
|
83
|
-
parseUrl
|
|
84
|
-
} from "./chunk-GBNV7FEX.js";
|
|
85
|
-
import "./chunk-NZ2AQICN.js";
|
|
85
|
+
resolveRegionConfig
|
|
86
|
+
} from "./chunk-QBXY5RRO.js";
|
|
86
87
|
import {
|
|
87
|
-
|
|
88
|
+
Hash,
|
|
89
|
+
NumericValue,
|
|
90
|
+
calculateBodyLength,
|
|
88
91
|
dateToUtcString,
|
|
89
92
|
fromBase64,
|
|
90
|
-
streamCollector,
|
|
91
|
-
toBase64
|
|
92
|
-
} from "./chunk-MQF5MXOW.js";
|
|
93
|
-
import {
|
|
94
|
-
HttpRequest
|
|
95
|
-
} from "./chunk-72G5HA35.js";
|
|
96
|
-
import {
|
|
97
93
|
fromUtf8,
|
|
94
|
+
generateIdempotencyToken,
|
|
95
|
+
toBase64,
|
|
98
96
|
toUtf8
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import "./chunk-YVOTBVHL.js";
|
|
101
|
-
import {
|
|
102
|
-
setCredentialFeature
|
|
103
|
-
} from "./chunk-44FZZOIP.js";
|
|
104
|
-
import "./chunk-ZB7FTU7J.js";
|
|
97
|
+
} from "./chunk-IKXKDSVH.js";
|
|
105
98
|
import "./chunk-LMMQX4CK.js";
|
|
106
99
|
|
|
107
|
-
// ../../node_modules/.pnpm/@
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
|
|
171
|
-
}
|
|
172
|
-
for (const header in response.headers) {
|
|
173
|
-
const value = response.headers[header];
|
|
174
|
-
delete response.headers[header];
|
|
175
|
-
response.headers[header.toLowerCase()] = value;
|
|
176
|
-
}
|
|
177
|
-
const eventStreamMember = ns.getEventStreamMember();
|
|
178
|
-
if (eventStreamMember) {
|
|
179
|
-
dataObject[eventStreamMember] = await this.deserializeEventStream({
|
|
180
|
-
response,
|
|
181
|
-
responseSchema: ns,
|
|
182
|
-
initialResponseContainer: dataObject
|
|
183
|
-
});
|
|
184
|
-
} else {
|
|
185
|
-
const bytes = await collectBody(response.body, context);
|
|
186
|
-
if (bytes.byteLength > 0) {
|
|
187
|
-
Object.assign(dataObject, await deserializer.read(ns, bytes));
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
dataObject.$metadata = this.deserializeMetadata(response);
|
|
191
|
-
return dataObject;
|
|
192
|
-
}
|
|
100
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js
|
|
101
|
+
var q = "ref";
|
|
102
|
+
var a = -1;
|
|
103
|
+
var b = true;
|
|
104
|
+
var c = "isSet";
|
|
105
|
+
var d = "PartitionResult";
|
|
106
|
+
var e = "booleanEquals";
|
|
107
|
+
var f = "stringEquals";
|
|
108
|
+
var g = "getAttr";
|
|
109
|
+
var h = "us-east-1";
|
|
110
|
+
var i = "sigv4";
|
|
111
|
+
var j = "sts";
|
|
112
|
+
var k = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
|
|
113
|
+
var l = { [q]: "Endpoint" };
|
|
114
|
+
var m = { [q]: "Region" };
|
|
115
|
+
var n = { [q]: d };
|
|
116
|
+
var o = {};
|
|
117
|
+
var p = [m];
|
|
118
|
+
var _data = {
|
|
119
|
+
conditions: [
|
|
120
|
+
[c, [l]],
|
|
121
|
+
[c, p],
|
|
122
|
+
["aws.partition", p, d],
|
|
123
|
+
[e, [{ [q]: "UseFIPS" }, b]],
|
|
124
|
+
[e, [{ [q]: "UseDualStack" }, b]],
|
|
125
|
+
[f, [m, "aws-global"]],
|
|
126
|
+
[e, [{ [q]: "UseGlobalEndpoint" }, b]],
|
|
127
|
+
[f, [m, "eu-central-1"]],
|
|
128
|
+
[e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]],
|
|
129
|
+
[e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]],
|
|
130
|
+
[f, [m, "ap-south-1"]],
|
|
131
|
+
[f, [m, "eu-north-1"]],
|
|
132
|
+
[f, [m, "eu-west-1"]],
|
|
133
|
+
[f, [m, "eu-west-2"]],
|
|
134
|
+
[f, [m, "eu-west-3"]],
|
|
135
|
+
[f, [m, "sa-east-1"]],
|
|
136
|
+
[f, [m, h]],
|
|
137
|
+
[f, [m, "us-east-2"]],
|
|
138
|
+
[f, [m, "us-west-2"]],
|
|
139
|
+
[f, [m, "us-west-1"]],
|
|
140
|
+
[f, [m, "ca-central-1"]],
|
|
141
|
+
[f, [m, "ap-southeast-1"]],
|
|
142
|
+
[f, [m, "ap-northeast-1"]],
|
|
143
|
+
[f, [m, "ap-southeast-2"]],
|
|
144
|
+
[f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]]
|
|
145
|
+
],
|
|
146
|
+
results: [
|
|
147
|
+
[a],
|
|
148
|
+
["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }],
|
|
149
|
+
[k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }],
|
|
150
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
151
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
152
|
+
[l, o],
|
|
153
|
+
["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
154
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
155
|
+
["https://sts.{Region}.amazonaws.com", o],
|
|
156
|
+
["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
|
|
157
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
158
|
+
["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
159
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
160
|
+
[k, o],
|
|
161
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
162
|
+
]
|
|
193
163
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
164
|
+
var root = 2;
|
|
165
|
+
var r = 1e8;
|
|
166
|
+
var nodes = new Int32Array([
|
|
167
|
+
-1,
|
|
168
|
+
1,
|
|
169
|
+
-1,
|
|
170
|
+
0,
|
|
171
|
+
30,
|
|
172
|
+
3,
|
|
173
|
+
1,
|
|
174
|
+
4,
|
|
175
|
+
r + 14,
|
|
176
|
+
2,
|
|
177
|
+
5,
|
|
178
|
+
r + 14,
|
|
179
|
+
3,
|
|
180
|
+
25,
|
|
181
|
+
6,
|
|
182
|
+
4,
|
|
183
|
+
24,
|
|
184
|
+
7,
|
|
185
|
+
5,
|
|
186
|
+
r + 1,
|
|
187
|
+
8,
|
|
188
|
+
6,
|
|
189
|
+
9,
|
|
190
|
+
r + 13,
|
|
191
|
+
7,
|
|
192
|
+
r + 1,
|
|
193
|
+
10,
|
|
194
|
+
10,
|
|
195
|
+
r + 1,
|
|
196
|
+
11,
|
|
197
|
+
11,
|
|
198
|
+
r + 1,
|
|
199
|
+
12,
|
|
200
|
+
12,
|
|
201
|
+
r + 1,
|
|
202
|
+
13,
|
|
203
|
+
13,
|
|
204
|
+
r + 1,
|
|
205
|
+
14,
|
|
206
|
+
14,
|
|
207
|
+
r + 1,
|
|
208
|
+
15,
|
|
209
|
+
15,
|
|
210
|
+
r + 1,
|
|
211
|
+
16,
|
|
212
|
+
16,
|
|
213
|
+
r + 1,
|
|
214
|
+
17,
|
|
215
|
+
17,
|
|
216
|
+
r + 1,
|
|
217
|
+
18,
|
|
218
|
+
18,
|
|
219
|
+
r + 1,
|
|
220
|
+
19,
|
|
221
|
+
19,
|
|
222
|
+
r + 1,
|
|
223
|
+
20,
|
|
224
|
+
20,
|
|
225
|
+
r + 1,
|
|
226
|
+
21,
|
|
227
|
+
21,
|
|
228
|
+
r + 1,
|
|
229
|
+
22,
|
|
230
|
+
22,
|
|
231
|
+
r + 1,
|
|
232
|
+
23,
|
|
233
|
+
23,
|
|
234
|
+
r + 1,
|
|
235
|
+
r + 2,
|
|
236
|
+
8,
|
|
237
|
+
r + 11,
|
|
238
|
+
r + 12,
|
|
239
|
+
4,
|
|
240
|
+
28,
|
|
241
|
+
26,
|
|
242
|
+
9,
|
|
243
|
+
27,
|
|
244
|
+
r + 10,
|
|
245
|
+
24,
|
|
246
|
+
r + 8,
|
|
247
|
+
r + 9,
|
|
248
|
+
8,
|
|
249
|
+
29,
|
|
250
|
+
r + 7,
|
|
251
|
+
9,
|
|
252
|
+
r + 6,
|
|
253
|
+
r + 7,
|
|
254
|
+
3,
|
|
255
|
+
r + 3,
|
|
256
|
+
31,
|
|
257
|
+
4,
|
|
258
|
+
r + 4,
|
|
259
|
+
r + 5
|
|
260
|
+
]);
|
|
261
|
+
var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
262
|
+
|
|
263
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js
|
|
264
|
+
var cache = new EndpointCache({
|
|
265
|
+
size: 50,
|
|
266
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"]
|
|
267
|
+
});
|
|
268
|
+
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
269
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
270
|
+
endpointParams,
|
|
271
|
+
logger: context.logger
|
|
272
|
+
}));
|
|
273
|
+
};
|
|
274
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
275
|
+
|
|
276
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js
|
|
277
|
+
var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
278
|
+
if (!input) {
|
|
279
|
+
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
280
|
+
}
|
|
281
|
+
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
282
|
+
const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
|
|
283
|
+
if (!instructionsFn) {
|
|
284
|
+
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
285
|
+
}
|
|
286
|
+
const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
287
|
+
return Object.assign(defaultParameters, endpointParameters);
|
|
288
|
+
};
|
|
289
|
+
var _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
290
|
+
return {
|
|
291
|
+
operation: getSmithyContext(context).operation,
|
|
292
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
293
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
294
|
+
})()
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
var defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
|
|
298
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
299
|
+
return {
|
|
300
|
+
schemeId: "aws.auth#sigv4",
|
|
301
|
+
signingProperties: {
|
|
302
|
+
name: "sts",
|
|
303
|
+
region: authParameters.region
|
|
304
|
+
},
|
|
305
|
+
propertiesExtractor: (config, context) => ({
|
|
306
|
+
signingProperties: {
|
|
307
|
+
config,
|
|
308
|
+
context
|
|
309
|
+
}
|
|
310
|
+
})
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
function createAwsAuthSigv4aHttpAuthOption(authParameters) {
|
|
314
|
+
return {
|
|
315
|
+
schemeId: "aws.auth#sigv4a",
|
|
316
|
+
signingProperties: {
|
|
317
|
+
name: "sts",
|
|
318
|
+
region: authParameters.region
|
|
319
|
+
},
|
|
320
|
+
propertiesExtractor: (config, context) => ({
|
|
321
|
+
signingProperties: {
|
|
322
|
+
config,
|
|
323
|
+
context
|
|
324
|
+
}
|
|
325
|
+
})
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
329
|
+
return {
|
|
330
|
+
schemeId: "smithy.api#noAuth"
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
var createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver2, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
|
|
334
|
+
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
|
|
335
|
+
const endpoint = defaultEndpointResolver2(authParameters);
|
|
336
|
+
const authSchemes = endpoint.properties?.authSchemes;
|
|
337
|
+
if (!authSchemes) {
|
|
338
|
+
return defaultHttpAuthSchemeResolver(authParameters);
|
|
339
|
+
}
|
|
340
|
+
const options = [];
|
|
341
|
+
for (const scheme of authSchemes) {
|
|
342
|
+
const { name: resolvedName, properties = {}, ...rest } = scheme;
|
|
343
|
+
const name = resolvedName.toLowerCase();
|
|
344
|
+
if (resolvedName !== name) {
|
|
345
|
+
console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
|
|
346
|
+
}
|
|
347
|
+
let schemeId;
|
|
348
|
+
if (name === "sigv4a") {
|
|
349
|
+
schemeId = "aws.auth#sigv4a";
|
|
350
|
+
const sigv4Present = authSchemes.find((s) => {
|
|
351
|
+
const name2 = s.name.toLowerCase();
|
|
352
|
+
return name2 !== "sigv4a" && name2.startsWith("sigv4");
|
|
353
|
+
});
|
|
354
|
+
if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
} else if (name.startsWith("sigv4")) {
|
|
358
|
+
schemeId = "aws.auth#sigv4";
|
|
359
|
+
} else {
|
|
360
|
+
throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
|
|
361
|
+
}
|
|
362
|
+
const createOption = createHttpAuthOptionFunctions[schemeId];
|
|
363
|
+
if (!createOption) {
|
|
364
|
+
throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
|
|
365
|
+
}
|
|
366
|
+
const option = createOption(authParameters);
|
|
367
|
+
option.schemeId = schemeId;
|
|
368
|
+
option.signingProperties = { ...option.signingProperties || {}, ...rest, ...properties };
|
|
369
|
+
options.push(option);
|
|
370
|
+
}
|
|
371
|
+
return options;
|
|
372
|
+
};
|
|
373
|
+
return endpointRuleSetHttpAuthSchemeProvider;
|
|
374
|
+
};
|
|
375
|
+
var _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
376
|
+
const options = [];
|
|
377
|
+
switch (authParameters.operation) {
|
|
378
|
+
case "AssumeRoleWithWebIdentity": {
|
|
379
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
380
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
default: {
|
|
384
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
385
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
return options;
|
|
389
|
+
};
|
|
390
|
+
var defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
|
|
391
|
+
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
392
|
+
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
393
|
+
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption
|
|
394
|
+
});
|
|
395
|
+
var resolveHttpAuthSchemeConfig = (config) => {
|
|
396
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
397
|
+
const config_1 = resolveAwsSdkSigV4AConfig(config_0);
|
|
398
|
+
return Object.assign(config_1, {
|
|
399
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js
|
|
404
|
+
var resolveClientEndpointParameters = (options) => {
|
|
405
|
+
return Object.assign(options, {
|
|
406
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
407
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
408
|
+
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
409
|
+
defaultSigningName: "sts"
|
|
410
|
+
});
|
|
411
|
+
};
|
|
412
|
+
var commonParams = {
|
|
413
|
+
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
414
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
415
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
416
|
+
Region: { type: "builtInParams", name: "region" },
|
|
417
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js
|
|
421
|
+
var QueryShapeSerializer = class extends SerdeContextConfig {
|
|
422
|
+
settings;
|
|
423
|
+
buffer;
|
|
424
|
+
constructor(settings) {
|
|
425
|
+
super();
|
|
426
|
+
this.settings = settings;
|
|
427
|
+
}
|
|
428
|
+
write(schema, value, prefix = "") {
|
|
429
|
+
if (this.buffer === void 0) {
|
|
430
|
+
this.buffer = "";
|
|
431
|
+
}
|
|
432
|
+
const ns = NormalizedSchema.of(schema);
|
|
433
|
+
if (prefix && !prefix.endsWith(".")) {
|
|
434
|
+
prefix += ".";
|
|
435
|
+
}
|
|
436
|
+
if (ns.isBlobSchema()) {
|
|
437
|
+
if (typeof value === "string" || value instanceof Uint8Array) {
|
|
438
|
+
this.writeKey(prefix);
|
|
439
|
+
this.writeValue((this.serdeContext?.base64Encoder ?? toBase64)(value));
|
|
440
|
+
}
|
|
441
|
+
} else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
|
|
442
|
+
if (value != null) {
|
|
443
|
+
this.writeKey(prefix);
|
|
444
|
+
this.writeValue(String(value));
|
|
445
|
+
} else if (ns.isIdempotencyToken()) {
|
|
446
|
+
this.writeKey(prefix);
|
|
447
|
+
this.writeValue(generateIdempotencyToken());
|
|
448
|
+
}
|
|
449
|
+
} else if (ns.isBigIntegerSchema()) {
|
|
450
|
+
if (value != null) {
|
|
451
|
+
this.writeKey(prefix);
|
|
452
|
+
this.writeValue(String(value));
|
|
453
|
+
}
|
|
454
|
+
} else if (ns.isBigDecimalSchema()) {
|
|
455
|
+
if (value != null) {
|
|
456
|
+
this.writeKey(prefix);
|
|
457
|
+
this.writeValue(value instanceof NumericValue ? value.string : String(value));
|
|
458
|
+
}
|
|
459
|
+
} else if (ns.isTimestampSchema()) {
|
|
460
|
+
if (value instanceof Date) {
|
|
461
|
+
this.writeKey(prefix);
|
|
462
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
463
|
+
switch (format) {
|
|
464
|
+
case 5:
|
|
465
|
+
this.writeValue(value.toISOString().replace(".000Z", "Z"));
|
|
466
|
+
break;
|
|
467
|
+
case 6:
|
|
468
|
+
this.writeValue(dateToUtcString(value));
|
|
469
|
+
break;
|
|
470
|
+
case 7:
|
|
471
|
+
this.writeValue(String(value.getTime() / 1e3));
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
} else if (ns.isDocumentSchema()) {
|
|
476
|
+
if (Array.isArray(value)) {
|
|
477
|
+
this.write(64 | 15, value, prefix);
|
|
478
|
+
} else if (value instanceof Date) {
|
|
479
|
+
this.write(4, value, prefix);
|
|
480
|
+
} else if (value instanceof Uint8Array) {
|
|
481
|
+
this.write(21, value, prefix);
|
|
482
|
+
} else if (value && typeof value === "object") {
|
|
483
|
+
this.write(128 | 15, value, prefix);
|
|
484
|
+
} else {
|
|
485
|
+
this.writeKey(prefix);
|
|
486
|
+
this.writeValue(String(value));
|
|
487
|
+
}
|
|
488
|
+
} else if (ns.isListSchema()) {
|
|
489
|
+
if (Array.isArray(value)) {
|
|
490
|
+
if (value.length === 0) {
|
|
491
|
+
if (this.settings.serializeEmptyLists) {
|
|
492
|
+
this.writeKey(prefix);
|
|
493
|
+
this.writeValue("");
|
|
494
|
+
}
|
|
495
|
+
} else {
|
|
496
|
+
const member = ns.getValueSchema();
|
|
497
|
+
const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
|
|
498
|
+
let i2 = 1;
|
|
499
|
+
for (const item of value) {
|
|
500
|
+
if (item == null) {
|
|
501
|
+
continue;
|
|
502
|
+
}
|
|
503
|
+
const traits = member.getMergedTraits();
|
|
504
|
+
const suffix = this.getKey("member", traits.xmlName, traits.ec2QueryName);
|
|
505
|
+
const key = flat ? `${prefix}${i2}` : `${prefix}${suffix}.${i2}`;
|
|
506
|
+
this.write(member, item, key);
|
|
507
|
+
++i2;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
} else if (ns.isMapSchema()) {
|
|
512
|
+
if (value && typeof value === "object") {
|
|
513
|
+
const keySchema = ns.getKeySchema();
|
|
514
|
+
const memberSchema = ns.getValueSchema();
|
|
290
515
|
const flat = ns.getMergedTraits().xmlFlattened;
|
|
291
516
|
let i2 = 1;
|
|
292
517
|
for (const k2 in value) {
|
|
@@ -325,498 +550,174 @@ var QueryShapeSerializer = class extends SerdeContextConfig {
|
|
|
325
550
|
const key = `${prefix}${k2}`;
|
|
326
551
|
this.write(15, v, key);
|
|
327
552
|
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
} else if (ns.isUnitSchema()) {
|
|
331
|
-
} else {
|
|
332
|
-
throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
flush() {
|
|
336
|
-
if (this.buffer === void 0) {
|
|
337
|
-
throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
|
|
338
|
-
}
|
|
339
|
-
const str = this.buffer;
|
|
340
|
-
delete this.buffer;
|
|
341
|
-
return str;
|
|
342
|
-
}
|
|
343
|
-
getKey(memberName, xmlName, ec2QueryName, keySource) {
|
|
344
|
-
const { ec2, capitalizeKeys } = this.settings;
|
|
345
|
-
if (ec2 && ec2QueryName) {
|
|
346
|
-
return ec2QueryName;
|
|
347
|
-
}
|
|
348
|
-
const key = xmlName ?? memberName;
|
|
349
|
-
if (capitalizeKeys && keySource === "struct") {
|
|
350
|
-
return key[0].toUpperCase() + key.slice(1);
|
|
351
|
-
}
|
|
352
|
-
return key;
|
|
353
|
-
}
|
|
354
|
-
writeKey(key) {
|
|
355
|
-
if (key.endsWith(".")) {
|
|
356
|
-
key = key.slice(0, key.length - 1);
|
|
357
|
-
}
|
|
358
|
-
this.buffer += `&${extendedEncodeURIComponent(key)}=`;
|
|
359
|
-
}
|
|
360
|
-
writeValue(value) {
|
|
361
|
-
this.buffer += extendedEncodeURIComponent(value);
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.7/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js
|
|
366
|
-
var AwsQueryProtocol = class extends RpcProtocol {
|
|
367
|
-
options;
|
|
368
|
-
serializer;
|
|
369
|
-
deserializer;
|
|
370
|
-
mixin = new ProtocolLib();
|
|
371
|
-
constructor(options) {
|
|
372
|
-
super({
|
|
373
|
-
defaultNamespace: options.defaultNamespace,
|
|
374
|
-
errorTypeRegistries: options.errorTypeRegistries
|
|
375
|
-
});
|
|
376
|
-
this.options = options;
|
|
377
|
-
const settings = {
|
|
378
|
-
timestampFormat: {
|
|
379
|
-
useTrait: true,
|
|
380
|
-
default: 5
|
|
381
|
-
},
|
|
382
|
-
httpBindings: false,
|
|
383
|
-
xmlNamespace: options.xmlNamespace,
|
|
384
|
-
serviceNamespace: options.defaultNamespace,
|
|
385
|
-
serializeEmptyLists: true
|
|
386
|
-
};
|
|
387
|
-
this.serializer = new QueryShapeSerializer(settings);
|
|
388
|
-
this.deserializer = new XmlShapeDeserializer(settings);
|
|
389
|
-
}
|
|
390
|
-
getShapeId() {
|
|
391
|
-
return "aws.protocols#awsQuery";
|
|
392
|
-
}
|
|
393
|
-
setSerdeContext(serdeContext) {
|
|
394
|
-
this.serializer.setSerdeContext(serdeContext);
|
|
395
|
-
this.deserializer.setSerdeContext(serdeContext);
|
|
396
|
-
}
|
|
397
|
-
getPayloadCodec() {
|
|
398
|
-
throw new Error("AWSQuery protocol has no payload codec.");
|
|
399
|
-
}
|
|
400
|
-
async serializeRequest(operationSchema, input, context) {
|
|
401
|
-
const request = await super.serializeRequest(operationSchema, input, context);
|
|
402
|
-
if (!request.path.endsWith("/")) {
|
|
403
|
-
request.path += "/";
|
|
404
|
-
}
|
|
405
|
-
request.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
406
|
-
if (deref(operationSchema.input) === "unit" || !request.body) {
|
|
407
|
-
request.body = "";
|
|
408
|
-
}
|
|
409
|
-
const action = operationSchema.name.split("#")[1] ?? operationSchema.name;
|
|
410
|
-
request.body = `Action=${action}&Version=${this.options.version}` + request.body;
|
|
411
|
-
if (request.body.endsWith("&")) {
|
|
412
|
-
request.body = request.body.slice(-1);
|
|
413
|
-
}
|
|
414
|
-
return request;
|
|
415
|
-
}
|
|
416
|
-
async deserializeResponse(operationSchema, context, response) {
|
|
417
|
-
const deserializer = this.deserializer;
|
|
418
|
-
const ns = NormalizedSchema.of(operationSchema.output);
|
|
419
|
-
const dataObject = {};
|
|
420
|
-
if (response.statusCode >= 300) {
|
|
421
|
-
const bytes2 = await collectBody(response.body, context);
|
|
422
|
-
if (bytes2.byteLength > 0) {
|
|
423
|
-
Object.assign(dataObject, await deserializer.read(15, bytes2));
|
|
553
|
+
}
|
|
424
554
|
}
|
|
425
|
-
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
const value = response.headers[header];
|
|
429
|
-
delete response.headers[header];
|
|
430
|
-
response.headers[header.toLowerCase()] = value;
|
|
431
|
-
}
|
|
432
|
-
const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name;
|
|
433
|
-
const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : void 0;
|
|
434
|
-
const bytes = await collectBody(response.body, context);
|
|
435
|
-
if (bytes.byteLength > 0) {
|
|
436
|
-
Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
|
|
555
|
+
} else if (ns.isUnitSchema()) {
|
|
556
|
+
} else {
|
|
557
|
+
throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
|
|
437
558
|
}
|
|
438
|
-
dataObject.$metadata = this.deserializeMetadata(response);
|
|
439
|
-
return dataObject;
|
|
440
|
-
}
|
|
441
|
-
useNestedResult() {
|
|
442
|
-
return true;
|
|
443
559
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
const errorData = this.loadQueryError(dataObject) ?? {};
|
|
448
|
-
const message = this.loadQueryErrorMessage(dataObject);
|
|
449
|
-
errorData.message = message;
|
|
450
|
-
errorData.Error = {
|
|
451
|
-
Type: errorData.Type,
|
|
452
|
-
Code: errorData.Code,
|
|
453
|
-
Message: message
|
|
454
|
-
};
|
|
455
|
-
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
|
|
456
|
-
const ns = NormalizedSchema.of(errorSchema);
|
|
457
|
-
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
458
|
-
const exception = new ErrorCtor(message);
|
|
459
|
-
const output = {
|
|
460
|
-
Type: errorData.Error.Type,
|
|
461
|
-
Code: errorData.Error.Code,
|
|
462
|
-
Error: errorData.Error
|
|
463
|
-
};
|
|
464
|
-
for (const [name, member] of ns.structIterator()) {
|
|
465
|
-
const target = member.getMergedTraits().xmlName ?? name;
|
|
466
|
-
const value = errorData[target] ?? dataObject[target];
|
|
467
|
-
output[name] = this.deserializer.readSchema(member, value);
|
|
560
|
+
flush() {
|
|
561
|
+
if (this.buffer === void 0) {
|
|
562
|
+
throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
|
|
468
563
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}, output), dataObject);
|
|
564
|
+
const str = this.buffer;
|
|
565
|
+
delete this.buffer;
|
|
566
|
+
return str;
|
|
473
567
|
}
|
|
474
|
-
|
|
475
|
-
const
|
|
476
|
-
if (
|
|
477
|
-
return
|
|
568
|
+
getKey(memberName, xmlName, ec2QueryName, keySource) {
|
|
569
|
+
const { ec2, capitalizeKeys } = this.settings;
|
|
570
|
+
if (ec2 && ec2QueryName) {
|
|
571
|
+
return ec2QueryName;
|
|
478
572
|
}
|
|
479
|
-
|
|
480
|
-
|
|
573
|
+
const key = xmlName ?? memberName;
|
|
574
|
+
if (capitalizeKeys && keySource === "struct") {
|
|
575
|
+
return key[0].toUpperCase() + key.slice(1);
|
|
481
576
|
}
|
|
577
|
+
return key;
|
|
482
578
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
return "application/x-www-form-urlencoded";
|
|
579
|
+
writeKey(key) {
|
|
580
|
+
if (key.endsWith(".")) {
|
|
581
|
+
key = key.slice(0, key.length - 1);
|
|
582
|
+
}
|
|
583
|
+
this.buffer += `&${extendedEncodeURIComponent(key)}=`;
|
|
584
|
+
}
|
|
585
|
+
writeValue(value) {
|
|
586
|
+
this.buffer += extendedEncodeURIComponent(value);
|
|
492
587
|
}
|
|
493
588
|
};
|
|
494
589
|
|
|
495
|
-
// ../../node_modules/.pnpm/@aws-sdk+
|
|
496
|
-
var
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
[e, [{ [q]: "UseDualStack" }, b]],
|
|
520
|
-
[f, [m, "aws-global"]],
|
|
521
|
-
[e, [{ [q]: "UseGlobalEndpoint" }, b]],
|
|
522
|
-
[f, [m, "eu-central-1"]],
|
|
523
|
-
[e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]],
|
|
524
|
-
[e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]],
|
|
525
|
-
[f, [m, "ap-south-1"]],
|
|
526
|
-
[f, [m, "eu-north-1"]],
|
|
527
|
-
[f, [m, "eu-west-1"]],
|
|
528
|
-
[f, [m, "eu-west-2"]],
|
|
529
|
-
[f, [m, "eu-west-3"]],
|
|
530
|
-
[f, [m, "sa-east-1"]],
|
|
531
|
-
[f, [m, h]],
|
|
532
|
-
[f, [m, "us-east-2"]],
|
|
533
|
-
[f, [m, "us-west-2"]],
|
|
534
|
-
[f, [m, "us-west-1"]],
|
|
535
|
-
[f, [m, "ca-central-1"]],
|
|
536
|
-
[f, [m, "ap-southeast-1"]],
|
|
537
|
-
[f, [m, "ap-northeast-1"]],
|
|
538
|
-
[f, [m, "ap-southeast-2"]],
|
|
539
|
-
[f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]]
|
|
540
|
-
],
|
|
541
|
-
results: [
|
|
542
|
-
[a],
|
|
543
|
-
["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }],
|
|
544
|
-
[k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }],
|
|
545
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
546
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
547
|
-
[l, o],
|
|
548
|
-
["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
549
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
550
|
-
["https://sts.{Region}.amazonaws.com", o],
|
|
551
|
-
["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
|
|
552
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
553
|
-
["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
554
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
555
|
-
[k, o],
|
|
556
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
557
|
-
]
|
|
558
|
-
};
|
|
559
|
-
var root = 2;
|
|
560
|
-
var r = 1e8;
|
|
561
|
-
var nodes = new Int32Array([
|
|
562
|
-
-1,
|
|
563
|
-
1,
|
|
564
|
-
-1,
|
|
565
|
-
0,
|
|
566
|
-
30,
|
|
567
|
-
3,
|
|
568
|
-
1,
|
|
569
|
-
4,
|
|
570
|
-
r + 14,
|
|
571
|
-
2,
|
|
572
|
-
5,
|
|
573
|
-
r + 14,
|
|
574
|
-
3,
|
|
575
|
-
25,
|
|
576
|
-
6,
|
|
577
|
-
4,
|
|
578
|
-
24,
|
|
579
|
-
7,
|
|
580
|
-
5,
|
|
581
|
-
r + 1,
|
|
582
|
-
8,
|
|
583
|
-
6,
|
|
584
|
-
9,
|
|
585
|
-
r + 13,
|
|
586
|
-
7,
|
|
587
|
-
r + 1,
|
|
588
|
-
10,
|
|
589
|
-
10,
|
|
590
|
-
r + 1,
|
|
591
|
-
11,
|
|
592
|
-
11,
|
|
593
|
-
r + 1,
|
|
594
|
-
12,
|
|
595
|
-
12,
|
|
596
|
-
r + 1,
|
|
597
|
-
13,
|
|
598
|
-
13,
|
|
599
|
-
r + 1,
|
|
600
|
-
14,
|
|
601
|
-
14,
|
|
602
|
-
r + 1,
|
|
603
|
-
15,
|
|
604
|
-
15,
|
|
605
|
-
r + 1,
|
|
606
|
-
16,
|
|
607
|
-
16,
|
|
608
|
-
r + 1,
|
|
609
|
-
17,
|
|
610
|
-
17,
|
|
611
|
-
r + 1,
|
|
612
|
-
18,
|
|
613
|
-
18,
|
|
614
|
-
r + 1,
|
|
615
|
-
19,
|
|
616
|
-
19,
|
|
617
|
-
r + 1,
|
|
618
|
-
20,
|
|
619
|
-
20,
|
|
620
|
-
r + 1,
|
|
621
|
-
21,
|
|
622
|
-
21,
|
|
623
|
-
r + 1,
|
|
624
|
-
22,
|
|
625
|
-
22,
|
|
626
|
-
r + 1,
|
|
627
|
-
23,
|
|
628
|
-
23,
|
|
629
|
-
r + 1,
|
|
630
|
-
r + 2,
|
|
631
|
-
8,
|
|
632
|
-
r + 11,
|
|
633
|
-
r + 12,
|
|
634
|
-
4,
|
|
635
|
-
28,
|
|
636
|
-
26,
|
|
637
|
-
9,
|
|
638
|
-
27,
|
|
639
|
-
r + 10,
|
|
640
|
-
24,
|
|
641
|
-
r + 8,
|
|
642
|
-
r + 9,
|
|
643
|
-
8,
|
|
644
|
-
29,
|
|
645
|
-
r + 7,
|
|
646
|
-
9,
|
|
647
|
-
r + 6,
|
|
648
|
-
r + 7,
|
|
649
|
-
3,
|
|
650
|
-
r + 3,
|
|
651
|
-
31,
|
|
652
|
-
4,
|
|
653
|
-
r + 4,
|
|
654
|
-
r + 5
|
|
655
|
-
]);
|
|
656
|
-
var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
657
|
-
|
|
658
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.5/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js
|
|
659
|
-
var cache = new EndpointCache({
|
|
660
|
-
size: 50,
|
|
661
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"]
|
|
662
|
-
});
|
|
663
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
664
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
665
|
-
endpointParams,
|
|
666
|
-
logger: context.logger
|
|
667
|
-
}));
|
|
668
|
-
};
|
|
669
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
670
|
-
|
|
671
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.5/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js
|
|
672
|
-
var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
673
|
-
if (!input) {
|
|
674
|
-
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
590
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.11/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js
|
|
591
|
+
var AwsQueryProtocol = class extends RpcProtocol {
|
|
592
|
+
options;
|
|
593
|
+
serializer;
|
|
594
|
+
deserializer;
|
|
595
|
+
mixin = new ProtocolLib();
|
|
596
|
+
constructor(options) {
|
|
597
|
+
super({
|
|
598
|
+
defaultNamespace: options.defaultNamespace,
|
|
599
|
+
errorTypeRegistries: options.errorTypeRegistries
|
|
600
|
+
});
|
|
601
|
+
this.options = options;
|
|
602
|
+
const settings = {
|
|
603
|
+
timestampFormat: {
|
|
604
|
+
useTrait: true,
|
|
605
|
+
default: 5
|
|
606
|
+
},
|
|
607
|
+
httpBindings: false,
|
|
608
|
+
xmlNamespace: options.xmlNamespace,
|
|
609
|
+
serviceNamespace: options.defaultNamespace,
|
|
610
|
+
serializeEmptyLists: true
|
|
611
|
+
};
|
|
612
|
+
this.serializer = new QueryShapeSerializer(settings);
|
|
613
|
+
this.deserializer = new XmlShapeDeserializer(settings);
|
|
675
614
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
if (!instructionsFn) {
|
|
679
|
-
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
615
|
+
getShapeId() {
|
|
616
|
+
return "aws.protocols#awsQuery";
|
|
680
617
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
var defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
|
|
693
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
694
|
-
return {
|
|
695
|
-
schemeId: "aws.auth#sigv4",
|
|
696
|
-
signingProperties: {
|
|
697
|
-
name: "sts",
|
|
698
|
-
region: authParameters.region
|
|
699
|
-
},
|
|
700
|
-
propertiesExtractor: (config, context) => ({
|
|
701
|
-
signingProperties: {
|
|
702
|
-
config,
|
|
703
|
-
context
|
|
704
|
-
}
|
|
705
|
-
})
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
function createAwsAuthSigv4aHttpAuthOption(authParameters) {
|
|
709
|
-
return {
|
|
710
|
-
schemeId: "aws.auth#sigv4a",
|
|
711
|
-
signingProperties: {
|
|
712
|
-
name: "sts",
|
|
713
|
-
region: authParameters.region
|
|
714
|
-
},
|
|
715
|
-
propertiesExtractor: (config, context) => ({
|
|
716
|
-
signingProperties: {
|
|
717
|
-
config,
|
|
718
|
-
context
|
|
719
|
-
}
|
|
720
|
-
})
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
724
|
-
return {
|
|
725
|
-
schemeId: "smithy.api#noAuth"
|
|
726
|
-
};
|
|
727
|
-
}
|
|
728
|
-
var createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver2, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
|
|
729
|
-
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
|
|
730
|
-
const endpoint = defaultEndpointResolver2(authParameters);
|
|
731
|
-
const authSchemes = endpoint.properties?.authSchemes;
|
|
732
|
-
if (!authSchemes) {
|
|
733
|
-
return defaultHttpAuthSchemeResolver(authParameters);
|
|
618
|
+
setSerdeContext(serdeContext) {
|
|
619
|
+
this.serializer.setSerdeContext(serdeContext);
|
|
620
|
+
this.deserializer.setSerdeContext(serdeContext);
|
|
621
|
+
}
|
|
622
|
+
getPayloadCodec() {
|
|
623
|
+
throw new Error("AWSQuery protocol has no payload codec.");
|
|
624
|
+
}
|
|
625
|
+
async serializeRequest(operationSchema, input, context) {
|
|
626
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
627
|
+
if (!request.path.endsWith("/")) {
|
|
628
|
+
request.path += "/";
|
|
734
629
|
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
} else {
|
|
755
|
-
throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
|
|
756
|
-
}
|
|
757
|
-
const createOption = createHttpAuthOptionFunctions[schemeId];
|
|
758
|
-
if (!createOption) {
|
|
759
|
-
throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
|
|
630
|
+
request.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
631
|
+
if (deref(operationSchema.input) === "unit" || !request.body) {
|
|
632
|
+
request.body = "";
|
|
633
|
+
}
|
|
634
|
+
const action = operationSchema.name.split("#")[1] ?? operationSchema.name;
|
|
635
|
+
request.body = `Action=${action}&Version=${this.options.version}` + request.body;
|
|
636
|
+
if (request.body.endsWith("&")) {
|
|
637
|
+
request.body = request.body.slice(-1);
|
|
638
|
+
}
|
|
639
|
+
return request;
|
|
640
|
+
}
|
|
641
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
642
|
+
const deserializer = this.deserializer;
|
|
643
|
+
const ns = NormalizedSchema.of(operationSchema.output);
|
|
644
|
+
const dataObject = {};
|
|
645
|
+
if (response.statusCode >= 300) {
|
|
646
|
+
const bytes2 = await collectBody(response.body, context);
|
|
647
|
+
if (bytes2.byteLength > 0) {
|
|
648
|
+
Object.assign(dataObject, await deserializer.read(15, bytes2));
|
|
760
649
|
}
|
|
761
|
-
|
|
762
|
-
option.schemeId = schemeId;
|
|
763
|
-
option.signingProperties = { ...option.signingProperties || {}, ...rest, ...properties };
|
|
764
|
-
options.push(option);
|
|
650
|
+
await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
|
|
765
651
|
}
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
var _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
771
|
-
const options = [];
|
|
772
|
-
switch (authParameters.operation) {
|
|
773
|
-
case "AssumeRoleWithWebIdentity": {
|
|
774
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
775
|
-
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
776
|
-
break;
|
|
652
|
+
for (const header in response.headers) {
|
|
653
|
+
const value = response.headers[header];
|
|
654
|
+
delete response.headers[header];
|
|
655
|
+
response.headers[header.toLowerCase()] = value;
|
|
777
656
|
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
657
|
+
const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name;
|
|
658
|
+
const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : void 0;
|
|
659
|
+
const bytes = await collectBody(response.body, context);
|
|
660
|
+
if (bytes.byteLength > 0) {
|
|
661
|
+
Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
|
|
781
662
|
}
|
|
663
|
+
dataObject.$metadata = this.deserializeMetadata(response);
|
|
664
|
+
return dataObject;
|
|
665
|
+
}
|
|
666
|
+
useNestedResult() {
|
|
667
|
+
return true;
|
|
668
|
+
}
|
|
669
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
670
|
+
const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
|
|
671
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
672
|
+
const errorData = this.loadQueryError(dataObject) ?? {};
|
|
673
|
+
const message = this.loadQueryErrorMessage(dataObject);
|
|
674
|
+
errorData.message = message;
|
|
675
|
+
errorData.Error = {
|
|
676
|
+
Type: errorData.Type,
|
|
677
|
+
Code: errorData.Code,
|
|
678
|
+
Message: message
|
|
679
|
+
};
|
|
680
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
|
|
681
|
+
const ns = NormalizedSchema.of(errorSchema);
|
|
682
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
683
|
+
const exception = new ErrorCtor({});
|
|
684
|
+
const output = {
|
|
685
|
+
Type: errorData.Error.Type,
|
|
686
|
+
Code: errorData.Error.Code,
|
|
687
|
+
Error: errorData.Error
|
|
688
|
+
};
|
|
689
|
+
for (const [name, member] of ns.structIterator()) {
|
|
690
|
+
const target = member.getMergedTraits().xmlName ?? name;
|
|
691
|
+
const value = errorData[target] ?? dataObject[target];
|
|
692
|
+
output[name] = this.deserializer.readSchema(member, value);
|
|
693
|
+
}
|
|
694
|
+
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
695
|
+
$fault: ns.getMergedTraits().error,
|
|
696
|
+
message
|
|
697
|
+
}, output), dataObject);
|
|
698
|
+
}
|
|
699
|
+
loadQueryErrorCode(output, data) {
|
|
700
|
+
const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
|
|
701
|
+
if (code !== void 0) {
|
|
702
|
+
return code;
|
|
703
|
+
}
|
|
704
|
+
if (output.statusCode == 404) {
|
|
705
|
+
return "NotFound";
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
loadQueryError(data) {
|
|
709
|
+
return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
|
|
710
|
+
}
|
|
711
|
+
loadQueryErrorMessage(data) {
|
|
712
|
+
const errorData = this.loadQueryError(data);
|
|
713
|
+
return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
|
|
714
|
+
}
|
|
715
|
+
getDefaultContentType() {
|
|
716
|
+
return "application/x-www-form-urlencoded";
|
|
782
717
|
}
|
|
783
|
-
return options;
|
|
784
|
-
};
|
|
785
|
-
var defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
|
|
786
|
-
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
787
|
-
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
788
|
-
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption
|
|
789
|
-
});
|
|
790
|
-
var resolveStsAuthConfig = (input) => Object.assign(input, {
|
|
791
|
-
stsClientCtor: STSClient
|
|
792
|
-
});
|
|
793
|
-
var resolveHttpAuthSchemeConfig = (config) => {
|
|
794
|
-
const config_0 = resolveStsAuthConfig(config);
|
|
795
|
-
const config_1 = resolveAwsSdkSigV4Config(config_0);
|
|
796
|
-
const config_2 = resolveAwsSdkSigV4AConfig(config_1);
|
|
797
|
-
return Object.assign(config_2, {
|
|
798
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
|
|
799
|
-
});
|
|
800
|
-
};
|
|
801
|
-
|
|
802
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.5/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js
|
|
803
|
-
var resolveClientEndpointParameters = (options) => {
|
|
804
|
-
return Object.assign(options, {
|
|
805
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
806
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
807
|
-
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
808
|
-
defaultSigningName: "sts"
|
|
809
|
-
});
|
|
810
|
-
};
|
|
811
|
-
var commonParams = {
|
|
812
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
813
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
814
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
815
|
-
Region: { type: "builtInParams", name: "region" },
|
|
816
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
817
718
|
};
|
|
818
719
|
|
|
819
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
720
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js
|
|
820
721
|
var STSServiceException = class _STSServiceException extends ServiceException {
|
|
821
722
|
constructor(options) {
|
|
822
723
|
super(options);
|
|
@@ -824,7 +725,7 @@ var STSServiceException = class _STSServiceException extends ServiceException {
|
|
|
824
725
|
}
|
|
825
726
|
};
|
|
826
727
|
|
|
827
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
728
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js
|
|
828
729
|
var ExpiredTokenException = class _ExpiredTokenException extends STSServiceException {
|
|
829
730
|
name = "ExpiredTokenException";
|
|
830
731
|
$fault = "client";
|
|
@@ -911,7 +812,7 @@ var IDPCommunicationErrorException = class _IDPCommunicationErrorException exten
|
|
|
911
812
|
}
|
|
912
813
|
};
|
|
913
814
|
|
|
914
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
815
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js
|
|
915
816
|
var _A = "Arn";
|
|
916
817
|
var _AKI = "AccessKeyId";
|
|
917
818
|
var _AR = "AssumeRole";
|
|
@@ -1102,7 +1003,7 @@ var AssumeRoleWithWebIdentity$ = [
|
|
|
1102
1003
|
() => AssumeRoleWithWebIdentityResponse$
|
|
1103
1004
|
];
|
|
1104
1005
|
|
|
1105
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1006
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js
|
|
1106
1007
|
var getRuntimeConfig = (config) => {
|
|
1107
1008
|
return {
|
|
1108
1009
|
apiVersion: "2011-06-15",
|
|
@@ -1146,7 +1047,7 @@ var getRuntimeConfig = (config) => {
|
|
|
1146
1047
|
};
|
|
1147
1048
|
};
|
|
1148
1049
|
|
|
1149
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1050
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js
|
|
1150
1051
|
var getRuntimeConfig2 = (config) => {
|
|
1151
1052
|
emitWarningIfUnsupportedVersion2(process.version);
|
|
1152
1053
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
@@ -1198,23 +1099,7 @@ var getRuntimeConfig2 = (config) => {
|
|
|
1198
1099
|
};
|
|
1199
1100
|
};
|
|
1200
1101
|
|
|
1201
|
-
// ../../node_modules/.pnpm/@aws-sdk+
|
|
1202
|
-
function stsRegionDefaultResolver(loaderConfig = {}) {
|
|
1203
|
-
return loadConfig({
|
|
1204
|
-
...NODE_REGION_CONFIG_OPTIONS,
|
|
1205
|
-
async default() {
|
|
1206
|
-
if (!warning.silence) {
|
|
1207
|
-
console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.");
|
|
1208
|
-
}
|
|
1209
|
-
return "us-east-1";
|
|
1210
|
-
}
|
|
1211
|
-
}, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig });
|
|
1212
|
-
}
|
|
1213
|
-
var warning = {
|
|
1214
|
-
silence: false
|
|
1215
|
-
};
|
|
1216
|
-
|
|
1217
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.5/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js
|
|
1102
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js
|
|
1218
1103
|
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
1219
1104
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
1220
1105
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -1253,14 +1138,14 @@ var resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
1253
1138
|
};
|
|
1254
1139
|
};
|
|
1255
1140
|
|
|
1256
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1141
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js
|
|
1257
1142
|
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
1258
1143
|
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
1259
1144
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
1260
1145
|
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
1261
1146
|
};
|
|
1262
1147
|
|
|
1263
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1148
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js
|
|
1264
1149
|
var STSClient = class extends Client {
|
|
1265
1150
|
config;
|
|
1266
1151
|
constructor(...[configuration]) {
|
|
@@ -1297,19 +1182,19 @@ var STSClient = class extends Client {
|
|
|
1297
1182
|
}
|
|
1298
1183
|
};
|
|
1299
1184
|
|
|
1300
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1185
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js
|
|
1301
1186
|
var AssumeRoleCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
|
|
1302
1187
|
return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
|
|
1303
1188
|
}).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").sc(AssumeRole$).build() {
|
|
1304
1189
|
};
|
|
1305
1190
|
|
|
1306
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1191
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js
|
|
1307
1192
|
var AssumeRoleWithWebIdentityCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
|
|
1308
1193
|
return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
|
|
1309
1194
|
}).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").sc(AssumeRoleWithWebIdentity$).build() {
|
|
1310
1195
|
};
|
|
1311
1196
|
|
|
1312
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1197
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js
|
|
1313
1198
|
var commands = {
|
|
1314
1199
|
AssumeRoleCommand,
|
|
1315
1200
|
AssumeRoleWithWebIdentityCommand
|
|
@@ -1318,7 +1203,7 @@ var STS = class extends STSClient {
|
|
|
1318
1203
|
};
|
|
1319
1204
|
createAggregatedClient(commands, STS);
|
|
1320
1205
|
|
|
1321
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1206
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js
|
|
1322
1207
|
var getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
|
1323
1208
|
if (typeof assumedRoleUser?.Arn === "string") {
|
|
1324
1209
|
const arnComponents = assumedRoleUser.Arn.split(":");
|
|
@@ -1418,7 +1303,7 @@ var isH2 = (requestHandler) => {
|
|
|
1418
1303
|
return requestHandler?.metadata?.handlerProtocol === "h2";
|
|
1419
1304
|
};
|
|
1420
1305
|
|
|
1421
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
1306
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.9/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js
|
|
1422
1307
|
var getCustomizableStsClientCtor = (baseCtor, customizations) => {
|
|
1423
1308
|
if (!customizations)
|
|
1424
1309
|
return baseCtor;
|