@desplega.ai/agent-swarm 1.152.2 → 1.153.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 +1 -1
- package/dist/{acp-adapter-pfeje2v5.js → acp-adapter-ahmjxhek.js} +4 -4
- package/dist/{actions-0sttc7f5.js → actions-jzrfpkmn.js} +30 -26
- package/dist/{anthropic-messages-2y8nktar.js → anthropic-messages-9vqsbznt.js} +112 -84
- package/dist/{app-p8teva95.js → app-03na2vwb.js} +9 -6
- package/dist/{assistant-r45jnsrt.js → assistant-hfkxvhgt.js} +31 -27
- package/dist/{azure-openai-responses-f38x2avq.js → azure-openai-responses-04qwdwfq.js} +27 -13
- package/dist/{boot-reembed-je26h5y7.js → boot-reembed-c98xrad3.js} +8 -6
- package/dist/{boot-reembed-1qmybsd4.js → boot-reembed-zt3qm9xn.js} +9 -7
- package/dist/{boot-scrub-logs-gte3h1mm.js → boot-scrub-logs-jcqd8ksj.js} +6 -4
- package/dist/{claude-adapter-csc1mzka.js → claude-adapter-mgryg8g3.js} +17 -15
- package/dist/{claude-managed-adapter-dsmkcrjy.js → claude-managed-adapter-ea2aga6w.js} +3 -3
- package/dist/{claude-sdk-session-fcd6f078.js → claude-sdk-session-jjf4zss1.js} +17 -15
- package/dist/{cli-r2fpe7cx.js → cli-00w2c66p.js} +61 -55
- package/dist/{cli-fm4ytsdk.js → cli-0d9nbqxf.js} +1 -1
- package/dist/cli-0x5qzvkg.js +4279 -0
- package/dist/{cli-d3p82erb.js → cli-18amys3y.js} +9 -9
- package/dist/{cli-wbyk465z.js → cli-1hwnb4hc.js} +1 -1
- package/dist/{cli-xw7vak96.js → cli-3bcmp015.js} +5 -5
- package/dist/cli-3er6gcsn.js +1849 -0
- package/dist/{cli-c4eeb5q2.js → cli-5b6b62tz.js} +1 -1
- package/dist/{cli-4ahpr4sw.js → cli-5mbmvxnn.js} +5 -5
- package/dist/{cli-xy1cchaf.js → cli-5taqtpze.js} +235 -8
- package/dist/{cli-fmy65jdn.js → cli-6ks9xf1n.js} +7 -5
- package/dist/cli-7g9s78jf.js +2827 -0
- package/dist/{cli-jew3jda5.js → cli-7pnz2v6s.js} +2 -2
- package/dist/{cli-r84ctdxn.js → cli-83wkg402.js} +2 -2
- package/dist/{cli-jvy9qgjs.js → cli-a9scg8sv.js} +4 -4
- package/dist/{cli-4yc5d8fk.js → cli-avkd6mqv.js} +50 -0
- package/dist/{cli-ht5rs63n.js → cli-b2g6mzjc.js} +15 -6
- package/dist/{cli-jbmc0r7r.js → cli-bw0dfwkr.js} +1 -1
- package/dist/{cli-8wrympd7.js → cli-bzr0ftht.js} +26 -7
- package/dist/{cli-wpv5rgg2.js → cli-cdq08v3r.js} +2 -2
- package/dist/cli-cgj4hc12.js +18902 -0
- package/dist/cli-d6hk10xx.js +14075 -0
- package/dist/{cli-zvgj5zg8.js → cli-djvxhnc4.js} +31 -3324
- package/dist/{cli-s25avqg9.js → cli-e781c6f9.js} +1 -0
- package/dist/{cli-3bpzj8me.js → cli-eazstkad.js} +2 -2
- package/dist/{cli-s2qjdd6z.js → cli-eetrvv91.js} +1 -1
- package/dist/cli-h38x0qhg.js +6912 -0
- package/dist/{cli-9xvdm3bx.js → cli-h60qfasa.js} +742 -278
- package/dist/{pi-mono-adapter-jcqt71cg.js → cli-ja7mrygn.js} +67343 -101083
- package/dist/{cli-j8dggbcr.js → cli-k0g1sjzm.js} +23 -31
- package/dist/{cli-gphgnvpf.js → cli-m04pt18h.js} +2 -2
- package/dist/{cli-rgvp6r2x.js → cli-mcnhgnn1.js} +193 -4
- package/dist/{cli-j4nv2wqy.js → cli-mzgyhxbe.js} +10 -4
- package/dist/{cli-qn042eh7.js → cli-n0q9b7j4.js} +46 -1870
- package/dist/cli-n7h1kqpf.js +29 -0
- package/dist/{cli-ckz5t2hb.js → cli-nq0kgyxe.js} +5 -5
- package/dist/{cli-z3wkng35.js → cli-qrqhc31j.js} +151 -125
- package/dist/{cli-56h18ng2.js → cli-r8tdds6s.js} +1 -1
- package/dist/{cli-ch38q5z4.js → cli-rj7de4b2.js} +6788 -2541
- package/dist/{cli-qd65dvr6.js → cli-s5s1f2yn.js} +56 -40
- package/dist/{cli-kj76p1ez.js → cli-scwq51gn.js} +13 -7
- package/dist/{cli-2nnd56zt.js → cli-tdh4hjr2.js} +3 -2
- package/dist/{cli-c2mk1kgf.js → cli-v4en75c5.js} +8 -1
- package/dist/{cli-b9dd0h3k.js → cli-vw03hg5t.js} +3 -2
- package/dist/{cli-zvkq5csn.js → cli-ybpp1srm.js} +6 -6
- package/dist/cli-yn0a417a.js +4069 -0
- package/dist/{cli-gpqcs935.js → cli-ysc1kbet.js} +2 -2
- package/dist/{cli-zfzznn7c.js → cli-ytxs7mn1.js} +26 -2
- package/dist/cli-zcsyfw2z.js +3335 -0
- package/dist/{cli-4j8k1m4w.js → cli-zt1227k1.js} +1162 -192
- package/dist/cli-zy5w9gpt.js +230 -0
- package/dist/cli.js +26 -34
- package/dist/{codex-adapter-fxmpsabw.js → codex-adapter-8548daap.js} +12 -11
- package/dist/{codex-session-runner-rr1e47ea.js → codex-session-runner-2dad8p4x.js} +12 -11
- package/dist/{commands-0f5rxz51.js → commands-355dbpa8.js} +6 -4
- package/dist/{db-r3jxf3wy.js → db-4jjvwz1s.js} +6 -4
- package/dist/{dispatcher-06vph6q4.js → dispatcher-ca590nkz.js} +29 -25
- package/dist/dsh-adapter-rgvj6ykp.js +19 -0
- package/dist/{e2b-413b8t4v.js → e2b-93x1k0j5.js} +6 -7
- package/dist/{google-generative-ai-ndjmj5fa.js → google-generative-ai-xtw7tggr.js} +33 -73
- package/dist/{google-vertex-fr665tqs.js → google-vertex-zdqpms6n.js} +38 -68
- package/dist/{handlers-0hgtc910.js → handlers-2y6dqpvf.js} +32 -28
- package/dist/{hook-9kvrv1er.js → hook-0s8knepr.js} +11 -9
- package/dist/{hook-fbfhkat3.js → hook-k0gec254.js} +12 -10
- package/dist/{http-xbyx8k5j.js → http-jp2nb4zw.js} +300 -237
- package/dist/{index-tfsdxyv6.js → index-0wzg3sp3.js} +39 -24
- package/dist/{index-rnyahfn5.js → index-3mq6ce93.js} +29 -25
- package/dist/{index-jsw3aynb.js → index-42s7eezq.js} +29 -25
- package/dist/{cli-pdz9qde4.js → index-9ch1n761.js} +10 -11
- package/dist/{index-gpfn1741.js → index-b56xkbc7.js} +8 -6
- package/dist/{index-66xz5e9j.js → index-h5gs261z.js} +521 -9
- package/dist/{index-2sp0384z.js → index-kkeftv5h.js} +738 -21
- package/dist/{index-sgk50mbg.js → index-s37dbevy.js} +30 -26
- 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-9pfw7t02.js} +8 -6
- package/dist/{lead-rq4n5r16.js → lead-7vcmcdq4.js} +44 -39
- package/dist/{maintenance-f0atj1ab.js → maintenance-x277jbpd.js} +9 -7
- 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-5fwa7th2.js} +7 -5
- package/dist/{onboard-br5j1kch.js → onboard-17sv0f51.js} +103 -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-srjy4be4.js} +4 -4
- package/dist/{pi-messages-b1mbr6gp.js → pi-messages-txpjj39q.js} +3 -3
- package/dist/pi-mono-adapter-946a0sdd.js +1316 -0
- package/dist/{pricing-refresh-hb3691fd.js → pricing-refresh-vetcm563.js} +8 -6
- package/dist/{rbac-roles-jh280k9g.js → rbac-roles-cfzgr6r1.js} +8 -6
- package/dist/{rbac-roles-t78xt39b.js → rbac-roles-cmxaddmy.js} +7 -5
- package/dist/{render-v2-7p8r2ymg.js → render-v2-f9hzff72.js} +9 -6
- package/dist/{seed-pricing-hf889enh.js → seed-pricing-jggk6rsy.js} +7 -5
- package/dist/{setup-w6mb03jv.js → setup-8mfceb9t.js} +4 -5
- package/dist/virtual-modules-ax661xp0.js +54 -0
- package/dist/{work-objects-nt8gy1kj.js → work-objects-vdsdcczj.js} +32 -28
- package/dist/{worker-dwy617t0.js → worker-cd0nhyv1.js} +44 -39
- package/openapi.json +36 -14
- package/package.json +6 -6
- package/src/be/automation-preflight.ts +6 -4
- package/src/be/extensions/db.ts +35 -4
- 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-pricing.ts +3 -1
- package/src/be/swarm-config-guard.ts +1 -0
- package/src/commands/onboard/compose-generator.ts +6 -1
- package/src/commands/onboard/env-generator.ts +6 -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/extensions/lifecycle.ts +15 -21
- package/src/http/agents.ts +2 -2
- package/src/http/config.ts +1 -1
- package/src/http/core.ts +5 -3
- package/src/http/extensions.ts +108 -34
- package/src/http/status.ts +22 -10
- package/src/prompts/base-prompt.ts +15 -7
- package/src/providers/claude-managed-models.ts +8 -0
- 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/rbac/legacy-policy.ts +15 -1
- package/src/rbac/types.ts +2 -0
- package/src/server.ts +7 -1
- package/src/slack/app.ts +32 -10
- package/src/slack/config.ts +29 -0
- package/src/telemetry.ts +2 -3
- 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/config-api-only-keys.test.ts +9 -0
- package/src/tests/context-window.test.ts +1 -0
- 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/extensions-db.test.ts +41 -0
- package/src/tests/extensions-http.test.ts +148 -4
- package/src/tests/extensions-lifecycle.test.ts +18 -0
- package/src/tests/extensions-mcp-tools.test.ts +9 -5
- 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/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/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/status.test.ts +22 -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-llm.test.ts +3 -3
- 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/types.ts +17 -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/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-rja32qa7.js
DELETED
|
@@ -1,801 +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
|
-
__esm
|
|
23
|
-
} from "./cli-bc05qbss.js";
|
|
24
|
-
|
|
25
|
-
// node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
26
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
27
|
-
return {
|
|
28
|
-
schemeId: "aws.auth#sigv4",
|
|
29
|
-
signingProperties: {
|
|
30
|
-
name: "sso-oauth",
|
|
31
|
-
region: authParameters.region
|
|
32
|
-
},
|
|
33
|
-
propertiesExtractor: (config2, context) => ({
|
|
34
|
-
signingProperties: {
|
|
35
|
-
config: config2,
|
|
36
|
-
context
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
42
|
-
return {
|
|
43
|
-
schemeId: "smithy.api#noAuth"
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
var client$1, core, client, config, endpoints, protocols, retry, schema, httpAuthSchemes, serde, nodeHttpHandler, protocols$1, defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config2, context, input) => {
|
|
47
|
-
return {
|
|
48
|
-
operation: client.getSmithyContext(context).operation,
|
|
49
|
-
region: await client.normalizeProvider(config2.region)() || (() => {
|
|
50
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
51
|
-
})()
|
|
52
|
-
};
|
|
53
|
-
}, defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
54
|
-
const options = [];
|
|
55
|
-
switch (authParameters.operation) {
|
|
56
|
-
case "CreateToken": {
|
|
57
|
-
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
default: {
|
|
61
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return options;
|
|
65
|
-
}, resolveHttpAuthSchemeConfig = (config2) => {
|
|
66
|
-
const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config2);
|
|
67
|
-
return Object.assign(config_0, {
|
|
68
|
-
authSchemePreference: client.normalizeProvider(config2.authSchemePreference ?? [])
|
|
69
|
-
});
|
|
70
|
-
}, resolveClientEndpointParameters = (options) => {
|
|
71
|
-
return Object.assign(options, {
|
|
72
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
73
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
74
|
-
defaultSigningName: "sso-oauth"
|
|
75
|
-
});
|
|
76
|
-
}, commonParams, version = "3.997.10", packageInfo, k = "ref", a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g, h, i, j, _data, root = 2, r = 1e8, nodes, bdd, cache, defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
77
|
-
return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {
|
|
78
|
-
endpointParams,
|
|
79
|
-
logger: context.logger
|
|
80
|
-
}));
|
|
81
|
-
}, SSOOIDCServiceException, AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, _ADE = "AccessDeniedException", _APE = "AuthorizationPendingException", _AT = "AccessToken", _CS = "ClientSecret", _CT = "CreateToken", _CTR = "CreateTokenRequest", _CTRr = "CreateTokenResponse", _CV = "CodeVerifier", _ETE = "ExpiredTokenException", _ICE = "InvalidClientException", _IGE = "InvalidGrantException", _IRE = "InvalidRequestException", _ISE = "InternalServerException", _ISEn = "InvalidScopeException", _IT = "IdToken", _RT = "RefreshToken", _SDE = "SlowDownException", _UCE = "UnauthorizedClientException", _UGTE = "UnsupportedGrantTypeException", _aT = "accessToken", _c = "client", _cI = "clientId", _cS = "clientSecret", _cV = "codeVerifier", _co = "code", _dC = "deviceCode", _e = "error", _eI = "expiresIn", _ed = "error_description", _gT = "grantType", _h = "http", _hE = "httpError", _iT = "idToken", _r = "reason", _rT = "refreshToken", _rU = "redirectUri", _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc", _sc = "scope", _se = "server", _tT = "tokenType", n0 = "com.amazonaws.ssooidc", _s_registry, SSOOIDCServiceException$, n0_registry, AccessDeniedException$, AuthorizationPendingException$, ExpiredTokenException$, InternalServerException$, InvalidClientException$, InvalidGrantException$, InvalidRequestException$, InvalidScopeException$, SlowDownException$, UnauthorizedClientException$, UnsupportedGrantTypeException$, errorTypeRegistries, AccessToken, ClientSecret, CodeVerifier, IdToken, RefreshToken, CreateTokenRequest$, CreateTokenResponse$, CreateToken$, getRuntimeConfig$1 = (config2) => {
|
|
82
|
-
return {
|
|
83
|
-
apiVersion: "2019-06-10",
|
|
84
|
-
base64Decoder: config2?.base64Decoder ?? serde.fromBase64,
|
|
85
|
-
base64Encoder: config2?.base64Encoder ?? serde.toBase64,
|
|
86
|
-
disableHostPrefix: config2?.disableHostPrefix ?? false,
|
|
87
|
-
endpointProvider: config2?.endpointProvider ?? defaultEndpointResolver,
|
|
88
|
-
extensions: config2?.extensions ?? [],
|
|
89
|
-
httpAuthSchemeProvider: config2?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
|
|
90
|
-
httpAuthSchemes: config2?.httpAuthSchemes ?? [
|
|
91
|
-
{
|
|
92
|
-
schemeId: "aws.auth#sigv4",
|
|
93
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
94
|
-
signer: new httpAuthSchemes.AwsSdkSigV4Signer
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
schemeId: "smithy.api#noAuth",
|
|
98
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
99
|
-
signer: new core.NoAuthSigner
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
logger: config2?.logger ?? new client.NoOpLogger,
|
|
103
|
-
protocol: config2?.protocol ?? protocols$1.AwsRestJsonProtocol,
|
|
104
|
-
protocolSettings: config2?.protocolSettings ?? {
|
|
105
|
-
defaultNamespace: "com.amazonaws.ssooidc",
|
|
106
|
-
errorTypeRegistries,
|
|
107
|
-
version: "2019-06-10",
|
|
108
|
-
serviceTarget: "AWSSSOOIDCService"
|
|
109
|
-
},
|
|
110
|
-
serviceId: config2?.serviceId ?? "SSO OIDC",
|
|
111
|
-
urlParser: config2?.urlParser ?? protocols.parseUrl,
|
|
112
|
-
utf8Decoder: config2?.utf8Decoder ?? serde.fromUtf8,
|
|
113
|
-
utf8Encoder: config2?.utf8Encoder ?? serde.toUtf8
|
|
114
|
-
};
|
|
115
|
-
}, getRuntimeConfig = (config$1) => {
|
|
116
|
-
client.emitWarningIfUnsupportedVersion(process.version);
|
|
117
|
-
const defaultsMode = config.resolveDefaultsModeConfig(config$1);
|
|
118
|
-
const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
|
|
119
|
-
const clientSharedValues = getRuntimeConfig$1(config$1);
|
|
120
|
-
client$1.emitWarningIfUnsupportedVersion(process.version);
|
|
121
|
-
const loaderConfig = {
|
|
122
|
-
profile: config$1?.profile,
|
|
123
|
-
logger: clientSharedValues.logger
|
|
124
|
-
};
|
|
125
|
-
return {
|
|
126
|
-
...clientSharedValues,
|
|
127
|
-
...config$1,
|
|
128
|
-
runtime: "node",
|
|
129
|
-
defaultsMode,
|
|
130
|
-
authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
131
|
-
bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
|
|
132
|
-
defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
133
|
-
maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
|
|
134
|
-
region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
135
|
-
requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
|
|
136
|
-
retryMode: config$1?.retryMode ?? config.loadConfig({
|
|
137
|
-
...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
138
|
-
default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE
|
|
139
|
-
}, config$1),
|
|
140
|
-
sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
|
|
141
|
-
streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
|
|
142
|
-
useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
143
|
-
useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
144
|
-
userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
145
|
-
};
|
|
146
|
-
}, getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
147
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
148
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
149
|
-
let _credentials = runtimeConfig.credentials;
|
|
150
|
-
return {
|
|
151
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
152
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
153
|
-
if (index === -1) {
|
|
154
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
155
|
-
} else {
|
|
156
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
httpAuthSchemes() {
|
|
160
|
-
return _httpAuthSchemes;
|
|
161
|
-
},
|
|
162
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
163
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
164
|
-
},
|
|
165
|
-
httpAuthSchemeProvider() {
|
|
166
|
-
return _httpAuthSchemeProvider;
|
|
167
|
-
},
|
|
168
|
-
setCredentials(credentials) {
|
|
169
|
-
_credentials = credentials;
|
|
170
|
-
},
|
|
171
|
-
credentials() {
|
|
172
|
-
return _credentials;
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
}, resolveHttpAuthRuntimeConfig = (config2) => {
|
|
176
|
-
return {
|
|
177
|
-
httpAuthSchemes: config2.httpAuthSchemes(),
|
|
178
|
-
httpAuthSchemeProvider: config2.httpAuthSchemeProvider(),
|
|
179
|
-
credentials: config2.credentials()
|
|
180
|
-
};
|
|
181
|
-
}, resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
182
|
-
const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
183
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
184
|
-
return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
185
|
-
}, SSOOIDCClient, CreateTokenCommand, commands, SSOOIDC, AccessDeniedExceptionReason, InvalidRequestExceptionReason, $$Command, $__Client, $AccessDeniedException, $AccessDeniedException$, $AccessDeniedExceptionReason, $AuthorizationPendingException, $AuthorizationPendingException$, $CreateToken$, $CreateTokenCommand, $CreateTokenRequest$, $CreateTokenResponse$, $ExpiredTokenException, $ExpiredTokenException$, $InternalServerException, $InternalServerException$, $InvalidClientException, $InvalidClientException$, $InvalidGrantException, $InvalidGrantException$, $InvalidRequestException, $InvalidRequestException$, $InvalidRequestExceptionReason, $InvalidScopeException, $InvalidScopeException$, $SSOOIDC, $SSOOIDCClient, $SSOOIDCServiceException, $SSOOIDCServiceException$, $SlowDownException, $SlowDownException$, $UnauthorizedClientException, $UnauthorizedClientException$, $UnsupportedGrantTypeException, $UnsupportedGrantTypeException$, $errorTypeRegistries;
|
|
186
|
-
var init_sso_oidc = __esm(() => {
|
|
187
|
-
client$1 = require_client2();
|
|
188
|
-
core = require_dist_cjs();
|
|
189
|
-
client = require_client();
|
|
190
|
-
config = require_config();
|
|
191
|
-
endpoints = require_endpoints();
|
|
192
|
-
protocols = require_protocols();
|
|
193
|
-
retry = require_retry();
|
|
194
|
-
schema = require_schema();
|
|
195
|
-
httpAuthSchemes = require_httpAuthSchemes();
|
|
196
|
-
serde = require_serde();
|
|
197
|
-
nodeHttpHandler = require_dist_cjs2();
|
|
198
|
-
protocols$1 = require_protocols2();
|
|
199
|
-
commonParams = {
|
|
200
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
201
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
202
|
-
Region: { type: "builtInParams", name: "region" },
|
|
203
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
204
|
-
};
|
|
205
|
-
packageInfo = {
|
|
206
|
-
version
|
|
207
|
-
};
|
|
208
|
-
g = { [k]: "Endpoint" };
|
|
209
|
-
h = { [k]: d };
|
|
210
|
-
i = {};
|
|
211
|
-
j = [{ [k]: "Region" }];
|
|
212
|
-
_data = {
|
|
213
|
-
conditions: [
|
|
214
|
-
[c, [g]],
|
|
215
|
-
[c, j],
|
|
216
|
-
["aws.partition", j, d],
|
|
217
|
-
[e, [{ [k]: "UseFIPS" }, b]],
|
|
218
|
-
[e, [{ [k]: "UseDualStack" }, b]],
|
|
219
|
-
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
220
|
-
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
221
|
-
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
|
|
222
|
-
],
|
|
223
|
-
results: [
|
|
224
|
-
[a],
|
|
225
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
226
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
227
|
-
[g, i],
|
|
228
|
-
["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
229
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
230
|
-
["https://oidc.{Region}.amazonaws.com", i],
|
|
231
|
-
["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
232
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
233
|
-
["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
234
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
235
|
-
["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
236
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
237
|
-
]
|
|
238
|
-
};
|
|
239
|
-
nodes = new Int32Array([
|
|
240
|
-
-1,
|
|
241
|
-
1,
|
|
242
|
-
-1,
|
|
243
|
-
0,
|
|
244
|
-
13,
|
|
245
|
-
3,
|
|
246
|
-
1,
|
|
247
|
-
4,
|
|
248
|
-
r + 12,
|
|
249
|
-
2,
|
|
250
|
-
5,
|
|
251
|
-
r + 12,
|
|
252
|
-
3,
|
|
253
|
-
8,
|
|
254
|
-
6,
|
|
255
|
-
4,
|
|
256
|
-
7,
|
|
257
|
-
r + 11,
|
|
258
|
-
5,
|
|
259
|
-
r + 9,
|
|
260
|
-
r + 10,
|
|
261
|
-
4,
|
|
262
|
-
11,
|
|
263
|
-
9,
|
|
264
|
-
6,
|
|
265
|
-
10,
|
|
266
|
-
r + 8,
|
|
267
|
-
7,
|
|
268
|
-
r + 6,
|
|
269
|
-
r + 7,
|
|
270
|
-
5,
|
|
271
|
-
12,
|
|
272
|
-
r + 5,
|
|
273
|
-
6,
|
|
274
|
-
r + 4,
|
|
275
|
-
r + 5,
|
|
276
|
-
3,
|
|
277
|
-
r + 1,
|
|
278
|
-
14,
|
|
279
|
-
4,
|
|
280
|
-
r + 2,
|
|
281
|
-
r + 3
|
|
282
|
-
]);
|
|
283
|
-
bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
284
|
-
cache = new endpoints.EndpointCache({
|
|
285
|
-
size: 50,
|
|
286
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
287
|
-
});
|
|
288
|
-
endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions;
|
|
289
|
-
SSOOIDCServiceException = class SSOOIDCServiceException extends client.ServiceException {
|
|
290
|
-
constructor(options) {
|
|
291
|
-
super(options);
|
|
292
|
-
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
AccessDeniedException = class AccessDeniedException extends SSOOIDCServiceException {
|
|
296
|
-
name = "AccessDeniedException";
|
|
297
|
-
$fault = "client";
|
|
298
|
-
error;
|
|
299
|
-
reason;
|
|
300
|
-
error_description;
|
|
301
|
-
constructor(opts) {
|
|
302
|
-
super({
|
|
303
|
-
name: "AccessDeniedException",
|
|
304
|
-
$fault: "client",
|
|
305
|
-
...opts
|
|
306
|
-
});
|
|
307
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
308
|
-
this.error = opts.error;
|
|
309
|
-
this.reason = opts.reason;
|
|
310
|
-
this.error_description = opts.error_description;
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
AuthorizationPendingException = class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
314
|
-
name = "AuthorizationPendingException";
|
|
315
|
-
$fault = "client";
|
|
316
|
-
error;
|
|
317
|
-
error_description;
|
|
318
|
-
constructor(opts) {
|
|
319
|
-
super({
|
|
320
|
-
name: "AuthorizationPendingException",
|
|
321
|
-
$fault: "client",
|
|
322
|
-
...opts
|
|
323
|
-
});
|
|
324
|
-
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
325
|
-
this.error = opts.error;
|
|
326
|
-
this.error_description = opts.error_description;
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
ExpiredTokenException = class ExpiredTokenException extends SSOOIDCServiceException {
|
|
330
|
-
name = "ExpiredTokenException";
|
|
331
|
-
$fault = "client";
|
|
332
|
-
error;
|
|
333
|
-
error_description;
|
|
334
|
-
constructor(opts) {
|
|
335
|
-
super({
|
|
336
|
-
name: "ExpiredTokenException",
|
|
337
|
-
$fault: "client",
|
|
338
|
-
...opts
|
|
339
|
-
});
|
|
340
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
341
|
-
this.error = opts.error;
|
|
342
|
-
this.error_description = opts.error_description;
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
InternalServerException = class InternalServerException extends SSOOIDCServiceException {
|
|
346
|
-
name = "InternalServerException";
|
|
347
|
-
$fault = "server";
|
|
348
|
-
error;
|
|
349
|
-
error_description;
|
|
350
|
-
constructor(opts) {
|
|
351
|
-
super({
|
|
352
|
-
name: "InternalServerException",
|
|
353
|
-
$fault: "server",
|
|
354
|
-
...opts
|
|
355
|
-
});
|
|
356
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
357
|
-
this.error = opts.error;
|
|
358
|
-
this.error_description = opts.error_description;
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
InvalidClientException = class InvalidClientException extends SSOOIDCServiceException {
|
|
362
|
-
name = "InvalidClientException";
|
|
363
|
-
$fault = "client";
|
|
364
|
-
error;
|
|
365
|
-
error_description;
|
|
366
|
-
constructor(opts) {
|
|
367
|
-
super({
|
|
368
|
-
name: "InvalidClientException",
|
|
369
|
-
$fault: "client",
|
|
370
|
-
...opts
|
|
371
|
-
});
|
|
372
|
-
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
373
|
-
this.error = opts.error;
|
|
374
|
-
this.error_description = opts.error_description;
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
InvalidGrantException = class InvalidGrantException extends SSOOIDCServiceException {
|
|
378
|
-
name = "InvalidGrantException";
|
|
379
|
-
$fault = "client";
|
|
380
|
-
error;
|
|
381
|
-
error_description;
|
|
382
|
-
constructor(opts) {
|
|
383
|
-
super({
|
|
384
|
-
name: "InvalidGrantException",
|
|
385
|
-
$fault: "client",
|
|
386
|
-
...opts
|
|
387
|
-
});
|
|
388
|
-
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
389
|
-
this.error = opts.error;
|
|
390
|
-
this.error_description = opts.error_description;
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
InvalidRequestException = class InvalidRequestException extends SSOOIDCServiceException {
|
|
394
|
-
name = "InvalidRequestException";
|
|
395
|
-
$fault = "client";
|
|
396
|
-
error;
|
|
397
|
-
reason;
|
|
398
|
-
error_description;
|
|
399
|
-
constructor(opts) {
|
|
400
|
-
super({
|
|
401
|
-
name: "InvalidRequestException",
|
|
402
|
-
$fault: "client",
|
|
403
|
-
...opts
|
|
404
|
-
});
|
|
405
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
406
|
-
this.error = opts.error;
|
|
407
|
-
this.reason = opts.reason;
|
|
408
|
-
this.error_description = opts.error_description;
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
InvalidScopeException = class InvalidScopeException extends SSOOIDCServiceException {
|
|
412
|
-
name = "InvalidScopeException";
|
|
413
|
-
$fault = "client";
|
|
414
|
-
error;
|
|
415
|
-
error_description;
|
|
416
|
-
constructor(opts) {
|
|
417
|
-
super({
|
|
418
|
-
name: "InvalidScopeException",
|
|
419
|
-
$fault: "client",
|
|
420
|
-
...opts
|
|
421
|
-
});
|
|
422
|
-
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
423
|
-
this.error = opts.error;
|
|
424
|
-
this.error_description = opts.error_description;
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
SlowDownException = class SlowDownException extends SSOOIDCServiceException {
|
|
428
|
-
name = "SlowDownException";
|
|
429
|
-
$fault = "client";
|
|
430
|
-
error;
|
|
431
|
-
error_description;
|
|
432
|
-
constructor(opts) {
|
|
433
|
-
super({
|
|
434
|
-
name: "SlowDownException",
|
|
435
|
-
$fault: "client",
|
|
436
|
-
...opts
|
|
437
|
-
});
|
|
438
|
-
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
439
|
-
this.error = opts.error;
|
|
440
|
-
this.error_description = opts.error_description;
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
UnauthorizedClientException = class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
444
|
-
name = "UnauthorizedClientException";
|
|
445
|
-
$fault = "client";
|
|
446
|
-
error;
|
|
447
|
-
error_description;
|
|
448
|
-
constructor(opts) {
|
|
449
|
-
super({
|
|
450
|
-
name: "UnauthorizedClientException",
|
|
451
|
-
$fault: "client",
|
|
452
|
-
...opts
|
|
453
|
-
});
|
|
454
|
-
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
455
|
-
this.error = opts.error;
|
|
456
|
-
this.error_description = opts.error_description;
|
|
457
|
-
}
|
|
458
|
-
};
|
|
459
|
-
UnsupportedGrantTypeException = class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
460
|
-
name = "UnsupportedGrantTypeException";
|
|
461
|
-
$fault = "client";
|
|
462
|
-
error;
|
|
463
|
-
error_description;
|
|
464
|
-
constructor(opts) {
|
|
465
|
-
super({
|
|
466
|
-
name: "UnsupportedGrantTypeException",
|
|
467
|
-
$fault: "client",
|
|
468
|
-
...opts
|
|
469
|
-
});
|
|
470
|
-
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
471
|
-
this.error = opts.error;
|
|
472
|
-
this.error_description = opts.error_description;
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
_s_registry = schema.TypeRegistry.for(_s);
|
|
476
|
-
SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
477
|
-
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
478
|
-
n0_registry = schema.TypeRegistry.for(n0);
|
|
479
|
-
AccessDeniedException$ = [
|
|
480
|
-
-3,
|
|
481
|
-
n0,
|
|
482
|
-
_ADE,
|
|
483
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
484
|
-
[_e, _r, _ed],
|
|
485
|
-
[0, 0, 0]
|
|
486
|
-
];
|
|
487
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
488
|
-
AuthorizationPendingException$ = [
|
|
489
|
-
-3,
|
|
490
|
-
n0,
|
|
491
|
-
_APE,
|
|
492
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
493
|
-
[_e, _ed],
|
|
494
|
-
[0, 0]
|
|
495
|
-
];
|
|
496
|
-
n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
497
|
-
ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
498
|
-
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
499
|
-
InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
|
|
500
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
501
|
-
InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
|
|
502
|
-
n0_registry.registerError(InvalidClientException$, InvalidClientException);
|
|
503
|
-
InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
504
|
-
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
505
|
-
InvalidRequestException$ = [
|
|
506
|
-
-3,
|
|
507
|
-
n0,
|
|
508
|
-
_IRE,
|
|
509
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
510
|
-
[_e, _r, _ed],
|
|
511
|
-
[0, 0, 0]
|
|
512
|
-
];
|
|
513
|
-
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
514
|
-
InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
515
|
-
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
516
|
-
SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
517
|
-
n0_registry.registerError(SlowDownException$, SlowDownException);
|
|
518
|
-
UnauthorizedClientException$ = [
|
|
519
|
-
-3,
|
|
520
|
-
n0,
|
|
521
|
-
_UCE,
|
|
522
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
523
|
-
[_e, _ed],
|
|
524
|
-
[0, 0]
|
|
525
|
-
];
|
|
526
|
-
n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
527
|
-
UnsupportedGrantTypeException$ = [
|
|
528
|
-
-3,
|
|
529
|
-
n0,
|
|
530
|
-
_UGTE,
|
|
531
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
532
|
-
[_e, _ed],
|
|
533
|
-
[0, 0]
|
|
534
|
-
];
|
|
535
|
-
n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
536
|
-
errorTypeRegistries = [_s_registry, n0_registry];
|
|
537
|
-
AccessToken = [0, n0, _AT, 8, 0];
|
|
538
|
-
ClientSecret = [0, n0, _CS, 8, 0];
|
|
539
|
-
CodeVerifier = [0, n0, _CV, 8, 0];
|
|
540
|
-
IdToken = [0, n0, _IT, 8, 0];
|
|
541
|
-
RefreshToken = [0, n0, _RT, 8, 0];
|
|
542
|
-
CreateTokenRequest$ = [
|
|
543
|
-
3,
|
|
544
|
-
n0,
|
|
545
|
-
_CTR,
|
|
546
|
-
0,
|
|
547
|
-
[_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
|
|
548
|
-
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
549
|
-
3
|
|
550
|
-
];
|
|
551
|
-
CreateTokenResponse$ = [
|
|
552
|
-
3,
|
|
553
|
-
n0,
|
|
554
|
-
_CTRr,
|
|
555
|
-
0,
|
|
556
|
-
[_aT, _tT, _eI, _rT, _iT],
|
|
557
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
558
|
-
];
|
|
559
|
-
CreateToken$ = [
|
|
560
|
-
9,
|
|
561
|
-
n0,
|
|
562
|
-
_CT,
|
|
563
|
-
{ [_h]: ["POST", "/token", 200] },
|
|
564
|
-
() => CreateTokenRequest$,
|
|
565
|
-
() => CreateTokenResponse$
|
|
566
|
-
];
|
|
567
|
-
SSOOIDCClient = class SSOOIDCClient extends client.Client {
|
|
568
|
-
config;
|
|
569
|
-
constructor(...[configuration]) {
|
|
570
|
-
const _config_0 = getRuntimeConfig(configuration || {});
|
|
571
|
-
super(_config_0);
|
|
572
|
-
this.initConfig = _config_0;
|
|
573
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
574
|
-
const _config_2 = client$1.resolveUserAgentConfig(_config_1);
|
|
575
|
-
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
576
|
-
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
577
|
-
const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
|
|
578
|
-
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
579
|
-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
580
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
581
|
-
this.config = _config_8;
|
|
582
|
-
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
583
|
-
this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
|
|
584
|
-
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
585
|
-
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
586
|
-
this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
|
|
587
|
-
this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
|
|
588
|
-
this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
|
|
589
|
-
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
590
|
-
httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
591
|
-
identityProviderConfigProvider: async (config2) => new core.DefaultIdentityProviderConfig({
|
|
592
|
-
"aws.auth#sigv4": config2.credentials
|
|
593
|
-
})
|
|
594
|
-
}));
|
|
595
|
-
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
596
|
-
}
|
|
597
|
-
destroy() {
|
|
598
|
-
super.destroy();
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
CreateTokenCommand = class CreateTokenCommand extends client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config2, o) {
|
|
602
|
-
return [endpoints.getEndpointPlugin(config2, Command.getEndpointParameterInstructions())];
|
|
603
|
-
}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build() {
|
|
604
|
-
};
|
|
605
|
-
commands = {
|
|
606
|
-
CreateTokenCommand
|
|
607
|
-
};
|
|
608
|
-
SSOOIDC = class SSOOIDC extends SSOOIDCClient {
|
|
609
|
-
};
|
|
610
|
-
client.createAggregatedClient(commands, SSOOIDC);
|
|
611
|
-
AccessDeniedExceptionReason = {
|
|
612
|
-
KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
|
|
613
|
-
};
|
|
614
|
-
InvalidRequestExceptionReason = {
|
|
615
|
-
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
616
|
-
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
617
|
-
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
618
|
-
KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
|
|
619
|
-
};
|
|
620
|
-
$$Command = client.Command;
|
|
621
|
-
$__Client = client.Client;
|
|
622
|
-
$AccessDeniedException = AccessDeniedException;
|
|
623
|
-
$AccessDeniedException$ = AccessDeniedException$;
|
|
624
|
-
$AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
625
|
-
$AuthorizationPendingException = AuthorizationPendingException;
|
|
626
|
-
$AuthorizationPendingException$ = AuthorizationPendingException$;
|
|
627
|
-
$CreateToken$ = CreateToken$;
|
|
628
|
-
$CreateTokenCommand = CreateTokenCommand;
|
|
629
|
-
$CreateTokenRequest$ = CreateTokenRequest$;
|
|
630
|
-
$CreateTokenResponse$ = CreateTokenResponse$;
|
|
631
|
-
$ExpiredTokenException = ExpiredTokenException;
|
|
632
|
-
$ExpiredTokenException$ = ExpiredTokenException$;
|
|
633
|
-
$InternalServerException = InternalServerException;
|
|
634
|
-
$InternalServerException$ = InternalServerException$;
|
|
635
|
-
$InvalidClientException = InvalidClientException;
|
|
636
|
-
$InvalidClientException$ = InvalidClientException$;
|
|
637
|
-
$InvalidGrantException = InvalidGrantException;
|
|
638
|
-
$InvalidGrantException$ = InvalidGrantException$;
|
|
639
|
-
$InvalidRequestException = InvalidRequestException;
|
|
640
|
-
$InvalidRequestException$ = InvalidRequestException$;
|
|
641
|
-
$InvalidRequestExceptionReason = InvalidRequestExceptionReason;
|
|
642
|
-
$InvalidScopeException = InvalidScopeException;
|
|
643
|
-
$InvalidScopeException$ = InvalidScopeException$;
|
|
644
|
-
$SSOOIDC = SSOOIDC;
|
|
645
|
-
$SSOOIDCClient = SSOOIDCClient;
|
|
646
|
-
$SSOOIDCServiceException = SSOOIDCServiceException;
|
|
647
|
-
$SSOOIDCServiceException$ = SSOOIDCServiceException$;
|
|
648
|
-
$SlowDownException = SlowDownException;
|
|
649
|
-
$SlowDownException$ = SlowDownException$;
|
|
650
|
-
$UnauthorizedClientException = UnauthorizedClientException;
|
|
651
|
-
$UnauthorizedClientException$ = UnauthorizedClientException$;
|
|
652
|
-
$UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
653
|
-
$UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$;
|
|
654
|
-
$errorTypeRegistries = errorTypeRegistries;
|
|
655
|
-
});
|
|
656
|
-
init_sso_oidc();
|
|
657
|
-
|
|
658
|
-
export {
|
|
659
|
-
$$Command as $Command,
|
|
660
|
-
$AccessDeniedException as AccessDeniedException,
|
|
661
|
-
$AccessDeniedException$ as AccessDeniedException$,
|
|
662
|
-
$AccessDeniedExceptionReason as AccessDeniedExceptionReason,
|
|
663
|
-
$AuthorizationPendingException as AuthorizationPendingException,
|
|
664
|
-
$AuthorizationPendingException$ as AuthorizationPendingException$,
|
|
665
|
-
$CreateToken$ as CreateToken$,
|
|
666
|
-
$CreateTokenCommand as CreateTokenCommand,
|
|
667
|
-
$CreateTokenRequest$ as CreateTokenRequest$,
|
|
668
|
-
$CreateTokenResponse$ as CreateTokenResponse$,
|
|
669
|
-
$ExpiredTokenException as ExpiredTokenException,
|
|
670
|
-
$ExpiredTokenException$ as ExpiredTokenException$,
|
|
671
|
-
$InternalServerException as InternalServerException,
|
|
672
|
-
$InternalServerException$ as InternalServerException$,
|
|
673
|
-
$InvalidClientException as InvalidClientException,
|
|
674
|
-
$InvalidClientException$ as InvalidClientException$,
|
|
675
|
-
$InvalidGrantException as InvalidGrantException,
|
|
676
|
-
$InvalidGrantException$ as InvalidGrantException$,
|
|
677
|
-
$InvalidRequestException as InvalidRequestException,
|
|
678
|
-
$InvalidRequestException$ as InvalidRequestException$,
|
|
679
|
-
$InvalidRequestExceptionReason as InvalidRequestExceptionReason,
|
|
680
|
-
$InvalidScopeException as InvalidScopeException,
|
|
681
|
-
$InvalidScopeException$ as InvalidScopeException$,
|
|
682
|
-
$SSOOIDC as SSOOIDC,
|
|
683
|
-
$SSOOIDCClient as SSOOIDCClient,
|
|
684
|
-
$SSOOIDCServiceException as SSOOIDCServiceException,
|
|
685
|
-
$SSOOIDCServiceException$ as SSOOIDCServiceException$,
|
|
686
|
-
$SlowDownException as SlowDownException,
|
|
687
|
-
$SlowDownException$ as SlowDownException$,
|
|
688
|
-
$UnauthorizedClientException as UnauthorizedClientException,
|
|
689
|
-
$UnauthorizedClientException$ as UnauthorizedClientException$,
|
|
690
|
-
$UnsupportedGrantTypeException as UnsupportedGrantTypeException,
|
|
691
|
-
$UnsupportedGrantTypeException$ as UnsupportedGrantTypeException$,
|
|
692
|
-
$__Client as __Client,
|
|
693
|
-
$errorTypeRegistries as errorTypeRegistries
|
|
694
|
-
};
|
|
695
|
-
export default {
|
|
696
|
-
get $Command() {
|
|
697
|
-
return $$Command;
|
|
698
|
-
},
|
|
699
|
-
get AccessDeniedException() {
|
|
700
|
-
return $AccessDeniedException;
|
|
701
|
-
},
|
|
702
|
-
get AccessDeniedException$() {
|
|
703
|
-
return $AccessDeniedException$;
|
|
704
|
-
},
|
|
705
|
-
get AccessDeniedExceptionReason() {
|
|
706
|
-
return $AccessDeniedExceptionReason;
|
|
707
|
-
},
|
|
708
|
-
get AuthorizationPendingException() {
|
|
709
|
-
return $AuthorizationPendingException;
|
|
710
|
-
},
|
|
711
|
-
get AuthorizationPendingException$() {
|
|
712
|
-
return $AuthorizationPendingException$;
|
|
713
|
-
},
|
|
714
|
-
get CreateToken$() {
|
|
715
|
-
return $CreateToken$;
|
|
716
|
-
},
|
|
717
|
-
get CreateTokenCommand() {
|
|
718
|
-
return $CreateTokenCommand;
|
|
719
|
-
},
|
|
720
|
-
get CreateTokenRequest$() {
|
|
721
|
-
return $CreateTokenRequest$;
|
|
722
|
-
},
|
|
723
|
-
get CreateTokenResponse$() {
|
|
724
|
-
return $CreateTokenResponse$;
|
|
725
|
-
},
|
|
726
|
-
get ExpiredTokenException() {
|
|
727
|
-
return $ExpiredTokenException;
|
|
728
|
-
},
|
|
729
|
-
get ExpiredTokenException$() {
|
|
730
|
-
return $ExpiredTokenException$;
|
|
731
|
-
},
|
|
732
|
-
get InternalServerException() {
|
|
733
|
-
return $InternalServerException;
|
|
734
|
-
},
|
|
735
|
-
get InternalServerException$() {
|
|
736
|
-
return $InternalServerException$;
|
|
737
|
-
},
|
|
738
|
-
get InvalidClientException() {
|
|
739
|
-
return $InvalidClientException;
|
|
740
|
-
},
|
|
741
|
-
get InvalidClientException$() {
|
|
742
|
-
return $InvalidClientException$;
|
|
743
|
-
},
|
|
744
|
-
get InvalidGrantException() {
|
|
745
|
-
return $InvalidGrantException;
|
|
746
|
-
},
|
|
747
|
-
get InvalidGrantException$() {
|
|
748
|
-
return $InvalidGrantException$;
|
|
749
|
-
},
|
|
750
|
-
get InvalidRequestException() {
|
|
751
|
-
return $InvalidRequestException;
|
|
752
|
-
},
|
|
753
|
-
get InvalidRequestException$() {
|
|
754
|
-
return $InvalidRequestException$;
|
|
755
|
-
},
|
|
756
|
-
get InvalidRequestExceptionReason() {
|
|
757
|
-
return $InvalidRequestExceptionReason;
|
|
758
|
-
},
|
|
759
|
-
get InvalidScopeException() {
|
|
760
|
-
return $InvalidScopeException;
|
|
761
|
-
},
|
|
762
|
-
get InvalidScopeException$() {
|
|
763
|
-
return $InvalidScopeException$;
|
|
764
|
-
},
|
|
765
|
-
get SSOOIDC() {
|
|
766
|
-
return $SSOOIDC;
|
|
767
|
-
},
|
|
768
|
-
get SSOOIDCClient() {
|
|
769
|
-
return $SSOOIDCClient;
|
|
770
|
-
},
|
|
771
|
-
get SSOOIDCServiceException() {
|
|
772
|
-
return $SSOOIDCServiceException;
|
|
773
|
-
},
|
|
774
|
-
get SSOOIDCServiceException$() {
|
|
775
|
-
return $SSOOIDCServiceException$;
|
|
776
|
-
},
|
|
777
|
-
get SlowDownException() {
|
|
778
|
-
return $SlowDownException;
|
|
779
|
-
},
|
|
780
|
-
get SlowDownException$() {
|
|
781
|
-
return $SlowDownException$;
|
|
782
|
-
},
|
|
783
|
-
get UnauthorizedClientException() {
|
|
784
|
-
return $UnauthorizedClientException;
|
|
785
|
-
},
|
|
786
|
-
get UnauthorizedClientException$() {
|
|
787
|
-
return $UnauthorizedClientException$;
|
|
788
|
-
},
|
|
789
|
-
get UnsupportedGrantTypeException() {
|
|
790
|
-
return $UnsupportedGrantTypeException;
|
|
791
|
-
},
|
|
792
|
-
get UnsupportedGrantTypeException$() {
|
|
793
|
-
return $UnsupportedGrantTypeException$;
|
|
794
|
-
},
|
|
795
|
-
get __Client() {
|
|
796
|
-
return $__Client;
|
|
797
|
-
},
|
|
798
|
-
get errorTypeRegistries() {
|
|
799
|
-
return $errorTypeRegistries;
|
|
800
|
-
}
|
|
801
|
-
};
|