@stacksjs/actions 0.70.23 → 0.70.26

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 (384) hide show
  1. package/dist/chunk-2gh7kgpc.js +3 -0
  2. package/dist/chunk-2kaj93p5.js +3 -0
  3. package/dist/chunk-2qchdrf9.js +3 -0
  4. package/dist/chunk-3086k7zk.js +184 -0
  5. package/dist/chunk-3beht8ja.js +130 -0
  6. package/dist/chunk-60qjz7zb.js +3 -0
  7. package/dist/chunk-67y94dzt.js +658 -0
  8. package/dist/chunk-6x1m5rkr.js +17 -0
  9. package/dist/chunk-7bpdkc40.js +714 -0
  10. package/dist/chunk-96b7fcmd.js +3 -0
  11. package/dist/chunk-aw6d8zr3.js +7 -0
  12. package/dist/chunk-c8qt2xst.js +3 -0
  13. package/dist/chunk-d4srk6ma.js +3 -0
  14. package/dist/chunk-e9tcbk71.js +1 -0
  15. package/dist/chunk-gt77jmb5.js +46 -0
  16. package/dist/chunk-h93n2j40.js +95 -0
  17. package/dist/chunk-jd1yzkq5.js +3 -0
  18. package/dist/chunk-kzhgexj4.js +3 -0
  19. package/dist/chunk-n1y0gpv6.js +3 -0
  20. package/dist/chunk-n2fd1d0m.js +3 -0
  21. package/dist/chunk-n2x7v39b.js +5 -0
  22. package/dist/chunk-rdajkt2s.js +88 -0
  23. package/dist/chunk-s735m9mg.js +1 -0
  24. package/dist/chunk-schcaf73.js +3 -0
  25. package/dist/chunk-tc935b45.js +93 -0
  26. package/dist/chunk-v0wnrnaa.js +7 -0
  27. package/dist/chunk-w418anbq.js +5 -0
  28. package/dist/chunk-wnrgcx3d.js +114 -0
  29. package/dist/chunk-wv5yb5wb.js +101 -0
  30. package/dist/chunk-x471rxrn.js +7 -0
  31. package/dist/chunk-xg9xscqz.js +1 -0
  32. package/dist/src/action.d.ts +60 -0
  33. package/dist/src/action.js +2 -0
  34. package/dist/src/actions.d.ts +2 -0
  35. package/dist/src/actions.js +2 -0
  36. package/dist/src/add.d.ts +6 -0
  37. package/dist/src/add.js +2 -0
  38. package/dist/src/ai/request-model-access.d.ts +1 -0
  39. package/dist/src/ai/request-model-access.js +2 -0
  40. package/dist/src/auth/client.d.ts +1 -0
  41. package/dist/src/auth/client.js +3 -0
  42. package/dist/src/auth/prune.d.ts +1 -0
  43. package/dist/src/auth/prune.js +2 -0
  44. package/dist/src/auth/setup.d.ts +1 -0
  45. package/dist/src/auth/setup.js +148 -0
  46. package/dist/src/auth/token.d.ts +1 -0
  47. package/dist/src/auth/token.js +2 -0
  48. package/dist/src/build/cli.d.ts +1 -0
  49. package/dist/src/build/cli.js +2 -0
  50. package/dist/src/build/component-libs.d.ts +1 -0
  51. package/dist/src/build/component-libs.js +2 -0
  52. package/dist/src/build/core.d.ts +1 -0
  53. package/dist/src/build/core.js +2 -0
  54. package/dist/src/build/desktop.d.ts +1 -0
  55. package/dist/src/build/desktop.js +2 -0
  56. package/dist/src/build/docs.d.ts +1 -0
  57. package/dist/src/build/docs.js +2 -0
  58. package/dist/src/build/server.d.ts +1 -0
  59. package/dist/src/build/server.js +2 -0
  60. package/dist/src/build/stacks.d.ts +1 -0
  61. package/dist/src/build/stacks.js +2 -0
  62. package/dist/src/build/views.d.ts +1 -0
  63. package/dist/src/build/views.js +2 -0
  64. package/dist/{build.d.ts → src/build.d.ts} +1 -2
  65. package/dist/src/build.js +2 -0
  66. package/dist/src/bump.d.ts +1 -0
  67. package/dist/src/bump.js +2 -0
  68. package/dist/src/cdn/invalidate-cache.d.ts +1 -0
  69. package/dist/src/cdn/invalidate-cache.js +1 -0
  70. package/dist/src/changelog.d.ts +1 -0
  71. package/dist/src/changelog.js +2 -0
  72. package/dist/src/check/ports.d.ts +1 -0
  73. package/dist/src/check/ports.js +2 -0
  74. package/dist/src/clean.d.ts +1 -0
  75. package/dist/src/clean.js +2 -0
  76. package/dist/{commit.d.ts → src/commit.d.ts} +1 -2
  77. package/dist/src/commit.js +2 -0
  78. package/dist/src/copy-types.d.ts +1 -0
  79. package/dist/src/copy-types.js +3 -0
  80. package/dist/src/database/seed.d.ts +1 -0
  81. package/dist/src/database/seed.js +2 -0
  82. package/dist/src/deploy/create-receipt-rule.d.ts +1 -0
  83. package/dist/src/deploy/create-receipt-rule.js +2 -0
  84. package/dist/src/deploy/index.d.ts +1 -0
  85. package/dist/src/deploy/index.js +307 -0
  86. package/dist/src/dev/api.d.ts +1 -0
  87. package/dist/src/dev/api.js +6 -0
  88. package/dist/src/dev/components.d.ts +1 -0
  89. package/dist/src/dev/components.js +2 -0
  90. package/dist/src/dev/dashboard-globals.d.ts +4 -0
  91. package/dist/src/dev/dashboard-globals.js +3 -0
  92. package/dist/src/dev/dashboard-utils.d.ts +126 -0
  93. package/dist/src/dev/dashboard-utils.js +2 -0
  94. package/dist/src/dev/dashboard.d.ts +12 -0
  95. package/dist/src/dev/dashboard.js +8 -0
  96. package/dist/src/dev/desktop.d.ts +1 -0
  97. package/dist/src/dev/desktop.js +2 -0
  98. package/dist/src/dev/docs.d.ts +1 -0
  99. package/dist/src/dev/docs.js +2 -0
  100. package/dist/src/dev/index.d.ts +10 -0
  101. package/dist/src/dev/index.js +2 -0
  102. package/dist/src/dev/system-tray.d.ts +1 -0
  103. package/dist/src/dev/system-tray.js +2 -0
  104. package/dist/src/dev/views.d.ts +1 -0
  105. package/dist/src/dev/views.js +2 -0
  106. package/dist/src/discover-packages.d.ts +18 -0
  107. package/dist/src/discover-packages.js +2 -0
  108. package/dist/src/domains/add.d.ts +1 -0
  109. package/dist/src/domains/add.js +2 -0
  110. package/dist/src/domains/purchase.d.ts +1 -0
  111. package/dist/src/domains/purchase.js +2 -0
  112. package/dist/src/domains/remove.d.ts +1 -0
  113. package/dist/src/domains/remove.js +2 -0
  114. package/dist/{examples.d.ts → src/examples.d.ts} +1 -2
  115. package/dist/src/examples.js +2 -0
  116. package/dist/src/find-projects.d.ts +1 -0
  117. package/dist/src/find-projects.js +2 -0
  118. package/dist/src/fresh.d.ts +1 -0
  119. package/dist/src/fresh.js +2 -0
  120. package/dist/src/generate/action-types.d.ts +1 -0
  121. package/dist/src/generate/action-types.js +8 -0
  122. package/dist/src/generate/component-meta.d.ts +1 -0
  123. package/dist/src/generate/component-meta.js +3 -0
  124. package/dist/src/generate/custom-cli-file.d.ts +1 -0
  125. package/dist/src/generate/custom-cli-file.js +4 -0
  126. package/dist/src/generate/env-files.d.ts +1 -0
  127. package/dist/src/generate/env-files.js +26 -0
  128. package/dist/src/generate/ide-helpers.d.ts +1 -0
  129. package/dist/src/generate/ide-helpers.js +3 -0
  130. package/dist/src/generate/index.d.ts +36 -0
  131. package/dist/src/generate/index.js +2 -0
  132. package/dist/src/generate/lib-entries.d.ts +1 -0
  133. package/dist/src/generate/lib-entries.js +3 -0
  134. package/dist/src/generate/pantry-file.d.ts +1 -0
  135. package/dist/src/generate/pantry-file.js +2 -0
  136. package/dist/src/generate/symlink-core.d.ts +1 -0
  137. package/dist/src/generate/symlink-core.js +2 -0
  138. package/dist/src/generate/types.d.ts +1 -0
  139. package/dist/src/generate/types.js +2 -0
  140. package/dist/src/generate/vscode-custom-data.d.ts +1 -0
  141. package/dist/src/generate/vscode-custom-data.js +3 -0
  142. package/dist/src/generate/web-types.d.ts +1 -0
  143. package/dist/src/generate/web-types.js +1 -0
  144. package/dist/src/helpers/component-meta.d.ts +26 -0
  145. package/dist/src/helpers/component-meta.js +2 -0
  146. package/dist/src/helpers/index.d.ts +4 -0
  147. package/dist/src/helpers/index.js +2 -0
  148. package/dist/{lib-entries.d.ts → src/helpers/lib-entries.d.ts} +9 -5
  149. package/dist/src/helpers/lib-entries.js +2 -0
  150. package/dist/src/helpers/package-json.d.ts +2 -0
  151. package/dist/src/helpers/package-json.js +43 -0
  152. package/dist/src/helpers/utils.d.ts +23 -0
  153. package/dist/src/helpers/utils.js +2 -0
  154. package/dist/{vscode-custom-data.d.ts → src/helpers/vscode-custom-data.d.ts} +1 -1
  155. package/dist/src/helpers/vscode-custom-data.js +2 -0
  156. package/dist/src/index.d.ts +42 -0
  157. package/dist/src/index.js +2 -0
  158. package/dist/src/key-generate.d.ts +1 -0
  159. package/dist/src/key-generate.js +2 -0
  160. package/dist/src/lint/fix.d.ts +1 -0
  161. package/dist/src/lint/fix.js +4 -0
  162. package/dist/src/lint/index.d.ts +1 -0
  163. package/dist/src/lint/index.js +3 -0
  164. package/dist/src/make-command.d.ts +10 -0
  165. package/dist/src/make-command.js +2 -0
  166. package/dist/src/make-job.d.ts +5 -0
  167. package/dist/src/make-job.js +2 -0
  168. package/dist/src/make-policy.d.ts +10 -0
  169. package/dist/src/make-policy.js +2 -0
  170. package/dist/src/make-resource.d.ts +10 -0
  171. package/dist/src/make-resource.js +2 -0
  172. package/dist/{make.d.ts → src/make.d.ts} +11 -9
  173. package/dist/src/make.js +2 -0
  174. package/dist/src/migrate/database.d.ts +1 -0
  175. package/dist/src/migrate/database.js +2 -0
  176. package/dist/src/migrate/fresh.d.ts +1 -0
  177. package/dist/src/migrate/fresh.js +2 -0
  178. package/dist/src/orm/base.d.ts +1 -0
  179. package/dist/src/orm/base.js +2 -0
  180. package/dist/src/orm/test.d.ts +1 -0
  181. package/dist/src/orm/test.js +1 -0
  182. package/dist/src/prepublish.d.ts +1 -0
  183. package/dist/src/prepublish.js +2 -0
  184. package/dist/src/queue/clear.d.ts +1 -0
  185. package/dist/src/queue/clear.js +2 -0
  186. package/dist/src/queue/failed.d.ts +1 -0
  187. package/dist/src/queue/failed.js +5 -0
  188. package/dist/src/queue/flush.d.ts +1 -0
  189. package/dist/src/queue/flush.js +3 -0
  190. package/dist/src/queue/inspect.d.ts +1 -0
  191. package/dist/src/queue/inspect.js +8 -0
  192. package/dist/src/queue/monitor.d.ts +1 -0
  193. package/dist/src/queue/monitor.js +7 -0
  194. package/dist/src/queue/retry.d.ts +1 -0
  195. package/dist/src/queue/retry.js +2 -0
  196. package/dist/src/queue/schedule-list.d.ts +1 -0
  197. package/dist/src/queue/schedule-list.js +5 -0
  198. package/dist/src/queue/schedule.d.ts +1 -0
  199. package/dist/src/queue/schedule.js +2 -0
  200. package/dist/src/queue/status.d.ts +1 -0
  201. package/dist/src/queue/status.js +5 -0
  202. package/dist/src/queue/table.d.ts +1 -0
  203. package/dist/src/queue/table.js +2 -0
  204. package/dist/src/queue/work.d.ts +1 -0
  205. package/dist/src/queue/work.js +2 -0
  206. package/dist/src/release.d.ts +1 -0
  207. package/dist/src/release.js +3 -0
  208. package/dist/src/route/list.d.ts +1 -0
  209. package/dist/src/route/list.js +3 -0
  210. package/dist/src/run-action.d.ts +2 -0
  211. package/dist/src/run-action.js +2 -0
  212. package/dist/src/saas/setup.d.ts +1 -0
  213. package/dist/src/saas/setup.js +2 -0
  214. package/dist/src/scaffold-crud.d.ts +25 -0
  215. package/dist/src/scaffold-crud.js +2 -0
  216. package/dist/src/schedule/run.d.ts +1 -0
  217. package/dist/src/schedule/run.js +2 -0
  218. package/dist/src/search/flush.d.ts +1 -0
  219. package/dist/src/search/flush.js +2 -0
  220. package/dist/src/search/import.d.ts +1 -0
  221. package/dist/src/search/import.js +2 -0
  222. package/dist/src/search/settings-list.d.ts +1 -0
  223. package/dist/src/search/settings-list.js +2 -0
  224. package/dist/src/search/settings.d.ts +1 -0
  225. package/dist/src/search/settings.js +2 -0
  226. package/dist/src/serve/api.d.ts +1 -0
  227. package/dist/src/serve/api.js +2 -0
  228. package/dist/src/setup/index.d.ts +1 -0
  229. package/dist/src/setup/index.js +2 -0
  230. package/dist/src/setup/ssl.d.ts +38 -0
  231. package/dist/src/setup/ssl.js +2 -0
  232. package/dist/src/stacks.d.ts +4 -0
  233. package/dist/src/stacks.js +2 -0
  234. package/dist/src/templates.d.ts +8 -0
  235. package/dist/src/templates.js +2 -0
  236. package/dist/src/test/feature.d.ts +1 -0
  237. package/dist/src/test/feature.js +2 -0
  238. package/dist/src/test/index.d.ts +1 -0
  239. package/dist/src/test/index.js +2 -0
  240. package/dist/src/test/ui.d.ts +1 -0
  241. package/dist/src/test/ui.js +2 -0
  242. package/dist/src/test/unit.d.ts +1 -0
  243. package/dist/src/test/unit.js +2 -0
  244. package/dist/src/typecheck.d.ts +1 -0
  245. package/dist/src/typecheck.js +2 -0
  246. package/dist/{types.d.ts → src/types.d.ts} +1 -2
  247. package/dist/src/types.js +2 -0
  248. package/dist/src/upgrade/binary.d.ts +1 -0
  249. package/dist/src/upgrade/binary.js +2 -0
  250. package/dist/src/upgrade/bun.d.ts +1 -0
  251. package/dist/src/upgrade/bun.js +1 -0
  252. package/dist/src/upgrade/dependencies.d.ts +1 -0
  253. package/dist/src/upgrade/dependencies.js +2 -0
  254. package/dist/src/upgrade/framework-utils.d.ts +102 -0
  255. package/dist/src/upgrade/framework-utils.js +2 -0
  256. package/dist/src/upgrade/framework.d.ts +1 -0
  257. package/dist/src/upgrade/framework.js +7 -0
  258. package/dist/src/upgrade/index.d.ts +1 -0
  259. package/dist/src/upgrade/index.js +2 -0
  260. package/dist/src/upgrade/shell.d.ts +1 -0
  261. package/dist/src/upgrade/shell.js +5 -0
  262. package/dist/src/upgrade.d.ts +7 -0
  263. package/dist/src/upgrade.js +2 -0
  264. package/package.json +39 -23
  265. package/dist/action-types.d.ts +0 -9
  266. package/dist/action.d.ts +0 -64
  267. package/dist/actions.d.ts +0 -2
  268. package/dist/add.d.ts +0 -5
  269. package/dist/add.js +0 -33
  270. package/dist/api.d.ts +0 -1
  271. package/dist/binary.d.ts +0 -2
  272. package/dist/build/component-libs.js +0 -9
  273. package/dist/build/core.js +0 -23
  274. package/dist/build/stacks.js +0 -8
  275. package/dist/build.js +0 -108
  276. package/dist/bump.d.ts +0 -2
  277. package/dist/bump.js +0 -17
  278. package/dist/changelog.d.ts +0 -2
  279. package/dist/changelog.js +0 -17
  280. package/dist/chunk-2dvnt46s.js +0 -7657
  281. package/dist/chunk-494jp8d5.js +0 -54
  282. package/dist/chunk-4axj3j8y.js +0 -34
  283. package/dist/chunk-56ar3gp7.js +0 -3823
  284. package/dist/chunk-76zhb40c.js +0 -92
  285. package/dist/chunk-7s5qcjkt.js +0 -105
  286. package/dist/chunk-9v6qtbez.js +0 -45
  287. package/dist/chunk-a13x0e43.js +0 -1180
  288. package/dist/chunk-a7k3cdby.js +0 -2266
  289. package/dist/chunk-b5g5w1hh.js +0 -1482
  290. package/dist/chunk-bf8bq8pc.js +0 -205
  291. package/dist/chunk-ccnf3w1b.js +0 -2228
  292. package/dist/chunk-dvkgakrr.js +0 -1283
  293. package/dist/chunk-frw3va9v.js +0 -69
  294. package/dist/chunk-hvfeg6n6.js +0 -179248
  295. package/dist/chunk-mdj7x1vs.js +0 -790
  296. package/dist/chunk-mdqphqep.js +0 -438
  297. package/dist/chunk-mmskr8ar.js +0 -212
  298. package/dist/chunk-nrr524a7.js +0 -658
  299. package/dist/chunk-p0c688mg.js +0 -729
  300. package/dist/chunk-pacq2bz6.js +0 -902
  301. package/dist/chunk-psa9yf21.js +0 -72
  302. package/dist/chunk-q81mf99q.js +0 -169
  303. package/dist/chunk-q9dmga3k.js +0 -11
  304. package/dist/chunk-qhh0v93n.js +0 -73
  305. package/dist/chunk-qkm8e752.js +0 -51
  306. package/dist/chunk-saqpg5nd.js +0 -118
  307. package/dist/chunk-t5em30ak.js +0 -379
  308. package/dist/chunk-veja9rez.js +0 -5764
  309. package/dist/chunk-w4bfpxhm.js +0 -311
  310. package/dist/chunk-w6fdq4hk.js +0 -14425
  311. package/dist/chunk-wkwtsvym.js +0 -477
  312. package/dist/chunk-xgsmf4cy.js +0 -410
  313. package/dist/chunk-ykb33tkv.js +0 -177
  314. package/dist/chunk-ze46550n.js +0 -0
  315. package/dist/chunk-zzerxbrm.js +0 -107
  316. package/dist/clean.js +0 -6
  317. package/dist/commit.js +0 -22
  318. package/dist/component-meta.d.ts +0 -15
  319. package/dist/components.d.ts +0 -3
  320. package/dist/copy-types.d.ts +0 -1
  321. package/dist/copy-types.js +0 -14
  322. package/dist/core.d.ts +0 -1
  323. package/dist/create-receipt-rule.d.ts +0 -4
  324. package/dist/database/seed.js +0 -30
  325. package/dist/database.d.ts +0 -2
  326. package/dist/deploy/index.js +0 -48
  327. package/dist/dev/components.js +0 -11
  328. package/dist/dev/docs.js +0 -7
  329. package/dist/dev/index.js +0 -58
  330. package/dist/env-files.d.ts +0 -9
  331. package/dist/examples.js +0 -46
  332. package/dist/feature.d.ts +0 -2
  333. package/dist/find-projects.d.ts +0 -1
  334. package/dist/fix.d.ts +0 -1
  335. package/dist/flush.d.ts +0 -2
  336. package/dist/fresh.d.ts +0 -1
  337. package/dist/fresh.js +0 -21
  338. package/dist/generate/component-meta.js +0 -17
  339. package/dist/generate/ide-helpers.js +0 -18
  340. package/dist/generate/index.js +0 -216
  341. package/dist/generate/lib-entries.js +0 -30
  342. package/dist/generate/vscode-custom-data.js +0 -17
  343. package/dist/helpers/component-meta.js +0 -204227
  344. package/dist/helpers/lib-entries.js +0 -122
  345. package/dist/helpers/package-json.js +0 -96
  346. package/dist/helpers/utils.js +0 -76
  347. package/dist/helpers/vscode-custom-data.js +0 -43
  348. package/dist/import.d.ts +0 -2
  349. package/dist/index.d.ts +0 -2
  350. package/dist/index.js +0 -172
  351. package/dist/key-generate.js +0 -15
  352. package/dist/lint/fix.js +0 -18
  353. package/dist/lint/index.js +0 -5
  354. package/dist/list.d.ts +0 -1
  355. package/dist/make.js +0 -349
  356. package/dist/package-json.d.ts +0 -92
  357. package/dist/pkgx-file.d.ts +0 -8
  358. package/dist/ports.d.ts +0 -2
  359. package/dist/prepublish.d.ts +0 -1
  360. package/dist/prepublish.js +0 -17
  361. package/dist/purchase.d.ts +0 -6
  362. package/dist/release.js +0 -49
  363. package/dist/remove.d.ts +0 -6
  364. package/dist/request-model-access.d.ts +0 -1
  365. package/dist/run.d.ts +0 -1
  366. package/dist/settings-list.d.ts +0 -2
  367. package/dist/settings.d.ts +0 -1
  368. package/dist/setup.d.ts +0 -1
  369. package/dist/shell.d.ts +0 -2
  370. package/dist/table.d.ts +0 -1
  371. package/dist/test/feature.js +0 -14
  372. package/dist/test/index.js +0 -14
  373. package/dist/test/ui.js +0 -6
  374. package/dist/test/unit.js +0 -14
  375. package/dist/typecheck.js +0 -6
  376. package/dist/types.js +0 -23
  377. package/dist/unit.d.ts +0 -2
  378. package/dist/upgrade/dependencies.js +0 -8
  379. package/dist/upgrade/index.js +0 -22
  380. package/dist/upgrade.d.ts +0 -5
  381. package/dist/upgrade.js +0 -50
  382. package/dist/utils.d.ts +0 -75
  383. package/dist/work.d.ts +0 -3
  384. /package/dist/{upgrade/framework.js → chunk-cdk2r2jd.js} +0 -0
@@ -1,1283 +0,0 @@
1
- // @bun
2
- import {
3
- require_dist_cjs as require_dist_cjs10,
4
- require_dist_cjs1 as require_dist_cjs11,
5
- require_dist_cjs10 as require_dist_cjs20,
6
- require_dist_cjs11 as require_dist_cjs21,
7
- require_dist_cjs12 as require_dist_cjs22,
8
- require_dist_cjs13 as require_dist_cjs23,
9
- require_dist_cjs14 as require_dist_cjs24,
10
- require_dist_cjs15 as require_dist_cjs25,
11
- require_dist_cjs16 as require_dist_cjs26,
12
- require_dist_cjs17 as require_dist_cjs27,
13
- require_dist_cjs2 as require_dist_cjs12,
14
- require_dist_cjs3 as require_dist_cjs13,
15
- require_dist_cjs4 as require_dist_cjs14,
16
- require_dist_cjs5 as require_dist_cjs15,
17
- require_dist_cjs6 as require_dist_cjs16,
18
- require_dist_cjs7 as require_dist_cjs17,
19
- require_dist_cjs8 as require_dist_cjs18,
20
- require_dist_cjs9 as require_dist_cjs19,
21
- require_package
22
- } from "./chunk-56ar3gp7.js";
23
- import {
24
- require_dist_cjs,
25
- require_dist_cjs1 as require_dist_cjs2,
26
- require_dist_cjs2 as require_dist_cjs7,
27
- require_dist_cjs4 as require_dist_cjs8,
28
- require_dist_cjs5 as require_dist_cjs9,
29
- require_tslib
30
- } from "./chunk-veja9rez.js";
31
- import {
32
- require_dist_cjs as require_dist_cjs3,
33
- require_dist_cjs3 as require_dist_cjs4,
34
- require_dist_cjs4 as require_dist_cjs5,
35
- require_dist_cjs6
36
- } from "./chunk-a7k3cdby.js";
37
- import {
38
- require_client
39
- } from "./chunk-frw3va9v.js";
40
- import"./chunk-saqpg5nd.js";
41
- import {
42
- __commonJS
43
- } from "./chunk-9v6qtbez.js";
44
-
45
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
46
- var require_httpAuthSchemeProvider = __commonJS((exports) => {
47
- Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = undefined;
49
- var core_1 = require_dist_cjs9();
50
- var util_middleware_1 = require_dist_cjs();
51
- var STSClient_1 = require_STSClient();
52
- var defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
53
- return {
54
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
55
- region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
56
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
57
- })()
58
- };
59
- };
60
- exports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;
61
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
62
- return {
63
- schemeId: "aws.auth#sigv4",
64
- signingProperties: {
65
- name: "sts",
66
- region: authParameters.region
67
- },
68
- propertiesExtractor: (config, context) => ({
69
- signingProperties: {
70
- config,
71
- context
72
- }
73
- })
74
- };
75
- }
76
- function createSmithyApiNoAuthHttpAuthOption(authParameters) {
77
- return {
78
- schemeId: "smithy.api#noAuth"
79
- };
80
- }
81
- var defaultSTSHttpAuthSchemeProvider = (authParameters) => {
82
- const options = [];
83
- switch (authParameters.operation) {
84
- case "AssumeRoleWithWebIdentity": {
85
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
86
- break;
87
- }
88
- default: {
89
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
90
- }
91
- }
92
- return options;
93
- };
94
- exports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;
95
- var resolveStsAuthConfig = (input) => Object.assign(input, {
96
- stsClientCtor: STSClient_1.STSClient
97
- });
98
- exports.resolveStsAuthConfig = resolveStsAuthConfig;
99
- var resolveHttpAuthSchemeConfig = (config) => {
100
- const config_0 = (0, exports.resolveStsAuthConfig)(config);
101
- const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
102
- return Object.assign(config_1, {});
103
- };
104
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
105
- });
106
-
107
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js
108
- var require_EndpointParameters = __commonJS((exports) => {
109
- Object.defineProperty(exports, "__esModule", { value: true });
110
- exports.commonParams = exports.resolveClientEndpointParameters = undefined;
111
- var resolveClientEndpointParameters = (options) => {
112
- return Object.assign(options, {
113
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
114
- useFipsEndpoint: options.useFipsEndpoint ?? false,
115
- useGlobalEndpoint: options.useGlobalEndpoint ?? false,
116
- defaultSigningName: "sts"
117
- });
118
- };
119
- exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
120
- exports.commonParams = {
121
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
122
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
123
- Endpoint: { type: "builtInParams", name: "endpoint" },
124
- Region: { type: "builtInParams", name: "region" },
125
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
126
- };
127
- });
128
-
129
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js
130
- var require_ruleset = __commonJS((exports) => {
131
- Object.defineProperty(exports, "__esModule", { value: true });
132
- exports.ruleSet = undefined;
133
- var F = "required";
134
- var G = "type";
135
- var H = "fn";
136
- var I = "argv";
137
- var J = "ref";
138
- var a = false;
139
- var b = true;
140
- var c = "booleanEquals";
141
- var d = "stringEquals";
142
- var e = "sigv4";
143
- var f = "sts";
144
- var g = "us-east-1";
145
- var h = "endpoint";
146
- var i = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
147
- var j = "tree";
148
- var k = "error";
149
- var l = "getAttr";
150
- var m = { [F]: false, [G]: "String" };
151
- var n = { [F]: true, default: false, [G]: "Boolean" };
152
- var o = { [J]: "Endpoint" };
153
- var p = { [H]: "isSet", [I]: [{ [J]: "Region" }] };
154
- var q = { [J]: "Region" };
155
- var r = { [H]: "aws.partition", [I]: [q], assign: "PartitionResult" };
156
- var s = { [J]: "UseFIPS" };
157
- var t = { [J]: "UseDualStack" };
158
- var u = { url: "https://sts.amazonaws.com", properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] }, headers: {} };
159
- var v = {};
160
- var w = { conditions: [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h };
161
- var x = { [H]: c, [I]: [s, true] };
162
- var y = { [H]: c, [I]: [t, true] };
163
- var z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
164
- var A = { [J]: "PartitionResult" };
165
- var B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] };
166
- var C = [{ [H]: "isSet", [I]: [o] }];
167
- var D = [x];
168
- var E = [y];
169
- var _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
170
- exports.ruleSet = _data;
171
- });
172
-
173
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js
174
- var require_endpointResolver = __commonJS((exports) => {
175
- Object.defineProperty(exports, "__esModule", { value: true });
176
- exports.defaultEndpointResolver = undefined;
177
- var util_endpoints_1 = require_dist_cjs14();
178
- var util_endpoints_2 = require_dist_cjs13();
179
- var ruleset_1 = require_ruleset();
180
- var cache = new util_endpoints_2.EndpointCache({
181
- size: 50,
182
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"]
183
- });
184
- var defaultEndpointResolver = (endpointParams, context = {}) => {
185
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
186
- endpointParams,
187
- logger: context.logger
188
- }));
189
- };
190
- exports.defaultEndpointResolver = defaultEndpointResolver;
191
- util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
192
- });
193
-
194
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js
195
- var require_runtimeConfig_shared = __commonJS((exports) => {
196
- Object.defineProperty(exports, "__esModule", { value: true });
197
- exports.getRuntimeConfig = undefined;
198
- var core_1 = require_dist_cjs9();
199
- var core_2 = require_dist_cjs7();
200
- var smithy_client_1 = require_dist_cjs8();
201
- var url_parser_1 = require_dist_cjs19();
202
- var util_base64_1 = require_dist_cjs5();
203
- var util_utf8_1 = require_dist_cjs4();
204
- var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider();
205
- var endpointResolver_1 = require_endpointResolver();
206
- var getRuntimeConfig = (config) => {
207
- return {
208
- apiVersion: "2011-06-15",
209
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
210
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
211
- disableHostPrefix: config?.disableHostPrefix ?? false,
212
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
213
- extensions: config?.extensions ?? [],
214
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,
215
- httpAuthSchemes: config?.httpAuthSchemes ?? [
216
- {
217
- schemeId: "aws.auth#sigv4",
218
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
219
- signer: new core_1.AwsSdkSigV4Signer
220
- },
221
- {
222
- schemeId: "smithy.api#noAuth",
223
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
224
- signer: new core_2.NoAuthSigner
225
- }
226
- ],
227
- logger: config?.logger ?? new smithy_client_1.NoOpLogger,
228
- serviceId: config?.serviceId ?? "STS",
229
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
230
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
231
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
232
- };
233
- };
234
- exports.getRuntimeConfig = getRuntimeConfig;
235
- });
236
-
237
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js
238
- var require_runtimeConfig = __commonJS((exports) => {
239
- Object.defineProperty(exports, "__esModule", { value: true });
240
- exports.getRuntimeConfig = undefined;
241
- var tslib_1 = require_tslib();
242
- var package_json_1 = tslib_1.__importDefault(require_package());
243
- var core_1 = require_dist_cjs9();
244
- var util_user_agent_node_1 = require_dist_cjs23();
245
- var config_resolver_1 = require_dist_cjs16();
246
- var core_2 = require_dist_cjs7();
247
- var hash_node_1 = require_dist_cjs24();
248
- var middleware_retry_1 = require_dist_cjs22();
249
- var node_config_provider_1 = require_dist_cjs18();
250
- var node_http_handler_1 = require_dist_cjs6();
251
- var util_body_length_node_1 = require_dist_cjs25();
252
- var util_retry_1 = require_dist_cjs21();
253
- var runtimeConfig_shared_1 = require_runtimeConfig_shared();
254
- var smithy_client_1 = require_dist_cjs8();
255
- var util_defaults_mode_node_1 = require_dist_cjs26();
256
- var smithy_client_2 = require_dist_cjs8();
257
- var getRuntimeConfig = (config) => {
258
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
259
- const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
260
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
261
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
262
- (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
263
- const profileConfig = { profile: config?.profile };
264
- return {
265
- ...clientSharedValues,
266
- ...config,
267
- runtime: "node",
268
- defaultsMode,
269
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
270
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
271
- httpAuthSchemes: config?.httpAuthSchemes ?? [
272
- {
273
- schemeId: "aws.auth#sigv4",
274
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
275
- signer: new core_1.AwsSdkSigV4Signer
276
- },
277
- {
278
- schemeId: "smithy.api#noAuth",
279
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
280
- signer: new core_2.NoAuthSigner
281
- }
282
- ],
283
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
284
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
285
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
286
- retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
287
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
288
- default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE
289
- }, config),
290
- sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
291
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
292
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
293
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
294
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig)
295
- };
296
- };
297
- exports.getRuntimeConfig = getRuntimeConfig;
298
- });
299
-
300
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js
301
- var require_httpAuthExtensionConfiguration = __commonJS((exports) => {
302
- Object.defineProperty(exports, "__esModule", { value: true });
303
- exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = undefined;
304
- var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
305
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
306
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
307
- let _credentials = runtimeConfig.credentials;
308
- return {
309
- setHttpAuthScheme(httpAuthScheme) {
310
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
311
- if (index === -1) {
312
- _httpAuthSchemes.push(httpAuthScheme);
313
- } else {
314
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
315
- }
316
- },
317
- httpAuthSchemes() {
318
- return _httpAuthSchemes;
319
- },
320
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
321
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
322
- },
323
- httpAuthSchemeProvider() {
324
- return _httpAuthSchemeProvider;
325
- },
326
- setCredentials(credentials) {
327
- _credentials = credentials;
328
- },
329
- credentials() {
330
- return _credentials;
331
- }
332
- };
333
- };
334
- exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
335
- var resolveHttpAuthRuntimeConfig = (config) => {
336
- return {
337
- httpAuthSchemes: config.httpAuthSchemes(),
338
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
339
- credentials: config.credentials()
340
- };
341
- };
342
- exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
343
- });
344
-
345
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js
346
- var require_runtimeExtensions = __commonJS((exports) => {
347
- Object.defineProperty(exports, "__esModule", { value: true });
348
- exports.resolveRuntimeExtensions = undefined;
349
- var region_config_resolver_1 = require_dist_cjs27();
350
- var protocol_http_1 = require_dist_cjs3();
351
- var smithy_client_1 = require_dist_cjs8();
352
- var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration();
353
- var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
354
- const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
355
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
356
- return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
357
- };
358
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
359
- });
360
-
361
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js
362
- var require_STSClient = __commonJS((exports) => {
363
- Object.defineProperty(exports, "__esModule", { value: true });
364
- exports.STSClient = exports.__Client = undefined;
365
- var middleware_host_header_1 = require_dist_cjs10();
366
- var middleware_logger_1 = require_dist_cjs11();
367
- var middleware_recursion_detection_1 = require_dist_cjs12();
368
- var middleware_user_agent_1 = require_dist_cjs15();
369
- var config_resolver_1 = require_dist_cjs16();
370
- var core_1 = require_dist_cjs7();
371
- var middleware_content_length_1 = require_dist_cjs17();
372
- var middleware_endpoint_1 = require_dist_cjs20();
373
- var middleware_retry_1 = require_dist_cjs22();
374
- var smithy_client_1 = require_dist_cjs8();
375
- Object.defineProperty(exports, "__Client", { enumerable: true, get: function() {
376
- return smithy_client_1.Client;
377
- } });
378
- var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider();
379
- var EndpointParameters_1 = require_EndpointParameters();
380
- var runtimeConfig_1 = require_runtimeConfig();
381
- var runtimeExtensions_1 = require_runtimeExtensions();
382
-
383
- class STSClient extends smithy_client_1.Client {
384
- config;
385
- constructor(...[configuration]) {
386
- const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
387
- super(_config_0);
388
- this.initConfig = _config_0;
389
- const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
390
- const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
391
- const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
392
- const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
393
- const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
394
- const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
395
- const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
396
- const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
397
- this.config = _config_8;
398
- this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
399
- this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
400
- this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
401
- this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
402
- this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
403
- this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
404
- this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
405
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
406
- identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
407
- "aws.auth#sigv4": config.credentials
408
- })
409
- }));
410
- this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
411
- }
412
- destroy() {
413
- super.destroy();
414
- }
415
- }
416
- exports.STSClient = STSClient;
417
- });
418
-
419
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
420
- var require_sts = __commonJS((exports, module) => {
421
- var __defProp = Object.defineProperty;
422
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
423
- var __getOwnPropNames = Object.getOwnPropertyNames;
424
- var __hasOwnProp = Object.prototype.hasOwnProperty;
425
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
426
- var __export = (target, all) => {
427
- for (var name in all)
428
- __defProp(target, name, { get: all[name], enumerable: true });
429
- };
430
- var __copyProps = (to, from, except, desc) => {
431
- if (from && typeof from === "object" || typeof from === "function") {
432
- for (let key of __getOwnPropNames(from))
433
- if (!__hasOwnProp.call(to, key) && key !== except)
434
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
435
- }
436
- return to;
437
- };
438
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
439
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
440
- var index_exports = {};
441
- __export(index_exports, {
442
- AssumeRoleCommand: () => AssumeRoleCommand,
443
- AssumeRoleResponseFilterSensitiveLog: () => AssumeRoleResponseFilterSensitiveLog,
444
- AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand,
445
- AssumeRoleWithWebIdentityRequestFilterSensitiveLog: () => AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
446
- AssumeRoleWithWebIdentityResponseFilterSensitiveLog: () => AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
447
- ClientInputEndpointParameters: () => import_EndpointParameters3.ClientInputEndpointParameters,
448
- CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog,
449
- ExpiredTokenException: () => ExpiredTokenException,
450
- IDPCommunicationErrorException: () => IDPCommunicationErrorException,
451
- IDPRejectedClaimException: () => IDPRejectedClaimException,
452
- InvalidIdentityTokenException: () => InvalidIdentityTokenException,
453
- MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
454
- PackedPolicyTooLargeException: () => PackedPolicyTooLargeException,
455
- RegionDisabledException: () => RegionDisabledException,
456
- STS: () => STS,
457
- STSServiceException: () => STSServiceException,
458
- decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider,
459
- getDefaultRoleAssumer: () => getDefaultRoleAssumer2,
460
- getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2
461
- });
462
- module.exports = __toCommonJS(index_exports);
463
- __reExport(index_exports, require_STSClient(), module.exports);
464
- var import_smithy_client6 = require_dist_cjs8();
465
- var import_middleware_endpoint = require_dist_cjs20();
466
- var import_middleware_serde = require_dist_cjs2();
467
- var import_smithy_client4 = require_dist_cjs8();
468
- var import_EndpointParameters = require_EndpointParameters();
469
- var import_smithy_client2 = require_dist_cjs8();
470
- var import_smithy_client = require_dist_cjs8();
471
- var STSServiceException = class _STSServiceException extends import_smithy_client.ServiceException {
472
- static {
473
- __name(this, "STSServiceException");
474
- }
475
- constructor(options) {
476
- super(options);
477
- Object.setPrototypeOf(this, _STSServiceException.prototype);
478
- }
479
- };
480
- var CredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
481
- ...obj,
482
- ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client2.SENSITIVE_STRING }
483
- }), "CredentialsFilterSensitiveLog");
484
- var AssumeRoleResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
485
- ...obj,
486
- ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
487
- }), "AssumeRoleResponseFilterSensitiveLog");
488
- var ExpiredTokenException = class _ExpiredTokenException extends STSServiceException {
489
- static {
490
- __name(this, "ExpiredTokenException");
491
- }
492
- name = "ExpiredTokenException";
493
- $fault = "client";
494
- constructor(opts) {
495
- super({
496
- name: "ExpiredTokenException",
497
- $fault: "client",
498
- ...opts
499
- });
500
- Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
501
- }
502
- };
503
- var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException {
504
- static {
505
- __name(this, "MalformedPolicyDocumentException");
506
- }
507
- name = "MalformedPolicyDocumentException";
508
- $fault = "client";
509
- constructor(opts) {
510
- super({
511
- name: "MalformedPolicyDocumentException",
512
- $fault: "client",
513
- ...opts
514
- });
515
- Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
516
- }
517
- };
518
- var PackedPolicyTooLargeException = class _PackedPolicyTooLargeException extends STSServiceException {
519
- static {
520
- __name(this, "PackedPolicyTooLargeException");
521
- }
522
- name = "PackedPolicyTooLargeException";
523
- $fault = "client";
524
- constructor(opts) {
525
- super({
526
- name: "PackedPolicyTooLargeException",
527
- $fault: "client",
528
- ...opts
529
- });
530
- Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype);
531
- }
532
- };
533
- var RegionDisabledException = class _RegionDisabledException extends STSServiceException {
534
- static {
535
- __name(this, "RegionDisabledException");
536
- }
537
- name = "RegionDisabledException";
538
- $fault = "client";
539
- constructor(opts) {
540
- super({
541
- name: "RegionDisabledException",
542
- $fault: "client",
543
- ...opts
544
- });
545
- Object.setPrototypeOf(this, _RegionDisabledException.prototype);
546
- }
547
- };
548
- var IDPRejectedClaimException = class _IDPRejectedClaimException extends STSServiceException {
549
- static {
550
- __name(this, "IDPRejectedClaimException");
551
- }
552
- name = "IDPRejectedClaimException";
553
- $fault = "client";
554
- constructor(opts) {
555
- super({
556
- name: "IDPRejectedClaimException",
557
- $fault: "client",
558
- ...opts
559
- });
560
- Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype);
561
- }
562
- };
563
- var InvalidIdentityTokenException = class _InvalidIdentityTokenException extends STSServiceException {
564
- static {
565
- __name(this, "InvalidIdentityTokenException");
566
- }
567
- name = "InvalidIdentityTokenException";
568
- $fault = "client";
569
- constructor(opts) {
570
- super({
571
- name: "InvalidIdentityTokenException",
572
- $fault: "client",
573
- ...opts
574
- });
575
- Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype);
576
- }
577
- };
578
- var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
579
- ...obj,
580
- ...obj.WebIdentityToken && { WebIdentityToken: import_smithy_client2.SENSITIVE_STRING }
581
- }), "AssumeRoleWithWebIdentityRequestFilterSensitiveLog");
582
- var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
583
- ...obj,
584
- ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
585
- }), "AssumeRoleWithWebIdentityResponseFilterSensitiveLog");
586
- var IDPCommunicationErrorException = class _IDPCommunicationErrorException extends STSServiceException {
587
- static {
588
- __name(this, "IDPCommunicationErrorException");
589
- }
590
- name = "IDPCommunicationErrorException";
591
- $fault = "client";
592
- constructor(opts) {
593
- super({
594
- name: "IDPCommunicationErrorException",
595
- $fault: "client",
596
- ...opts
597
- });
598
- Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype);
599
- }
600
- };
601
- var import_core = require_dist_cjs9();
602
- var import_protocol_http = require_dist_cjs3();
603
- var import_smithy_client3 = require_dist_cjs8();
604
- var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
605
- const headers = SHARED_HEADERS;
606
- let body;
607
- body = buildFormUrlencodedString({
608
- ...se_AssumeRoleRequest(input, context),
609
- [_A]: _AR,
610
- [_V]: _
611
- });
612
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
613
- }, "se_AssumeRoleCommand");
614
- var se_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
615
- const headers = SHARED_HEADERS;
616
- let body;
617
- body = buildFormUrlencodedString({
618
- ...se_AssumeRoleWithWebIdentityRequest(input, context),
619
- [_A]: _ARWWI,
620
- [_V]: _
621
- });
622
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
623
- }, "se_AssumeRoleWithWebIdentityCommand");
624
- var de_AssumeRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
625
- if (output.statusCode >= 300) {
626
- return de_CommandError(output, context);
627
- }
628
- const data = await (0, import_core.parseXmlBody)(output.body, context);
629
- let contents = {};
630
- contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
631
- const response = {
632
- $metadata: deserializeMetadata(output),
633
- ...contents
634
- };
635
- return response;
636
- }, "de_AssumeRoleCommand");
637
- var de_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
638
- if (output.statusCode >= 300) {
639
- return de_CommandError(output, context);
640
- }
641
- const data = await (0, import_core.parseXmlBody)(output.body, context);
642
- let contents = {};
643
- contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
644
- const response = {
645
- $metadata: deserializeMetadata(output),
646
- ...contents
647
- };
648
- return response;
649
- }, "de_AssumeRoleWithWebIdentityCommand");
650
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
651
- const parsedOutput = {
652
- ...output,
653
- body: await (0, import_core.parseXmlErrorBody)(output.body, context)
654
- };
655
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
656
- switch (errorCode) {
657
- case "ExpiredTokenException":
658
- case "com.amazonaws.sts#ExpiredTokenException":
659
- throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
660
- case "MalformedPolicyDocument":
661
- case "com.amazonaws.sts#MalformedPolicyDocumentException":
662
- throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
663
- case "PackedPolicyTooLarge":
664
- case "com.amazonaws.sts#PackedPolicyTooLargeException":
665
- throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
666
- case "RegionDisabledException":
667
- case "com.amazonaws.sts#RegionDisabledException":
668
- throw await de_RegionDisabledExceptionRes(parsedOutput, context);
669
- case "IDPCommunicationError":
670
- case "com.amazonaws.sts#IDPCommunicationErrorException":
671
- throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
672
- case "IDPRejectedClaim":
673
- case "com.amazonaws.sts#IDPRejectedClaimException":
674
- throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
675
- case "InvalidIdentityToken":
676
- case "com.amazonaws.sts#InvalidIdentityTokenException":
677
- throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
678
- default:
679
- const parsedBody = parsedOutput.body;
680
- return throwDefaultError({
681
- output,
682
- parsedBody: parsedBody.Error,
683
- errorCode
684
- });
685
- }
686
- }, "de_CommandError");
687
- var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
688
- const body = parsedOutput.body;
689
- const deserialized = de_ExpiredTokenException(body.Error, context);
690
- const exception = new ExpiredTokenException({
691
- $metadata: deserializeMetadata(parsedOutput),
692
- ...deserialized
693
- });
694
- return (0, import_smithy_client3.decorateServiceException)(exception, body);
695
- }, "de_ExpiredTokenExceptionRes");
696
- var de_IDPCommunicationErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
697
- const body = parsedOutput.body;
698
- const deserialized = de_IDPCommunicationErrorException(body.Error, context);
699
- const exception = new IDPCommunicationErrorException({
700
- $metadata: deserializeMetadata(parsedOutput),
701
- ...deserialized
702
- });
703
- return (0, import_smithy_client3.decorateServiceException)(exception, body);
704
- }, "de_IDPCommunicationErrorExceptionRes");
705
- var de_IDPRejectedClaimExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
706
- const body = parsedOutput.body;
707
- const deserialized = de_IDPRejectedClaimException(body.Error, context);
708
- const exception = new IDPRejectedClaimException({
709
- $metadata: deserializeMetadata(parsedOutput),
710
- ...deserialized
711
- });
712
- return (0, import_smithy_client3.decorateServiceException)(exception, body);
713
- }, "de_IDPRejectedClaimExceptionRes");
714
- var de_InvalidIdentityTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
715
- const body = parsedOutput.body;
716
- const deserialized = de_InvalidIdentityTokenException(body.Error, context);
717
- const exception = new InvalidIdentityTokenException({
718
- $metadata: deserializeMetadata(parsedOutput),
719
- ...deserialized
720
- });
721
- return (0, import_smithy_client3.decorateServiceException)(exception, body);
722
- }, "de_InvalidIdentityTokenExceptionRes");
723
- var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
724
- const body = parsedOutput.body;
725
- const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
726
- const exception = new MalformedPolicyDocumentException({
727
- $metadata: deserializeMetadata(parsedOutput),
728
- ...deserialized
729
- });
730
- return (0, import_smithy_client3.decorateServiceException)(exception, body);
731
- }, "de_MalformedPolicyDocumentExceptionRes");
732
- var de_PackedPolicyTooLargeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
733
- const body = parsedOutput.body;
734
- const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
735
- const exception = new PackedPolicyTooLargeException({
736
- $metadata: deserializeMetadata(parsedOutput),
737
- ...deserialized
738
- });
739
- return (0, import_smithy_client3.decorateServiceException)(exception, body);
740
- }, "de_PackedPolicyTooLargeExceptionRes");
741
- var de_RegionDisabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
742
- const body = parsedOutput.body;
743
- const deserialized = de_RegionDisabledException(body.Error, context);
744
- const exception = new RegionDisabledException({
745
- $metadata: deserializeMetadata(parsedOutput),
746
- ...deserialized
747
- });
748
- return (0, import_smithy_client3.decorateServiceException)(exception, body);
749
- }, "de_RegionDisabledExceptionRes");
750
- var se_AssumeRoleRequest = /* @__PURE__ */ __name((input, context) => {
751
- const entries = {};
752
- if (input[_RA] != null) {
753
- entries[_RA] = input[_RA];
754
- }
755
- if (input[_RSN] != null) {
756
- entries[_RSN] = input[_RSN];
757
- }
758
- if (input[_PA] != null) {
759
- const memberEntries = se_policyDescriptorListType(input[_PA], context);
760
- if (input[_PA]?.length === 0) {
761
- entries.PolicyArns = [];
762
- }
763
- Object.entries(memberEntries).forEach(([key, value]) => {
764
- const loc = `PolicyArns.${key}`;
765
- entries[loc] = value;
766
- });
767
- }
768
- if (input[_P] != null) {
769
- entries[_P] = input[_P];
770
- }
771
- if (input[_DS] != null) {
772
- entries[_DS] = input[_DS];
773
- }
774
- if (input[_T] != null) {
775
- const memberEntries = se_tagListType(input[_T], context);
776
- if (input[_T]?.length === 0) {
777
- entries.Tags = [];
778
- }
779
- Object.entries(memberEntries).forEach(([key, value]) => {
780
- const loc = `Tags.${key}`;
781
- entries[loc] = value;
782
- });
783
- }
784
- if (input[_TTK] != null) {
785
- const memberEntries = se_tagKeyListType(input[_TTK], context);
786
- if (input[_TTK]?.length === 0) {
787
- entries.TransitiveTagKeys = [];
788
- }
789
- Object.entries(memberEntries).forEach(([key, value]) => {
790
- const loc = `TransitiveTagKeys.${key}`;
791
- entries[loc] = value;
792
- });
793
- }
794
- if (input[_EI] != null) {
795
- entries[_EI] = input[_EI];
796
- }
797
- if (input[_SN] != null) {
798
- entries[_SN] = input[_SN];
799
- }
800
- if (input[_TC] != null) {
801
- entries[_TC] = input[_TC];
802
- }
803
- if (input[_SI] != null) {
804
- entries[_SI] = input[_SI];
805
- }
806
- if (input[_PC] != null) {
807
- const memberEntries = se_ProvidedContextsListType(input[_PC], context);
808
- if (input[_PC]?.length === 0) {
809
- entries.ProvidedContexts = [];
810
- }
811
- Object.entries(memberEntries).forEach(([key, value]) => {
812
- const loc = `ProvidedContexts.${key}`;
813
- entries[loc] = value;
814
- });
815
- }
816
- return entries;
817
- }, "se_AssumeRoleRequest");
818
- var se_AssumeRoleWithWebIdentityRequest = /* @__PURE__ */ __name((input, context) => {
819
- const entries = {};
820
- if (input[_RA] != null) {
821
- entries[_RA] = input[_RA];
822
- }
823
- if (input[_RSN] != null) {
824
- entries[_RSN] = input[_RSN];
825
- }
826
- if (input[_WIT] != null) {
827
- entries[_WIT] = input[_WIT];
828
- }
829
- if (input[_PI] != null) {
830
- entries[_PI] = input[_PI];
831
- }
832
- if (input[_PA] != null) {
833
- const memberEntries = se_policyDescriptorListType(input[_PA], context);
834
- if (input[_PA]?.length === 0) {
835
- entries.PolicyArns = [];
836
- }
837
- Object.entries(memberEntries).forEach(([key, value]) => {
838
- const loc = `PolicyArns.${key}`;
839
- entries[loc] = value;
840
- });
841
- }
842
- if (input[_P] != null) {
843
- entries[_P] = input[_P];
844
- }
845
- if (input[_DS] != null) {
846
- entries[_DS] = input[_DS];
847
- }
848
- return entries;
849
- }, "se_AssumeRoleWithWebIdentityRequest");
850
- var se_policyDescriptorListType = /* @__PURE__ */ __name((input, context) => {
851
- const entries = {};
852
- let counter = 1;
853
- for (const entry of input) {
854
- if (entry === null) {
855
- continue;
856
- }
857
- const memberEntries = se_PolicyDescriptorType(entry, context);
858
- Object.entries(memberEntries).forEach(([key, value]) => {
859
- entries[`member.${counter}.${key}`] = value;
860
- });
861
- counter++;
862
- }
863
- return entries;
864
- }, "se_policyDescriptorListType");
865
- var se_PolicyDescriptorType = /* @__PURE__ */ __name((input, context) => {
866
- const entries = {};
867
- if (input[_a] != null) {
868
- entries[_a] = input[_a];
869
- }
870
- return entries;
871
- }, "se_PolicyDescriptorType");
872
- var se_ProvidedContext = /* @__PURE__ */ __name((input, context) => {
873
- const entries = {};
874
- if (input[_PAr] != null) {
875
- entries[_PAr] = input[_PAr];
876
- }
877
- if (input[_CA] != null) {
878
- entries[_CA] = input[_CA];
879
- }
880
- return entries;
881
- }, "se_ProvidedContext");
882
- var se_ProvidedContextsListType = /* @__PURE__ */ __name((input, context) => {
883
- const entries = {};
884
- let counter = 1;
885
- for (const entry of input) {
886
- if (entry === null) {
887
- continue;
888
- }
889
- const memberEntries = se_ProvidedContext(entry, context);
890
- Object.entries(memberEntries).forEach(([key, value]) => {
891
- entries[`member.${counter}.${key}`] = value;
892
- });
893
- counter++;
894
- }
895
- return entries;
896
- }, "se_ProvidedContextsListType");
897
- var se_Tag = /* @__PURE__ */ __name((input, context) => {
898
- const entries = {};
899
- if (input[_K] != null) {
900
- entries[_K] = input[_K];
901
- }
902
- if (input[_Va] != null) {
903
- entries[_Va] = input[_Va];
904
- }
905
- return entries;
906
- }, "se_Tag");
907
- var se_tagKeyListType = /* @__PURE__ */ __name((input, context) => {
908
- const entries = {};
909
- let counter = 1;
910
- for (const entry of input) {
911
- if (entry === null) {
912
- continue;
913
- }
914
- entries[`member.${counter}`] = entry;
915
- counter++;
916
- }
917
- return entries;
918
- }, "se_tagKeyListType");
919
- var se_tagListType = /* @__PURE__ */ __name((input, context) => {
920
- const entries = {};
921
- let counter = 1;
922
- for (const entry of input) {
923
- if (entry === null) {
924
- continue;
925
- }
926
- const memberEntries = se_Tag(entry, context);
927
- Object.entries(memberEntries).forEach(([key, value]) => {
928
- entries[`member.${counter}.${key}`] = value;
929
- });
930
- counter++;
931
- }
932
- return entries;
933
- }, "se_tagListType");
934
- var de_AssumedRoleUser = /* @__PURE__ */ __name((output, context) => {
935
- const contents = {};
936
- if (output[_ARI] != null) {
937
- contents[_ARI] = (0, import_smithy_client3.expectString)(output[_ARI]);
938
- }
939
- if (output[_Ar] != null) {
940
- contents[_Ar] = (0, import_smithy_client3.expectString)(output[_Ar]);
941
- }
942
- return contents;
943
- }, "de_AssumedRoleUser");
944
- var de_AssumeRoleResponse = /* @__PURE__ */ __name((output, context) => {
945
- const contents = {};
946
- if (output[_C] != null) {
947
- contents[_C] = de_Credentials(output[_C], context);
948
- }
949
- if (output[_ARU] != null) {
950
- contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
951
- }
952
- if (output[_PPS] != null) {
953
- contents[_PPS] = (0, import_smithy_client3.strictParseInt32)(output[_PPS]);
954
- }
955
- if (output[_SI] != null) {
956
- contents[_SI] = (0, import_smithy_client3.expectString)(output[_SI]);
957
- }
958
- return contents;
959
- }, "de_AssumeRoleResponse");
960
- var de_AssumeRoleWithWebIdentityResponse = /* @__PURE__ */ __name((output, context) => {
961
- const contents = {};
962
- if (output[_C] != null) {
963
- contents[_C] = de_Credentials(output[_C], context);
964
- }
965
- if (output[_SFWIT] != null) {
966
- contents[_SFWIT] = (0, import_smithy_client3.expectString)(output[_SFWIT]);
967
- }
968
- if (output[_ARU] != null) {
969
- contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
970
- }
971
- if (output[_PPS] != null) {
972
- contents[_PPS] = (0, import_smithy_client3.strictParseInt32)(output[_PPS]);
973
- }
974
- if (output[_Pr] != null) {
975
- contents[_Pr] = (0, import_smithy_client3.expectString)(output[_Pr]);
976
- }
977
- if (output[_Au] != null) {
978
- contents[_Au] = (0, import_smithy_client3.expectString)(output[_Au]);
979
- }
980
- if (output[_SI] != null) {
981
- contents[_SI] = (0, import_smithy_client3.expectString)(output[_SI]);
982
- }
983
- return contents;
984
- }, "de_AssumeRoleWithWebIdentityResponse");
985
- var de_Credentials = /* @__PURE__ */ __name((output, context) => {
986
- const contents = {};
987
- if (output[_AKI] != null) {
988
- contents[_AKI] = (0, import_smithy_client3.expectString)(output[_AKI]);
989
- }
990
- if (output[_SAK] != null) {
991
- contents[_SAK] = (0, import_smithy_client3.expectString)(output[_SAK]);
992
- }
993
- if (output[_ST] != null) {
994
- contents[_ST] = (0, import_smithy_client3.expectString)(output[_ST]);
995
- }
996
- if (output[_E] != null) {
997
- contents[_E] = (0, import_smithy_client3.expectNonNull)((0, import_smithy_client3.parseRfc3339DateTimeWithOffset)(output[_E]));
998
- }
999
- return contents;
1000
- }, "de_Credentials");
1001
- var de_ExpiredTokenException = /* @__PURE__ */ __name((output, context) => {
1002
- const contents = {};
1003
- if (output[_m] != null) {
1004
- contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
1005
- }
1006
- return contents;
1007
- }, "de_ExpiredTokenException");
1008
- var de_IDPCommunicationErrorException = /* @__PURE__ */ __name((output, context) => {
1009
- const contents = {};
1010
- if (output[_m] != null) {
1011
- contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
1012
- }
1013
- return contents;
1014
- }, "de_IDPCommunicationErrorException");
1015
- var de_IDPRejectedClaimException = /* @__PURE__ */ __name((output, context) => {
1016
- const contents = {};
1017
- if (output[_m] != null) {
1018
- contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
1019
- }
1020
- return contents;
1021
- }, "de_IDPRejectedClaimException");
1022
- var de_InvalidIdentityTokenException = /* @__PURE__ */ __name((output, context) => {
1023
- const contents = {};
1024
- if (output[_m] != null) {
1025
- contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
1026
- }
1027
- return contents;
1028
- }, "de_InvalidIdentityTokenException");
1029
- var de_MalformedPolicyDocumentException = /* @__PURE__ */ __name((output, context) => {
1030
- const contents = {};
1031
- if (output[_m] != null) {
1032
- contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
1033
- }
1034
- return contents;
1035
- }, "de_MalformedPolicyDocumentException");
1036
- var de_PackedPolicyTooLargeException = /* @__PURE__ */ __name((output, context) => {
1037
- const contents = {};
1038
- if (output[_m] != null) {
1039
- contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
1040
- }
1041
- return contents;
1042
- }, "de_PackedPolicyTooLargeException");
1043
- var de_RegionDisabledException = /* @__PURE__ */ __name((output, context) => {
1044
- const contents = {};
1045
- if (output[_m] != null) {
1046
- contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
1047
- }
1048
- return contents;
1049
- }, "de_RegionDisabledException");
1050
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1051
- httpStatusCode: output.statusCode,
1052
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1053
- extendedRequestId: output.headers["x-amz-id-2"],
1054
- cfId: output.headers["x-amz-cf-id"]
1055
- }), "deserializeMetadata");
1056
- var throwDefaultError = (0, import_smithy_client3.withBaseException)(STSServiceException);
1057
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1058
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1059
- const contents = {
1060
- protocol,
1061
- hostname,
1062
- port,
1063
- method: "POST",
1064
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1065
- headers
1066
- };
1067
- if (resolvedHostname !== undefined) {
1068
- contents.hostname = resolvedHostname;
1069
- }
1070
- if (body !== undefined) {
1071
- contents.body = body;
1072
- }
1073
- return new import_protocol_http.HttpRequest(contents);
1074
- }, "buildHttpRpcRequest");
1075
- var SHARED_HEADERS = {
1076
- "content-type": "application/x-www-form-urlencoded"
1077
- };
1078
- var _ = "2011-06-15";
1079
- var _A = "Action";
1080
- var _AKI = "AccessKeyId";
1081
- var _AR = "AssumeRole";
1082
- var _ARI = "AssumedRoleId";
1083
- var _ARU = "AssumedRoleUser";
1084
- var _ARWWI = "AssumeRoleWithWebIdentity";
1085
- var _Ar = "Arn";
1086
- var _Au = "Audience";
1087
- var _C = "Credentials";
1088
- var _CA = "ContextAssertion";
1089
- var _DS = "DurationSeconds";
1090
- var _E = "Expiration";
1091
- var _EI = "ExternalId";
1092
- var _K = "Key";
1093
- var _P = "Policy";
1094
- var _PA = "PolicyArns";
1095
- var _PAr = "ProviderArn";
1096
- var _PC = "ProvidedContexts";
1097
- var _PI = "ProviderId";
1098
- var _PPS = "PackedPolicySize";
1099
- var _Pr = "Provider";
1100
- var _RA = "RoleArn";
1101
- var _RSN = "RoleSessionName";
1102
- var _SAK = "SecretAccessKey";
1103
- var _SFWIT = "SubjectFromWebIdentityToken";
1104
- var _SI = "SourceIdentity";
1105
- var _SN = "SerialNumber";
1106
- var _ST = "SessionToken";
1107
- var _T = "Tags";
1108
- var _TC = "TokenCode";
1109
- var _TTK = "TransitiveTagKeys";
1110
- var _V = "Version";
1111
- var _Va = "Value";
1112
- var _WIT = "WebIdentityToken";
1113
- var _a = "arn";
1114
- var _m = "message";
1115
- var buildFormUrlencodedString = /* @__PURE__ */ __name((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client3.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client3.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
1116
- var loadQueryErrorCode = /* @__PURE__ */ __name((output, data) => {
1117
- if (data.Error?.Code !== undefined) {
1118
- return data.Error.Code;
1119
- }
1120
- if (output.statusCode == 404) {
1121
- return "NotFound";
1122
- }
1123
- }, "loadQueryErrorCode");
1124
- var AssumeRoleCommand = class extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters.commonParams).m(function(Command, cs, config, o) {
1125
- return [
1126
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1127
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1128
- ];
1129
- }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(undefined, AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build() {
1130
- static {
1131
- __name(this, "AssumeRoleCommand");
1132
- }
1133
- };
1134
- var import_middleware_endpoint2 = require_dist_cjs20();
1135
- var import_middleware_serde2 = require_dist_cjs2();
1136
- var import_smithy_client5 = require_dist_cjs8();
1137
- var import_EndpointParameters2 = require_EndpointParameters();
1138
- var AssumeRoleWithWebIdentityCommand = class extends import_smithy_client5.Command.classBuilder().ep(import_EndpointParameters2.commonParams).m(function(Command, cs, config, o) {
1139
- return [
1140
- (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize),
1141
- (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1142
- ];
1143
- }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build() {
1144
- static {
1145
- __name(this, "AssumeRoleWithWebIdentityCommand");
1146
- }
1147
- };
1148
- var import_STSClient = require_STSClient();
1149
- var commands = {
1150
- AssumeRoleCommand,
1151
- AssumeRoleWithWebIdentityCommand
1152
- };
1153
- var STS = class extends import_STSClient.STSClient {
1154
- static {
1155
- __name(this, "STS");
1156
- }
1157
- };
1158
- (0, import_smithy_client6.createAggregatedClient)(commands, STS);
1159
- var import_EndpointParameters3 = require_EndpointParameters();
1160
- var import_client = require_client();
1161
- var ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
1162
- var getAccountIdFromAssumedRoleUser = /* @__PURE__ */ __name((assumedRoleUser) => {
1163
- if (typeof assumedRoleUser?.Arn === "string") {
1164
- const arnComponents = assumedRoleUser.Arn.split(":");
1165
- if (arnComponents.length > 4 && arnComponents[4] !== "") {
1166
- return arnComponents[4];
1167
- }
1168
- }
1169
- return;
1170
- }, "getAccountIdFromAssumedRoleUser");
1171
- var resolveRegion = /* @__PURE__ */ __name(async (_region, _parentRegion, credentialProviderLogger) => {
1172
- const region = typeof _region === "function" ? await _region() : _region;
1173
- const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
1174
- credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
1175
- return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
1176
- }, "resolveRegion");
1177
- var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, STSClient3) => {
1178
- let stsClient;
1179
- let closureSourceCreds;
1180
- return async (sourceCreds, params) => {
1181
- closureSourceCreds = sourceCreds;
1182
- if (!stsClient) {
1183
- const {
1184
- logger = stsOptions?.parentClientConfig?.logger,
1185
- region,
1186
- requestHandler = stsOptions?.parentClientConfig?.requestHandler,
1187
- credentialProviderLogger
1188
- } = stsOptions;
1189
- const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
1190
- const isCompatibleRequestHandler = !isH2(requestHandler);
1191
- stsClient = new STSClient3({
1192
- profile: stsOptions?.parentClientConfig?.profile,
1193
- credentialDefaultProvider: /* @__PURE__ */ __name(() => async () => closureSourceCreds, "credentialDefaultProvider"),
1194
- region: resolvedRegion,
1195
- requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
1196
- logger
1197
- });
1198
- }
1199
- const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleCommand(params));
1200
- if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) {
1201
- throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
1202
- }
1203
- const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser2);
1204
- const credentials = {
1205
- accessKeyId: Credentials2.AccessKeyId,
1206
- secretAccessKey: Credentials2.SecretAccessKey,
1207
- sessionToken: Credentials2.SessionToken,
1208
- expiration: Credentials2.Expiration,
1209
- ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope },
1210
- ...accountId && { accountId }
1211
- };
1212
- (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
1213
- return credentials;
1214
- };
1215
- }, "getDefaultRoleAssumer");
1216
- var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, STSClient3) => {
1217
- let stsClient;
1218
- return async (params) => {
1219
- if (!stsClient) {
1220
- const {
1221
- logger = stsOptions?.parentClientConfig?.logger,
1222
- region,
1223
- requestHandler = stsOptions?.parentClientConfig?.requestHandler,
1224
- credentialProviderLogger
1225
- } = stsOptions;
1226
- const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
1227
- const isCompatibleRequestHandler = !isH2(requestHandler);
1228
- stsClient = new STSClient3({
1229
- profile: stsOptions?.parentClientConfig?.profile,
1230
- region: resolvedRegion,
1231
- requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
1232
- logger
1233
- });
1234
- }
1235
- const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
1236
- if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) {
1237
- throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
1238
- }
1239
- const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser2);
1240
- const credentials = {
1241
- accessKeyId: Credentials2.AccessKeyId,
1242
- secretAccessKey: Credentials2.SecretAccessKey,
1243
- sessionToken: Credentials2.SessionToken,
1244
- expiration: Credentials2.Expiration,
1245
- ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope },
1246
- ...accountId && { accountId }
1247
- };
1248
- if (accountId) {
1249
- (0, import_client.setCredentialFeature)(credentials, "RESOLVED_ACCOUNT_ID", "T");
1250
- }
1251
- (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
1252
- return credentials;
1253
- };
1254
- }, "getDefaultRoleAssumerWithWebIdentity");
1255
- var isH2 = /* @__PURE__ */ __name((requestHandler) => {
1256
- return requestHandler?.metadata?.handlerProtocol === "h2";
1257
- }, "isH2");
1258
- var import_STSClient2 = require_STSClient();
1259
- var getCustomizableStsClientCtor = /* @__PURE__ */ __name((baseCtor, customizations) => {
1260
- if (!customizations)
1261
- return baseCtor;
1262
- else
1263
- return class CustomizableSTSClient extends baseCtor {
1264
- static {
1265
- __name(this, "CustomizableSTSClient");
1266
- }
1267
- constructor(config) {
1268
- super(config);
1269
- for (const customization of customizations) {
1270
- this.middlewareStack.use(customization);
1271
- }
1272
- }
1273
- };
1274
- }, "getCustomizableStsClientCtor");
1275
- var getDefaultRoleAssumer2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumer");
1276
- var getDefaultRoleAssumerWithWebIdentity2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity");
1277
- var decorateDefaultCredentialProvider = /* @__PURE__ */ __name((provider) => (input) => provider({
1278
- roleAssumer: getDefaultRoleAssumer2(input),
1279
- roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity2(input),
1280
- ...input
1281
- }), "decorateDefaultCredentialProvider");
1282
- });
1283
- export default require_sts();