@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.
Files changed (284) hide show
  1. package/README.md +2 -2
  2. package/dist/{acp-adapter-pfeje2v5.js → acp-adapter-eb2aj8xy.js} +4 -4
  3. package/dist/{actions-0sttc7f5.js → actions-kpnwp1kz.js} +31 -27
  4. package/dist/{anthropic-messages-2y8nktar.js → anthropic-messages-9vqsbznt.js} +112 -84
  5. package/dist/{app-p8teva95.js → app-zk1apkf6.js} +10 -7
  6. package/dist/{assistant-r45jnsrt.js → assistant-kwq4y50q.js} +32 -28
  7. package/dist/{azure-openai-responses-f38x2avq.js → azure-openai-responses-04qwdwfq.js} +27 -13
  8. package/dist/{boot-reembed-je26h5y7.js → boot-reembed-22hd3jjn.js} +9 -7
  9. package/dist/{boot-reembed-1qmybsd4.js → boot-reembed-qe168424.js} +10 -8
  10. package/dist/{boot-scrub-logs-gte3h1mm.js → boot-scrub-logs-pkdpsrjd.js} +7 -5
  11. package/dist/{claude-adapter-csc1mzka.js → claude-adapter-3fx90nww.js} +18 -16
  12. package/dist/{claude-managed-adapter-dsmkcrjy.js → claude-managed-adapter-ea2aga6w.js} +3 -3
  13. package/dist/{claude-sdk-session-fcd6f078.js → claude-sdk-session-z7fahf1k.js} +18 -16
  14. package/dist/{cli-r2fpe7cx.js → cli-00w2c66p.js} +61 -55
  15. package/dist/{cli-wbyk465z.js → cli-09y3tjxz.js} +1 -1
  16. package/dist/{cli-ht5rs63n.js → cli-0e31nm4n.js} +16 -7
  17. package/dist/cli-0x5qzvkg.js +4279 -0
  18. package/dist/{cli-d3p82erb.js → cli-18amys3y.js} +9 -9
  19. package/dist/{cli-4ahpr4sw.js → cli-1jpjafw4.js} +5 -5
  20. package/dist/{cli-jbmc0r7r.js → cli-243tzws8.js} +1 -1
  21. package/dist/{cli-ch38q5z4.js → cli-24k806sc.js} +6789 -2542
  22. package/dist/cli-3bkz2p7j.js +2828 -0
  23. package/dist/cli-3er6gcsn.js +1849 -0
  24. package/dist/cli-4k7jazkq.js +3339 -0
  25. package/dist/{cli-c4eeb5q2.js → cli-5b6b62tz.js} +1 -1
  26. package/dist/{cli-qd65dvr6.js → cli-5vs0nh43.js} +65 -44
  27. package/dist/{cli-z3wkng35.js → cli-6r3cgpk2.js} +224 -156
  28. package/dist/{cli-pgj4a5fb.js → cli-71cj99hx.js} +4 -3
  29. package/dist/cli-8sea27q4.js +14075 -0
  30. package/dist/{cli-jvy9qgjs.js → cli-913yakhv.js} +22 -7
  31. package/dist/{cli-pf9q3696.js → cli-927erqqt.js} +5 -2
  32. package/dist/cli-95jnpnqg.js +230 -0
  33. package/dist/{cli-wpv5rgg2.js → cli-abp3g4ax.js} +15 -2
  34. package/dist/{cli-ckz5t2hb.js → cli-acy6bfhr.js} +10 -7
  35. package/dist/{cli-4yc5d8fk.js → cli-avkd6mqv.js} +50 -0
  36. package/dist/{cli-8wrympd7.js → cli-bzr0ftht.js} +26 -7
  37. package/dist/{cli-qn042eh7.js → cli-c1v10xb2.js} +194 -1913
  38. package/dist/cli-cgj4hc12.js +18902 -0
  39. package/dist/{cli-2nnd56zt.js → cli-e0pg4zeh.js} +3 -2
  40. package/dist/{cli-r84ctdxn.js → cli-e31ehqwy.js} +2 -2
  41. package/dist/{cli-gphgnvpf.js → cli-e3229na9.js} +3 -3
  42. package/dist/{cli-gpqcs935.js → cli-e3cyf59d.js} +2 -2
  43. package/dist/{cli-s25avqg9.js → cli-e781c6f9.js} +1 -0
  44. package/dist/{cli-s2qjdd6z.js → cli-eetrvv91.js} +1 -1
  45. package/dist/{cli-j4nv2wqy.js → cli-fdzg6jhf.js} +10 -4
  46. package/dist/{cli-fm4ytsdk.js → cli-g2h29qar.js} +2 -2
  47. package/dist/{cli-zvgj5zg8.js → cli-ge67p080.js} +302 -3497
  48. package/dist/cli-h38x0qhg.js +6912 -0
  49. package/dist/{cli-9xvdm3bx.js → cli-h60qfasa.js} +742 -278
  50. package/dist/{cli-jew3jda5.js → cli-hws0vn86.js} +2 -2
  51. package/dist/{cli-j8dggbcr.js → cli-k0g1sjzm.js} +23 -31
  52. package/dist/{cli-xw7vak96.js → cli-kp3qs53m.js} +5 -5
  53. package/dist/{cli-rgvp6r2x.js → cli-mcnhgnn1.js} +193 -4
  54. package/dist/{cli-zvkq5csn.js → cli-myaxtgh8.js} +7 -6
  55. package/dist/{cli-56h18ng2.js → cli-n62atwh9.js} +1 -1
  56. package/dist/cli-n7h1kqpf.js +29 -0
  57. package/dist/{cli-fmy65jdn.js → cli-pf1v8xhb.js} +7 -5
  58. package/dist/{cli-xy1cchaf.js → cli-q85qhckh.js} +238 -11
  59. package/dist/{cli-3bpzj8me.js → cli-r1d3dzt6.js} +2 -2
  60. package/dist/{pi-mono-adapter-jcqt71cg.js → cli-rxkqvngf.js} +67343 -101083
  61. package/dist/{cli-kj76p1ez.js → cli-scwq51gn.js} +13 -7
  62. package/dist/{cli-b9dd0h3k.js → cli-stwsmd6k.js} +3 -2
  63. package/dist/{cli-c2mk1kgf.js → cli-v4en75c5.js} +8 -1
  64. package/dist/{cli-z61ykvam.js → cli-wg04s9kr.js} +4 -3
  65. package/dist/cli-yn0a417a.js +4069 -0
  66. package/dist/{cli-zfzznn7c.js → cli-ytxs7mn1.js} +26 -2
  67. package/dist/{cli-4j8k1m4w.js → cli-zt1227k1.js} +1162 -192
  68. package/dist/cli.js +28 -35
  69. package/dist/{codex-adapter-fxmpsabw.js → codex-adapter-ttdm995v.js} +12 -11
  70. package/dist/{codex-hook-8jexc34x.js → codex-hook-8gx7bcz0.js} +3 -3
  71. package/dist/{codex-session-runner-rr1e47ea.js → codex-session-runner-3v8nh4c8.js} +12 -11
  72. package/dist/{commands-0f5rxz51.js → commands-1cxwbhhq.js} +7 -5
  73. package/dist/{db-r3jxf3wy.js → db-y9zwsr79.js} +25 -5
  74. package/dist/{dispatcher-06vph6q4.js → dispatcher-9m9zss36.js} +30 -26
  75. package/dist/dsh-adapter-gsb2qqf9.js +19 -0
  76. package/dist/{e2b-413b8t4v.js → e2b-93x1k0j5.js} +6 -7
  77. package/dist/{google-generative-ai-ndjmj5fa.js → google-generative-ai-gwwrnzqn.js} +33 -73
  78. package/dist/{google-vertex-fr665tqs.js → google-vertex-5wfawpwz.js} +38 -68
  79. package/dist/{handlers-0hgtc910.js → handlers-36fm1bwn.js} +33 -29
  80. package/dist/{hook-9kvrv1er.js → hook-pntw4r8h.js} +12 -10
  81. package/dist/{hook-fbfhkat3.js → hook-vwq8y26p.js} +13 -11
  82. package/dist/{http-xbyx8k5j.js → http-20jesakk.js} +357 -261
  83. package/dist/{index-jsw3aynb.js → index-6artrehg.js} +30 -26
  84. package/dist/{cli-pdz9qde4.js → index-9ch1n761.js} +10 -11
  85. package/dist/{index-rnyahfn5.js → index-9n5z2492.js} +30 -26
  86. package/dist/{index-66xz5e9j.js → index-h5gs261z.js} +521 -9
  87. package/dist/{index-tfsdxyv6.js → index-j5wrf1yw.js} +40 -25
  88. package/dist/{index-2sp0384z.js → index-kkeftv5h.js} +738 -21
  89. package/dist/{index-sgk50mbg.js → index-m2xqpz5r.js} +31 -27
  90. package/dist/{index-gpfn1741.js → index-m9ks8a7t.js} +9 -7
  91. package/dist/index-w097eg0x.js +5 -0
  92. package/dist/jiti-loader-b4837mtm.js +34 -0
  93. package/dist/jiti-static-loader-q2g5ds0y.js +31267 -0
  94. package/dist/{keepalive-s3xpr7sw.js → keepalive-pwxvxd2c.js} +9 -7
  95. package/dist/{lead-rq4n5r16.js → lead-m789wqa3.js} +46 -41
  96. package/dist/{maintenance-f0atj1ab.js → maintenance-bvg6w7e2.js} +10 -8
  97. package/dist/{mistral-conversations-qhr84ph3.js → mistral-conversations-zx0kn554.js} +24 -18
  98. package/dist/{node-x1g4v0pq.js → node-5qtycf6a.js} +16 -11
  99. package/dist/{oauth-refresh-sweep-q0t3bxre.js → oauth-refresh-sweep-6v4bd737.js} +8 -6
  100. package/dist/{onboard-br5j1kch.js → onboard-snckpcj1.js} +115 -35
  101. package/dist/{openai-codex-responses-wy6a43wd.js → openai-codex-responses-4vjqzvjp.js} +33 -27
  102. package/dist/{openai-completions-32rdwmze.js → openai-completions-pxsmym7g.js} +52 -64
  103. package/dist/{openai-responses-6xwf7bzg.js → openai-responses-tmn0rqp0.js} +23 -24
  104. package/dist/{opencode-adapter-28axqa09.js → opencode-adapter-qbmv4tpy.js} +6 -6
  105. package/dist/{otel-impl-vdqge2nt.js → otel-impl-e0ytens5.js} +4 -4
  106. package/dist/{pi-messages-b1mbr6gp.js → pi-messages-txpjj39q.js} +3 -3
  107. package/dist/pi-mono-adapter-c4ggemhz.js +1316 -0
  108. package/dist/{pricing-refresh-hb3691fd.js → pricing-refresh-52g2ywrw.js} +9 -7
  109. package/dist/{rbac-roles-t78xt39b.js → rbac-roles-5455kfdn.js} +8 -6
  110. package/dist/{rbac-roles-jh280k9g.js → rbac-roles-hbf0xa52.js} +9 -7
  111. package/dist/{render-v2-7p8r2ymg.js → render-v2-npm8xdzh.js} +16 -9
  112. package/dist/{seed-pricing-hf889enh.js → seed-pricing-650wbr1n.js} +8 -6
  113. package/dist/{setup-w6mb03jv.js → setup-k1mew5rf.js} +4 -5
  114. package/dist/virtual-modules-2q5b2pk4.js +54 -0
  115. package/dist/{work-objects-nt8gy1kj.js → work-objects-2ea3kvwg.js} +33 -29
  116. package/dist/{worker-dwy617t0.js → worker-ec6hvc4m.js} +46 -41
  117. package/openapi.json +109 -16
  118. package/package.json +7 -6
  119. package/plugin/opencode-plugins/lib/memory-raters.ts +7 -0
  120. package/src/be/automation-preflight.ts +6 -4
  121. package/src/be/db/agents.ts +75 -2
  122. package/src/be/db/tasks/read.ts +2 -0
  123. package/src/be/db/tasks/write.ts +7 -1
  124. package/src/be/db.ts +140 -18
  125. package/src/be/extensions/db.ts +35 -4
  126. package/src/be/memory/raters/llm.ts +2 -6
  127. package/src/be/memory/raters/noop.ts +2 -3
  128. package/src/be/memory/raters/registry.ts +4 -10
  129. package/src/be/migrations/157_defer_provenance_and_marker.sql +27 -0
  130. package/src/be/models-catalog.ts +2 -0
  131. package/src/be/modelsdev-cache.json +213 -0
  132. package/src/be/rbac-audit.ts +2 -0
  133. package/src/be/seed/agent-fs-provision.ts +23 -0
  134. package/src/be/seed-pricing.ts +3 -1
  135. package/src/be/swarm-config-guard.ts +1 -0
  136. package/src/commands/onboard/compose-generator.ts +16 -1
  137. package/src/commands/onboard/env-generator.ts +14 -1
  138. package/src/commands/onboard/manifest.ts +1 -0
  139. package/src/commands/onboard/steps/integration-slack.tsx +56 -16
  140. package/src/commands/onboard/steps/review.tsx +5 -0
  141. package/src/commands/onboard/types.ts +6 -0
  142. package/src/commands/onboard.tsx +5 -1
  143. package/src/commands/provider-credentials.ts +14 -2
  144. package/src/commands/runner.ts +18 -2
  145. package/src/extensions/identity.ts +15 -7
  146. package/src/extensions/lifecycle.ts +15 -21
  147. package/src/hooks/codex-hook.ts +7 -1
  148. package/src/http/agents.ts +12 -4
  149. package/src/http/config.ts +1 -1
  150. package/src/http/core.ts +5 -3
  151. package/src/http/extensions.ts +108 -34
  152. package/src/http/poll.ts +7 -0
  153. package/src/http/schedules.ts +10 -0
  154. package/src/http/script-runs.ts +35 -26
  155. package/src/http/status.ts +24 -11
  156. package/src/http/tasks.ts +6 -1
  157. package/src/prompts/base-prompt.ts +15 -7
  158. package/src/prompts/memories.ts +5 -7
  159. package/src/prompts/session-templates.ts +3 -2
  160. package/src/prompts/steering-delivery.ts +2 -0
  161. package/src/providers/claude-managed-models.ts +8 -0
  162. package/src/providers/codex-adapter.ts +3 -6
  163. package/src/providers/codex-models.ts +15 -1
  164. package/src/providers/dsh-adapter.ts +248 -0
  165. package/src/providers/index.ts +5 -1
  166. package/src/providers/modelsdev-reasoning.json +50 -0
  167. package/src/providers/pi-mono-extension.ts +2 -5
  168. package/src/rbac/legacy-policy.ts +15 -1
  169. package/src/rbac/types.ts +2 -0
  170. package/src/server.ts +7 -1
  171. package/src/slack/ack.ts +43 -8
  172. package/src/slack/app.ts +32 -10
  173. package/src/slack/config.ts +29 -0
  174. package/src/slack/handlers.ts +7 -1
  175. package/src/slack/render-v2.ts +186 -17
  176. package/src/slack/responses.ts +1 -3
  177. package/src/slack/task-output.ts +66 -8
  178. package/src/slack/thread-buffer.ts +27 -3
  179. package/src/telemetry.ts +2 -3
  180. package/src/tests/agent-fs-provision-seeder.test.ts +56 -2
  181. package/src/tests/agents-harness-provider.test.ts +19 -0
  182. package/src/tests/agents-list-model-display.test.ts +60 -1
  183. package/src/tests/base-prompt.test.ts +25 -0
  184. package/src/tests/claude-managed-adapter.test.ts +6 -0
  185. package/src/tests/codex-gpt6-release.test.ts +97 -0
  186. package/src/tests/codex-steering-hook.test.ts +2 -2
  187. package/src/tests/config-api-only-keys.test.ts +9 -0
  188. package/src/tests/context-window.test.ts +1 -0
  189. package/src/tests/db-task-read-contract.test.ts +9 -0
  190. package/src/tests/db-task-write-contract.test.ts +9 -0
  191. package/src/tests/defer-task.test.ts +115 -16
  192. package/src/tests/dsh-adapter.test.ts +276 -0
  193. package/src/tests/e2e-nightly-report.test.ts +3 -3
  194. package/src/tests/e2e-redact.test.ts +2 -0
  195. package/src/tests/env-flag.test.ts +6 -0
  196. package/src/tests/extension-agent-visibility.test.ts +474 -0
  197. package/src/tests/extensions-db.test.ts +41 -0
  198. package/src/tests/extensions-http.test.ts +148 -4
  199. package/src/tests/extensions-lifecycle.test.ts +21 -1
  200. package/src/tests/extensions-mcp-tools.test.ts +9 -5
  201. package/src/tests/fetch-resolved-env.test.ts +43 -0
  202. package/src/tests/internal-ai/complete-structured.test.ts +32 -9
  203. package/src/tests/internal-ai/credentials.test.ts +4 -4
  204. package/src/tests/internal-ai/models.test.ts +20 -0
  205. package/src/tests/memory-rate-tool.test.ts +7 -10
  206. package/src/tests/memory-rater-defaults.test.ts +23 -0
  207. package/src/tests/memory-rater-e2e.test.ts +2 -3
  208. package/src/tests/migration-046-budgets.test.ts +2 -0
  209. package/src/tests/model-control.test.ts +2 -2
  210. package/src/tests/onboard-compose.test.ts +14 -0
  211. package/src/tests/onboard-env.test.ts +17 -0
  212. package/src/tests/onboard-manifest.test.ts +12 -0
  213. package/src/tests/opus-5-5-registry.test.ts +48 -0
  214. package/src/tests/pricing-refresh.test.ts +1 -1
  215. package/src/tests/pricing-routes.test.ts +15 -3
  216. package/src/tests/provider-registration.test.ts +5 -2
  217. package/src/tests/rbac-admission-e2e.test.ts +54 -0
  218. package/src/tests/rbac-e2e-helpers.ts +2 -0
  219. package/src/tests/rbac-engine.test.ts +32 -0
  220. package/src/tests/rbac-wire-e2e.test.ts +33 -0
  221. package/src/tests/reasoning-effort.test.ts +8 -0
  222. package/src/tests/reload-config.test.ts +33 -0
  223. package/src/tests/script-connections.test.ts +3 -0
  224. package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
  225. package/src/tests/slack-config.test.ts +136 -0
  226. package/src/tests/slack-mode-lifecycle.test.ts +69 -0
  227. package/src/tests/slack-render-v2.test.ts +446 -16
  228. package/src/tests/slack-steering.test.ts +69 -1
  229. package/src/tests/slack-task-output.test.ts +33 -12
  230. package/src/tests/status.test.ts +22 -2
  231. package/src/tests/steering-core.test.ts +35 -0
  232. package/src/tests/steering-delivery.test.ts +39 -0
  233. package/src/tests/steering-transport.test.ts +2 -2
  234. package/src/tests/task-tool-preload-mcp.test.ts +3 -1
  235. package/src/tests/telemetry-init.test.ts +18 -0
  236. package/src/tests/workflow-live-recovery.test.ts +126 -0
  237. package/src/tests/workflow-llm.test.ts +3 -3
  238. package/src/tools/defer-task.ts +64 -26
  239. package/src/tools/extension-common.ts +4 -0
  240. package/src/tools/extension-install.ts +1 -1
  241. package/src/tools/extension-list.ts +4 -3
  242. package/src/tools/join-swarm.ts +1 -1
  243. package/src/tools/schedules/create-schedule.ts +11 -1
  244. package/src/tools/schedules/patch-schedule.ts +5 -0
  245. package/src/tools/schedules/update-schedule.ts +5 -0
  246. package/src/tools/send-task.ts +6 -0
  247. package/src/tools/utils.ts +1 -1
  248. package/src/types.ts +30 -8
  249. package/src/utils/context-window.ts +1 -0
  250. package/src/utils/credentials.ts +8 -0
  251. package/src/utils/internal-ai/complete-structured.ts +8 -0
  252. package/src/utils/internal-ai/models.ts +5 -5
  253. package/src/utils/memory-raters.ts +3 -0
  254. package/src/workflows/engine.ts +28 -0
  255. package/src/workflows/recovery.ts +7 -4
  256. package/templates/schedules/daily-status-report/content.md +25 -12
  257. package/templates/schedules/daily-workflow-health-audit/content.md +1 -1
  258. package/templates/skills/swarm-extensions/content.md +9 -5
  259. package/dist/cli-4wppfkcm.js +0 -16384
  260. package/dist/cli-55qrx3q8.js +0 -6041
  261. package/dist/cli-cg4vnyh4.js +0 -305
  262. package/dist/cli-jyetr64j.js +0 -52
  263. package/dist/cli-pp9ax9pa.js +0 -520
  264. package/dist/cli-qa66qaf0.js +0 -6076
  265. package/dist/cli-qghpvca2.js +0 -590
  266. package/dist/cli-rembwgt8.js +0 -861
  267. package/dist/cli-tcvj7j2r.js +0 -1971
  268. package/dist/cli-vfcth11k.js +0 -36
  269. package/dist/cli-w1d1bgkk.js +0 -1422
  270. package/dist/cli-y6x0gqtg.js +0 -5977
  271. package/dist/es5-tj3tn4jj.js +0 -844
  272. package/dist/index-1kq5hw2p.js +0 -467
  273. package/dist/index-1p8wdstt.js +0 -7
  274. package/dist/index-8fdjzb2f.js +0 -100
  275. package/dist/index-bxmwzbgw.js +0 -365
  276. package/dist/index-nzerxd5z.js +0 -7
  277. package/dist/index-pyymnzat.js +0 -1168
  278. package/dist/index-qv6atbab.js +0 -619
  279. package/dist/index-rja32qa7.js +0 -801
  280. package/dist/index-tzg5srfp.js +0 -211
  281. package/dist/index-vhncw983.js +0 -90
  282. package/dist/index-xk036zsk.js +0 -859
  283. package/dist/index-zyazbzcb.js +0 -6
  284. package/dist/{claude-managed-setup-48dwg9bv.js → claude-managed-setup-f5pmsyrp.js} +3 -3
@@ -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
- };