@desplega.ai/agent-swarm 1.152.2 → 1.154.0
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.md +2 -2
- package/dist/{acp-adapter-pfeje2v5.js → acp-adapter-eb2aj8xy.js} +4 -4
- package/dist/{actions-0sttc7f5.js → actions-kpnwp1kz.js} +31 -27
- package/dist/{anthropic-messages-2y8nktar.js → anthropic-messages-9vqsbznt.js} +112 -84
- package/dist/{app-p8teva95.js → app-zk1apkf6.js} +10 -7
- package/dist/{assistant-r45jnsrt.js → assistant-kwq4y50q.js} +32 -28
- package/dist/{azure-openai-responses-f38x2avq.js → azure-openai-responses-04qwdwfq.js} +27 -13
- package/dist/{boot-reembed-je26h5y7.js → boot-reembed-22hd3jjn.js} +9 -7
- package/dist/{boot-reembed-1qmybsd4.js → boot-reembed-qe168424.js} +10 -8
- package/dist/{boot-scrub-logs-gte3h1mm.js → boot-scrub-logs-pkdpsrjd.js} +7 -5
- package/dist/{claude-adapter-csc1mzka.js → claude-adapter-3fx90nww.js} +18 -16
- package/dist/{claude-managed-adapter-dsmkcrjy.js → claude-managed-adapter-ea2aga6w.js} +3 -3
- package/dist/{claude-sdk-session-fcd6f078.js → claude-sdk-session-z7fahf1k.js} +18 -16
- package/dist/{cli-r2fpe7cx.js → cli-00w2c66p.js} +61 -55
- package/dist/{cli-wbyk465z.js → cli-09y3tjxz.js} +1 -1
- package/dist/{cli-ht5rs63n.js → cli-0e31nm4n.js} +16 -7
- package/dist/cli-0x5qzvkg.js +4279 -0
- package/dist/{cli-d3p82erb.js → cli-18amys3y.js} +9 -9
- package/dist/{cli-4ahpr4sw.js → cli-1jpjafw4.js} +5 -5
- package/dist/{cli-jbmc0r7r.js → cli-243tzws8.js} +1 -1
- package/dist/{cli-ch38q5z4.js → cli-24k806sc.js} +6789 -2542
- package/dist/cli-3bkz2p7j.js +2828 -0
- package/dist/cli-3er6gcsn.js +1849 -0
- package/dist/cli-4k7jazkq.js +3339 -0
- package/dist/{cli-c4eeb5q2.js → cli-5b6b62tz.js} +1 -1
- package/dist/{cli-qd65dvr6.js → cli-5vs0nh43.js} +65 -44
- package/dist/{cli-z3wkng35.js → cli-6r3cgpk2.js} +224 -156
- package/dist/{cli-pgj4a5fb.js → cli-71cj99hx.js} +4 -3
- package/dist/cli-8sea27q4.js +14075 -0
- package/dist/{cli-jvy9qgjs.js → cli-913yakhv.js} +22 -7
- package/dist/{cli-pf9q3696.js → cli-927erqqt.js} +5 -2
- package/dist/cli-95jnpnqg.js +230 -0
- package/dist/{cli-wpv5rgg2.js → cli-abp3g4ax.js} +15 -2
- package/dist/{cli-ckz5t2hb.js → cli-acy6bfhr.js} +10 -7
- package/dist/{cli-4yc5d8fk.js → cli-avkd6mqv.js} +50 -0
- package/dist/{cli-8wrympd7.js → cli-bzr0ftht.js} +26 -7
- package/dist/{cli-qn042eh7.js → cli-c1v10xb2.js} +194 -1913
- package/dist/cli-cgj4hc12.js +18902 -0
- package/dist/{cli-2nnd56zt.js → cli-e0pg4zeh.js} +3 -2
- package/dist/{cli-r84ctdxn.js → cli-e31ehqwy.js} +2 -2
- package/dist/{cli-gphgnvpf.js → cli-e3229na9.js} +3 -3
- package/dist/{cli-gpqcs935.js → cli-e3cyf59d.js} +2 -2
- package/dist/{cli-s25avqg9.js → cli-e781c6f9.js} +1 -0
- package/dist/{cli-s2qjdd6z.js → cli-eetrvv91.js} +1 -1
- package/dist/{cli-j4nv2wqy.js → cli-fdzg6jhf.js} +10 -4
- package/dist/{cli-fm4ytsdk.js → cli-g2h29qar.js} +2 -2
- package/dist/{cli-zvgj5zg8.js → cli-ge67p080.js} +302 -3497
- package/dist/cli-h38x0qhg.js +6912 -0
- package/dist/{cli-9xvdm3bx.js → cli-h60qfasa.js} +742 -278
- package/dist/{cli-jew3jda5.js → cli-hws0vn86.js} +2 -2
- package/dist/{cli-j8dggbcr.js → cli-k0g1sjzm.js} +23 -31
- package/dist/{cli-xw7vak96.js → cli-kp3qs53m.js} +5 -5
- package/dist/{cli-rgvp6r2x.js → cli-mcnhgnn1.js} +193 -4
- package/dist/{cli-zvkq5csn.js → cli-myaxtgh8.js} +7 -6
- package/dist/{cli-56h18ng2.js → cli-n62atwh9.js} +1 -1
- package/dist/cli-n7h1kqpf.js +29 -0
- package/dist/{cli-fmy65jdn.js → cli-pf1v8xhb.js} +7 -5
- package/dist/{cli-xy1cchaf.js → cli-q85qhckh.js} +238 -11
- package/dist/{cli-3bpzj8me.js → cli-r1d3dzt6.js} +2 -2
- package/dist/{pi-mono-adapter-jcqt71cg.js → cli-rxkqvngf.js} +67343 -101083
- package/dist/{cli-kj76p1ez.js → cli-scwq51gn.js} +13 -7
- package/dist/{cli-b9dd0h3k.js → cli-stwsmd6k.js} +3 -2
- package/dist/{cli-c2mk1kgf.js → cli-v4en75c5.js} +8 -1
- package/dist/{cli-z61ykvam.js → cli-wg04s9kr.js} +4 -3
- package/dist/cli-yn0a417a.js +4069 -0
- package/dist/{cli-zfzznn7c.js → cli-ytxs7mn1.js} +26 -2
- package/dist/{cli-4j8k1m4w.js → cli-zt1227k1.js} +1162 -192
- package/dist/cli.js +28 -35
- package/dist/{codex-adapter-fxmpsabw.js → codex-adapter-ttdm995v.js} +12 -11
- package/dist/{codex-hook-8jexc34x.js → codex-hook-8gx7bcz0.js} +3 -3
- package/dist/{codex-session-runner-rr1e47ea.js → codex-session-runner-3v8nh4c8.js} +12 -11
- package/dist/{commands-0f5rxz51.js → commands-1cxwbhhq.js} +7 -5
- package/dist/{db-r3jxf3wy.js → db-y9zwsr79.js} +25 -5
- package/dist/{dispatcher-06vph6q4.js → dispatcher-9m9zss36.js} +30 -26
- package/dist/dsh-adapter-gsb2qqf9.js +19 -0
- package/dist/{e2b-413b8t4v.js → e2b-93x1k0j5.js} +6 -7
- package/dist/{google-generative-ai-ndjmj5fa.js → google-generative-ai-gwwrnzqn.js} +33 -73
- package/dist/{google-vertex-fr665tqs.js → google-vertex-5wfawpwz.js} +38 -68
- package/dist/{handlers-0hgtc910.js → handlers-36fm1bwn.js} +33 -29
- package/dist/{hook-9kvrv1er.js → hook-pntw4r8h.js} +12 -10
- package/dist/{hook-fbfhkat3.js → hook-vwq8y26p.js} +13 -11
- package/dist/{http-xbyx8k5j.js → http-20jesakk.js} +357 -261
- package/dist/{index-jsw3aynb.js → index-6artrehg.js} +30 -26
- package/dist/{cli-pdz9qde4.js → index-9ch1n761.js} +10 -11
- package/dist/{index-rnyahfn5.js → index-9n5z2492.js} +30 -26
- package/dist/{index-66xz5e9j.js → index-h5gs261z.js} +521 -9
- package/dist/{index-tfsdxyv6.js → index-j5wrf1yw.js} +40 -25
- package/dist/{index-2sp0384z.js → index-kkeftv5h.js} +738 -21
- package/dist/{index-sgk50mbg.js → index-m2xqpz5r.js} +31 -27
- package/dist/{index-gpfn1741.js → index-m9ks8a7t.js} +9 -7
- package/dist/index-w097eg0x.js +5 -0
- package/dist/jiti-loader-b4837mtm.js +34 -0
- package/dist/jiti-static-loader-q2g5ds0y.js +31267 -0
- package/dist/{keepalive-s3xpr7sw.js → keepalive-pwxvxd2c.js} +9 -7
- package/dist/{lead-rq4n5r16.js → lead-m789wqa3.js} +46 -41
- package/dist/{maintenance-f0atj1ab.js → maintenance-bvg6w7e2.js} +10 -8
- package/dist/{mistral-conversations-qhr84ph3.js → mistral-conversations-zx0kn554.js} +24 -18
- package/dist/{node-x1g4v0pq.js → node-5qtycf6a.js} +16 -11
- package/dist/{oauth-refresh-sweep-q0t3bxre.js → oauth-refresh-sweep-6v4bd737.js} +8 -6
- package/dist/{onboard-br5j1kch.js → onboard-snckpcj1.js} +115 -35
- package/dist/{openai-codex-responses-wy6a43wd.js → openai-codex-responses-4vjqzvjp.js} +33 -27
- package/dist/{openai-completions-32rdwmze.js → openai-completions-pxsmym7g.js} +52 -64
- package/dist/{openai-responses-6xwf7bzg.js → openai-responses-tmn0rqp0.js} +23 -24
- package/dist/{opencode-adapter-28axqa09.js → opencode-adapter-qbmv4tpy.js} +6 -6
- package/dist/{otel-impl-vdqge2nt.js → otel-impl-e0ytens5.js} +4 -4
- package/dist/{pi-messages-b1mbr6gp.js → pi-messages-txpjj39q.js} +3 -3
- package/dist/pi-mono-adapter-c4ggemhz.js +1316 -0
- package/dist/{pricing-refresh-hb3691fd.js → pricing-refresh-52g2ywrw.js} +9 -7
- package/dist/{rbac-roles-t78xt39b.js → rbac-roles-5455kfdn.js} +8 -6
- package/dist/{rbac-roles-jh280k9g.js → rbac-roles-hbf0xa52.js} +9 -7
- package/dist/{render-v2-7p8r2ymg.js → render-v2-npm8xdzh.js} +16 -9
- package/dist/{seed-pricing-hf889enh.js → seed-pricing-650wbr1n.js} +8 -6
- package/dist/{setup-w6mb03jv.js → setup-k1mew5rf.js} +4 -5
- package/dist/virtual-modules-2q5b2pk4.js +54 -0
- package/dist/{work-objects-nt8gy1kj.js → work-objects-2ea3kvwg.js} +33 -29
- package/dist/{worker-dwy617t0.js → worker-ec6hvc4m.js} +46 -41
- package/openapi.json +109 -16
- package/package.json +7 -6
- package/plugin/opencode-plugins/lib/memory-raters.ts +7 -0
- package/src/be/automation-preflight.ts +6 -4
- package/src/be/db/agents.ts +75 -2
- package/src/be/db/tasks/read.ts +2 -0
- package/src/be/db/tasks/write.ts +7 -1
- package/src/be/db.ts +140 -18
- package/src/be/extensions/db.ts +35 -4
- package/src/be/memory/raters/llm.ts +2 -6
- package/src/be/memory/raters/noop.ts +2 -3
- package/src/be/memory/raters/registry.ts +4 -10
- package/src/be/migrations/157_defer_provenance_and_marker.sql +27 -0
- package/src/be/models-catalog.ts +2 -0
- package/src/be/modelsdev-cache.json +213 -0
- package/src/be/rbac-audit.ts +2 -0
- package/src/be/seed/agent-fs-provision.ts +23 -0
- package/src/be/seed-pricing.ts +3 -1
- package/src/be/swarm-config-guard.ts +1 -0
- package/src/commands/onboard/compose-generator.ts +16 -1
- package/src/commands/onboard/env-generator.ts +14 -1
- package/src/commands/onboard/manifest.ts +1 -0
- package/src/commands/onboard/steps/integration-slack.tsx +56 -16
- package/src/commands/onboard/steps/review.tsx +5 -0
- package/src/commands/onboard/types.ts +6 -0
- package/src/commands/onboard.tsx +5 -1
- package/src/commands/provider-credentials.ts +14 -2
- package/src/commands/runner.ts +18 -2
- package/src/extensions/identity.ts +15 -7
- package/src/extensions/lifecycle.ts +15 -21
- package/src/hooks/codex-hook.ts +7 -1
- package/src/http/agents.ts +12 -4
- package/src/http/config.ts +1 -1
- package/src/http/core.ts +5 -3
- package/src/http/extensions.ts +108 -34
- package/src/http/poll.ts +7 -0
- package/src/http/schedules.ts +10 -0
- package/src/http/script-runs.ts +35 -26
- package/src/http/status.ts +24 -11
- package/src/http/tasks.ts +6 -1
- package/src/prompts/base-prompt.ts +15 -7
- package/src/prompts/memories.ts +5 -7
- package/src/prompts/session-templates.ts +3 -2
- package/src/prompts/steering-delivery.ts +2 -0
- package/src/providers/claude-managed-models.ts +8 -0
- package/src/providers/codex-adapter.ts +3 -6
- package/src/providers/codex-models.ts +15 -1
- package/src/providers/dsh-adapter.ts +248 -0
- package/src/providers/index.ts +5 -1
- package/src/providers/modelsdev-reasoning.json +50 -0
- package/src/providers/pi-mono-extension.ts +2 -5
- package/src/rbac/legacy-policy.ts +15 -1
- package/src/rbac/types.ts +2 -0
- package/src/server.ts +7 -1
- package/src/slack/ack.ts +43 -8
- package/src/slack/app.ts +32 -10
- package/src/slack/config.ts +29 -0
- package/src/slack/handlers.ts +7 -1
- package/src/slack/render-v2.ts +186 -17
- package/src/slack/responses.ts +1 -3
- package/src/slack/task-output.ts +66 -8
- package/src/slack/thread-buffer.ts +27 -3
- package/src/telemetry.ts +2 -3
- package/src/tests/agent-fs-provision-seeder.test.ts +56 -2
- package/src/tests/agents-harness-provider.test.ts +19 -0
- package/src/tests/agents-list-model-display.test.ts +60 -1
- package/src/tests/base-prompt.test.ts +25 -0
- package/src/tests/claude-managed-adapter.test.ts +6 -0
- package/src/tests/codex-gpt6-release.test.ts +97 -0
- package/src/tests/codex-steering-hook.test.ts +2 -2
- package/src/tests/config-api-only-keys.test.ts +9 -0
- package/src/tests/context-window.test.ts +1 -0
- package/src/tests/db-task-read-contract.test.ts +9 -0
- package/src/tests/db-task-write-contract.test.ts +9 -0
- package/src/tests/defer-task.test.ts +115 -16
- package/src/tests/dsh-adapter.test.ts +276 -0
- package/src/tests/e2e-nightly-report.test.ts +3 -3
- package/src/tests/e2e-redact.test.ts +2 -0
- package/src/tests/env-flag.test.ts +6 -0
- package/src/tests/extension-agent-visibility.test.ts +474 -0
- package/src/tests/extensions-db.test.ts +41 -0
- package/src/tests/extensions-http.test.ts +148 -4
- package/src/tests/extensions-lifecycle.test.ts +21 -1
- package/src/tests/extensions-mcp-tools.test.ts +9 -5
- package/src/tests/fetch-resolved-env.test.ts +43 -0
- package/src/tests/internal-ai/complete-structured.test.ts +32 -9
- package/src/tests/internal-ai/credentials.test.ts +4 -4
- package/src/tests/internal-ai/models.test.ts +20 -0
- package/src/tests/memory-rate-tool.test.ts +7 -10
- package/src/tests/memory-rater-defaults.test.ts +23 -0
- package/src/tests/memory-rater-e2e.test.ts +2 -3
- package/src/tests/migration-046-budgets.test.ts +2 -0
- package/src/tests/model-control.test.ts +2 -2
- package/src/tests/onboard-compose.test.ts +14 -0
- package/src/tests/onboard-env.test.ts +17 -0
- package/src/tests/onboard-manifest.test.ts +12 -0
- package/src/tests/opus-5-5-registry.test.ts +48 -0
- package/src/tests/pricing-refresh.test.ts +1 -1
- package/src/tests/pricing-routes.test.ts +15 -3
- package/src/tests/provider-registration.test.ts +5 -2
- package/src/tests/rbac-admission-e2e.test.ts +54 -0
- package/src/tests/rbac-e2e-helpers.ts +2 -0
- package/src/tests/rbac-engine.test.ts +32 -0
- package/src/tests/rbac-wire-e2e.test.ts +33 -0
- package/src/tests/reasoning-effort.test.ts +8 -0
- package/src/tests/reload-config.test.ts +33 -0
- package/src/tests/script-connections.test.ts +3 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
- package/src/tests/slack-config.test.ts +136 -0
- package/src/tests/slack-mode-lifecycle.test.ts +69 -0
- package/src/tests/slack-render-v2.test.ts +446 -16
- package/src/tests/slack-steering.test.ts +69 -1
- package/src/tests/slack-task-output.test.ts +33 -12
- package/src/tests/status.test.ts +22 -2
- package/src/tests/steering-core.test.ts +35 -0
- package/src/tests/steering-delivery.test.ts +39 -0
- package/src/tests/steering-transport.test.ts +2 -2
- package/src/tests/task-tool-preload-mcp.test.ts +3 -1
- package/src/tests/telemetry-init.test.ts +18 -0
- package/src/tests/workflow-live-recovery.test.ts +126 -0
- package/src/tests/workflow-llm.test.ts +3 -3
- package/src/tools/defer-task.ts +64 -26
- package/src/tools/extension-common.ts +4 -0
- package/src/tools/extension-install.ts +1 -1
- package/src/tools/extension-list.ts +4 -3
- package/src/tools/join-swarm.ts +1 -1
- package/src/tools/schedules/create-schedule.ts +11 -1
- package/src/tools/schedules/patch-schedule.ts +5 -0
- package/src/tools/schedules/update-schedule.ts +5 -0
- package/src/tools/send-task.ts +6 -0
- package/src/tools/utils.ts +1 -1
- package/src/types.ts +30 -8
- package/src/utils/context-window.ts +1 -0
- package/src/utils/credentials.ts +8 -0
- package/src/utils/internal-ai/complete-structured.ts +8 -0
- package/src/utils/internal-ai/models.ts +5 -5
- package/src/utils/memory-raters.ts +3 -0
- package/src/workflows/engine.ts +28 -0
- package/src/workflows/recovery.ts +7 -4
- package/templates/schedules/daily-status-report/content.md +25 -12
- package/templates/schedules/daily-workflow-health-audit/content.md +1 -1
- package/templates/skills/swarm-extensions/content.md +9 -5
- package/dist/cli-4wppfkcm.js +0 -16384
- package/dist/cli-55qrx3q8.js +0 -6041
- package/dist/cli-cg4vnyh4.js +0 -305
- package/dist/cli-jyetr64j.js +0 -52
- package/dist/cli-pp9ax9pa.js +0 -520
- package/dist/cli-qa66qaf0.js +0 -6076
- package/dist/cli-qghpvca2.js +0 -590
- package/dist/cli-rembwgt8.js +0 -861
- package/dist/cli-tcvj7j2r.js +0 -1971
- package/dist/cli-vfcth11k.js +0 -36
- package/dist/cli-w1d1bgkk.js +0 -1422
- package/dist/cli-y6x0gqtg.js +0 -5977
- package/dist/es5-tj3tn4jj.js +0 -844
- package/dist/index-1kq5hw2p.js +0 -467
- package/dist/index-1p8wdstt.js +0 -7
- package/dist/index-8fdjzb2f.js +0 -100
- package/dist/index-bxmwzbgw.js +0 -365
- package/dist/index-nzerxd5z.js +0 -7
- package/dist/index-pyymnzat.js +0 -1168
- package/dist/index-qv6atbab.js +0 -619
- package/dist/index-rja32qa7.js +0 -801
- package/dist/index-tzg5srfp.js +0 -211
- package/dist/index-vhncw983.js +0 -90
- package/dist/index-xk036zsk.js +0 -859
- package/dist/index-zyazbzcb.js +0 -6
- package/dist/{claude-managed-setup-48dwg9bv.js → claude-managed-setup-f5pmsyrp.js} +3 -3
package/dist/index-xk036zsk.js
DELETED
|
@@ -1,859 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_httpAuthSchemes,
|
|
3
|
-
require_protocols as require_protocols2
|
|
4
|
-
} from "./cli-55qrx3q8.js";
|
|
5
|
-
import {
|
|
6
|
-
require_dist_cjs as require_dist_cjs2
|
|
7
|
-
} from "./cli-rembwgt8.js";
|
|
8
|
-
import {
|
|
9
|
-
require_client as require_client2,
|
|
10
|
-
require_dist_cjs,
|
|
11
|
-
require_retry
|
|
12
|
-
} from "./cli-tcvj7j2r.js";
|
|
13
|
-
import {
|
|
14
|
-
require_client,
|
|
15
|
-
require_config,
|
|
16
|
-
require_endpoints,
|
|
17
|
-
require_protocols,
|
|
18
|
-
require_schema,
|
|
19
|
-
require_serde
|
|
20
|
-
} from "./cli-qa66qaf0.js";
|
|
21
|
-
import {
|
|
22
|
-
__commonJS,
|
|
23
|
-
__esm,
|
|
24
|
-
__require
|
|
25
|
-
} from "./cli-bc05qbss.js";
|
|
26
|
-
|
|
27
|
-
// node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
|
|
28
|
-
var require_dist_cjs3 = __commonJS(function(exports) {
|
|
29
|
-
var client = require_client2();
|
|
30
|
-
var httpAuthSchemes = require_httpAuthSchemes();
|
|
31
|
-
var config = require_config();
|
|
32
|
-
var node_fs = __require("node:fs");
|
|
33
|
-
var fromEnvSigningName = ({ logger, signingName } = {}) => async () => {
|
|
34
|
-
logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
|
|
35
|
-
if (!signingName) {
|
|
36
|
-
throw new config.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger });
|
|
37
|
-
}
|
|
38
|
-
const bearerTokenKey = httpAuthSchemes.getBearerTokenEnvKey(signingName);
|
|
39
|
-
if (!(bearerTokenKey in process.env)) {
|
|
40
|
-
throw new config.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger });
|
|
41
|
-
}
|
|
42
|
-
const token = { token: process.env[bearerTokenKey] };
|
|
43
|
-
client.setTokenFeature(token, "BEARER_SERVICE_ENV_VARS", "3");
|
|
44
|
-
return token;
|
|
45
|
-
};
|
|
46
|
-
var EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
47
|
-
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
48
|
-
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
49
|
-
const { SSOOIDCClient } = await import("./index-rja32qa7.js");
|
|
50
|
-
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
51
|
-
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
52
|
-
region: ssoRegion ?? init.clientConfig?.region,
|
|
53
|
-
logger: coalesce("logger"),
|
|
54
|
-
userAgentAppId: coalesce("userAgentAppId")
|
|
55
|
-
}));
|
|
56
|
-
return ssoOidcClient;
|
|
57
|
-
};
|
|
58
|
-
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
59
|
-
const { CreateTokenCommand } = await import("./index-rja32qa7.js");
|
|
60
|
-
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
61
|
-
return ssoOidcClient.send(new CreateTokenCommand({
|
|
62
|
-
clientId: ssoToken.clientId,
|
|
63
|
-
clientSecret: ssoToken.clientSecret,
|
|
64
|
-
refreshToken: ssoToken.refreshToken,
|
|
65
|
-
grantType: "refresh_token"
|
|
66
|
-
}));
|
|
67
|
-
};
|
|
68
|
-
var validateTokenExpiry = (token) => {
|
|
69
|
-
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
70
|
-
throw new config.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
var validateTokenKey = (key, value, forRefresh = false) => {
|
|
74
|
-
if (typeof value === "undefined") {
|
|
75
|
-
throw new config.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
var { writeFile } = node_fs.promises;
|
|
79
|
-
var writeSSOTokenToFile = (id, ssoToken) => {
|
|
80
|
-
const tokenFilepath = config.getSSOTokenFilepath(id);
|
|
81
|
-
const tokenString = JSON.stringify(ssoToken, null, 2);
|
|
82
|
-
return writeFile(tokenFilepath, tokenString);
|
|
83
|
-
};
|
|
84
|
-
var lastRefreshAttemptTime = new Date(0);
|
|
85
|
-
var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
86
|
-
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
87
|
-
const profiles = await config.parseKnownFiles(init);
|
|
88
|
-
const profileName = config.getProfileName({
|
|
89
|
-
profile: init.profile ?? callerClientConfig?.profile
|
|
90
|
-
});
|
|
91
|
-
const profile = profiles[profileName];
|
|
92
|
-
if (!profile) {
|
|
93
|
-
throw new config.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
94
|
-
} else if (!profile["sso_session"]) {
|
|
95
|
-
throw new config.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
96
|
-
}
|
|
97
|
-
const ssoSessionName = profile["sso_session"];
|
|
98
|
-
const ssoSessions = await config.loadSsoSessionData(init);
|
|
99
|
-
const ssoSession = ssoSessions[ssoSessionName];
|
|
100
|
-
if (!ssoSession) {
|
|
101
|
-
throw new config.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
102
|
-
}
|
|
103
|
-
for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
|
|
104
|
-
if (!ssoSession[ssoSessionRequiredKey]) {
|
|
105
|
-
throw new config.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
ssoSession["sso_start_url"];
|
|
109
|
-
const ssoRegion = ssoSession["sso_region"];
|
|
110
|
-
let ssoToken;
|
|
111
|
-
try {
|
|
112
|
-
ssoToken = await config.getSSOTokenFromFile(ssoSessionName);
|
|
113
|
-
} catch (e) {
|
|
114
|
-
throw new config.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
|
|
115
|
-
}
|
|
116
|
-
validateTokenKey("accessToken", ssoToken.accessToken);
|
|
117
|
-
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
|
118
|
-
const { accessToken, expiresAt } = ssoToken;
|
|
119
|
-
const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
|
|
120
|
-
if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
|
|
121
|
-
return existingToken;
|
|
122
|
-
}
|
|
123
|
-
if (Date.now() - lastRefreshAttemptTime.getTime() < 30000) {
|
|
124
|
-
validateTokenExpiry(existingToken);
|
|
125
|
-
return existingToken;
|
|
126
|
-
}
|
|
127
|
-
validateTokenKey("clientId", ssoToken.clientId, true);
|
|
128
|
-
validateTokenKey("clientSecret", ssoToken.clientSecret, true);
|
|
129
|
-
validateTokenKey("refreshToken", ssoToken.refreshToken, true);
|
|
130
|
-
try {
|
|
131
|
-
lastRefreshAttemptTime.setTime(Date.now());
|
|
132
|
-
const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
|
|
133
|
-
validateTokenKey("accessToken", newSsoOidcToken.accessToken);
|
|
134
|
-
validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
|
|
135
|
-
const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);
|
|
136
|
-
try {
|
|
137
|
-
await writeSSOTokenToFile(ssoSessionName, {
|
|
138
|
-
...ssoToken,
|
|
139
|
-
accessToken: newSsoOidcToken.accessToken,
|
|
140
|
-
expiresAt: newTokenExpiration.toISOString(),
|
|
141
|
-
refreshToken: newSsoOidcToken.refreshToken
|
|
142
|
-
});
|
|
143
|
-
} catch (error) {}
|
|
144
|
-
return {
|
|
145
|
-
token: newSsoOidcToken.accessToken,
|
|
146
|
-
expiration: newTokenExpiration
|
|
147
|
-
};
|
|
148
|
-
} catch (error) {
|
|
149
|
-
validateTokenExpiry(existingToken);
|
|
150
|
-
return existingToken;
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
var fromStatic = ({ token, logger }) => async () => {
|
|
154
|
-
logger?.debug("@aws-sdk/token-providers - fromStatic");
|
|
155
|
-
if (!token || !token.token) {
|
|
156
|
-
throw new config.TokenProviderError(`Please pass a valid token to fromStatic`, false);
|
|
157
|
-
}
|
|
158
|
-
return token;
|
|
159
|
-
};
|
|
160
|
-
var nodeProvider = (init = {}) => config.memoize(config.chain(fromSso(init), async () => {
|
|
161
|
-
throw new config.TokenProviderError("Could not load token from any providers", false);
|
|
162
|
-
}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined);
|
|
163
|
-
exports.fromEnvSigningName = fromEnvSigningName;
|
|
164
|
-
exports.fromSso = fromSso;
|
|
165
|
-
exports.fromStatic = fromStatic;
|
|
166
|
-
exports.nodeProvider = nodeProvider;
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
|
|
170
|
-
var require_sso = __commonJS(function(exports) {
|
|
171
|
-
var client$1 = require_client2();
|
|
172
|
-
var core = require_dist_cjs();
|
|
173
|
-
var client = require_client();
|
|
174
|
-
var config = require_config();
|
|
175
|
-
var endpoints = require_endpoints();
|
|
176
|
-
var protocols = require_protocols();
|
|
177
|
-
var retry = require_retry();
|
|
178
|
-
var schema = require_schema();
|
|
179
|
-
var httpAuthSchemes = require_httpAuthSchemes();
|
|
180
|
-
var serde = require_serde();
|
|
181
|
-
var nodeHttpHandler = require_dist_cjs2();
|
|
182
|
-
var protocols$1 = require_protocols2();
|
|
183
|
-
var defaultSSOHttpAuthSchemeParametersProvider = async (config2, context, input) => {
|
|
184
|
-
return {
|
|
185
|
-
operation: client.getSmithyContext(context).operation,
|
|
186
|
-
region: await client.normalizeProvider(config2.region)() || (() => {
|
|
187
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
188
|
-
})()
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
192
|
-
return {
|
|
193
|
-
schemeId: "aws.auth#sigv4",
|
|
194
|
-
signingProperties: {
|
|
195
|
-
name: "awsssoportal",
|
|
196
|
-
region: authParameters.region
|
|
197
|
-
},
|
|
198
|
-
propertiesExtractor: (config2, context) => ({
|
|
199
|
-
signingProperties: {
|
|
200
|
-
config: config2,
|
|
201
|
-
context
|
|
202
|
-
}
|
|
203
|
-
})
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
207
|
-
return {
|
|
208
|
-
schemeId: "smithy.api#noAuth"
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
var defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
212
|
-
const options = [];
|
|
213
|
-
switch (authParameters.operation) {
|
|
214
|
-
case "GetRoleCredentials": {
|
|
215
|
-
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
216
|
-
break;
|
|
217
|
-
}
|
|
218
|
-
default: {
|
|
219
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
return options;
|
|
223
|
-
};
|
|
224
|
-
var resolveHttpAuthSchemeConfig = (config2) => {
|
|
225
|
-
const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config2);
|
|
226
|
-
return Object.assign(config_0, {
|
|
227
|
-
authSchemePreference: client.normalizeProvider(config2.authSchemePreference ?? [])
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
|
-
var resolveClientEndpointParameters = (options) => {
|
|
231
|
-
return Object.assign(options, {
|
|
232
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
233
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
234
|
-
defaultSigningName: "awsssoportal"
|
|
235
|
-
});
|
|
236
|
-
};
|
|
237
|
-
var commonParams = {
|
|
238
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
239
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
240
|
-
Region: { type: "builtInParams", name: "region" },
|
|
241
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
242
|
-
};
|
|
243
|
-
var version = "3.997.10";
|
|
244
|
-
var packageInfo = {
|
|
245
|
-
version
|
|
246
|
-
};
|
|
247
|
-
var k = "ref";
|
|
248
|
-
var a = -1;
|
|
249
|
-
var b = true;
|
|
250
|
-
var c = "isSet";
|
|
251
|
-
var d = "PartitionResult";
|
|
252
|
-
var e = "booleanEquals";
|
|
253
|
-
var f = "getAttr";
|
|
254
|
-
var g = { [k]: "Endpoint" };
|
|
255
|
-
var h = { [k]: d };
|
|
256
|
-
var i = {};
|
|
257
|
-
var j = [{ [k]: "Region" }];
|
|
258
|
-
var _data = {
|
|
259
|
-
conditions: [
|
|
260
|
-
[c, [g]],
|
|
261
|
-
[c, j],
|
|
262
|
-
["aws.partition", j, d],
|
|
263
|
-
[e, [{ [k]: "UseFIPS" }, b]],
|
|
264
|
-
[e, [{ [k]: "UseDualStack" }, b]],
|
|
265
|
-
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
266
|
-
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
267
|
-
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
|
|
268
|
-
],
|
|
269
|
-
results: [
|
|
270
|
-
[a],
|
|
271
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
272
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
273
|
-
[g, i],
|
|
274
|
-
["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
275
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
276
|
-
["https://portal.sso.{Region}.amazonaws.com", i],
|
|
277
|
-
["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
278
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
279
|
-
["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
280
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
281
|
-
["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
282
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
283
|
-
]
|
|
284
|
-
};
|
|
285
|
-
var root = 2;
|
|
286
|
-
var r = 1e8;
|
|
287
|
-
var nodes = new Int32Array([
|
|
288
|
-
-1,
|
|
289
|
-
1,
|
|
290
|
-
-1,
|
|
291
|
-
0,
|
|
292
|
-
13,
|
|
293
|
-
3,
|
|
294
|
-
1,
|
|
295
|
-
4,
|
|
296
|
-
r + 12,
|
|
297
|
-
2,
|
|
298
|
-
5,
|
|
299
|
-
r + 12,
|
|
300
|
-
3,
|
|
301
|
-
8,
|
|
302
|
-
6,
|
|
303
|
-
4,
|
|
304
|
-
7,
|
|
305
|
-
r + 11,
|
|
306
|
-
5,
|
|
307
|
-
r + 9,
|
|
308
|
-
r + 10,
|
|
309
|
-
4,
|
|
310
|
-
11,
|
|
311
|
-
9,
|
|
312
|
-
6,
|
|
313
|
-
10,
|
|
314
|
-
r + 8,
|
|
315
|
-
7,
|
|
316
|
-
r + 6,
|
|
317
|
-
r + 7,
|
|
318
|
-
5,
|
|
319
|
-
12,
|
|
320
|
-
r + 5,
|
|
321
|
-
6,
|
|
322
|
-
r + 4,
|
|
323
|
-
r + 5,
|
|
324
|
-
3,
|
|
325
|
-
r + 1,
|
|
326
|
-
14,
|
|
327
|
-
4,
|
|
328
|
-
r + 2,
|
|
329
|
-
r + 3
|
|
330
|
-
]);
|
|
331
|
-
var bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
332
|
-
var cache = new endpoints.EndpointCache({
|
|
333
|
-
size: 50,
|
|
334
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
335
|
-
});
|
|
336
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
337
|
-
return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {
|
|
338
|
-
endpointParams,
|
|
339
|
-
logger: context.logger
|
|
340
|
-
}));
|
|
341
|
-
};
|
|
342
|
-
endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions;
|
|
343
|
-
|
|
344
|
-
class SSOServiceException extends client.ServiceException {
|
|
345
|
-
constructor(options) {
|
|
346
|
-
super(options);
|
|
347
|
-
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
class InvalidRequestException extends SSOServiceException {
|
|
352
|
-
name = "InvalidRequestException";
|
|
353
|
-
$fault = "client";
|
|
354
|
-
constructor(opts) {
|
|
355
|
-
super({
|
|
356
|
-
name: "InvalidRequestException",
|
|
357
|
-
$fault: "client",
|
|
358
|
-
...opts
|
|
359
|
-
});
|
|
360
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
class ResourceNotFoundException extends SSOServiceException {
|
|
365
|
-
name = "ResourceNotFoundException";
|
|
366
|
-
$fault = "client";
|
|
367
|
-
constructor(opts) {
|
|
368
|
-
super({
|
|
369
|
-
name: "ResourceNotFoundException",
|
|
370
|
-
$fault: "client",
|
|
371
|
-
...opts
|
|
372
|
-
});
|
|
373
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
class TooManyRequestsException extends SSOServiceException {
|
|
378
|
-
name = "TooManyRequestsException";
|
|
379
|
-
$fault = "client";
|
|
380
|
-
constructor(opts) {
|
|
381
|
-
super({
|
|
382
|
-
name: "TooManyRequestsException",
|
|
383
|
-
$fault: "client",
|
|
384
|
-
...opts
|
|
385
|
-
});
|
|
386
|
-
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
class UnauthorizedException extends SSOServiceException {
|
|
391
|
-
name = "UnauthorizedException";
|
|
392
|
-
$fault = "client";
|
|
393
|
-
constructor(opts) {
|
|
394
|
-
super({
|
|
395
|
-
name: "UnauthorizedException",
|
|
396
|
-
$fault: "client",
|
|
397
|
-
...opts
|
|
398
|
-
});
|
|
399
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
var _ATT = "AccessTokenType";
|
|
403
|
-
var _GRC = "GetRoleCredentials";
|
|
404
|
-
var _GRCR = "GetRoleCredentialsRequest";
|
|
405
|
-
var _GRCRe = "GetRoleCredentialsResponse";
|
|
406
|
-
var _IRE = "InvalidRequestException";
|
|
407
|
-
var _RC = "RoleCredentials";
|
|
408
|
-
var _RNFE = "ResourceNotFoundException";
|
|
409
|
-
var _SAKT = "SecretAccessKeyType";
|
|
410
|
-
var _STT = "SessionTokenType";
|
|
411
|
-
var _TMRE = "TooManyRequestsException";
|
|
412
|
-
var _UE = "UnauthorizedException";
|
|
413
|
-
var _aI = "accountId";
|
|
414
|
-
var _aKI = "accessKeyId";
|
|
415
|
-
var _aT = "accessToken";
|
|
416
|
-
var _ai = "account_id";
|
|
417
|
-
var _c = "client";
|
|
418
|
-
var _e = "error";
|
|
419
|
-
var _ex = "expiration";
|
|
420
|
-
var _h = "http";
|
|
421
|
-
var _hE = "httpError";
|
|
422
|
-
var _hH = "httpHeader";
|
|
423
|
-
var _hQ = "httpQuery";
|
|
424
|
-
var _m = "message";
|
|
425
|
-
var _rC = "roleCredentials";
|
|
426
|
-
var _rN = "roleName";
|
|
427
|
-
var _rn = "role_name";
|
|
428
|
-
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
|
|
429
|
-
var _sAK = "secretAccessKey";
|
|
430
|
-
var _sT = "sessionToken";
|
|
431
|
-
var _xasbt = "x-amz-sso_bearer_token";
|
|
432
|
-
var n0 = "com.amazonaws.sso";
|
|
433
|
-
var _s_registry = schema.TypeRegistry.for(_s);
|
|
434
|
-
var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
435
|
-
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
436
|
-
var n0_registry = schema.TypeRegistry.for(n0);
|
|
437
|
-
var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
438
|
-
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
439
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
440
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
441
|
-
var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
442
|
-
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
443
|
-
var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];
|
|
444
|
-
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
445
|
-
var errorTypeRegistries = [_s_registry, n0_registry];
|
|
446
|
-
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
447
|
-
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
448
|
-
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
449
|
-
var GetRoleCredentialsRequest$ = [
|
|
450
|
-
3,
|
|
451
|
-
n0,
|
|
452
|
-
_GRCR,
|
|
453
|
-
0,
|
|
454
|
-
[_rN, _aI, _aT],
|
|
455
|
-
[
|
|
456
|
-
[0, { [_hQ]: _rn }],
|
|
457
|
-
[0, { [_hQ]: _ai }],
|
|
458
|
-
[() => AccessTokenType, { [_hH]: _xasbt }]
|
|
459
|
-
],
|
|
460
|
-
3
|
|
461
|
-
];
|
|
462
|
-
var GetRoleCredentialsResponse$ = [
|
|
463
|
-
3,
|
|
464
|
-
n0,
|
|
465
|
-
_GRCRe,
|
|
466
|
-
0,
|
|
467
|
-
[_rC],
|
|
468
|
-
[[() => RoleCredentials$, 0]]
|
|
469
|
-
];
|
|
470
|
-
var RoleCredentials$ = [
|
|
471
|
-
3,
|
|
472
|
-
n0,
|
|
473
|
-
_RC,
|
|
474
|
-
0,
|
|
475
|
-
[_aKI, _sAK, _sT, _ex],
|
|
476
|
-
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
477
|
-
];
|
|
478
|
-
var GetRoleCredentials$ = [
|
|
479
|
-
9,
|
|
480
|
-
n0,
|
|
481
|
-
_GRC,
|
|
482
|
-
{ [_h]: ["GET", "/federation/credentials", 200] },
|
|
483
|
-
() => GetRoleCredentialsRequest$,
|
|
484
|
-
() => GetRoleCredentialsResponse$
|
|
485
|
-
];
|
|
486
|
-
var getRuntimeConfig$1 = (config2) => {
|
|
487
|
-
return {
|
|
488
|
-
apiVersion: "2019-06-10",
|
|
489
|
-
base64Decoder: config2?.base64Decoder ?? serde.fromBase64,
|
|
490
|
-
base64Encoder: config2?.base64Encoder ?? serde.toBase64,
|
|
491
|
-
disableHostPrefix: config2?.disableHostPrefix ?? false,
|
|
492
|
-
endpointProvider: config2?.endpointProvider ?? defaultEndpointResolver,
|
|
493
|
-
extensions: config2?.extensions ?? [],
|
|
494
|
-
httpAuthSchemeProvider: config2?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
|
|
495
|
-
httpAuthSchemes: config2?.httpAuthSchemes ?? [
|
|
496
|
-
{
|
|
497
|
-
schemeId: "aws.auth#sigv4",
|
|
498
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
499
|
-
signer: new httpAuthSchemes.AwsSdkSigV4Signer
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
schemeId: "smithy.api#noAuth",
|
|
503
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
504
|
-
signer: new core.NoAuthSigner
|
|
505
|
-
}
|
|
506
|
-
],
|
|
507
|
-
logger: config2?.logger ?? new client.NoOpLogger,
|
|
508
|
-
protocol: config2?.protocol ?? protocols$1.AwsRestJsonProtocol,
|
|
509
|
-
protocolSettings: config2?.protocolSettings ?? {
|
|
510
|
-
defaultNamespace: "com.amazonaws.sso",
|
|
511
|
-
errorTypeRegistries,
|
|
512
|
-
version: "2019-06-10",
|
|
513
|
-
serviceTarget: "SWBPortalService"
|
|
514
|
-
},
|
|
515
|
-
serviceId: config2?.serviceId ?? "SSO",
|
|
516
|
-
urlParser: config2?.urlParser ?? protocols.parseUrl,
|
|
517
|
-
utf8Decoder: config2?.utf8Decoder ?? serde.fromUtf8,
|
|
518
|
-
utf8Encoder: config2?.utf8Encoder ?? serde.toUtf8
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
var getRuntimeConfig = (config$1) => {
|
|
522
|
-
client.emitWarningIfUnsupportedVersion(process.version);
|
|
523
|
-
const defaultsMode = config.resolveDefaultsModeConfig(config$1);
|
|
524
|
-
const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
|
|
525
|
-
const clientSharedValues = getRuntimeConfig$1(config$1);
|
|
526
|
-
client$1.emitWarningIfUnsupportedVersion(process.version);
|
|
527
|
-
const loaderConfig = {
|
|
528
|
-
profile: config$1?.profile,
|
|
529
|
-
logger: clientSharedValues.logger
|
|
530
|
-
};
|
|
531
|
-
return {
|
|
532
|
-
...clientSharedValues,
|
|
533
|
-
...config$1,
|
|
534
|
-
runtime: "node",
|
|
535
|
-
defaultsMode,
|
|
536
|
-
authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
537
|
-
bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
|
|
538
|
-
defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
539
|
-
maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
|
|
540
|
-
region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
541
|
-
requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
|
|
542
|
-
retryMode: config$1?.retryMode ?? config.loadConfig({
|
|
543
|
-
...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
544
|
-
default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE
|
|
545
|
-
}, config$1),
|
|
546
|
-
sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
|
|
547
|
-
streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
|
|
548
|
-
useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
549
|
-
useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
550
|
-
userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
551
|
-
};
|
|
552
|
-
};
|
|
553
|
-
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
554
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
555
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
556
|
-
let _credentials = runtimeConfig.credentials;
|
|
557
|
-
return {
|
|
558
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
559
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
560
|
-
if (index === -1) {
|
|
561
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
562
|
-
} else {
|
|
563
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
httpAuthSchemes() {
|
|
567
|
-
return _httpAuthSchemes;
|
|
568
|
-
},
|
|
569
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
570
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
571
|
-
},
|
|
572
|
-
httpAuthSchemeProvider() {
|
|
573
|
-
return _httpAuthSchemeProvider;
|
|
574
|
-
},
|
|
575
|
-
setCredentials(credentials) {
|
|
576
|
-
_credentials = credentials;
|
|
577
|
-
},
|
|
578
|
-
credentials() {
|
|
579
|
-
return _credentials;
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
};
|
|
583
|
-
var resolveHttpAuthRuntimeConfig = (config2) => {
|
|
584
|
-
return {
|
|
585
|
-
httpAuthSchemes: config2.httpAuthSchemes(),
|
|
586
|
-
httpAuthSchemeProvider: config2.httpAuthSchemeProvider(),
|
|
587
|
-
credentials: config2.credentials()
|
|
588
|
-
};
|
|
589
|
-
};
|
|
590
|
-
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
591
|
-
const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
592
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
593
|
-
return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
594
|
-
};
|
|
595
|
-
|
|
596
|
-
class SSOClient extends client.Client {
|
|
597
|
-
config;
|
|
598
|
-
constructor(...[configuration]) {
|
|
599
|
-
const _config_0 = getRuntimeConfig(configuration || {});
|
|
600
|
-
super(_config_0);
|
|
601
|
-
this.initConfig = _config_0;
|
|
602
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
603
|
-
const _config_2 = client$1.resolveUserAgentConfig(_config_1);
|
|
604
|
-
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
605
|
-
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
606
|
-
const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
|
|
607
|
-
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
608
|
-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
609
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
610
|
-
this.config = _config_8;
|
|
611
|
-
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
612
|
-
this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
|
|
613
|
-
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
614
|
-
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
615
|
-
this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
|
|
616
|
-
this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
|
|
617
|
-
this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
|
|
618
|
-
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
619
|
-
httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
|
|
620
|
-
identityProviderConfigProvider: async (config2) => new core.DefaultIdentityProviderConfig({
|
|
621
|
-
"aws.auth#sigv4": config2.credentials
|
|
622
|
-
})
|
|
623
|
-
}));
|
|
624
|
-
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
625
|
-
}
|
|
626
|
-
destroy() {
|
|
627
|
-
super.destroy();
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
class GetRoleCredentialsCommand extends client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config2, o) {
|
|
632
|
-
return [endpoints.getEndpointPlugin(config2, Command.getEndpointParameterInstructions())];
|
|
633
|
-
}).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").sc(GetRoleCredentials$).build() {
|
|
634
|
-
}
|
|
635
|
-
var commands = {
|
|
636
|
-
GetRoleCredentialsCommand
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
class SSO extends SSOClient {
|
|
640
|
-
}
|
|
641
|
-
client.createAggregatedClient(commands, SSO);
|
|
642
|
-
exports.$Command = client.Command;
|
|
643
|
-
exports.__Client = client.Client;
|
|
644
|
-
exports.GetRoleCredentials$ = GetRoleCredentials$;
|
|
645
|
-
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
646
|
-
exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;
|
|
647
|
-
exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$;
|
|
648
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
649
|
-
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
650
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
651
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
652
|
-
exports.RoleCredentials$ = RoleCredentials$;
|
|
653
|
-
exports.SSO = SSO;
|
|
654
|
-
exports.SSOClient = SSOClient;
|
|
655
|
-
exports.SSOServiceException = SSOServiceException;
|
|
656
|
-
exports.SSOServiceException$ = SSOServiceException$;
|
|
657
|
-
exports.TooManyRequestsException = TooManyRequestsException;
|
|
658
|
-
exports.TooManyRequestsException$ = TooManyRequestsException$;
|
|
659
|
-
exports.UnauthorizedException = UnauthorizedException;
|
|
660
|
-
exports.UnauthorizedException$ = UnauthorizedException$;
|
|
661
|
-
exports.errorTypeRegistries = errorTypeRegistries;
|
|
662
|
-
});
|
|
663
|
-
|
|
664
|
-
// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js
|
|
665
|
-
var require_loadSso_BKDNrsal = __commonJS(function(exports) {
|
|
666
|
-
var sso = require_sso();
|
|
667
|
-
exports.GetRoleCredentialsCommand = sso.GetRoleCredentialsCommand;
|
|
668
|
-
exports.SSOClient = sso.SSOClient;
|
|
669
|
-
});
|
|
670
|
-
|
|
671
|
-
// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
|
|
672
|
-
var config, client, tokenProviders, 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"), SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
|
|
673
|
-
let token;
|
|
674
|
-
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
675
|
-
if (ssoSession) {
|
|
676
|
-
try {
|
|
677
|
-
const _token = await tokenProviders.fromSso({
|
|
678
|
-
profile,
|
|
679
|
-
filepath,
|
|
680
|
-
configFilepath,
|
|
681
|
-
ignoreCache
|
|
682
|
-
})();
|
|
683
|
-
token = {
|
|
684
|
-
accessToken: _token.token,
|
|
685
|
-
expiresAt: new Date(_token.expiration).toISOString()
|
|
686
|
-
};
|
|
687
|
-
} catch (e) {
|
|
688
|
-
throw new config.CredentialsProviderError(e.message, {
|
|
689
|
-
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
690
|
-
logger
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
} else {
|
|
694
|
-
try {
|
|
695
|
-
token = await config.getSSOTokenFromFile(ssoStartUrl);
|
|
696
|
-
} catch (e) {
|
|
697
|
-
throw new config.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
698
|
-
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
699
|
-
logger
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
|
704
|
-
throw new config.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
705
|
-
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
706
|
-
logger
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
const { accessToken } = token;
|
|
710
|
-
const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function() {
|
|
711
|
-
return require_loadSso_BKDNrsal();
|
|
712
|
-
});
|
|
713
|
-
const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
714
|
-
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
715
|
-
region: clientConfig?.region ?? ssoRegion,
|
|
716
|
-
userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId
|
|
717
|
-
}));
|
|
718
|
-
let ssoResp;
|
|
719
|
-
try {
|
|
720
|
-
ssoResp = await sso.send(new GetRoleCredentialsCommand({
|
|
721
|
-
accountId: ssoAccountId,
|
|
722
|
-
roleName: ssoRoleName,
|
|
723
|
-
accessToken
|
|
724
|
-
}));
|
|
725
|
-
} catch (e) {
|
|
726
|
-
throw new config.CredentialsProviderError(e, {
|
|
727
|
-
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
728
|
-
logger
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp;
|
|
732
|
-
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
|
733
|
-
throw new config.CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
734
|
-
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
735
|
-
logger
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
const credentials = {
|
|
739
|
-
accessKeyId,
|
|
740
|
-
secretAccessKey,
|
|
741
|
-
sessionToken,
|
|
742
|
-
expiration: new Date(expiration),
|
|
743
|
-
...credentialScope && { credentialScope },
|
|
744
|
-
...accountId && { accountId }
|
|
745
|
-
};
|
|
746
|
-
if (ssoSession) {
|
|
747
|
-
client.setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
|
|
748
|
-
} else {
|
|
749
|
-
client.setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
|
|
750
|
-
}
|
|
751
|
-
return credentials;
|
|
752
|
-
}, validateSsoProfile = (profile, logger) => {
|
|
753
|
-
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
754
|
-
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
755
|
-
throw new config.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
|
|
756
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });
|
|
757
|
-
}
|
|
758
|
-
return profile;
|
|
759
|
-
}, fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
760
|
-
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
761
|
-
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
762
|
-
const { ssoClient } = init;
|
|
763
|
-
const profileName = config.getProfileName({
|
|
764
|
-
profile: init.profile ?? callerClientConfig?.profile
|
|
765
|
-
});
|
|
766
|
-
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
767
|
-
const profiles = await config.parseKnownFiles(init);
|
|
768
|
-
const profile = profiles[profileName];
|
|
769
|
-
if (!profile) {
|
|
770
|
-
throw new config.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
|
|
771
|
-
}
|
|
772
|
-
if (!isSsoProfile(profile)) {
|
|
773
|
-
throw new config.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
774
|
-
logger: init.logger
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
if (profile?.sso_session) {
|
|
778
|
-
const ssoSessions = await config.loadSsoSessionData(init);
|
|
779
|
-
const session = ssoSessions[profile.sso_session];
|
|
780
|
-
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
|
781
|
-
if (ssoRegion && ssoRegion !== session.sso_region) {
|
|
782
|
-
throw new config.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
783
|
-
tryNextLink: false,
|
|
784
|
-
logger: init.logger
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
|
788
|
-
throw new config.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
789
|
-
tryNextLink: false,
|
|
790
|
-
logger: init.logger
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
profile.sso_region = session.sso_region;
|
|
794
|
-
profile.sso_start_url = session.sso_start_url;
|
|
795
|
-
}
|
|
796
|
-
const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init.logger);
|
|
797
|
-
return resolveSSOCredentials({
|
|
798
|
-
ssoStartUrl: sso_start_url,
|
|
799
|
-
ssoSession: sso_session,
|
|
800
|
-
ssoAccountId: sso_account_id,
|
|
801
|
-
ssoRegion: sso_region,
|
|
802
|
-
ssoRoleName: sso_role_name,
|
|
803
|
-
ssoClient,
|
|
804
|
-
clientConfig: init.clientConfig,
|
|
805
|
-
parentClientConfig: init.parentClientConfig,
|
|
806
|
-
callerClientConfig: init.callerClientConfig,
|
|
807
|
-
profile: profileName,
|
|
808
|
-
filepath: init.filepath,
|
|
809
|
-
configFilepath: init.configFilepath,
|
|
810
|
-
ignoreCache: init.ignoreCache,
|
|
811
|
-
logger: init.logger
|
|
812
|
-
});
|
|
813
|
-
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
|
814
|
-
throw new config.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
|
|
815
|
-
} else {
|
|
816
|
-
return resolveSSOCredentials({
|
|
817
|
-
ssoStartUrl,
|
|
818
|
-
ssoSession,
|
|
819
|
-
ssoAccountId,
|
|
820
|
-
ssoRegion,
|
|
821
|
-
ssoRoleName,
|
|
822
|
-
ssoClient,
|
|
823
|
-
clientConfig: init.clientConfig,
|
|
824
|
-
parentClientConfig: init.parentClientConfig,
|
|
825
|
-
callerClientConfig: init.callerClientConfig,
|
|
826
|
-
profile: profileName,
|
|
827
|
-
filepath: init.filepath,
|
|
828
|
-
configFilepath: init.configFilepath,
|
|
829
|
-
ignoreCache: init.ignoreCache,
|
|
830
|
-
logger: init.logger
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
}, $fromSSO, $isSsoProfile, $validateSsoProfile;
|
|
834
|
-
var init_dist_cjs = __esm(() => {
|
|
835
|
-
config = require_config();
|
|
836
|
-
client = require_client2();
|
|
837
|
-
tokenProviders = require_dist_cjs3();
|
|
838
|
-
$fromSSO = fromSSO;
|
|
839
|
-
$isSsoProfile = isSsoProfile;
|
|
840
|
-
$validateSsoProfile = validateSsoProfile;
|
|
841
|
-
});
|
|
842
|
-
init_dist_cjs();
|
|
843
|
-
|
|
844
|
-
export {
|
|
845
|
-
$fromSSO as fromSSO,
|
|
846
|
-
$isSsoProfile as isSsoProfile,
|
|
847
|
-
$validateSsoProfile as validateSsoProfile
|
|
848
|
-
};
|
|
849
|
-
export default {
|
|
850
|
-
get fromSSO() {
|
|
851
|
-
return $fromSSO;
|
|
852
|
-
},
|
|
853
|
-
get isSsoProfile() {
|
|
854
|
-
return $isSsoProfile;
|
|
855
|
-
},
|
|
856
|
-
get validateSsoProfile() {
|
|
857
|
-
return $validateSsoProfile;
|
|
858
|
-
}
|
|
859
|
-
};
|