@ampless/mcp-server 1.0.0-alpha.11 → 1.0.0-alpha.13
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/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/{chunk-IW52OUIR.js → chunk-6HZB2ZCT.js} +13 -13
- package/dist/{chunk-6OXXSXKN.js → chunk-7JQMGUAU.js} +9 -9
- package/dist/{chunk-3NCQATCK.js → chunk-ERHOBKHD.js} +7 -501
- package/dist/{chunk-YHHXORQ4.js → chunk-ETWWJEHN.js} +17 -17
- package/dist/{chunk-A4YPJIDF.js → chunk-FLMNALC3.js} +3 -3
- package/dist/{chunk-QBXY5RRO.js → chunk-FM7TW5TD.js} +1 -2
- package/dist/chunk-LD7M476A.js +502 -0
- package/dist/{chunk-ISXSZYT4.js → chunk-OBZN5IWW.js} +32 -32
- package/dist/{chunk-UMEQ5ALV.js → chunk-Q4OVSLY4.js} +2 -2
- package/dist/{chunk-5PA6IP7O.js → chunk-SPCUAJQT.js} +1 -1
- package/dist/{chunk-CVNCRUML.js → chunk-USNYVOYF.js} +114 -47
- package/dist/chunk-YR5GD2D7.js +165 -0
- package/dist/{dist-es-J4X5E4TX.js → dist-es-2B6UPU6D.js} +22 -22
- package/dist/{dist-es-PRQWND46.js → dist-es-4QBVIVDD.js} +3 -3
- package/dist/{dist-es-3P7CNKGV.js → dist-es-DAQMEDLM.js} +8 -8
- package/dist/{dist-es-OI6XP2CN.js → dist-es-DWVRWSTC.js} +6 -6
- package/dist/{dist-es-OKPWYZO7.js → dist-es-H7Y5BZEG.js} +16 -16
- package/dist/{dist-es-T6J3WJJK.js → dist-es-QZOTLLWC.js} +1 -1
- package/dist/{dist-es-OO5RVJZO.js → dist-es-S3US4EVE.js} +6 -6
- package/dist/{event-streams-WFL2DK34.js → event-streams-IEZDQ3X3.js} +2 -1
- package/dist/event-streams-R54SMYED.js +891 -0
- package/dist/index.js +119 -116
- package/dist/{loadSso-C2Y2WOQK.js → loadSso-B4NUZPX5.js} +21 -20
- package/dist/{signin-IY5CLTYR.js → signin-BEDHRSJ2.js} +23 -22
- package/dist/{sso-oidc-KZTDOR7Y.js → sso-oidc-UXLRODTA.js} +23 -22
- package/dist/{sts-2UABQZ6D.js → sts-3BBU2O3O.js} +29 -28
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
setCredentialFeature
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OBZN5IWW.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
HttpRequest,
|
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
getProfileName,
|
|
10
10
|
parseKnownFiles,
|
|
11
11
|
readFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FM7TW5TD.js";
|
|
13
13
|
import "./chunk-IKXKDSVH.js";
|
|
14
14
|
import "./chunk-LMMQX4CK.js";
|
|
15
15
|
|
|
16
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
16
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
17
17
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
18
18
|
const sourceProvidersMap = {
|
|
19
19
|
EcsContainer: async (options) => {
|
|
20
|
-
const { fromHttp } = await import("./dist-es-
|
|
21
|
-
const { fromContainerMetadata } = await import("./dist-es-
|
|
20
|
+
const { fromHttp } = await import("./dist-es-DAQMEDLM.js");
|
|
21
|
+
const { fromContainerMetadata } = await import("./dist-es-QZOTLLWC.js");
|
|
22
22
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
23
23
|
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
24
24
|
},
|
|
25
25
|
Ec2InstanceMetadata: async (options) => {
|
|
26
26
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
27
|
-
const { fromInstanceMetadata } = await import("./dist-es-
|
|
27
|
+
const { fromInstanceMetadata } = await import("./dist-es-QZOTLLWC.js");
|
|
28
28
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
29
29
|
},
|
|
30
30
|
Environment: async (options) => {
|
|
31
31
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
32
|
-
const { fromEnv } = await import("./dist-es-
|
|
32
|
+
const { fromEnv } = await import("./dist-es-4QBVIVDD.js");
|
|
33
33
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
@@ -41,7 +41,7 @@ var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
|
41
41
|
};
|
|
42
42
|
var setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
43
43
|
|
|
44
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
44
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
45
45
|
var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
46
46
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
47
47
|
};
|
|
@@ -64,7 +64,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, caller
|
|
|
64
64
|
const profileData = profiles[profileName];
|
|
65
65
|
const { source_profile, region } = profileData;
|
|
66
66
|
if (!options.roleAssumer) {
|
|
67
|
-
const { getDefaultRoleAssumer } = await import("./sts-
|
|
67
|
+
const { getDefaultRoleAssumer } = await import("./sts-3BBU2O3O.js");
|
|
68
68
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
69
69
|
...options.clientConfig,
|
|
70
70
|
credentialProviderLogger: options.logger,
|
|
@@ -108,7 +108,7 @@ var isCredentialSourceWithoutRoleArn = (section) => {
|
|
|
108
108
|
return !section.role_arn && !!section.credential_source;
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
111
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.43/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
112
112
|
import { createHash, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
113
113
|
import { promises as fs } from "fs";
|
|
114
114
|
import { homedir } from "os";
|
|
@@ -150,7 +150,7 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
150
150
|
return this.profileData.login_session;
|
|
151
151
|
}
|
|
152
152
|
async refresh(token) {
|
|
153
|
-
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-
|
|
153
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-BEDHRSJ2.js");
|
|
154
154
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
155
155
|
const isH2 = (requestHandler2) => {
|
|
156
156
|
return requestHandler2?.metadata?.handlerProtocol === "h2";
|
|
@@ -360,7 +360,7 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
|
|
363
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
363
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.43/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
364
364
|
var fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
365
365
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
366
366
|
const profiles = await parseKnownFiles(init || {});
|
|
@@ -379,7 +379,7 @@ var fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
|
379
379
|
return setCredentialFeature(credentials, "CREDENTIALS_LOGIN", "AD");
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
382
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
383
383
|
var isLoginProfile = (data) => {
|
|
384
384
|
return Boolean(data && data.login_session);
|
|
385
385
|
};
|
|
@@ -391,16 +391,16 @@ var resolveLoginCredentials = async (profileName, options, callerClientConfig) =
|
|
|
391
391
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
392
392
|
};
|
|
393
393
|
|
|
394
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
394
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
395
395
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
396
|
-
var resolveProcessCredentials = async (options, profile) => import("./dist-es-
|
|
396
|
+
var resolveProcessCredentials = async (options, profile) => import("./dist-es-S3US4EVE.js").then(({ fromProcess }) => fromProcess({
|
|
397
397
|
...options,
|
|
398
398
|
profile
|
|
399
399
|
})().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
400
400
|
|
|
401
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
401
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
402
402
|
var resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
403
|
-
const { fromSSO } = await import("./dist-es-
|
|
403
|
+
const { fromSSO } = await import("./dist-es-H7Y5BZEG.js");
|
|
404
404
|
return fromSSO({
|
|
405
405
|
profile,
|
|
406
406
|
logger: options.logger,
|
|
@@ -418,7 +418,7 @@ var resolveSsoCredentials = async (profile, profileData, options = {}, callerCli
|
|
|
418
418
|
};
|
|
419
419
|
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
420
420
|
|
|
421
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
421
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
422
422
|
var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
|
|
423
423
|
var resolveStaticCredentials = async (profile, options) => {
|
|
424
424
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
@@ -432,9 +432,9 @@ var resolveStaticCredentials = async (profile, options) => {
|
|
|
432
432
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
433
433
|
};
|
|
434
434
|
|
|
435
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
435
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
436
436
|
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
437
|
-
var resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => import("./dist-es-
|
|
437
|
+
var resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => import("./dist-es-DWVRWSTC.js").then(({ fromTokenFile }) => fromTokenFile({
|
|
438
438
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
439
439
|
roleArn: profile.role_arn,
|
|
440
440
|
roleSessionName: profile.role_session_name,
|
|
@@ -445,7 +445,7 @@ var resolveWebIdentityCredentials = async (profile, options, callerClientConfig)
|
|
|
445
445
|
callerClientConfig
|
|
446
446
|
}).then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
|
|
447
447
|
|
|
448
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
448
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
449
449
|
var resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
450
450
|
const data = profiles[profileName];
|
|
451
451
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -472,7 +472,7 @@ var resolveProfileData = async (profileName, profiles, options, callerClientConf
|
|
|
472
472
|
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
473
473
|
};
|
|
474
474
|
|
|
475
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
475
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.43/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
476
476
|
var fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
477
477
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
478
478
|
const profiles = await parseKnownFiles(init);
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
ENV_SECRET,
|
|
8
8
|
ENV_SESSION,
|
|
9
9
|
fromEnv
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-FLMNALC3.js";
|
|
11
|
+
import "./chunk-OBZN5IWW.js";
|
|
12
|
+
import "./chunk-FM7TW5TD.js";
|
|
13
13
|
import "./chunk-IKXKDSVH.js";
|
|
14
14
|
import "./chunk-LMMQX4CK.js";
|
|
15
15
|
export {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
NodeHttpHandler
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SPCUAJQT.js";
|
|
5
5
|
import {
|
|
6
6
|
setCredentialFeature
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OBZN5IWW.js";
|
|
8
8
|
import {
|
|
9
9
|
CredentialsProviderError,
|
|
10
10
|
HttpRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FM7TW5TD.js";
|
|
12
12
|
import {
|
|
13
13
|
parseRfc3339DateTime,
|
|
14
14
|
sdkStreamMixin
|
|
15
15
|
} from "./chunk-IKXKDSVH.js";
|
|
16
16
|
import "./chunk-LMMQX4CK.js";
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
18
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.41/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
19
19
|
import fs from "fs/promises";
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
21
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.41/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
22
22
|
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
23
23
|
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
24
24
|
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
@@ -52,7 +52,7 @@ var checkUrl = (url, logger) => {
|
|
|
52
52
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
55
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.41/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
56
56
|
function createGetRequest(url) {
|
|
57
57
|
return new HttpRequest({
|
|
58
58
|
protocol: url.protocol,
|
|
@@ -95,7 +95,7 @@ async function getCredentials(response, logger) {
|
|
|
95
95
|
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
98
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.41/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
99
99
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
100
100
|
return async () => {
|
|
101
101
|
for (let i = 0; i < maxRetries; ++i) {
|
|
@@ -109,7 +109,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
112
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.41/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
113
113
|
var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
|
114
114
|
var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
|
115
115
|
var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
setCredentialFeature
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OBZN5IWW.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
externalDataInterceptor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FM7TW5TD.js";
|
|
9
9
|
import "./chunk-IKXKDSVH.js";
|
|
10
10
|
import "./chunk-LMMQX4CK.js";
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
12
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.43/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
13
13
|
import { readFileSync } from "fs";
|
|
14
14
|
|
|
15
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
15
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.43/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
16
16
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
17
17
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
18
18
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
19
19
|
let { roleAssumerWithWebIdentity } = init;
|
|
20
20
|
if (!roleAssumerWithWebIdentity) {
|
|
21
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-
|
|
21
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-3BBU2O3O.js");
|
|
22
22
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
23
23
|
...init.clientConfig,
|
|
24
24
|
credentialProviderLogger: init.logger,
|
|
@@ -39,7 +39,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
42
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.43/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
43
43
|
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
44
44
|
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
45
45
|
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
setCredentialFeature
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OBZN5IWW.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
TokenProviderError,
|
|
@@ -10,20 +10,20 @@ import {
|
|
|
10
10
|
getSSOTokenFromFile,
|
|
11
11
|
loadSsoSessionData,
|
|
12
12
|
parseKnownFiles
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FM7TW5TD.js";
|
|
14
14
|
import "./chunk-IKXKDSVH.js";
|
|
15
15
|
import "./chunk-LMMQX4CK.js";
|
|
16
16
|
|
|
17
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.
|
|
17
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.43/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
18
18
|
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
19
19
|
|
|
20
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
20
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1052.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
21
21
|
var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
|
|
22
22
|
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
23
23
|
|
|
24
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
24
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1052.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
25
25
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
26
|
-
const { SSOOIDCClient } = await import("./sso-oidc-
|
|
26
|
+
const { SSOOIDCClient } = await import("./sso-oidc-UXLRODTA.js");
|
|
27
27
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
28
28
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
29
29
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -33,9 +33,9 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
33
33
|
return ssoOidcClient;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
36
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1052.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
37
37
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
38
|
-
const { CreateTokenCommand } = await import("./sso-oidc-
|
|
38
|
+
const { CreateTokenCommand } = await import("./sso-oidc-UXLRODTA.js");
|
|
39
39
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
40
40
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
41
41
|
clientId: ssoToken.clientId,
|
|
@@ -45,21 +45,21 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
|
|
|
45
45
|
}));
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
48
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1052.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
49
49
|
var validateTokenExpiry = (token) => {
|
|
50
50
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
51
51
|
throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
55
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1052.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
56
56
|
var validateTokenKey = (key, value, forRefresh = false) => {
|
|
57
57
|
if (typeof value === "undefined") {
|
|
58
58
|
throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
62
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1052.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
63
63
|
import { promises as fsPromises } from "fs";
|
|
64
64
|
var { writeFile } = fsPromises;
|
|
65
65
|
var writeSSOTokenToFile = (id, ssoToken) => {
|
|
@@ -68,7 +68,7 @@ var writeSSOTokenToFile = (id, ssoToken) => {
|
|
|
68
68
|
return writeFile(tokenFilepath, tokenString);
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
71
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1052.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
72
72
|
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
|
|
73
73
|
var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
74
74
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
@@ -140,7 +140,7 @@ var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.
|
|
143
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.43/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
144
144
|
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
145
145
|
var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
|
|
146
146
|
let token;
|
|
@@ -180,7 +180,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
const { accessToken } = token;
|
|
183
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-
|
|
183
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-B4NUZPX5.js");
|
|
184
184
|
const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
185
185
|
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
186
186
|
region: clientConfig?.region ?? ssoRegion,
|
|
@@ -222,7 +222,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
222
222
|
return credentials;
|
|
223
223
|
};
|
|
224
224
|
|
|
225
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.
|
|
225
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.43/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
226
226
|
var validateSsoProfile = (profile, logger) => {
|
|
227
227
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
228
228
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -232,7 +232,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
232
232
|
return profile;
|
|
233
233
|
};
|
|
234
234
|
|
|
235
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.
|
|
235
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.43/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
236
236
|
var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
237
237
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
238
238
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
setCredentialFeature
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OBZN5IWW.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
externalDataInterceptor,
|
|
8
8
|
getProfileName,
|
|
9
9
|
parseKnownFiles
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FM7TW5TD.js";
|
|
11
11
|
import "./chunk-IKXKDSVH.js";
|
|
12
12
|
import "./chunk-LMMQX4CK.js";
|
|
13
13
|
|
|
14
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
14
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.39/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
15
15
|
import { exec } from "child_process";
|
|
16
16
|
import { promisify } from "util";
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
18
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.39/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
19
19
|
var getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
20
20
|
if (data.Version !== 1) {
|
|
21
21
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
@@ -46,7 +46,7 @@ var getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
|
46
46
|
return credentials;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
49
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.39/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
50
50
|
var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
51
51
|
const profile = profiles[profileName];
|
|
52
52
|
if (profiles[profileName]) {
|
|
@@ -75,7 +75,7 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
78
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.39/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
79
79
|
var fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
80
80
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
81
81
|
const profiles = await parseKnownFiles(init);
|
|
@@ -18,7 +18,8 @@ import {
|
|
|
18
18
|
iterableToReadableStream,
|
|
19
19
|
readableStreamToIterable,
|
|
20
20
|
resolveEventStreamSerdeConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ERHOBKHD.js";
|
|
22
|
+
import "./chunk-LD7M476A.js";
|
|
22
23
|
import "./chunk-IKXKDSVH.js";
|
|
23
24
|
import "./chunk-LMMQX4CK.js";
|
|
24
25
|
export {
|