@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,72 +0,0 @@
1
- // @bun
2
- import {
3
- CredentialsProviderError
4
- } from "./chunk-zzerxbrm.js";
5
- import {
6
- require_client
7
- } from "./chunk-frw3va9v.js";
8
- import {
9
- __require,
10
- __toESM
11
- } from "./chunk-9v6qtbez.js";
12
-
13
- // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
14
- var import_client = __toESM(require_client(), 1);
15
- import { readFileSync } from "node:fs";
16
-
17
- // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
18
- var fromWebToken = (init) => async (awsIdentityProperties) => {
19
- init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
20
- const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
21
- let { roleAssumerWithWebIdentity } = init;
22
- if (!roleAssumerWithWebIdentity) {
23
- const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-dvkgakrr.js");
24
- roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
25
- ...init.clientConfig,
26
- credentialProviderLogger: init.logger,
27
- parentClientConfig: {
28
- ...awsIdentityProperties?.callerClientConfig,
29
- ...init.parentClientConfig
30
- }
31
- }, init.clientPlugins);
32
- }
33
- return roleAssumerWithWebIdentity({
34
- RoleArn: roleArn,
35
- RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
36
- WebIdentityToken: webIdentityToken,
37
- ProviderId: providerId,
38
- PolicyArns: policyArns,
39
- Policy: policy,
40
- DurationSeconds: durationSeconds
41
- });
42
- };
43
-
44
- // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
45
- var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
46
- var ENV_ROLE_ARN = "AWS_ROLE_ARN";
47
- var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
48
- var fromTokenFile = (init = {}) => async () => {
49
- init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
50
- const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
51
- const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
52
- const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
53
- if (!webIdentityTokenFile || !roleArn) {
54
- throw new CredentialsProviderError("Web identity configuration not specified", {
55
- logger: init.logger
56
- });
57
- }
58
- const credentials = await fromWebToken({
59
- ...init,
60
- webIdentityToken: readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
61
- roleArn,
62
- roleSessionName
63
- })();
64
- if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
65
- import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
66
- }
67
- return credentials;
68
- };
69
- export {
70
- fromWebToken,
71
- fromTokenFile
72
- };
@@ -1,169 +0,0 @@
1
- // @bun
2
- import {
3
- HttpRequest,
4
- NodeHttpHandler,
5
- parseRfc3339DateTime
6
- } from "./chunk-b5g5w1hh.js";
7
- import {
8
- CredentialsProviderError
9
- } from "./chunk-zzerxbrm.js";
10
- import {
11
- require_dist_cjs8 as require_dist_cjs
12
- } from "./chunk-a7k3cdby.js";
13
- import {
14
- require_client
15
- } from "./chunk-frw3va9v.js";
16
- import"./chunk-saqpg5nd.js";
17
- import {
18
- __toESM
19
- } from "./chunk-9v6qtbez.js";
20
-
21
- // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
22
- var import_client = __toESM(require_client(), 1);
23
- import fs from "node:fs/promises";
24
-
25
- // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
26
- var ECS_CONTAINER_HOST = "169.254.170.2";
27
- var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
28
- var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
29
- var checkUrl = (url, logger) => {
30
- if (url.protocol === "https:") {
31
- return;
32
- }
33
- if (url.hostname === ECS_CONTAINER_HOST || url.hostname === EKS_CONTAINER_HOST_IPv4 || url.hostname === EKS_CONTAINER_HOST_IPv6) {
34
- return;
35
- }
36
- if (url.hostname.includes("[")) {
37
- if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") {
38
- return;
39
- }
40
- } else {
41
- if (url.hostname === "localhost") {
42
- return;
43
- }
44
- const ipComponents = url.hostname.split(".");
45
- const inRange = (component) => {
46
- const num = parseInt(component, 10);
47
- return 0 <= num && num <= 255;
48
- };
49
- if (ipComponents[0] === "127" && inRange(ipComponents[1]) && inRange(ipComponents[2]) && inRange(ipComponents[3]) && ipComponents.length === 4) {
50
- return;
51
- }
52
- }
53
- throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
54
- - loopback CIDR 127.0.0.0/8 or [::1/128]
55
- - ECS container host 169.254.170.2
56
- - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
57
- };
58
-
59
- // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
60
- var import_util_stream = __toESM(require_dist_cjs(), 1);
61
- function createGetRequest(url) {
62
- return new HttpRequest({
63
- protocol: url.protocol,
64
- hostname: url.hostname,
65
- port: Number(url.port),
66
- path: url.pathname,
67
- query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {
68
- acc[k] = v;
69
- return acc;
70
- }, {}),
71
- fragment: url.hash
72
- });
73
- }
74
- async function getCredentials(response, logger) {
75
- const stream = import_util_stream.sdkStreamMixin(response.body);
76
- const str = await stream.transformToString();
77
- if (response.statusCode === 200) {
78
- const parsed = JSON.parse(str);
79
- if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
80
- throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
81
- }
82
- return {
83
- accessKeyId: parsed.AccessKeyId,
84
- secretAccessKey: parsed.SecretAccessKey,
85
- sessionToken: parsed.Token,
86
- expiration: parseRfc3339DateTime(parsed.Expiration)
87
- };
88
- }
89
- if (response.statusCode >= 400 && response.statusCode < 500) {
90
- let parsedBody = {};
91
- try {
92
- parsedBody = JSON.parse(str);
93
- } catch (e) {}
94
- throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
95
- Code: parsedBody.Code,
96
- Message: parsedBody.Message
97
- });
98
- }
99
- throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
100
- }
101
-
102
- // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
103
- var retryWrapper = (toRetry, maxRetries, delayMs) => {
104
- return async () => {
105
- for (let i = 0;i < maxRetries; ++i) {
106
- try {
107
- return await toRetry();
108
- } catch (e) {
109
- await new Promise((resolve) => setTimeout(resolve, delayMs));
110
- }
111
- }
112
- return await toRetry();
113
- };
114
- };
115
-
116
- // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
117
- var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
118
- var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
119
- var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
120
- var AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
121
- var AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
122
- var fromHttp = (options = {}) => {
123
- options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
124
- let host;
125
- const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
126
- const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
127
- const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
128
- const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
129
- const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger ? console.warn : options.logger.warn;
130
- if (relative && full) {
131
- warn("@aws-sdk/credential-provider-http: " + "you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
132
- warn("awsContainerCredentialsFullUri will take precedence.");
133
- }
134
- if (token && tokenFile) {
135
- warn("@aws-sdk/credential-provider-http: " + "you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
136
- warn("awsContainerAuthorizationToken will take precedence.");
137
- }
138
- if (full) {
139
- host = full;
140
- } else if (relative) {
141
- host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
142
- } else {
143
- throw new CredentialsProviderError(`No HTTP credential provider host provided.
144
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
145
- }
146
- const url = new URL(host);
147
- checkUrl(url, options.logger);
148
- const requestHandler = new NodeHttpHandler({
149
- requestTimeout: options.timeout ?? 1000,
150
- connectionTimeout: options.timeout ?? 1000
151
- });
152
- return retryWrapper(async () => {
153
- const request = createGetRequest(url);
154
- if (token) {
155
- request.headers.Authorization = token;
156
- } else if (tokenFile) {
157
- request.headers.Authorization = (await fs.readFile(tokenFile)).toString();
158
- }
159
- try {
160
- const result = await requestHandler.handle(request);
161
- return getCredentials(result.response).then((creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
162
- } catch (e) {
163
- throw new CredentialsProviderError(String(e), { logger: options.logger });
164
- }
165
- }, options.maxRetries ?? 3, options.timeout ?? 1000);
166
- };
167
- export {
168
- fromHttp
169
- };
@@ -1,11 +0,0 @@
1
- // @bun
2
- import {
3
- d,
4
- h
5
- } from "./chunk-mdqphqep.js";
6
- import"./chunk-qhh0v93n.js";
7
- import"./chunk-9v6qtbez.js";
8
- export {
9
- d as stringifyJSONC,
10
- h as parseJSONC
11
- };
@@ -1,73 +0,0 @@
1
- // ../../../../node_modules/confbox/dist/shared/confbox.CiPrvALD.mjs
2
- var b = /^(?:( )+|\t+)/;
3
- var d = "space";
4
- var h = "tab";
5
- function g(e, t) {
6
- const n = new Map;
7
- let s = 0, o, i;
8
- for (const c of e.split(/\n/g)) {
9
- if (!c)
10
- continue;
11
- let f, a, l, p, r;
12
- const y = c.match(b);
13
- if (y === null)
14
- s = 0, o = "";
15
- else {
16
- if (f = y[0].length, a = y[1] ? d : h, t && a === d && f === 1)
17
- continue;
18
- a !== o && (s = 0), o = a, l = 1, p = 0;
19
- const u = f - s;
20
- if (s = f, u === 0)
21
- l = 0, p = 1;
22
- else {
23
- const I = u > 0 ? u : -u;
24
- i = T(a, I);
25
- }
26
- r = n.get(i), r = r === undefined ? [1, 0] : [r[0] + l, r[1] + p], n.set(i, r);
27
- }
28
- }
29
- return n;
30
- }
31
- function T(e, t) {
32
- return (e === d ? "s" : "t") + String(t);
33
- }
34
- function w(e) {
35
- const n = e[0] === "s" ? d : h, s = Number(e.slice(1));
36
- return { type: n, amount: s };
37
- }
38
- function E(e) {
39
- let t, n = 0, s = 0;
40
- for (const [o, [i, c]] of e)
41
- (i > n || i === n && c > s) && (n = i, s = c, t = o);
42
- return t;
43
- }
44
- function S(e, t) {
45
- return (e === d ? " " : "\t").repeat(t);
46
- }
47
- function _(e) {
48
- if (typeof e != "string")
49
- throw new TypeError("Expected a string");
50
- let t = g(e, true);
51
- t.size === 0 && (t = g(e, false));
52
- const n = E(t);
53
- let s, o = 0, i = "";
54
- return n !== undefined && ({ type: s, amount: o } = w(n), i = S(s, o)), { amount: o, type: s, indent: i };
55
- }
56
- var m = Symbol.for("__confbox_fmt__");
57
- var k = /^(\s+)/;
58
- var v = /(\s+)$/;
59
- function x(e, t = {}) {
60
- const n = t.indent === undefined && t.preserveIndentation !== false && e.slice(0, t?.sampleSize || 1024), s = t.preserveWhitespace === false ? undefined : { start: k.exec(e)?.[0] || "", end: v.exec(e)?.[0] || "" };
61
- return { sample: n, whiteSpace: s };
62
- }
63
- function N(e, t, n) {
64
- !t || typeof t != "object" || Object.defineProperty(t, m, { enumerable: false, configurable: true, writable: true, value: x(e, n) });
65
- }
66
- function C(e, t) {
67
- if (!e || typeof e != "object" || !(m in e))
68
- return { indent: t?.indent, whitespace: { start: "", end: "" } };
69
- const n = e[m];
70
- return { indent: t?.indent || _(n.sample || "").indent, whitespace: n.whiteSpace || { start: "", end: "" } };
71
- }
72
-
73
- export { N, C };
@@ -1,51 +0,0 @@
1
- // @bun
2
- import {
3
- CredentialsProviderError
4
- } from "./chunk-zzerxbrm.js";
5
- import {
6
- require_client
7
- } from "./chunk-frw3va9v.js";
8
- import {
9
- __toESM
10
- } from "./chunk-9v6qtbez.js";
11
-
12
- // ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
13
- var import_client = __toESM(require_client(), 1);
14
- var ENV_KEY = "AWS_ACCESS_KEY_ID";
15
- var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
16
- var ENV_SESSION = "AWS_SESSION_TOKEN";
17
- var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
18
- var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
19
- var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
20
- var fromEnv = (init) => async () => {
21
- init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
22
- const accessKeyId = process.env[ENV_KEY];
23
- const secretAccessKey = process.env[ENV_SECRET];
24
- const sessionToken = process.env[ENV_SESSION];
25
- const expiry = process.env[ENV_EXPIRATION];
26
- const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
27
- const accountId = process.env[ENV_ACCOUNT_ID];
28
- if (accessKeyId && secretAccessKey) {
29
- const credentials = {
30
- accessKeyId,
31
- secretAccessKey,
32
- ...sessionToken && { sessionToken },
33
- ...expiry && { expiration: new Date(expiry) },
34
- ...credentialScope && { credentialScope },
35
- ...accountId && { accountId }
36
- };
37
- import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
38
- return credentials;
39
- }
40
- throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
41
- };
42
- export {
43
- fromEnv,
44
- ENV_SESSION,
45
- ENV_SECRET,
46
- ENV_KEY,
47
- ENV_EXPIRATION,
48
- ENV_CREDENTIAL_SCOPE,
49
- ENV_ACCOUNT_ID
50
- };
51
- export { ENV_KEY, ENV_SECRET, fromEnv };
@@ -1,118 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-9v6qtbez.js";
4
-
5
- // ../../../../node_modules/@smithy/types/dist-cjs/index.js
6
- var require_dist_cjs = __commonJS((exports, module) => {
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __getOwnPropNames = Object.getOwnPropertyNames;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
- var __export = (target, all) => {
13
- for (var name in all)
14
- __defProp(target, name, { get: all[name], enumerable: true });
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from))
19
- if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
- }
22
- return to;
23
- };
24
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
- var src_exports = {};
26
- __export(src_exports, {
27
- AlgorithmId: () => AlgorithmId,
28
- EndpointURLScheme: () => EndpointURLScheme,
29
- FieldPosition: () => FieldPosition,
30
- HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,
31
- HttpAuthLocation: () => HttpAuthLocation,
32
- IniSectionType: () => IniSectionType,
33
- RequestHandlerProtocol: () => RequestHandlerProtocol,
34
- SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,
35
- getDefaultClientConfiguration: () => getDefaultClientConfiguration,
36
- resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig
37
- });
38
- module.exports = __toCommonJS(src_exports);
39
- var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {
40
- HttpAuthLocation2["HEADER"] = "header";
41
- HttpAuthLocation2["QUERY"] = "query";
42
- return HttpAuthLocation2;
43
- })(HttpAuthLocation || {});
44
- var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {
45
- HttpApiKeyAuthLocation2["HEADER"] = "header";
46
- HttpApiKeyAuthLocation2["QUERY"] = "query";
47
- return HttpApiKeyAuthLocation2;
48
- })(HttpApiKeyAuthLocation || {});
49
- var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {
50
- EndpointURLScheme2["HTTP"] = "http";
51
- EndpointURLScheme2["HTTPS"] = "https";
52
- return EndpointURLScheme2;
53
- })(EndpointURLScheme || {});
54
- var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {
55
- AlgorithmId2["MD5"] = "md5";
56
- AlgorithmId2["CRC32"] = "crc32";
57
- AlgorithmId2["CRC32C"] = "crc32c";
58
- AlgorithmId2["SHA1"] = "sha1";
59
- AlgorithmId2["SHA256"] = "sha256";
60
- return AlgorithmId2;
61
- })(AlgorithmId || {});
62
- var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
63
- const checksumAlgorithms = [];
64
- if (runtimeConfig.sha256 !== undefined) {
65
- checksumAlgorithms.push({
66
- algorithmId: () => "sha256",
67
- checksumConstructor: () => runtimeConfig.sha256
68
- });
69
- }
70
- if (runtimeConfig.md5 != null) {
71
- checksumAlgorithms.push({
72
- algorithmId: () => "md5",
73
- checksumConstructor: () => runtimeConfig.md5
74
- });
75
- }
76
- return {
77
- addChecksumAlgorithm(algo) {
78
- checksumAlgorithms.push(algo);
79
- },
80
- checksumAlgorithms() {
81
- return checksumAlgorithms;
82
- }
83
- };
84
- }, "getChecksumConfiguration");
85
- var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
86
- const runtimeConfig = {};
87
- clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
88
- runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
89
- });
90
- return runtimeConfig;
91
- }, "resolveChecksumRuntimeConfig");
92
- var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
93
- return getChecksumConfiguration(runtimeConfig);
94
- }, "getDefaultClientConfiguration");
95
- var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
96
- return resolveChecksumRuntimeConfig(config);
97
- }, "resolveDefaultRuntimeConfig");
98
- var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {
99
- FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
100
- FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
101
- return FieldPosition2;
102
- })(FieldPosition || {});
103
- var SMITHY_CONTEXT_KEY = "__smithy_context";
104
- var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {
105
- IniSectionType2["PROFILE"] = "profile";
106
- IniSectionType2["SSO_SESSION"] = "sso-session";
107
- IniSectionType2["SERVICES"] = "services";
108
- return IniSectionType2;
109
- })(IniSectionType || {});
110
- var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {
111
- RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
112
- RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
113
- RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
114
- return RequestHandlerProtocol2;
115
- })(RequestHandlerProtocol || {});
116
- });
117
-
118
- export { require_dist_cjs };