@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-qv6atbab.js
DELETED
|
@@ -1,619 +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/signin/index.js
|
|
26
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
27
|
-
return {
|
|
28
|
-
schemeId: "aws.auth#sigv4",
|
|
29
|
-
signingProperties: {
|
|
30
|
-
name: "signin",
|
|
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, defaultSigninHttpAuthSchemeParametersProvider = 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
|
-
}, defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
54
|
-
const options = [];
|
|
55
|
-
switch (authParameters.operation) {
|
|
56
|
-
case "CreateOAuth2Token": {
|
|
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: "signin"
|
|
75
|
-
});
|
|
76
|
-
}, commonParams, version = "3.997.10", packageInfo, m = "ref", a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h, i, j, k, l, _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
|
-
}, SigninServiceException, AccessDeniedException, InternalServerException, TooManyRequestsError, ValidationException, _ADE = "AccessDeniedException", _AT = "AccessToken", _COAT = "CreateOAuth2Token", _COATR = "CreateOAuth2TokenRequest", _COATRB = "CreateOAuth2TokenRequestBody", _COATRBr = "CreateOAuth2TokenResponseBody", _COATRr = "CreateOAuth2TokenResponse", _ISE = "InternalServerException", _RT = "RefreshToken", _TMRE = "TooManyRequestsError", _VE = "ValidationException", _aKI = "accessKeyId", _aT = "accessToken", _c = "client", _cI = "clientId", _cV = "codeVerifier", _co = "code", _e = "error", _eI = "expiresIn", _gT = "grantType", _h = "http", _hE = "httpError", _iT = "idToken", _jN = "jsonName", _m = "message", _rT = "refreshToken", _rU = "redirectUri", _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin", _sAK = "secretAccessKey", _sT = "sessionToken", _se = "server", _tI = "tokenInput", _tO = "tokenOutput", _tT = "tokenType", n0 = "com.amazonaws.signin", _s_registry, SigninServiceException$, n0_registry, AccessDeniedException$, InternalServerException$, TooManyRequestsError$, ValidationException$, errorTypeRegistries, RefreshToken, AccessToken$, CreateOAuth2TokenRequest$, CreateOAuth2TokenRequestBody$, CreateOAuth2TokenResponse$, CreateOAuth2TokenResponseBody$, CreateOAuth2Token$, getRuntimeConfig$1 = (config2) => {
|
|
82
|
-
return {
|
|
83
|
-
apiVersion: "2023-01-01",
|
|
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 ?? defaultSigninHttpAuthSchemeProvider,
|
|
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.signin",
|
|
106
|
-
errorTypeRegistries,
|
|
107
|
-
version: "2023-01-01",
|
|
108
|
-
serviceTarget: "Signin"
|
|
109
|
-
},
|
|
110
|
-
serviceId: config2?.serviceId ?? "Signin",
|
|
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
|
-
}, SigninClient, CreateOAuth2TokenCommand, commands, Signin, OAuth2ErrorCode, $$Command, $__Client, $AccessDeniedException, $AccessDeniedException$, $AccessToken$, $CreateOAuth2Token$, $CreateOAuth2TokenCommand, $CreateOAuth2TokenRequest$, $CreateOAuth2TokenRequestBody$, $CreateOAuth2TokenResponse$, $CreateOAuth2TokenResponseBody$, $InternalServerException, $InternalServerException$, $OAuth2ErrorCode, $Signin, $SigninClient, $SigninServiceException, $SigninServiceException$, $TooManyRequestsError, $TooManyRequestsError$, $ValidationException, $ValidationException$, $errorTypeRegistries;
|
|
186
|
-
var init_signin = __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
|
-
h = { [m]: "Endpoint" };
|
|
209
|
-
i = { [m]: d };
|
|
210
|
-
j = { fn: f, argv: [i, "name"] };
|
|
211
|
-
k = {};
|
|
212
|
-
l = [{ [m]: "Region" }];
|
|
213
|
-
_data = {
|
|
214
|
-
conditions: [
|
|
215
|
-
[c, [h]],
|
|
216
|
-
[c, l],
|
|
217
|
-
["aws.partition", l, d],
|
|
218
|
-
[e, [{ [m]: "UseFIPS" }, b]],
|
|
219
|
-
[e, [{ [m]: "UseDualStack" }, b]],
|
|
220
|
-
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
221
|
-
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
222
|
-
[g, [j, "aws"]],
|
|
223
|
-
[g, [j, "aws-cn"]],
|
|
224
|
-
[g, [j, "aws-us-gov"]]
|
|
225
|
-
],
|
|
226
|
-
results: [
|
|
227
|
-
[a],
|
|
228
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
229
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
230
|
-
[h, k],
|
|
231
|
-
["https://{Region}.signin.aws.amazon.com", k],
|
|
232
|
-
["https://{Region}.signin.amazonaws.cn", k],
|
|
233
|
-
["https://{Region}.signin.amazonaws-us-gov.com", k],
|
|
234
|
-
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
235
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
236
|
-
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
237
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
238
|
-
["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
239
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
240
|
-
["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
241
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
242
|
-
]
|
|
243
|
-
};
|
|
244
|
-
nodes = new Int32Array([
|
|
245
|
-
-1,
|
|
246
|
-
1,
|
|
247
|
-
-1,
|
|
248
|
-
0,
|
|
249
|
-
15,
|
|
250
|
-
3,
|
|
251
|
-
1,
|
|
252
|
-
4,
|
|
253
|
-
r + 14,
|
|
254
|
-
2,
|
|
255
|
-
5,
|
|
256
|
-
r + 14,
|
|
257
|
-
3,
|
|
258
|
-
11,
|
|
259
|
-
6,
|
|
260
|
-
4,
|
|
261
|
-
10,
|
|
262
|
-
7,
|
|
263
|
-
7,
|
|
264
|
-
r + 4,
|
|
265
|
-
8,
|
|
266
|
-
8,
|
|
267
|
-
r + 5,
|
|
268
|
-
9,
|
|
269
|
-
9,
|
|
270
|
-
r + 6,
|
|
271
|
-
r + 13,
|
|
272
|
-
5,
|
|
273
|
-
r + 11,
|
|
274
|
-
r + 12,
|
|
275
|
-
4,
|
|
276
|
-
13,
|
|
277
|
-
12,
|
|
278
|
-
6,
|
|
279
|
-
r + 9,
|
|
280
|
-
r + 10,
|
|
281
|
-
5,
|
|
282
|
-
14,
|
|
283
|
-
r + 8,
|
|
284
|
-
6,
|
|
285
|
-
r + 7,
|
|
286
|
-
r + 8,
|
|
287
|
-
3,
|
|
288
|
-
r + 1,
|
|
289
|
-
16,
|
|
290
|
-
4,
|
|
291
|
-
r + 2,
|
|
292
|
-
r + 3
|
|
293
|
-
]);
|
|
294
|
-
bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
295
|
-
cache = new endpoints.EndpointCache({
|
|
296
|
-
size: 50,
|
|
297
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
298
|
-
});
|
|
299
|
-
endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions;
|
|
300
|
-
SigninServiceException = class SigninServiceException extends client.ServiceException {
|
|
301
|
-
constructor(options) {
|
|
302
|
-
super(options);
|
|
303
|
-
Object.setPrototypeOf(this, SigninServiceException.prototype);
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
AccessDeniedException = class AccessDeniedException extends SigninServiceException {
|
|
307
|
-
name = "AccessDeniedException";
|
|
308
|
-
$fault = "client";
|
|
309
|
-
error;
|
|
310
|
-
constructor(opts) {
|
|
311
|
-
super({
|
|
312
|
-
name: "AccessDeniedException",
|
|
313
|
-
$fault: "client",
|
|
314
|
-
...opts
|
|
315
|
-
});
|
|
316
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
317
|
-
this.error = opts.error;
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
InternalServerException = class InternalServerException extends SigninServiceException {
|
|
321
|
-
name = "InternalServerException";
|
|
322
|
-
$fault = "server";
|
|
323
|
-
error;
|
|
324
|
-
constructor(opts) {
|
|
325
|
-
super({
|
|
326
|
-
name: "InternalServerException",
|
|
327
|
-
$fault: "server",
|
|
328
|
-
...opts
|
|
329
|
-
});
|
|
330
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
331
|
-
this.error = opts.error;
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
TooManyRequestsError = class TooManyRequestsError extends SigninServiceException {
|
|
335
|
-
name = "TooManyRequestsError";
|
|
336
|
-
$fault = "client";
|
|
337
|
-
error;
|
|
338
|
-
constructor(opts) {
|
|
339
|
-
super({
|
|
340
|
-
name: "TooManyRequestsError",
|
|
341
|
-
$fault: "client",
|
|
342
|
-
...opts
|
|
343
|
-
});
|
|
344
|
-
Object.setPrototypeOf(this, TooManyRequestsError.prototype);
|
|
345
|
-
this.error = opts.error;
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
ValidationException = class ValidationException extends SigninServiceException {
|
|
349
|
-
name = "ValidationException";
|
|
350
|
-
$fault = "client";
|
|
351
|
-
error;
|
|
352
|
-
constructor(opts) {
|
|
353
|
-
super({
|
|
354
|
-
name: "ValidationException",
|
|
355
|
-
$fault: "client",
|
|
356
|
-
...opts
|
|
357
|
-
});
|
|
358
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
359
|
-
this.error = opts.error;
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
_s_registry = schema.TypeRegistry.for(_s);
|
|
363
|
-
SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
364
|
-
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
365
|
-
n0_registry = schema.TypeRegistry.for(n0);
|
|
366
|
-
AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
|
|
367
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
368
|
-
InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _m], [0, 0], 2];
|
|
369
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
370
|
-
TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
|
|
371
|
-
n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
|
|
372
|
-
ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
|
|
373
|
-
n0_registry.registerError(ValidationException$, ValidationException);
|
|
374
|
-
errorTypeRegistries = [_s_registry, n0_registry];
|
|
375
|
-
RefreshToken = [0, n0, _RT, 8, 0];
|
|
376
|
-
AccessToken$ = [
|
|
377
|
-
3,
|
|
378
|
-
n0,
|
|
379
|
-
_AT,
|
|
380
|
-
8,
|
|
381
|
-
[_aKI, _sAK, _sT],
|
|
382
|
-
[
|
|
383
|
-
[0, { [_jN]: _aKI }],
|
|
384
|
-
[0, { [_jN]: _sAK }],
|
|
385
|
-
[0, { [_jN]: _sT }]
|
|
386
|
-
],
|
|
387
|
-
3
|
|
388
|
-
];
|
|
389
|
-
CreateOAuth2TokenRequest$ = [
|
|
390
|
-
3,
|
|
391
|
-
n0,
|
|
392
|
-
_COATR,
|
|
393
|
-
0,
|
|
394
|
-
[_tI],
|
|
395
|
-
[[() => CreateOAuth2TokenRequestBody$, 16]],
|
|
396
|
-
1
|
|
397
|
-
];
|
|
398
|
-
CreateOAuth2TokenRequestBody$ = [
|
|
399
|
-
3,
|
|
400
|
-
n0,
|
|
401
|
-
_COATRB,
|
|
402
|
-
0,
|
|
403
|
-
[_cI, _gT, _co, _rU, _cV, _rT],
|
|
404
|
-
[
|
|
405
|
-
[0, { [_jN]: _cI }],
|
|
406
|
-
[0, { [_jN]: _gT }],
|
|
407
|
-
0,
|
|
408
|
-
[0, { [_jN]: _rU }],
|
|
409
|
-
[0, { [_jN]: _cV }],
|
|
410
|
-
[() => RefreshToken, { [_jN]: _rT }]
|
|
411
|
-
],
|
|
412
|
-
2
|
|
413
|
-
];
|
|
414
|
-
CreateOAuth2TokenResponse$ = [
|
|
415
|
-
3,
|
|
416
|
-
n0,
|
|
417
|
-
_COATRr,
|
|
418
|
-
0,
|
|
419
|
-
[_tO],
|
|
420
|
-
[[() => CreateOAuth2TokenResponseBody$, 16]],
|
|
421
|
-
1
|
|
422
|
-
];
|
|
423
|
-
CreateOAuth2TokenResponseBody$ = [
|
|
424
|
-
3,
|
|
425
|
-
n0,
|
|
426
|
-
_COATRBr,
|
|
427
|
-
0,
|
|
428
|
-
[_aT, _tT, _eI, _rT, _iT],
|
|
429
|
-
[
|
|
430
|
-
[() => AccessToken$, { [_jN]: _aT }],
|
|
431
|
-
[0, { [_jN]: _tT }],
|
|
432
|
-
[1, { [_jN]: _eI }],
|
|
433
|
-
[() => RefreshToken, { [_jN]: _rT }],
|
|
434
|
-
[0, { [_jN]: _iT }]
|
|
435
|
-
],
|
|
436
|
-
4
|
|
437
|
-
];
|
|
438
|
-
CreateOAuth2Token$ = [
|
|
439
|
-
9,
|
|
440
|
-
n0,
|
|
441
|
-
_COAT,
|
|
442
|
-
{ [_h]: ["POST", "/v1/token", 200] },
|
|
443
|
-
() => CreateOAuth2TokenRequest$,
|
|
444
|
-
() => CreateOAuth2TokenResponse$
|
|
445
|
-
];
|
|
446
|
-
SigninClient = class SigninClient extends client.Client {
|
|
447
|
-
config;
|
|
448
|
-
constructor(...[configuration]) {
|
|
449
|
-
const _config_0 = getRuntimeConfig(configuration || {});
|
|
450
|
-
super(_config_0);
|
|
451
|
-
this.initConfig = _config_0;
|
|
452
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
453
|
-
const _config_2 = client$1.resolveUserAgentConfig(_config_1);
|
|
454
|
-
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
455
|
-
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
456
|
-
const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
|
|
457
|
-
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
458
|
-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
459
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
460
|
-
this.config = _config_8;
|
|
461
|
-
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
462
|
-
this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
|
|
463
|
-
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
464
|
-
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
465
|
-
this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
|
|
466
|
-
this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
|
|
467
|
-
this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
|
|
468
|
-
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
469
|
-
httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
|
|
470
|
-
identityProviderConfigProvider: async (config2) => new core.DefaultIdentityProviderConfig({
|
|
471
|
-
"aws.auth#sigv4": config2.credentials
|
|
472
|
-
})
|
|
473
|
-
}));
|
|
474
|
-
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
475
|
-
}
|
|
476
|
-
destroy() {
|
|
477
|
-
super.destroy();
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
CreateOAuth2TokenCommand = class CreateOAuth2TokenCommand extends client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config2, o) {
|
|
481
|
-
return [endpoints.getEndpointPlugin(config2, Command.getEndpointParameterInstructions())];
|
|
482
|
-
}).s("Signin", "CreateOAuth2Token", {}).n("SigninClient", "CreateOAuth2TokenCommand").sc(CreateOAuth2Token$).build() {
|
|
483
|
-
};
|
|
484
|
-
commands = {
|
|
485
|
-
CreateOAuth2TokenCommand
|
|
486
|
-
};
|
|
487
|
-
Signin = class Signin extends SigninClient {
|
|
488
|
-
};
|
|
489
|
-
client.createAggregatedClient(commands, Signin);
|
|
490
|
-
OAuth2ErrorCode = {
|
|
491
|
-
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
|
|
492
|
-
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
493
|
-
INVALID_REQUEST: "INVALID_REQUEST",
|
|
494
|
-
SERVER_ERROR: "server_error",
|
|
495
|
-
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
496
|
-
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED"
|
|
497
|
-
};
|
|
498
|
-
$$Command = client.Command;
|
|
499
|
-
$__Client = client.Client;
|
|
500
|
-
$AccessDeniedException = AccessDeniedException;
|
|
501
|
-
$AccessDeniedException$ = AccessDeniedException$;
|
|
502
|
-
$AccessToken$ = AccessToken$;
|
|
503
|
-
$CreateOAuth2Token$ = CreateOAuth2Token$;
|
|
504
|
-
$CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
|
|
505
|
-
$CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
|
|
506
|
-
$CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
|
|
507
|
-
$CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
|
|
508
|
-
$CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
|
|
509
|
-
$InternalServerException = InternalServerException;
|
|
510
|
-
$InternalServerException$ = InternalServerException$;
|
|
511
|
-
$OAuth2ErrorCode = OAuth2ErrorCode;
|
|
512
|
-
$Signin = Signin;
|
|
513
|
-
$SigninClient = SigninClient;
|
|
514
|
-
$SigninServiceException = SigninServiceException;
|
|
515
|
-
$SigninServiceException$ = SigninServiceException$;
|
|
516
|
-
$TooManyRequestsError = TooManyRequestsError;
|
|
517
|
-
$TooManyRequestsError$ = TooManyRequestsError$;
|
|
518
|
-
$ValidationException = ValidationException;
|
|
519
|
-
$ValidationException$ = ValidationException$;
|
|
520
|
-
$errorTypeRegistries = errorTypeRegistries;
|
|
521
|
-
});
|
|
522
|
-
init_signin();
|
|
523
|
-
|
|
524
|
-
export {
|
|
525
|
-
$$Command as $Command,
|
|
526
|
-
$AccessDeniedException as AccessDeniedException,
|
|
527
|
-
$AccessDeniedException$ as AccessDeniedException$,
|
|
528
|
-
$AccessToken$ as AccessToken$,
|
|
529
|
-
$CreateOAuth2Token$ as CreateOAuth2Token$,
|
|
530
|
-
$CreateOAuth2TokenCommand as CreateOAuth2TokenCommand,
|
|
531
|
-
$CreateOAuth2TokenRequest$ as CreateOAuth2TokenRequest$,
|
|
532
|
-
$CreateOAuth2TokenRequestBody$ as CreateOAuth2TokenRequestBody$,
|
|
533
|
-
$CreateOAuth2TokenResponse$ as CreateOAuth2TokenResponse$,
|
|
534
|
-
$CreateOAuth2TokenResponseBody$ as CreateOAuth2TokenResponseBody$,
|
|
535
|
-
$InternalServerException as InternalServerException,
|
|
536
|
-
$InternalServerException$ as InternalServerException$,
|
|
537
|
-
$OAuth2ErrorCode as OAuth2ErrorCode,
|
|
538
|
-
$Signin as Signin,
|
|
539
|
-
$SigninClient as SigninClient,
|
|
540
|
-
$SigninServiceException as SigninServiceException,
|
|
541
|
-
$SigninServiceException$ as SigninServiceException$,
|
|
542
|
-
$TooManyRequestsError as TooManyRequestsError,
|
|
543
|
-
$TooManyRequestsError$ as TooManyRequestsError$,
|
|
544
|
-
$ValidationException as ValidationException,
|
|
545
|
-
$ValidationException$ as ValidationException$,
|
|
546
|
-
$__Client as __Client,
|
|
547
|
-
$errorTypeRegistries as errorTypeRegistries
|
|
548
|
-
};
|
|
549
|
-
export default {
|
|
550
|
-
get $Command() {
|
|
551
|
-
return $$Command;
|
|
552
|
-
},
|
|
553
|
-
get AccessDeniedException() {
|
|
554
|
-
return $AccessDeniedException;
|
|
555
|
-
},
|
|
556
|
-
get AccessDeniedException$() {
|
|
557
|
-
return $AccessDeniedException$;
|
|
558
|
-
},
|
|
559
|
-
get AccessToken$() {
|
|
560
|
-
return $AccessToken$;
|
|
561
|
-
},
|
|
562
|
-
get CreateOAuth2Token$() {
|
|
563
|
-
return $CreateOAuth2Token$;
|
|
564
|
-
},
|
|
565
|
-
get CreateOAuth2TokenCommand() {
|
|
566
|
-
return $CreateOAuth2TokenCommand;
|
|
567
|
-
},
|
|
568
|
-
get CreateOAuth2TokenRequest$() {
|
|
569
|
-
return $CreateOAuth2TokenRequest$;
|
|
570
|
-
},
|
|
571
|
-
get CreateOAuth2TokenRequestBody$() {
|
|
572
|
-
return $CreateOAuth2TokenRequestBody$;
|
|
573
|
-
},
|
|
574
|
-
get CreateOAuth2TokenResponse$() {
|
|
575
|
-
return $CreateOAuth2TokenResponse$;
|
|
576
|
-
},
|
|
577
|
-
get CreateOAuth2TokenResponseBody$() {
|
|
578
|
-
return $CreateOAuth2TokenResponseBody$;
|
|
579
|
-
},
|
|
580
|
-
get InternalServerException() {
|
|
581
|
-
return $InternalServerException;
|
|
582
|
-
},
|
|
583
|
-
get InternalServerException$() {
|
|
584
|
-
return $InternalServerException$;
|
|
585
|
-
},
|
|
586
|
-
get OAuth2ErrorCode() {
|
|
587
|
-
return $OAuth2ErrorCode;
|
|
588
|
-
},
|
|
589
|
-
get Signin() {
|
|
590
|
-
return $Signin;
|
|
591
|
-
},
|
|
592
|
-
get SigninClient() {
|
|
593
|
-
return $SigninClient;
|
|
594
|
-
},
|
|
595
|
-
get SigninServiceException() {
|
|
596
|
-
return $SigninServiceException;
|
|
597
|
-
},
|
|
598
|
-
get SigninServiceException$() {
|
|
599
|
-
return $SigninServiceException$;
|
|
600
|
-
},
|
|
601
|
-
get TooManyRequestsError() {
|
|
602
|
-
return $TooManyRequestsError;
|
|
603
|
-
},
|
|
604
|
-
get TooManyRequestsError$() {
|
|
605
|
-
return $TooManyRequestsError$;
|
|
606
|
-
},
|
|
607
|
-
get ValidationException() {
|
|
608
|
-
return $ValidationException;
|
|
609
|
-
},
|
|
610
|
-
get ValidationException$() {
|
|
611
|
-
return $ValidationException$;
|
|
612
|
-
},
|
|
613
|
-
get __Client() {
|
|
614
|
-
return $__Client;
|
|
615
|
-
},
|
|
616
|
-
get errorTypeRegistries() {
|
|
617
|
-
return $errorTypeRegistries;
|
|
618
|
-
}
|
|
619
|
-
};
|