@desplega.ai/agent-swarm 1.152.2 → 1.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/README.md +1 -1
  2. package/dist/{acp-adapter-pfeje2v5.js → acp-adapter-ahmjxhek.js} +4 -4
  3. package/dist/{actions-0sttc7f5.js → actions-jzrfpkmn.js} +30 -26
  4. package/dist/{anthropic-messages-2y8nktar.js → anthropic-messages-9vqsbznt.js} +112 -84
  5. package/dist/{app-p8teva95.js → app-03na2vwb.js} +9 -6
  6. package/dist/{assistant-r45jnsrt.js → assistant-hfkxvhgt.js} +31 -27
  7. package/dist/{azure-openai-responses-f38x2avq.js → azure-openai-responses-04qwdwfq.js} +27 -13
  8. package/dist/{boot-reembed-je26h5y7.js → boot-reembed-c98xrad3.js} +8 -6
  9. package/dist/{boot-reembed-1qmybsd4.js → boot-reembed-zt3qm9xn.js} +9 -7
  10. package/dist/{boot-scrub-logs-gte3h1mm.js → boot-scrub-logs-jcqd8ksj.js} +6 -4
  11. package/dist/{claude-adapter-csc1mzka.js → claude-adapter-mgryg8g3.js} +17 -15
  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-jjf4zss1.js} +17 -15
  14. package/dist/{cli-r2fpe7cx.js → cli-00w2c66p.js} +61 -55
  15. package/dist/{cli-fm4ytsdk.js → cli-0d9nbqxf.js} +1 -1
  16. package/dist/cli-0x5qzvkg.js +4279 -0
  17. package/dist/{cli-d3p82erb.js → cli-18amys3y.js} +9 -9
  18. package/dist/{cli-wbyk465z.js → cli-1hwnb4hc.js} +1 -1
  19. package/dist/{cli-xw7vak96.js → cli-3bcmp015.js} +5 -5
  20. package/dist/cli-3er6gcsn.js +1849 -0
  21. package/dist/{cli-c4eeb5q2.js → cli-5b6b62tz.js} +1 -1
  22. package/dist/{cli-4ahpr4sw.js → cli-5mbmvxnn.js} +5 -5
  23. package/dist/{cli-xy1cchaf.js → cli-5taqtpze.js} +235 -8
  24. package/dist/{cli-fmy65jdn.js → cli-6ks9xf1n.js} +7 -5
  25. package/dist/cli-7g9s78jf.js +2827 -0
  26. package/dist/{cli-jew3jda5.js → cli-7pnz2v6s.js} +2 -2
  27. package/dist/{cli-r84ctdxn.js → cli-83wkg402.js} +2 -2
  28. package/dist/{cli-jvy9qgjs.js → cli-a9scg8sv.js} +4 -4
  29. package/dist/{cli-4yc5d8fk.js → cli-avkd6mqv.js} +50 -0
  30. package/dist/{cli-ht5rs63n.js → cli-b2g6mzjc.js} +15 -6
  31. package/dist/{cli-jbmc0r7r.js → cli-bw0dfwkr.js} +1 -1
  32. package/dist/{cli-8wrympd7.js → cli-bzr0ftht.js} +26 -7
  33. package/dist/{cli-wpv5rgg2.js → cli-cdq08v3r.js} +2 -2
  34. package/dist/cli-cgj4hc12.js +18902 -0
  35. package/dist/cli-d6hk10xx.js +14075 -0
  36. package/dist/{cli-zvgj5zg8.js → cli-djvxhnc4.js} +31 -3324
  37. package/dist/{cli-s25avqg9.js → cli-e781c6f9.js} +1 -0
  38. package/dist/{cli-3bpzj8me.js → cli-eazstkad.js} +2 -2
  39. package/dist/{cli-s2qjdd6z.js → cli-eetrvv91.js} +1 -1
  40. package/dist/cli-h38x0qhg.js +6912 -0
  41. package/dist/{cli-9xvdm3bx.js → cli-h60qfasa.js} +742 -278
  42. package/dist/{pi-mono-adapter-jcqt71cg.js → cli-ja7mrygn.js} +67343 -101083
  43. package/dist/{cli-j8dggbcr.js → cli-k0g1sjzm.js} +23 -31
  44. package/dist/{cli-gphgnvpf.js → cli-m04pt18h.js} +2 -2
  45. package/dist/{cli-rgvp6r2x.js → cli-mcnhgnn1.js} +193 -4
  46. package/dist/{cli-j4nv2wqy.js → cli-mzgyhxbe.js} +10 -4
  47. package/dist/{cli-qn042eh7.js → cli-n0q9b7j4.js} +46 -1870
  48. package/dist/cli-n7h1kqpf.js +29 -0
  49. package/dist/{cli-ckz5t2hb.js → cli-nq0kgyxe.js} +5 -5
  50. package/dist/{cli-z3wkng35.js → cli-qrqhc31j.js} +151 -125
  51. package/dist/{cli-56h18ng2.js → cli-r8tdds6s.js} +1 -1
  52. package/dist/{cli-ch38q5z4.js → cli-rj7de4b2.js} +6788 -2541
  53. package/dist/{cli-qd65dvr6.js → cli-s5s1f2yn.js} +56 -40
  54. package/dist/{cli-kj76p1ez.js → cli-scwq51gn.js} +13 -7
  55. package/dist/{cli-2nnd56zt.js → cli-tdh4hjr2.js} +3 -2
  56. package/dist/{cli-c2mk1kgf.js → cli-v4en75c5.js} +8 -1
  57. package/dist/{cli-b9dd0h3k.js → cli-vw03hg5t.js} +3 -2
  58. package/dist/{cli-zvkq5csn.js → cli-ybpp1srm.js} +6 -6
  59. package/dist/cli-yn0a417a.js +4069 -0
  60. package/dist/{cli-gpqcs935.js → cli-ysc1kbet.js} +2 -2
  61. package/dist/{cli-zfzznn7c.js → cli-ytxs7mn1.js} +26 -2
  62. package/dist/cli-zcsyfw2z.js +3335 -0
  63. package/dist/{cli-4j8k1m4w.js → cli-zt1227k1.js} +1162 -192
  64. package/dist/cli-zy5w9gpt.js +230 -0
  65. package/dist/cli.js +26 -34
  66. package/dist/{codex-adapter-fxmpsabw.js → codex-adapter-8548daap.js} +12 -11
  67. package/dist/{codex-session-runner-rr1e47ea.js → codex-session-runner-2dad8p4x.js} +12 -11
  68. package/dist/{commands-0f5rxz51.js → commands-355dbpa8.js} +6 -4
  69. package/dist/{db-r3jxf3wy.js → db-4jjvwz1s.js} +6 -4
  70. package/dist/{dispatcher-06vph6q4.js → dispatcher-ca590nkz.js} +29 -25
  71. package/dist/dsh-adapter-rgvj6ykp.js +19 -0
  72. package/dist/{e2b-413b8t4v.js → e2b-93x1k0j5.js} +6 -7
  73. package/dist/{google-generative-ai-ndjmj5fa.js → google-generative-ai-xtw7tggr.js} +33 -73
  74. package/dist/{google-vertex-fr665tqs.js → google-vertex-zdqpms6n.js} +38 -68
  75. package/dist/{handlers-0hgtc910.js → handlers-2y6dqpvf.js} +32 -28
  76. package/dist/{hook-9kvrv1er.js → hook-0s8knepr.js} +11 -9
  77. package/dist/{hook-fbfhkat3.js → hook-k0gec254.js} +12 -10
  78. package/dist/{http-xbyx8k5j.js → http-jp2nb4zw.js} +300 -237
  79. package/dist/{index-tfsdxyv6.js → index-0wzg3sp3.js} +39 -24
  80. package/dist/{index-rnyahfn5.js → index-3mq6ce93.js} +29 -25
  81. package/dist/{index-jsw3aynb.js → index-42s7eezq.js} +29 -25
  82. package/dist/{cli-pdz9qde4.js → index-9ch1n761.js} +10 -11
  83. package/dist/{index-gpfn1741.js → index-b56xkbc7.js} +8 -6
  84. package/dist/{index-66xz5e9j.js → index-h5gs261z.js} +521 -9
  85. package/dist/{index-2sp0384z.js → index-kkeftv5h.js} +738 -21
  86. package/dist/{index-sgk50mbg.js → index-s37dbevy.js} +30 -26
  87. package/dist/index-w097eg0x.js +5 -0
  88. package/dist/jiti-loader-b4837mtm.js +34 -0
  89. package/dist/jiti-static-loader-q2g5ds0y.js +31267 -0
  90. package/dist/{keepalive-s3xpr7sw.js → keepalive-9pfw7t02.js} +8 -6
  91. package/dist/{lead-rq4n5r16.js → lead-7vcmcdq4.js} +44 -39
  92. package/dist/{maintenance-f0atj1ab.js → maintenance-x277jbpd.js} +9 -7
  93. package/dist/{mistral-conversations-qhr84ph3.js → mistral-conversations-zx0kn554.js} +24 -18
  94. package/dist/{node-x1g4v0pq.js → node-5qtycf6a.js} +16 -11
  95. package/dist/{oauth-refresh-sweep-q0t3bxre.js → oauth-refresh-sweep-5fwa7th2.js} +7 -5
  96. package/dist/{onboard-br5j1kch.js → onboard-17sv0f51.js} +103 -35
  97. package/dist/{openai-codex-responses-wy6a43wd.js → openai-codex-responses-4vjqzvjp.js} +33 -27
  98. package/dist/{openai-completions-32rdwmze.js → openai-completions-pxsmym7g.js} +52 -64
  99. package/dist/{openai-responses-6xwf7bzg.js → openai-responses-tmn0rqp0.js} +23 -24
  100. package/dist/{opencode-adapter-28axqa09.js → opencode-adapter-qbmv4tpy.js} +6 -6
  101. package/dist/{otel-impl-vdqge2nt.js → otel-impl-srjy4be4.js} +4 -4
  102. package/dist/{pi-messages-b1mbr6gp.js → pi-messages-txpjj39q.js} +3 -3
  103. package/dist/pi-mono-adapter-946a0sdd.js +1316 -0
  104. package/dist/{pricing-refresh-hb3691fd.js → pricing-refresh-vetcm563.js} +8 -6
  105. package/dist/{rbac-roles-jh280k9g.js → rbac-roles-cfzgr6r1.js} +8 -6
  106. package/dist/{rbac-roles-t78xt39b.js → rbac-roles-cmxaddmy.js} +7 -5
  107. package/dist/{render-v2-7p8r2ymg.js → render-v2-f9hzff72.js} +9 -6
  108. package/dist/{seed-pricing-hf889enh.js → seed-pricing-jggk6rsy.js} +7 -5
  109. package/dist/{setup-w6mb03jv.js → setup-8mfceb9t.js} +4 -5
  110. package/dist/virtual-modules-ax661xp0.js +54 -0
  111. package/dist/{work-objects-nt8gy1kj.js → work-objects-vdsdcczj.js} +32 -28
  112. package/dist/{worker-dwy617t0.js → worker-cd0nhyv1.js} +44 -39
  113. package/openapi.json +36 -14
  114. package/package.json +6 -6
  115. package/src/be/automation-preflight.ts +6 -4
  116. package/src/be/extensions/db.ts +35 -4
  117. package/src/be/models-catalog.ts +2 -0
  118. package/src/be/modelsdev-cache.json +213 -0
  119. package/src/be/rbac-audit.ts +2 -0
  120. package/src/be/seed-pricing.ts +3 -1
  121. package/src/be/swarm-config-guard.ts +1 -0
  122. package/src/commands/onboard/compose-generator.ts +6 -1
  123. package/src/commands/onboard/env-generator.ts +6 -1
  124. package/src/commands/onboard/manifest.ts +1 -0
  125. package/src/commands/onboard/steps/integration-slack.tsx +56 -16
  126. package/src/commands/onboard/steps/review.tsx +5 -0
  127. package/src/commands/onboard/types.ts +6 -0
  128. package/src/commands/onboard.tsx +5 -1
  129. package/src/commands/provider-credentials.ts +14 -2
  130. package/src/extensions/lifecycle.ts +15 -21
  131. package/src/http/agents.ts +2 -2
  132. package/src/http/config.ts +1 -1
  133. package/src/http/core.ts +5 -3
  134. package/src/http/extensions.ts +108 -34
  135. package/src/http/status.ts +22 -10
  136. package/src/prompts/base-prompt.ts +15 -7
  137. package/src/providers/claude-managed-models.ts +8 -0
  138. package/src/providers/codex-models.ts +15 -1
  139. package/src/providers/dsh-adapter.ts +248 -0
  140. package/src/providers/index.ts +5 -1
  141. package/src/providers/modelsdev-reasoning.json +50 -0
  142. package/src/rbac/legacy-policy.ts +15 -1
  143. package/src/rbac/types.ts +2 -0
  144. package/src/server.ts +7 -1
  145. package/src/slack/app.ts +32 -10
  146. package/src/slack/config.ts +29 -0
  147. package/src/telemetry.ts +2 -3
  148. package/src/tests/agents-harness-provider.test.ts +19 -0
  149. package/src/tests/agents-list-model-display.test.ts +60 -1
  150. package/src/tests/base-prompt.test.ts +25 -0
  151. package/src/tests/claude-managed-adapter.test.ts +6 -0
  152. package/src/tests/codex-gpt6-release.test.ts +97 -0
  153. package/src/tests/config-api-only-keys.test.ts +9 -0
  154. package/src/tests/context-window.test.ts +1 -0
  155. package/src/tests/dsh-adapter.test.ts +276 -0
  156. package/src/tests/e2e-nightly-report.test.ts +3 -3
  157. package/src/tests/e2e-redact.test.ts +2 -0
  158. package/src/tests/env-flag.test.ts +6 -0
  159. package/src/tests/extensions-db.test.ts +41 -0
  160. package/src/tests/extensions-http.test.ts +148 -4
  161. package/src/tests/extensions-lifecycle.test.ts +18 -0
  162. package/src/tests/extensions-mcp-tools.test.ts +9 -5
  163. package/src/tests/internal-ai/complete-structured.test.ts +32 -9
  164. package/src/tests/internal-ai/credentials.test.ts +4 -4
  165. package/src/tests/internal-ai/models.test.ts +20 -0
  166. package/src/tests/migration-046-budgets.test.ts +2 -0
  167. package/src/tests/model-control.test.ts +2 -2
  168. package/src/tests/onboard-compose.test.ts +14 -0
  169. package/src/tests/onboard-env.test.ts +17 -0
  170. package/src/tests/onboard-manifest.test.ts +12 -0
  171. package/src/tests/opus-5-5-registry.test.ts +48 -0
  172. package/src/tests/pricing-refresh.test.ts +1 -1
  173. package/src/tests/pricing-routes.test.ts +15 -3
  174. package/src/tests/provider-registration.test.ts +5 -2
  175. package/src/tests/rbac-admission-e2e.test.ts +54 -0
  176. package/src/tests/rbac-e2e-helpers.ts +2 -0
  177. package/src/tests/rbac-engine.test.ts +32 -0
  178. package/src/tests/rbac-wire-e2e.test.ts +33 -0
  179. package/src/tests/reasoning-effort.test.ts +8 -0
  180. package/src/tests/reload-config.test.ts +33 -0
  181. package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
  182. package/src/tests/slack-config.test.ts +136 -0
  183. package/src/tests/slack-mode-lifecycle.test.ts +69 -0
  184. package/src/tests/status.test.ts +22 -2
  185. package/src/tests/task-tool-preload-mcp.test.ts +3 -1
  186. package/src/tests/telemetry-init.test.ts +18 -0
  187. package/src/tests/workflow-llm.test.ts +3 -3
  188. package/src/tools/extension-common.ts +4 -0
  189. package/src/tools/extension-install.ts +1 -1
  190. package/src/tools/extension-list.ts +4 -3
  191. package/src/types.ts +17 -8
  192. package/src/utils/context-window.ts +1 -0
  193. package/src/utils/credentials.ts +8 -0
  194. package/src/utils/internal-ai/complete-structured.ts +8 -0
  195. package/src/utils/internal-ai/models.ts +5 -5
  196. package/templates/schedules/daily-status-report/content.md +25 -12
  197. package/templates/schedules/daily-workflow-health-audit/content.md +1 -1
  198. package/templates/skills/swarm-extensions/content.md +9 -5
  199. package/dist/cli-4wppfkcm.js +0 -16384
  200. package/dist/cli-55qrx3q8.js +0 -6041
  201. package/dist/cli-cg4vnyh4.js +0 -305
  202. package/dist/cli-jyetr64j.js +0 -52
  203. package/dist/cli-pp9ax9pa.js +0 -520
  204. package/dist/cli-qa66qaf0.js +0 -6076
  205. package/dist/cli-qghpvca2.js +0 -590
  206. package/dist/cli-rembwgt8.js +0 -861
  207. package/dist/cli-tcvj7j2r.js +0 -1971
  208. package/dist/cli-vfcth11k.js +0 -36
  209. package/dist/cli-w1d1bgkk.js +0 -1422
  210. package/dist/cli-y6x0gqtg.js +0 -5977
  211. package/dist/es5-tj3tn4jj.js +0 -844
  212. package/dist/index-1kq5hw2p.js +0 -467
  213. package/dist/index-1p8wdstt.js +0 -7
  214. package/dist/index-8fdjzb2f.js +0 -100
  215. package/dist/index-bxmwzbgw.js +0 -365
  216. package/dist/index-nzerxd5z.js +0 -7
  217. package/dist/index-pyymnzat.js +0 -1168
  218. package/dist/index-qv6atbab.js +0 -619
  219. package/dist/index-rja32qa7.js +0 -801
  220. package/dist/index-tzg5srfp.js +0 -211
  221. package/dist/index-vhncw983.js +0 -90
  222. package/dist/index-xk036zsk.js +0 -859
  223. package/dist/index-zyazbzcb.js +0 -6
  224. package/dist/{claude-managed-setup-48dwg9bv.js → claude-managed-setup-f5pmsyrp.js} +3 -3
@@ -1,1168 +0,0 @@
1
- import {
2
- require_dist_cjs as require_dist_cjs2,
3
- require_httpAuthSchemes,
4
- require_protocols as require_protocols2
5
- } from "./cli-55qrx3q8.js";
6
- import {
7
- require_dist_cjs as require_dist_cjs3
8
- } from "./cli-rembwgt8.js";
9
- import {
10
- require_client as require_client2,
11
- require_dist_cjs,
12
- require_retry
13
- } from "./cli-tcvj7j2r.js";
14
- import {
15
- require_client,
16
- require_config,
17
- require_endpoints,
18
- require_protocols,
19
- require_schema,
20
- require_serde
21
- } from "./cli-qa66qaf0.js";
22
- import {
23
- __commonJS,
24
- __esm
25
- } from "./cli-bc05qbss.js";
26
-
27
- // node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
28
- var require_dist_cjs4 = __commonJS(function(exports) {
29
- var signatureV4 = require_dist_cjs2();
30
- var signatureV4CrtContainer = {
31
- CrtSignerV4: null
32
- };
33
- var SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token";
34
- var SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase();
35
-
36
- class SignatureV4SignWithCredentials extends signatureV4.SignatureV4 {
37
- async signWithCredentials(requestToSign, credentials, options) {
38
- const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
39
- requestToSign.headers[SESSION_TOKEN_HEADER] = credentials.sessionToken;
40
- const privateAccess = this;
41
- setSingleOverride(privateAccess, credentialsWithoutSessionToken);
42
- return privateAccess.signRequest(requestToSign, options ?? {});
43
- }
44
- async presignWithCredentials(requestToSign, credentials, options) {
45
- const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
46
- delete requestToSign.headers[SESSION_TOKEN_HEADER];
47
- requestToSign.headers[SESSION_TOKEN_QUERY_PARAM] = credentials.sessionToken;
48
- requestToSign.query = requestToSign.query ?? {};
49
- requestToSign.query[SESSION_TOKEN_QUERY_PARAM] = credentials.sessionToken;
50
- const privateAccess = this;
51
- setSingleOverride(privateAccess, credentialsWithoutSessionToken);
52
- return this.presign(requestToSign, options);
53
- }
54
- }
55
- function getCredentialsWithoutSessionToken(credentials) {
56
- return {
57
- accessKeyId: credentials.accessKeyId,
58
- secretAccessKey: credentials.secretAccessKey,
59
- expiration: credentials.expiration
60
- };
61
- }
62
- function setSingleOverride(privateAccess, credentialsWithoutSessionToken) {
63
- const currentCredentialProvider = privateAccess.credentialProvider;
64
- privateAccess.credentialProvider = () => {
65
- privateAccess.credentialProvider = currentCredentialProvider;
66
- return Promise.resolve(credentialsWithoutSessionToken);
67
- };
68
- }
69
-
70
- class SignatureV4MultiRegion {
71
- sigv4aSigner;
72
- sigv4Signer;
73
- signerOptions;
74
- static sigv4aDependency() {
75
- if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") {
76
- return "crt";
77
- } else if (typeof signatureV4.signatureV4aContainer.SignatureV4a === "function") {
78
- return "js";
79
- }
80
- return "none";
81
- }
82
- constructor(options) {
83
- this.sigv4Signer = new SignatureV4SignWithCredentials(options);
84
- this.signerOptions = options;
85
- }
86
- async sign(requestToSign, options = {}) {
87
- if (options.signingRegion === "*") {
88
- return this.getSigv4aSigner().sign(requestToSign, options);
89
- }
90
- return this.sigv4Signer.sign(requestToSign, options);
91
- }
92
- async signWithCredentials(requestToSign, credentials, options = {}) {
93
- if (options.signingRegion === "*") {
94
- const signer = this.getSigv4aSigner();
95
- const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
96
- if (CrtSignerV4 && signer instanceof CrtSignerV4) {
97
- return signer.signWithCredentials(requestToSign, credentials, options);
98
- } else {
99
- throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. ` + `Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. ` + `You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] ` + `or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. ` + `For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);
100
- }
101
- }
102
- return this.sigv4Signer.signWithCredentials(requestToSign, credentials, options);
103
- }
104
- async presign(originalRequest, options = {}) {
105
- if (options.signingRegion === "*") {
106
- const signer = this.getSigv4aSigner();
107
- const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
108
- if (CrtSignerV4 && signer instanceof CrtSignerV4) {
109
- return signer.presign(originalRequest, options);
110
- } else {
111
- throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. ` + `Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. ` + `You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] ` + `or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. ` + `For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);
112
- }
113
- }
114
- return this.sigv4Signer.presign(originalRequest, options);
115
- }
116
- async presignWithCredentials(originalRequest, credentials, options = {}) {
117
- if (options.signingRegion === "*") {
118
- throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");
119
- }
120
- return this.sigv4Signer.presignWithCredentials(originalRequest, credentials, options);
121
- }
122
- getSigv4aSigner() {
123
- if (!this.sigv4aSigner) {
124
- const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
125
- const JsSigV4aSigner = signatureV4.signatureV4aContainer.SignatureV4a;
126
- if (this.signerOptions.runtime === "node") {
127
- if (!CrtSignerV4 && !JsSigV4aSigner) {
128
- throw new Error("Neither CRT nor JS SigV4a implementation is available. " + "Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. " + "For more information please go to " + "https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");
129
- }
130
- if (CrtSignerV4 && typeof CrtSignerV4 === "function") {
131
- this.sigv4aSigner = new CrtSignerV4({
132
- ...this.signerOptions,
133
- signingAlgorithm: 1
134
- });
135
- } else if (JsSigV4aSigner && typeof JsSigV4aSigner === "function") {
136
- this.sigv4aSigner = new JsSigV4aSigner({
137
- ...this.signerOptions
138
- });
139
- } else {
140
- throw new Error("Available SigV4a implementation is not a valid constructor. " + "Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a." + "For more information please go to " + "https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");
141
- }
142
- } else {
143
- if (!JsSigV4aSigner || typeof JsSigV4aSigner !== "function") {
144
- throw new Error("JS SigV4a implementation is not available or not a valid constructor. " + "Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. " + "You must also register the package by calling [require('@aws-sdk/signature-v4a');] " + "or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. " + "For more information please go to " + "https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");
145
- }
146
- this.sigv4aSigner = new JsSigV4aSigner({
147
- ...this.signerOptions
148
- });
149
- }
150
- }
151
- return this.sigv4aSigner;
152
- }
153
- }
154
- exports.SignatureV4MultiRegion = SignatureV4MultiRegion;
155
- exports.SignatureV4SignWithCredentials = SignatureV4SignWithCredentials;
156
- exports.signatureV4CrtContainer = signatureV4CrtContainer;
157
- });
158
-
159
- // node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
160
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
161
- return {
162
- schemeId: "aws.auth#sigv4",
163
- signingProperties: {
164
- name: "sts",
165
- region: authParameters.region
166
- },
167
- propertiesExtractor: (config2, context) => ({
168
- signingProperties: {
169
- config: config2,
170
- context
171
- }
172
- })
173
- };
174
- }
175
- function createAwsAuthSigv4aHttpAuthOption(authParameters) {
176
- return {
177
- schemeId: "aws.auth#sigv4a",
178
- signingProperties: {
179
- name: "sts",
180
- region: authParameters.region
181
- },
182
- propertiesExtractor: (config2, context) => ({
183
- signingProperties: {
184
- config: config2,
185
- context
186
- }
187
- })
188
- };
189
- }
190
- function createSmithyApiNoAuthHttpAuthOption(authParameters) {
191
- return {
192
- schemeId: "smithy.api#noAuth"
193
- };
194
- }
195
- var client$1, core, client, config, endpoints, protocols, retry, schema, httpAuthSchemes, signatureV4MultiRegion, serde, nodeHttpHandler, protocols$1, q = "ref", a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l, m, n, o, p, _data, root = 2, r = 1e8, nodes, bdd, cache, defaultEndpointResolver = (endpointParams, context = {}) => {
196
- return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {
197
- endpointParams,
198
- logger: context.logger
199
- }));
200
- }, createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config2, context, input) => {
201
- if (!input) {
202
- throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
203
- }
204
- const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config2, context, input);
205
- const instructionsFn = client.getSmithyContext(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
206
- if (!instructionsFn) {
207
- throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
208
- }
209
- const endpointParameters = await endpoints.resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config2);
210
- return Object.assign(defaultParameters, endpointParameters);
211
- }, _defaultSTSHttpAuthSchemeParametersProvider = async (config2, context, input) => {
212
- return {
213
- operation: client.getSmithyContext(context).operation,
214
- region: await client.normalizeProvider(config2.region)() || (() => {
215
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
216
- })()
217
- };
218
- }, defaultSTSHttpAuthSchemeParametersProvider, createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver2, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
219
- const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
220
- const endpoint = defaultEndpointResolver2(authParameters);
221
- const authSchemes = endpoint.properties?.authSchemes;
222
- if (!authSchemes) {
223
- return defaultHttpAuthSchemeResolver(authParameters);
224
- }
225
- const options = [];
226
- for (const scheme of authSchemes) {
227
- const { name: resolvedName, properties = {}, ...rest } = scheme;
228
- const name = resolvedName.toLowerCase();
229
- if (resolvedName !== name) {
230
- console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
231
- }
232
- let schemeId;
233
- if (name === "sigv4a") {
234
- schemeId = "aws.auth#sigv4a";
235
- const sigv4Present = authSchemes.find((s) => {
236
- const name2 = s.name.toLowerCase();
237
- return name2 !== "sigv4a" && name2.startsWith("sigv4");
238
- });
239
- if (signatureV4MultiRegion.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
240
- continue;
241
- }
242
- } else if (name.startsWith("sigv4")) {
243
- schemeId = "aws.auth#sigv4";
244
- } else {
245
- throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
246
- }
247
- const createOption = createHttpAuthOptionFunctions[schemeId];
248
- if (!createOption) {
249
- throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
250
- }
251
- const option = createOption(authParameters);
252
- option.schemeId = schemeId;
253
- option.signingProperties = { ...option.signingProperties || {}, ...rest, ...properties };
254
- options.push(option);
255
- }
256
- return options;
257
- };
258
- return endpointRuleSetHttpAuthSchemeProvider;
259
- }, _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
260
- const options = [];
261
- switch (authParameters.operation) {
262
- case "AssumeRoleWithWebIdentity": {
263
- options.push(createSmithyApiNoAuthHttpAuthOption());
264
- options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
265
- break;
266
- }
267
- default: {
268
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
269
- options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
270
- }
271
- }
272
- return options;
273
- }, defaultSTSHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig = (config2) => {
274
- const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config2);
275
- const config_1 = httpAuthSchemes.resolveAwsSdkSigV4AConfig(config_0);
276
- return Object.assign(config_1, {
277
- authSchemePreference: client.normalizeProvider(config2.authSchemePreference ?? [])
278
- });
279
- }, resolveClientEndpointParameters = (options) => {
280
- return Object.assign(options, {
281
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
282
- useFipsEndpoint: options.useFipsEndpoint ?? false,
283
- useGlobalEndpoint: options.useGlobalEndpoint ?? false,
284
- defaultSigningName: "sts"
285
- });
286
- }, commonParams, version = "3.997.10", packageInfo, STSServiceException, ExpiredTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, IDPCommunicationErrorException, _A = "Arn", _AKI = "AccessKeyId", _AR = "AssumeRole", _ARI = "AssumedRoleId", _ARR = "AssumeRoleRequest", _ARRs = "AssumeRoleResponse", _ARU = "AssumedRoleUser", _ARWWI = "AssumeRoleWithWebIdentity", _ARWWIR = "AssumeRoleWithWebIdentityRequest", _ARWWIRs = "AssumeRoleWithWebIdentityResponse", _Au = "Audience", _C = "Credentials", _CA = "ContextAssertion", _DS = "DurationSeconds", _E = "Expiration", _EI = "ExternalId", _ETE = "ExpiredTokenException", _IDPCEE = "IDPCommunicationErrorException", _IDPRCE = "IDPRejectedClaimException", _IITE = "InvalidIdentityTokenException", _K = "Key", _MPDE = "MalformedPolicyDocumentException", _P = "Policy", _PA = "PolicyArns", _PAr = "ProviderArn", _PC = "ProvidedContexts", _PCLT = "ProvidedContextsListType", _PCr = "ProvidedContext", _PDT = "PolicyDescriptorType", _PI = "ProviderId", _PPS = "PackedPolicySize", _PPTLE = "PackedPolicyTooLargeException", _Pr = "Provider", _RA = "RoleArn", _RDE = "RegionDisabledException", _RSN = "RoleSessionName", _SAK = "SecretAccessKey", _SFWIT = "SubjectFromWebIdentityToken", _SI = "SourceIdentity", _SN = "SerialNumber", _ST = "SessionToken", _T = "Tags", _TC = "TokenCode", _TTK = "TransitiveTagKeys", _Ta = "Tag", _V = "Value", _WIT = "WebIdentityToken", _a = "arn", _aKST = "accessKeySecretType", _aQE = "awsQueryError", _c = "client", _cTT = "clientTokenType", _e = "error", _hE = "httpError", _m = "message", _pDLT = "policyDescriptorListType", _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts", _tLT = "tagListType", n0 = "com.amazonaws.sts", _s_registry, STSServiceException$, n0_registry, ExpiredTokenException$, IDPCommunicationErrorException$, IDPRejectedClaimException$, InvalidIdentityTokenException$, MalformedPolicyDocumentException$, PackedPolicyTooLargeException$, RegionDisabledException$, errorTypeRegistries, accessKeySecretType, clientTokenType, AssumedRoleUser$, AssumeRoleRequest$, AssumeRoleResponse$, AssumeRoleWithWebIdentityRequest$, AssumeRoleWithWebIdentityResponse$, Credentials$, PolicyDescriptorType$, ProvidedContext$, Tag$, policyDescriptorListType, ProvidedContextsListType, tagListType, AssumeRole$, AssumeRoleWithWebIdentity$, getRuntimeConfig$1 = (config2) => {
287
- return {
288
- apiVersion: "2011-06-15",
289
- base64Decoder: config2?.base64Decoder ?? serde.fromBase64,
290
- base64Encoder: config2?.base64Encoder ?? serde.toBase64,
291
- disableHostPrefix: config2?.disableHostPrefix ?? false,
292
- endpointProvider: config2?.endpointProvider ?? defaultEndpointResolver,
293
- extensions: config2?.extensions ?? [],
294
- httpAuthSchemeProvider: config2?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
295
- httpAuthSchemes: config2?.httpAuthSchemes ?? [
296
- {
297
- schemeId: "aws.auth#sigv4",
298
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
299
- signer: new httpAuthSchemes.AwsSdkSigV4Signer
300
- },
301
- {
302
- schemeId: "aws.auth#sigv4a",
303
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
304
- signer: new httpAuthSchemes.AwsSdkSigV4ASigner
305
- },
306
- {
307
- schemeId: "smithy.api#noAuth",
308
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
309
- signer: new core.NoAuthSigner
310
- }
311
- ],
312
- logger: config2?.logger ?? new client.NoOpLogger,
313
- protocol: config2?.protocol ?? protocols$1.AwsQueryProtocol,
314
- protocolSettings: config2?.protocolSettings ?? {
315
- defaultNamespace: "com.amazonaws.sts",
316
- errorTypeRegistries,
317
- xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
318
- version: "2011-06-15",
319
- serviceTarget: "AWSSecurityTokenServiceV20110615"
320
- },
321
- serviceId: config2?.serviceId ?? "STS",
322
- signerConstructor: config2?.signerConstructor ?? signatureV4MultiRegion.SignatureV4MultiRegion,
323
- urlParser: config2?.urlParser ?? protocols.parseUrl,
324
- utf8Decoder: config2?.utf8Decoder ?? serde.fromUtf8,
325
- utf8Encoder: config2?.utf8Encoder ?? serde.toUtf8
326
- };
327
- }, getRuntimeConfig = (config$1) => {
328
- client.emitWarningIfUnsupportedVersion(process.version);
329
- const defaultsMode = config.resolveDefaultsModeConfig(config$1);
330
- const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
331
- const clientSharedValues = getRuntimeConfig$1(config$1);
332
- client$1.emitWarningIfUnsupportedVersion(process.version);
333
- const loaderConfig = {
334
- profile: config$1?.profile,
335
- logger: clientSharedValues.logger
336
- };
337
- return {
338
- ...clientSharedValues,
339
- ...config$1,
340
- runtime: "node",
341
- defaultsMode,
342
- authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
343
- bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
344
- defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
345
- httpAuthSchemes: config$1?.httpAuthSchemes ?? [
346
- {
347
- schemeId: "aws.auth#sigv4",
348
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config$1.credentialDefaultProvider(idProps?.__config || {})()),
349
- signer: new httpAuthSchemes.AwsSdkSigV4Signer
350
- },
351
- {
352
- schemeId: "aws.auth#sigv4a",
353
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
354
- signer: new httpAuthSchemes.AwsSdkSigV4ASigner
355
- },
356
- {
357
- schemeId: "smithy.api#noAuth",
358
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
359
- signer: new core.NoAuthSigner
360
- }
361
- ],
362
- maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
363
- region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
364
- requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
365
- retryMode: config$1?.retryMode ?? config.loadConfig({
366
- ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
367
- default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE
368
- }, config$1),
369
- sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
370
- sigv4aSigningRegionSet: config$1?.sigv4aSigningRegionSet ?? config.loadConfig(httpAuthSchemes.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
371
- streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
372
- useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
373
- useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
374
- userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
375
- };
376
- }, getHttpAuthExtensionConfiguration = (runtimeConfig) => {
377
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
378
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
379
- let _credentials = runtimeConfig.credentials;
380
- return {
381
- setHttpAuthScheme(httpAuthScheme) {
382
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
383
- if (index === -1) {
384
- _httpAuthSchemes.push(httpAuthScheme);
385
- } else {
386
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
387
- }
388
- },
389
- httpAuthSchemes() {
390
- return _httpAuthSchemes;
391
- },
392
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
393
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
394
- },
395
- httpAuthSchemeProvider() {
396
- return _httpAuthSchemeProvider;
397
- },
398
- setCredentials(credentials) {
399
- _credentials = credentials;
400
- },
401
- credentials() {
402
- return _credentials;
403
- }
404
- };
405
- }, resolveHttpAuthRuntimeConfig = (config2) => {
406
- return {
407
- httpAuthSchemes: config2.httpAuthSchemes(),
408
- httpAuthSchemeProvider: config2.httpAuthSchemeProvider(),
409
- credentials: config2.credentials()
410
- };
411
- }, resolveRuntimeExtensions = (runtimeConfig, extensions) => {
412
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
413
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
414
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
415
- }, STSClient, AssumeRoleCommand, AssumeRoleWithWebIdentityCommand, commands, STS, getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
416
- if (typeof assumedRoleUser?.Arn === "string") {
417
- const arnComponents = assumedRoleUser.Arn.split(":");
418
- if (arnComponents.length > 4 && arnComponents[4] !== "") {
419
- return arnComponents[4];
420
- }
421
- }
422
- return;
423
- }, resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {
424
- const region = typeof _region === "function" ? await _region() : _region;
425
- const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
426
- let stsDefaultRegion = "";
427
- const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await client$1.stsRegionDefaultResolver(loaderConfig)());
428
- credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
429
- return resolvedRegion;
430
- }, getDefaultRoleAssumer$1 = (stsOptions, STSClient2) => {
431
- let stsClient;
432
- let closureSourceCreds;
433
- return async (sourceCreds, params) => {
434
- closureSourceCreds = sourceCreds;
435
- if (!stsClient) {
436
- const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions;
437
- const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
438
- logger,
439
- profile
440
- });
441
- const isCompatibleRequestHandler = !isH2(requestHandler);
442
- stsClient = new STSClient2({
443
- ...stsOptions,
444
- userAgentAppId,
445
- profile,
446
- credentialDefaultProvider: () => async () => closureSourceCreds,
447
- region: resolvedRegion,
448
- requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
449
- logger
450
- });
451
- }
452
- const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));
453
- if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
454
- throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
455
- }
456
- const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
457
- const credentials = {
458
- accessKeyId: Credentials.AccessKeyId,
459
- secretAccessKey: Credentials.SecretAccessKey,
460
- sessionToken: Credentials.SessionToken,
461
- expiration: Credentials.Expiration,
462
- ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
463
- ...accountId && { accountId }
464
- };
465
- client$1.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
466
- return credentials;
467
- };
468
- }, getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient2) => {
469
- let stsClient;
470
- return async (params) => {
471
- if (!stsClient) {
472
- const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions;
473
- const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
474
- logger,
475
- profile
476
- });
477
- const isCompatibleRequestHandler = !isH2(requestHandler);
478
- stsClient = new STSClient2({
479
- ...stsOptions,
480
- userAgentAppId,
481
- profile,
482
- region: resolvedRegion,
483
- requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
484
- logger
485
- });
486
- }
487
- const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
488
- if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
489
- throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
490
- }
491
- const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
492
- const credentials = {
493
- accessKeyId: Credentials.AccessKeyId,
494
- secretAccessKey: Credentials.SecretAccessKey,
495
- sessionToken: Credentials.SessionToken,
496
- expiration: Credentials.Expiration,
497
- ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
498
- ...accountId && { accountId }
499
- };
500
- if (accountId) {
501
- client$1.setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
502
- }
503
- client$1.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
504
- return credentials;
505
- };
506
- }, isH2 = (requestHandler) => {
507
- return requestHandler?.metadata?.handlerProtocol === "h2";
508
- }, getCustomizableStsClientCtor = (baseCtor, customizations) => {
509
- if (!customizations)
510
- return baseCtor;
511
- else
512
- return class CustomizableSTSClient extends baseCtor {
513
- constructor(config2) {
514
- super(config2);
515
- for (const customization of customizations) {
516
- this.middlewareStack.use(customization);
517
- }
518
- }
519
- };
520
- }, getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)), getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)), decorateDefaultCredentialProvider = (provider) => (input) => provider({
521
- roleAssumer: getDefaultRoleAssumer(input),
522
- roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
523
- ...input
524
- }), $$Command, $__Client, $AssumeRole$, $AssumeRoleCommand, $AssumeRoleRequest$, $AssumeRoleResponse$, $AssumeRoleWithWebIdentity$, $AssumeRoleWithWebIdentityCommand, $AssumeRoleWithWebIdentityRequest$, $AssumeRoleWithWebIdentityResponse$, $AssumedRoleUser$, $Credentials$, $ExpiredTokenException, $ExpiredTokenException$, $IDPCommunicationErrorException, $IDPCommunicationErrorException$, $IDPRejectedClaimException, $IDPRejectedClaimException$, $InvalidIdentityTokenException, $InvalidIdentityTokenException$, $MalformedPolicyDocumentException, $MalformedPolicyDocumentException$, $PackedPolicyTooLargeException, $PackedPolicyTooLargeException$, $PolicyDescriptorType$, $ProvidedContext$, $RegionDisabledException, $RegionDisabledException$, $STS, $STSClient, $STSServiceException, $STSServiceException$, $Tag$, $decorateDefaultCredentialProvider, $errorTypeRegistries, $getDefaultRoleAssumer, $getDefaultRoleAssumerWithWebIdentity;
525
- var init_sts = __esm(() => {
526
- client$1 = require_client2();
527
- core = require_dist_cjs();
528
- client = require_client();
529
- config = require_config();
530
- endpoints = require_endpoints();
531
- protocols = require_protocols();
532
- retry = require_retry();
533
- schema = require_schema();
534
- httpAuthSchemes = require_httpAuthSchemes();
535
- signatureV4MultiRegion = require_dist_cjs4();
536
- serde = require_serde();
537
- nodeHttpHandler = require_dist_cjs3();
538
- protocols$1 = require_protocols2();
539
- l = { [q]: "Endpoint" };
540
- m = { [q]: "Region" };
541
- n = { [q]: d };
542
- o = {};
543
- p = [m];
544
- _data = {
545
- conditions: [
546
- [c, [l]],
547
- [c, p],
548
- ["aws.partition", p, d],
549
- [e, [{ [q]: "UseFIPS" }, b]],
550
- [e, [{ [q]: "UseDualStack" }, b]],
551
- [f, [m, "aws-global"]],
552
- [e, [{ [q]: "UseGlobalEndpoint" }, b]],
553
- [f, [m, "eu-central-1"]],
554
- [e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]],
555
- [e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]],
556
- [f, [m, "ap-south-1"]],
557
- [f, [m, "eu-north-1"]],
558
- [f, [m, "eu-west-1"]],
559
- [f, [m, "eu-west-2"]],
560
- [f, [m, "eu-west-3"]],
561
- [f, [m, "sa-east-1"]],
562
- [f, [m, h]],
563
- [f, [m, "us-east-2"]],
564
- [f, [m, "us-west-2"]],
565
- [f, [m, "us-west-1"]],
566
- [f, [m, "ca-central-1"]],
567
- [f, [m, "ap-southeast-1"]],
568
- [f, [m, "ap-northeast-1"]],
569
- [f, [m, "ap-southeast-2"]],
570
- [f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]]
571
- ],
572
- results: [
573
- [a],
574
- ["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }],
575
- [k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }],
576
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
577
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
578
- [l, o],
579
- ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
580
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
581
- ["https://sts.{Region}.amazonaws.com", o],
582
- ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
583
- [a, "FIPS is enabled but this partition does not support FIPS"],
584
- ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
585
- [a, "DualStack is enabled but this partition does not support DualStack"],
586
- [k, o],
587
- [a, "Invalid Configuration: Missing Region"]
588
- ]
589
- };
590
- nodes = new Int32Array([
591
- -1,
592
- 1,
593
- -1,
594
- 0,
595
- 30,
596
- 3,
597
- 1,
598
- 4,
599
- r + 14,
600
- 2,
601
- 5,
602
- r + 14,
603
- 3,
604
- 25,
605
- 6,
606
- 4,
607
- 24,
608
- 7,
609
- 5,
610
- r + 1,
611
- 8,
612
- 6,
613
- 9,
614
- r + 13,
615
- 7,
616
- r + 1,
617
- 10,
618
- 10,
619
- r + 1,
620
- 11,
621
- 11,
622
- r + 1,
623
- 12,
624
- 12,
625
- r + 1,
626
- 13,
627
- 13,
628
- r + 1,
629
- 14,
630
- 14,
631
- r + 1,
632
- 15,
633
- 15,
634
- r + 1,
635
- 16,
636
- 16,
637
- r + 1,
638
- 17,
639
- 17,
640
- r + 1,
641
- 18,
642
- 18,
643
- r + 1,
644
- 19,
645
- 19,
646
- r + 1,
647
- 20,
648
- 20,
649
- r + 1,
650
- 21,
651
- 21,
652
- r + 1,
653
- 22,
654
- 22,
655
- r + 1,
656
- 23,
657
- 23,
658
- r + 1,
659
- r + 2,
660
- 8,
661
- r + 11,
662
- r + 12,
663
- 4,
664
- 28,
665
- 26,
666
- 9,
667
- 27,
668
- r + 10,
669
- 24,
670
- r + 8,
671
- r + 9,
672
- 8,
673
- 29,
674
- r + 7,
675
- 9,
676
- r + 6,
677
- r + 7,
678
- 3,
679
- r + 3,
680
- 31,
681
- 4,
682
- r + 4,
683
- r + 5
684
- ]);
685
- bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
686
- cache = new endpoints.EndpointCache({
687
- size: 50,
688
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"]
689
- });
690
- endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions;
691
- defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
692
- defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
693
- "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
694
- "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
695
- "smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption
696
- });
697
- commonParams = {
698
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
699
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
700
- Endpoint: { type: "builtInParams", name: "endpoint" },
701
- Region: { type: "builtInParams", name: "region" },
702
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
703
- };
704
- packageInfo = {
705
- version
706
- };
707
- STSServiceException = class STSServiceException extends client.ServiceException {
708
- constructor(options) {
709
- super(options);
710
- Object.setPrototypeOf(this, STSServiceException.prototype);
711
- }
712
- };
713
- ExpiredTokenException = class ExpiredTokenException extends STSServiceException {
714
- name = "ExpiredTokenException";
715
- $fault = "client";
716
- constructor(opts) {
717
- super({
718
- name: "ExpiredTokenException",
719
- $fault: "client",
720
- ...opts
721
- });
722
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
723
- }
724
- };
725
- MalformedPolicyDocumentException = class MalformedPolicyDocumentException extends STSServiceException {
726
- name = "MalformedPolicyDocumentException";
727
- $fault = "client";
728
- constructor(opts) {
729
- super({
730
- name: "MalformedPolicyDocumentException",
731
- $fault: "client",
732
- ...opts
733
- });
734
- Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
735
- }
736
- };
737
- PackedPolicyTooLargeException = class PackedPolicyTooLargeException extends STSServiceException {
738
- name = "PackedPolicyTooLargeException";
739
- $fault = "client";
740
- constructor(opts) {
741
- super({
742
- name: "PackedPolicyTooLargeException",
743
- $fault: "client",
744
- ...opts
745
- });
746
- Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
747
- }
748
- };
749
- RegionDisabledException = class RegionDisabledException extends STSServiceException {
750
- name = "RegionDisabledException";
751
- $fault = "client";
752
- constructor(opts) {
753
- super({
754
- name: "RegionDisabledException",
755
- $fault: "client",
756
- ...opts
757
- });
758
- Object.setPrototypeOf(this, RegionDisabledException.prototype);
759
- }
760
- };
761
- IDPRejectedClaimException = class IDPRejectedClaimException extends STSServiceException {
762
- name = "IDPRejectedClaimException";
763
- $fault = "client";
764
- constructor(opts) {
765
- super({
766
- name: "IDPRejectedClaimException",
767
- $fault: "client",
768
- ...opts
769
- });
770
- Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
771
- }
772
- };
773
- InvalidIdentityTokenException = class InvalidIdentityTokenException extends STSServiceException {
774
- name = "InvalidIdentityTokenException";
775
- $fault = "client";
776
- constructor(opts) {
777
- super({
778
- name: "InvalidIdentityTokenException",
779
- $fault: "client",
780
- ...opts
781
- });
782
- Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
783
- }
784
- };
785
- IDPCommunicationErrorException = class IDPCommunicationErrorException extends STSServiceException {
786
- name = "IDPCommunicationErrorException";
787
- $fault = "client";
788
- $retryable = {};
789
- constructor(opts) {
790
- super({
791
- name: "IDPCommunicationErrorException",
792
- $fault: "client",
793
- ...opts
794
- });
795
- Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
796
- }
797
- };
798
- _s_registry = schema.TypeRegistry.for(_s);
799
- STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
800
- _s_registry.registerError(STSServiceException$, STSServiceException);
801
- n0_registry = schema.TypeRegistry.for(n0);
802
- ExpiredTokenException$ = [
803
- -3,
804
- n0,
805
- _ETE,
806
- { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
807
- [_m],
808
- [0]
809
- ];
810
- n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
811
- IDPCommunicationErrorException$ = [
812
- -3,
813
- n0,
814
- _IDPCEE,
815
- { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
816
- [_m],
817
- [0]
818
- ];
819
- n0_registry.registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
820
- IDPRejectedClaimException$ = [
821
- -3,
822
- n0,
823
- _IDPRCE,
824
- { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
825
- [_m],
826
- [0]
827
- ];
828
- n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
829
- InvalidIdentityTokenException$ = [
830
- -3,
831
- n0,
832
- _IITE,
833
- { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
834
- [_m],
835
- [0]
836
- ];
837
- n0_registry.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
838
- MalformedPolicyDocumentException$ = [
839
- -3,
840
- n0,
841
- _MPDE,
842
- { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
843
- [_m],
844
- [0]
845
- ];
846
- n0_registry.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
847
- PackedPolicyTooLargeException$ = [
848
- -3,
849
- n0,
850
- _PPTLE,
851
- { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
852
- [_m],
853
- [0]
854
- ];
855
- n0_registry.registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
856
- RegionDisabledException$ = [
857
- -3,
858
- n0,
859
- _RDE,
860
- { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
861
- [_m],
862
- [0]
863
- ];
864
- n0_registry.registerError(RegionDisabledException$, RegionDisabledException);
865
- errorTypeRegistries = [_s_registry, n0_registry];
866
- accessKeySecretType = [0, n0, _aKST, 8, 0];
867
- clientTokenType = [0, n0, _cTT, 8, 0];
868
- AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];
869
- AssumeRoleRequest$ = [
870
- 3,
871
- n0,
872
- _ARR,
873
- 0,
874
- [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
875
- [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
876
- 2
877
- ];
878
- AssumeRoleResponse$ = [
879
- 3,
880
- n0,
881
- _ARRs,
882
- 0,
883
- [_C, _ARU, _PPS, _SI],
884
- [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
885
- ];
886
- AssumeRoleWithWebIdentityRequest$ = [
887
- 3,
888
- n0,
889
- _ARWWIR,
890
- 0,
891
- [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
892
- [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
893
- 3
894
- ];
895
- AssumeRoleWithWebIdentityResponse$ = [
896
- 3,
897
- n0,
898
- _ARWWIRs,
899
- 0,
900
- [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
901
- [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
902
- ];
903
- Credentials$ = [
904
- 3,
905
- n0,
906
- _C,
907
- 0,
908
- [_AKI, _SAK, _ST, _E],
909
- [0, [() => accessKeySecretType, 0], 0, 4],
910
- 4
911
- ];
912
- PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];
913
- ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];
914
- Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];
915
- policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$];
916
- ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$];
917
- tagListType = [1, n0, _tLT, 0, () => Tag$];
918
- AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];
919
- AssumeRoleWithWebIdentity$ = [
920
- 9,
921
- n0,
922
- _ARWWI,
923
- 0,
924
- () => AssumeRoleWithWebIdentityRequest$,
925
- () => AssumeRoleWithWebIdentityResponse$
926
- ];
927
- STSClient = class STSClient extends client.Client {
928
- config;
929
- constructor(...[configuration]) {
930
- const _config_0 = getRuntimeConfig(configuration || {});
931
- super(_config_0);
932
- this.initConfig = _config_0;
933
- const _config_1 = resolveClientEndpointParameters(_config_0);
934
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
935
- const _config_3 = retry.resolveRetryConfig(_config_2);
936
- const _config_4 = config.resolveRegionConfig(_config_3);
937
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
938
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
939
- const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
940
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
941
- this.config = _config_8;
942
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
943
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
944
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
945
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
946
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
947
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
948
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
949
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
950
- httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
951
- identityProviderConfigProvider: async (config2) => new core.DefaultIdentityProviderConfig({
952
- "aws.auth#sigv4": config2.credentials,
953
- "aws.auth#sigv4a": config2.credentials
954
- })
955
- }));
956
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
957
- }
958
- destroy() {
959
- super.destroy();
960
- }
961
- };
962
- AssumeRoleCommand = class AssumeRoleCommand extends client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config2, o2) {
963
- return [endpoints.getEndpointPlugin(config2, Command.getEndpointParameterInstructions())];
964
- }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").sc(AssumeRole$).build() {
965
- };
966
- AssumeRoleWithWebIdentityCommand = class AssumeRoleWithWebIdentityCommand extends client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config2, o2) {
967
- return [endpoints.getEndpointPlugin(config2, Command.getEndpointParameterInstructions())];
968
- }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").sc(AssumeRoleWithWebIdentity$).build() {
969
- };
970
- commands = {
971
- AssumeRoleCommand,
972
- AssumeRoleWithWebIdentityCommand
973
- };
974
- STS = class STS extends STSClient {
975
- };
976
- client.createAggregatedClient(commands, STS);
977
- $$Command = client.Command;
978
- $__Client = client.Client;
979
- $AssumeRole$ = AssumeRole$;
980
- $AssumeRoleCommand = AssumeRoleCommand;
981
- $AssumeRoleRequest$ = AssumeRoleRequest$;
982
- $AssumeRoleResponse$ = AssumeRoleResponse$;
983
- $AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;
984
- $AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
985
- $AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
986
- $AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
987
- $AssumedRoleUser$ = AssumedRoleUser$;
988
- $Credentials$ = Credentials$;
989
- $ExpiredTokenException = ExpiredTokenException;
990
- $ExpiredTokenException$ = ExpiredTokenException$;
991
- $IDPCommunicationErrorException = IDPCommunicationErrorException;
992
- $IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
993
- $IDPRejectedClaimException = IDPRejectedClaimException;
994
- $IDPRejectedClaimException$ = IDPRejectedClaimException$;
995
- $InvalidIdentityTokenException = InvalidIdentityTokenException;
996
- $InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
997
- $MalformedPolicyDocumentException = MalformedPolicyDocumentException;
998
- $MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
999
- $PackedPolicyTooLargeException = PackedPolicyTooLargeException;
1000
- $PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
1001
- $PolicyDescriptorType$ = PolicyDescriptorType$;
1002
- $ProvidedContext$ = ProvidedContext$;
1003
- $RegionDisabledException = RegionDisabledException;
1004
- $RegionDisabledException$ = RegionDisabledException$;
1005
- $STS = STS;
1006
- $STSClient = STSClient;
1007
- $STSServiceException = STSServiceException;
1008
- $STSServiceException$ = STSServiceException$;
1009
- $Tag$ = Tag$;
1010
- $decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
1011
- $errorTypeRegistries = errorTypeRegistries;
1012
- $getDefaultRoleAssumer = getDefaultRoleAssumer;
1013
- $getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
1014
- });
1015
- init_sts();
1016
-
1017
- export {
1018
- $$Command as $Command,
1019
- $AssumeRole$ as AssumeRole$,
1020
- $AssumeRoleCommand as AssumeRoleCommand,
1021
- $AssumeRoleRequest$ as AssumeRoleRequest$,
1022
- $AssumeRoleResponse$ as AssumeRoleResponse$,
1023
- $AssumeRoleWithWebIdentity$ as AssumeRoleWithWebIdentity$,
1024
- $AssumeRoleWithWebIdentityCommand as AssumeRoleWithWebIdentityCommand,
1025
- $AssumeRoleWithWebIdentityRequest$ as AssumeRoleWithWebIdentityRequest$,
1026
- $AssumeRoleWithWebIdentityResponse$ as AssumeRoleWithWebIdentityResponse$,
1027
- $AssumedRoleUser$ as AssumedRoleUser$,
1028
- $Credentials$ as Credentials$,
1029
- $ExpiredTokenException as ExpiredTokenException,
1030
- $ExpiredTokenException$ as ExpiredTokenException$,
1031
- $IDPCommunicationErrorException as IDPCommunicationErrorException,
1032
- $IDPCommunicationErrorException$ as IDPCommunicationErrorException$,
1033
- $IDPRejectedClaimException as IDPRejectedClaimException,
1034
- $IDPRejectedClaimException$ as IDPRejectedClaimException$,
1035
- $InvalidIdentityTokenException as InvalidIdentityTokenException,
1036
- $InvalidIdentityTokenException$ as InvalidIdentityTokenException$,
1037
- $MalformedPolicyDocumentException as MalformedPolicyDocumentException,
1038
- $MalformedPolicyDocumentException$ as MalformedPolicyDocumentException$,
1039
- $PackedPolicyTooLargeException as PackedPolicyTooLargeException,
1040
- $PackedPolicyTooLargeException$ as PackedPolicyTooLargeException$,
1041
- $PolicyDescriptorType$ as PolicyDescriptorType$,
1042
- $ProvidedContext$ as ProvidedContext$,
1043
- $RegionDisabledException as RegionDisabledException,
1044
- $RegionDisabledException$ as RegionDisabledException$,
1045
- $STS as STS,
1046
- $STSClient as STSClient,
1047
- $STSServiceException as STSServiceException,
1048
- $STSServiceException$ as STSServiceException$,
1049
- $Tag$ as Tag$,
1050
- $__Client as __Client,
1051
- $decorateDefaultCredentialProvider as decorateDefaultCredentialProvider,
1052
- $errorTypeRegistries as errorTypeRegistries,
1053
- $getDefaultRoleAssumer as getDefaultRoleAssumer,
1054
- $getDefaultRoleAssumerWithWebIdentity as getDefaultRoleAssumerWithWebIdentity
1055
- };
1056
- export default {
1057
- get $Command() {
1058
- return $$Command;
1059
- },
1060
- get AssumeRole$() {
1061
- return $AssumeRole$;
1062
- },
1063
- get AssumeRoleCommand() {
1064
- return $AssumeRoleCommand;
1065
- },
1066
- get AssumeRoleRequest$() {
1067
- return $AssumeRoleRequest$;
1068
- },
1069
- get AssumeRoleResponse$() {
1070
- return $AssumeRoleResponse$;
1071
- },
1072
- get AssumeRoleWithWebIdentity$() {
1073
- return $AssumeRoleWithWebIdentity$;
1074
- },
1075
- get AssumeRoleWithWebIdentityCommand() {
1076
- return $AssumeRoleWithWebIdentityCommand;
1077
- },
1078
- get AssumeRoleWithWebIdentityRequest$() {
1079
- return $AssumeRoleWithWebIdentityRequest$;
1080
- },
1081
- get AssumeRoleWithWebIdentityResponse$() {
1082
- return $AssumeRoleWithWebIdentityResponse$;
1083
- },
1084
- get AssumedRoleUser$() {
1085
- return $AssumedRoleUser$;
1086
- },
1087
- get Credentials$() {
1088
- return $Credentials$;
1089
- },
1090
- get ExpiredTokenException() {
1091
- return $ExpiredTokenException;
1092
- },
1093
- get ExpiredTokenException$() {
1094
- return $ExpiredTokenException$;
1095
- },
1096
- get IDPCommunicationErrorException() {
1097
- return $IDPCommunicationErrorException;
1098
- },
1099
- get IDPCommunicationErrorException$() {
1100
- return $IDPCommunicationErrorException$;
1101
- },
1102
- get IDPRejectedClaimException() {
1103
- return $IDPRejectedClaimException;
1104
- },
1105
- get IDPRejectedClaimException$() {
1106
- return $IDPRejectedClaimException$;
1107
- },
1108
- get InvalidIdentityTokenException() {
1109
- return $InvalidIdentityTokenException;
1110
- },
1111
- get InvalidIdentityTokenException$() {
1112
- return $InvalidIdentityTokenException$;
1113
- },
1114
- get MalformedPolicyDocumentException() {
1115
- return $MalformedPolicyDocumentException;
1116
- },
1117
- get MalformedPolicyDocumentException$() {
1118
- return $MalformedPolicyDocumentException$;
1119
- },
1120
- get PackedPolicyTooLargeException() {
1121
- return $PackedPolicyTooLargeException;
1122
- },
1123
- get PackedPolicyTooLargeException$() {
1124
- return $PackedPolicyTooLargeException$;
1125
- },
1126
- get PolicyDescriptorType$() {
1127
- return $PolicyDescriptorType$;
1128
- },
1129
- get ProvidedContext$() {
1130
- return $ProvidedContext$;
1131
- },
1132
- get RegionDisabledException() {
1133
- return $RegionDisabledException;
1134
- },
1135
- get RegionDisabledException$() {
1136
- return $RegionDisabledException$;
1137
- },
1138
- get STS() {
1139
- return $STS;
1140
- },
1141
- get STSClient() {
1142
- return $STSClient;
1143
- },
1144
- get STSServiceException() {
1145
- return $STSServiceException;
1146
- },
1147
- get STSServiceException$() {
1148
- return $STSServiceException$;
1149
- },
1150
- get Tag$() {
1151
- return $Tag$;
1152
- },
1153
- get __Client() {
1154
- return $__Client;
1155
- },
1156
- get decorateDefaultCredentialProvider() {
1157
- return $decorateDefaultCredentialProvider;
1158
- },
1159
- get errorTypeRegistries() {
1160
- return $errorTypeRegistries;
1161
- },
1162
- get getDefaultRoleAssumer() {
1163
- return $getDefaultRoleAssumer;
1164
- },
1165
- get getDefaultRoleAssumerWithWebIdentity() {
1166
- return $getDefaultRoleAssumerWithWebIdentity;
1167
- }
1168
- };