@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,902 +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"./chunk-frw3va9v.js";
38
- import"./chunk-saqpg5nd.js";
39
- import {
40
- __commonJS
41
- } from "./chunk-9v6qtbez.js";
42
-
43
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
44
- var require_httpAuthSchemeProvider = __commonJS((exports) => {
45
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = undefined;
47
- var core_1 = require_dist_cjs9();
48
- var util_middleware_1 = require_dist_cjs();
49
- var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
50
- return {
51
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
52
- region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
53
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
54
- })()
55
- };
56
- };
57
- exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
58
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
59
- return {
60
- schemeId: "aws.auth#sigv4",
61
- signingProperties: {
62
- name: "sso-oauth",
63
- region: authParameters.region
64
- },
65
- propertiesExtractor: (config, context) => ({
66
- signingProperties: {
67
- config,
68
- context
69
- }
70
- })
71
- };
72
- }
73
- function createSmithyApiNoAuthHttpAuthOption(authParameters) {
74
- return {
75
- schemeId: "smithy.api#noAuth"
76
- };
77
- }
78
- var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
79
- const options = [];
80
- switch (authParameters.operation) {
81
- case "CreateToken": {
82
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
83
- break;
84
- }
85
- default: {
86
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
87
- }
88
- }
89
- return options;
90
- };
91
- exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
92
- var resolveHttpAuthSchemeConfig = (config) => {
93
- const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
94
- return Object.assign(config_0, {});
95
- };
96
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
97
- });
98
-
99
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js
100
- var require_ruleset = __commonJS((exports) => {
101
- Object.defineProperty(exports, "__esModule", { value: true });
102
- exports.ruleSet = undefined;
103
- var u = "required";
104
- var v = "fn";
105
- var w = "argv";
106
- var x = "ref";
107
- var a = true;
108
- var b = "isSet";
109
- var c = "booleanEquals";
110
- var d = "error";
111
- var e = "endpoint";
112
- var f = "tree";
113
- var g = "PartitionResult";
114
- var h = "getAttr";
115
- var i = { [u]: false, type: "String" };
116
- var j = { [u]: true, default: false, type: "Boolean" };
117
- var k = { [x]: "Endpoint" };
118
- var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
119
- var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
120
- var n = {};
121
- var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
122
- var p = { [x]: g };
123
- var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
124
- var r = [l];
125
- var s = [m];
126
- var t = [{ [x]: "Region" }];
127
- var _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
128
- exports.ruleSet = _data;
129
- });
130
-
131
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js
132
- var require_endpointResolver = __commonJS((exports) => {
133
- Object.defineProperty(exports, "__esModule", { value: true });
134
- exports.defaultEndpointResolver = undefined;
135
- var util_endpoints_1 = require_dist_cjs14();
136
- var util_endpoints_2 = require_dist_cjs13();
137
- var ruleset_1 = require_ruleset();
138
- var cache = new util_endpoints_2.EndpointCache({
139
- size: 50,
140
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
141
- });
142
- var defaultEndpointResolver = (endpointParams, context = {}) => {
143
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
144
- endpointParams,
145
- logger: context.logger
146
- }));
147
- };
148
- exports.defaultEndpointResolver = defaultEndpointResolver;
149
- util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
150
- });
151
-
152
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js
153
- var require_runtimeConfig_shared = __commonJS((exports) => {
154
- Object.defineProperty(exports, "__esModule", { value: true });
155
- exports.getRuntimeConfig = undefined;
156
- var core_1 = require_dist_cjs9();
157
- var core_2 = require_dist_cjs7();
158
- var smithy_client_1 = require_dist_cjs8();
159
- var url_parser_1 = require_dist_cjs19();
160
- var util_base64_1 = require_dist_cjs5();
161
- var util_utf8_1 = require_dist_cjs4();
162
- var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider();
163
- var endpointResolver_1 = require_endpointResolver();
164
- var getRuntimeConfig = (config) => {
165
- return {
166
- apiVersion: "2019-06-10",
167
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
168
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
169
- disableHostPrefix: config?.disableHostPrefix ?? false,
170
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
171
- extensions: config?.extensions ?? [],
172
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
173
- httpAuthSchemes: config?.httpAuthSchemes ?? [
174
- {
175
- schemeId: "aws.auth#sigv4",
176
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
177
- signer: new core_1.AwsSdkSigV4Signer
178
- },
179
- {
180
- schemeId: "smithy.api#noAuth",
181
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
182
- signer: new core_2.NoAuthSigner
183
- }
184
- ],
185
- logger: config?.logger ?? new smithy_client_1.NoOpLogger,
186
- serviceId: config?.serviceId ?? "SSO OIDC",
187
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
188
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
189
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
190
- };
191
- };
192
- exports.getRuntimeConfig = getRuntimeConfig;
193
- });
194
-
195
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js
196
- var require_runtimeConfig = __commonJS((exports) => {
197
- Object.defineProperty(exports, "__esModule", { value: true });
198
- exports.getRuntimeConfig = undefined;
199
- var tslib_1 = require_tslib();
200
- var package_json_1 = tslib_1.__importDefault(require_package());
201
- var core_1 = require_dist_cjs9();
202
- var util_user_agent_node_1 = require_dist_cjs23();
203
- var config_resolver_1 = require_dist_cjs16();
204
- var hash_node_1 = require_dist_cjs24();
205
- var middleware_retry_1 = require_dist_cjs22();
206
- var node_config_provider_1 = require_dist_cjs18();
207
- var node_http_handler_1 = require_dist_cjs6();
208
- var util_body_length_node_1 = require_dist_cjs25();
209
- var util_retry_1 = require_dist_cjs21();
210
- var runtimeConfig_shared_1 = require_runtimeConfig_shared();
211
- var smithy_client_1 = require_dist_cjs8();
212
- var util_defaults_mode_node_1 = require_dist_cjs26();
213
- var smithy_client_2 = require_dist_cjs8();
214
- var getRuntimeConfig = (config) => {
215
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
216
- const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
217
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
218
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
219
- (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
220
- const profileConfig = { profile: config?.profile };
221
- return {
222
- ...clientSharedValues,
223
- ...config,
224
- runtime: "node",
225
- defaultsMode,
226
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
227
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
228
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
229
- 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 }),
230
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
231
- retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
232
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
233
- default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE
234
- }, config),
235
- sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
236
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
237
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
238
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
239
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig)
240
- };
241
- };
242
- exports.getRuntimeConfig = getRuntimeConfig;
243
- });
244
-
245
- // ../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
246
- var require_sso_oidc = __commonJS((exports, module) => {
247
- var __defProp = Object.defineProperty;
248
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
249
- var __getOwnPropNames = Object.getOwnPropertyNames;
250
- var __hasOwnProp = Object.prototype.hasOwnProperty;
251
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
252
- var __export = (target, all) => {
253
- for (var name in all)
254
- __defProp(target, name, { get: all[name], enumerable: true });
255
- };
256
- var __copyProps = (to, from, except, desc) => {
257
- if (from && typeof from === "object" || typeof from === "function") {
258
- for (let key of __getOwnPropNames(from))
259
- if (!__hasOwnProp.call(to, key) && key !== except)
260
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
261
- }
262
- return to;
263
- };
264
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
265
- var index_exports = {};
266
- __export(index_exports, {
267
- $Command: () => import_smithy_client6.Command,
268
- AccessDeniedException: () => AccessDeniedException,
269
- AuthorizationPendingException: () => AuthorizationPendingException,
270
- CreateTokenCommand: () => CreateTokenCommand,
271
- CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
272
- CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,
273
- ExpiredTokenException: () => ExpiredTokenException,
274
- InternalServerException: () => InternalServerException,
275
- InvalidClientException: () => InvalidClientException,
276
- InvalidGrantException: () => InvalidGrantException,
277
- InvalidRequestException: () => InvalidRequestException,
278
- InvalidScopeException: () => InvalidScopeException,
279
- SSOOIDC: () => SSOOIDC,
280
- SSOOIDCClient: () => SSOOIDCClient,
281
- SSOOIDCServiceException: () => SSOOIDCServiceException,
282
- SlowDownException: () => SlowDownException,
283
- UnauthorizedClientException: () => UnauthorizedClientException,
284
- UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,
285
- __Client: () => import_smithy_client2.Client
286
- });
287
- module.exports = __toCommonJS(index_exports);
288
- var import_middleware_host_header = require_dist_cjs10();
289
- var import_middleware_logger = require_dist_cjs11();
290
- var import_middleware_recursion_detection = require_dist_cjs12();
291
- var import_middleware_user_agent = require_dist_cjs15();
292
- var import_config_resolver = require_dist_cjs16();
293
- var import_core = require_dist_cjs7();
294
- var import_middleware_content_length = require_dist_cjs17();
295
- var import_middleware_endpoint = require_dist_cjs20();
296
- var import_middleware_retry = require_dist_cjs22();
297
- var import_smithy_client2 = require_dist_cjs8();
298
- var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider();
299
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
300
- return Object.assign(options, {
301
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
302
- useFipsEndpoint: options.useFipsEndpoint ?? false,
303
- defaultSigningName: "sso-oauth"
304
- });
305
- }, "resolveClientEndpointParameters");
306
- var commonParams = {
307
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
308
- Endpoint: { type: "builtInParams", name: "endpoint" },
309
- Region: { type: "builtInParams", name: "region" },
310
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
311
- };
312
- var import_runtimeConfig = require_runtimeConfig();
313
- var import_region_config_resolver = require_dist_cjs27();
314
- var import_protocol_http = require_dist_cjs3();
315
- var import_smithy_client = require_dist_cjs8();
316
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
317
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
318
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
319
- let _credentials = runtimeConfig.credentials;
320
- return {
321
- setHttpAuthScheme(httpAuthScheme) {
322
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
323
- if (index === -1) {
324
- _httpAuthSchemes.push(httpAuthScheme);
325
- } else {
326
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
327
- }
328
- },
329
- httpAuthSchemes() {
330
- return _httpAuthSchemes;
331
- },
332
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
333
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
334
- },
335
- httpAuthSchemeProvider() {
336
- return _httpAuthSchemeProvider;
337
- },
338
- setCredentials(credentials) {
339
- _credentials = credentials;
340
- },
341
- credentials() {
342
- return _credentials;
343
- }
344
- };
345
- }, "getHttpAuthExtensionConfiguration");
346
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
347
- return {
348
- httpAuthSchemes: config.httpAuthSchemes(),
349
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
350
- credentials: config.credentials()
351
- };
352
- }, "resolveHttpAuthRuntimeConfig");
353
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
354
- const extensionConfiguration = Object.assign((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
355
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
356
- return Object.assign(runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
357
- }, "resolveRuntimeExtensions");
358
- var SSOOIDCClient = class extends import_smithy_client2.Client {
359
- static {
360
- __name(this, "SSOOIDCClient");
361
- }
362
- config;
363
- constructor(...[configuration]) {
364
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
365
- super(_config_0);
366
- this.initConfig = _config_0;
367
- const _config_1 = resolveClientEndpointParameters(_config_0);
368
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
369
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
370
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
371
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
372
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
373
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
374
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
375
- this.config = _config_8;
376
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
377
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
378
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
379
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
380
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
381
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
382
- this.middlewareStack.use((0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
383
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
384
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
385
- "aws.auth#sigv4": config.credentials
386
- }), "identityProviderConfigProvider")
387
- }));
388
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
389
- }
390
- destroy() {
391
- super.destroy();
392
- }
393
- };
394
- var import_smithy_client7 = require_dist_cjs8();
395
- var import_middleware_endpoint2 = require_dist_cjs20();
396
- var import_middleware_serde = require_dist_cjs2();
397
- var import_smithy_client6 = require_dist_cjs8();
398
- var import_smithy_client4 = require_dist_cjs8();
399
- var import_smithy_client3 = require_dist_cjs8();
400
- var SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client3.ServiceException {
401
- static {
402
- __name(this, "SSOOIDCServiceException");
403
- }
404
- constructor(options) {
405
- super(options);
406
- Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
407
- }
408
- };
409
- var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
410
- static {
411
- __name(this, "AccessDeniedException");
412
- }
413
- name = "AccessDeniedException";
414
- $fault = "client";
415
- error;
416
- error_description;
417
- constructor(opts) {
418
- super({
419
- name: "AccessDeniedException",
420
- $fault: "client",
421
- ...opts
422
- });
423
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
424
- this.error = opts.error;
425
- this.error_description = opts.error_description;
426
- }
427
- };
428
- var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
429
- static {
430
- __name(this, "AuthorizationPendingException");
431
- }
432
- name = "AuthorizationPendingException";
433
- $fault = "client";
434
- error;
435
- error_description;
436
- constructor(opts) {
437
- super({
438
- name: "AuthorizationPendingException",
439
- $fault: "client",
440
- ...opts
441
- });
442
- Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
443
- this.error = opts.error;
444
- this.error_description = opts.error_description;
445
- }
446
- };
447
- var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
448
- ...obj,
449
- ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING },
450
- ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING },
451
- ...obj.codeVerifier && { codeVerifier: import_smithy_client4.SENSITIVE_STRING }
452
- }), "CreateTokenRequestFilterSensitiveLog");
453
- var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
454
- ...obj,
455
- ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING },
456
- ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING },
457
- ...obj.idToken && { idToken: import_smithy_client4.SENSITIVE_STRING }
458
- }), "CreateTokenResponseFilterSensitiveLog");
459
- var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
460
- static {
461
- __name(this, "ExpiredTokenException");
462
- }
463
- name = "ExpiredTokenException";
464
- $fault = "client";
465
- error;
466
- error_description;
467
- constructor(opts) {
468
- super({
469
- name: "ExpiredTokenException",
470
- $fault: "client",
471
- ...opts
472
- });
473
- Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
474
- this.error = opts.error;
475
- this.error_description = opts.error_description;
476
- }
477
- };
478
- var InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
479
- static {
480
- __name(this, "InternalServerException");
481
- }
482
- name = "InternalServerException";
483
- $fault = "server";
484
- error;
485
- error_description;
486
- constructor(opts) {
487
- super({
488
- name: "InternalServerException",
489
- $fault: "server",
490
- ...opts
491
- });
492
- Object.setPrototypeOf(this, _InternalServerException.prototype);
493
- this.error = opts.error;
494
- this.error_description = opts.error_description;
495
- }
496
- };
497
- var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
498
- static {
499
- __name(this, "InvalidClientException");
500
- }
501
- name = "InvalidClientException";
502
- $fault = "client";
503
- error;
504
- error_description;
505
- constructor(opts) {
506
- super({
507
- name: "InvalidClientException",
508
- $fault: "client",
509
- ...opts
510
- });
511
- Object.setPrototypeOf(this, _InvalidClientException.prototype);
512
- this.error = opts.error;
513
- this.error_description = opts.error_description;
514
- }
515
- };
516
- var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
517
- static {
518
- __name(this, "InvalidGrantException");
519
- }
520
- name = "InvalidGrantException";
521
- $fault = "client";
522
- error;
523
- error_description;
524
- constructor(opts) {
525
- super({
526
- name: "InvalidGrantException",
527
- $fault: "client",
528
- ...opts
529
- });
530
- Object.setPrototypeOf(this, _InvalidGrantException.prototype);
531
- this.error = opts.error;
532
- this.error_description = opts.error_description;
533
- }
534
- };
535
- var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
536
- static {
537
- __name(this, "InvalidRequestException");
538
- }
539
- name = "InvalidRequestException";
540
- $fault = "client";
541
- error;
542
- error_description;
543
- constructor(opts) {
544
- super({
545
- name: "InvalidRequestException",
546
- $fault: "client",
547
- ...opts
548
- });
549
- Object.setPrototypeOf(this, _InvalidRequestException.prototype);
550
- this.error = opts.error;
551
- this.error_description = opts.error_description;
552
- }
553
- };
554
- var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
555
- static {
556
- __name(this, "InvalidScopeException");
557
- }
558
- name = "InvalidScopeException";
559
- $fault = "client";
560
- error;
561
- error_description;
562
- constructor(opts) {
563
- super({
564
- name: "InvalidScopeException",
565
- $fault: "client",
566
- ...opts
567
- });
568
- Object.setPrototypeOf(this, _InvalidScopeException.prototype);
569
- this.error = opts.error;
570
- this.error_description = opts.error_description;
571
- }
572
- };
573
- var SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
574
- static {
575
- __name(this, "SlowDownException");
576
- }
577
- name = "SlowDownException";
578
- $fault = "client";
579
- error;
580
- error_description;
581
- constructor(opts) {
582
- super({
583
- name: "SlowDownException",
584
- $fault: "client",
585
- ...opts
586
- });
587
- Object.setPrototypeOf(this, _SlowDownException.prototype);
588
- this.error = opts.error;
589
- this.error_description = opts.error_description;
590
- }
591
- };
592
- var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
593
- static {
594
- __name(this, "UnauthorizedClientException");
595
- }
596
- name = "UnauthorizedClientException";
597
- $fault = "client";
598
- error;
599
- error_description;
600
- constructor(opts) {
601
- super({
602
- name: "UnauthorizedClientException",
603
- $fault: "client",
604
- ...opts
605
- });
606
- Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
607
- this.error = opts.error;
608
- this.error_description = opts.error_description;
609
- }
610
- };
611
- var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
612
- static {
613
- __name(this, "UnsupportedGrantTypeException");
614
- }
615
- name = "UnsupportedGrantTypeException";
616
- $fault = "client";
617
- error;
618
- error_description;
619
- constructor(opts) {
620
- super({
621
- name: "UnsupportedGrantTypeException",
622
- $fault: "client",
623
- ...opts
624
- });
625
- Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
626
- this.error = opts.error;
627
- this.error_description = opts.error_description;
628
- }
629
- };
630
- var import_core2 = require_dist_cjs9();
631
- var import_core3 = require_dist_cjs7();
632
- var import_smithy_client5 = require_dist_cjs8();
633
- var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
634
- const b = (0, import_core3.requestBuilder)(input, context);
635
- const headers = {
636
- "content-type": "application/json"
637
- };
638
- b.bp("/token");
639
- let body;
640
- body = JSON.stringify((0, import_smithy_client5.take)(input, {
641
- clientId: [],
642
- clientSecret: [],
643
- code: [],
644
- codeVerifier: [],
645
- deviceCode: [],
646
- grantType: [],
647
- redirectUri: [],
648
- refreshToken: [],
649
- scope: /* @__PURE__ */ __name((_) => (0, import_smithy_client5._json)(_), "scope")
650
- }));
651
- b.m("POST").h(headers).b(body);
652
- return b.build();
653
- }, "se_CreateTokenCommand");
654
- var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
655
- if (output.statusCode !== 200 && output.statusCode >= 300) {
656
- return de_CommandError(output, context);
657
- }
658
- const contents = (0, import_smithy_client5.map)({
659
- $metadata: deserializeMetadata(output)
660
- });
661
- const data = (0, import_smithy_client5.expectNonNull)((0, import_smithy_client5.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
662
- const doc = (0, import_smithy_client5.take)(data, {
663
- accessToken: import_smithy_client5.expectString,
664
- expiresIn: import_smithy_client5.expectInt32,
665
- idToken: import_smithy_client5.expectString,
666
- refreshToken: import_smithy_client5.expectString,
667
- tokenType: import_smithy_client5.expectString
668
- });
669
- Object.assign(contents, doc);
670
- return contents;
671
- }, "de_CreateTokenCommand");
672
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
673
- const parsedOutput = {
674
- ...output,
675
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
676
- };
677
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
678
- switch (errorCode) {
679
- case "AccessDeniedException":
680
- case "com.amazonaws.ssooidc#AccessDeniedException":
681
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
682
- case "AuthorizationPendingException":
683
- case "com.amazonaws.ssooidc#AuthorizationPendingException":
684
- throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
685
- case "ExpiredTokenException":
686
- case "com.amazonaws.ssooidc#ExpiredTokenException":
687
- throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
688
- case "InternalServerException":
689
- case "com.amazonaws.ssooidc#InternalServerException":
690
- throw await de_InternalServerExceptionRes(parsedOutput, context);
691
- case "InvalidClientException":
692
- case "com.amazonaws.ssooidc#InvalidClientException":
693
- throw await de_InvalidClientExceptionRes(parsedOutput, context);
694
- case "InvalidGrantException":
695
- case "com.amazonaws.ssooidc#InvalidGrantException":
696
- throw await de_InvalidGrantExceptionRes(parsedOutput, context);
697
- case "InvalidRequestException":
698
- case "com.amazonaws.ssooidc#InvalidRequestException":
699
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
700
- case "InvalidScopeException":
701
- case "com.amazonaws.ssooidc#InvalidScopeException":
702
- throw await de_InvalidScopeExceptionRes(parsedOutput, context);
703
- case "SlowDownException":
704
- case "com.amazonaws.ssooidc#SlowDownException":
705
- throw await de_SlowDownExceptionRes(parsedOutput, context);
706
- case "UnauthorizedClientException":
707
- case "com.amazonaws.ssooidc#UnauthorizedClientException":
708
- throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
709
- case "UnsupportedGrantTypeException":
710
- case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
711
- throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
712
- default:
713
- const parsedBody = parsedOutput.body;
714
- return throwDefaultError({
715
- output,
716
- parsedBody,
717
- errorCode
718
- });
719
- }
720
- }, "de_CommandError");
721
- var throwDefaultError = (0, import_smithy_client5.withBaseException)(SSOOIDCServiceException);
722
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
723
- const contents = (0, import_smithy_client5.map)({});
724
- const data = parsedOutput.body;
725
- const doc = (0, import_smithy_client5.take)(data, {
726
- error: import_smithy_client5.expectString,
727
- error_description: import_smithy_client5.expectString
728
- });
729
- Object.assign(contents, doc);
730
- const exception = new AccessDeniedException({
731
- $metadata: deserializeMetadata(parsedOutput),
732
- ...contents
733
- });
734
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
735
- }, "de_AccessDeniedExceptionRes");
736
- var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
737
- const contents = (0, import_smithy_client5.map)({});
738
- const data = parsedOutput.body;
739
- const doc = (0, import_smithy_client5.take)(data, {
740
- error: import_smithy_client5.expectString,
741
- error_description: import_smithy_client5.expectString
742
- });
743
- Object.assign(contents, doc);
744
- const exception = new AuthorizationPendingException({
745
- $metadata: deserializeMetadata(parsedOutput),
746
- ...contents
747
- });
748
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
749
- }, "de_AuthorizationPendingExceptionRes");
750
- var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
751
- const contents = (0, import_smithy_client5.map)({});
752
- const data = parsedOutput.body;
753
- const doc = (0, import_smithy_client5.take)(data, {
754
- error: import_smithy_client5.expectString,
755
- error_description: import_smithy_client5.expectString
756
- });
757
- Object.assign(contents, doc);
758
- const exception = new ExpiredTokenException({
759
- $metadata: deserializeMetadata(parsedOutput),
760
- ...contents
761
- });
762
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
763
- }, "de_ExpiredTokenExceptionRes");
764
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
765
- const contents = (0, import_smithy_client5.map)({});
766
- const data = parsedOutput.body;
767
- const doc = (0, import_smithy_client5.take)(data, {
768
- error: import_smithy_client5.expectString,
769
- error_description: import_smithy_client5.expectString
770
- });
771
- Object.assign(contents, doc);
772
- const exception = new InternalServerException({
773
- $metadata: deserializeMetadata(parsedOutput),
774
- ...contents
775
- });
776
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
777
- }, "de_InternalServerExceptionRes");
778
- var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
779
- const contents = (0, import_smithy_client5.map)({});
780
- const data = parsedOutput.body;
781
- const doc = (0, import_smithy_client5.take)(data, {
782
- error: import_smithy_client5.expectString,
783
- error_description: import_smithy_client5.expectString
784
- });
785
- Object.assign(contents, doc);
786
- const exception = new InvalidClientException({
787
- $metadata: deserializeMetadata(parsedOutput),
788
- ...contents
789
- });
790
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
791
- }, "de_InvalidClientExceptionRes");
792
- var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
793
- const contents = (0, import_smithy_client5.map)({});
794
- const data = parsedOutput.body;
795
- const doc = (0, import_smithy_client5.take)(data, {
796
- error: import_smithy_client5.expectString,
797
- error_description: import_smithy_client5.expectString
798
- });
799
- Object.assign(contents, doc);
800
- const exception = new InvalidGrantException({
801
- $metadata: deserializeMetadata(parsedOutput),
802
- ...contents
803
- });
804
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
805
- }, "de_InvalidGrantExceptionRes");
806
- var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
807
- const contents = (0, import_smithy_client5.map)({});
808
- const data = parsedOutput.body;
809
- const doc = (0, import_smithy_client5.take)(data, {
810
- error: import_smithy_client5.expectString,
811
- error_description: import_smithy_client5.expectString
812
- });
813
- Object.assign(contents, doc);
814
- const exception = new InvalidRequestException({
815
- $metadata: deserializeMetadata(parsedOutput),
816
- ...contents
817
- });
818
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
819
- }, "de_InvalidRequestExceptionRes");
820
- var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
821
- const contents = (0, import_smithy_client5.map)({});
822
- const data = parsedOutput.body;
823
- const doc = (0, import_smithy_client5.take)(data, {
824
- error: import_smithy_client5.expectString,
825
- error_description: import_smithy_client5.expectString
826
- });
827
- Object.assign(contents, doc);
828
- const exception = new InvalidScopeException({
829
- $metadata: deserializeMetadata(parsedOutput),
830
- ...contents
831
- });
832
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
833
- }, "de_InvalidScopeExceptionRes");
834
- var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
835
- const contents = (0, import_smithy_client5.map)({});
836
- const data = parsedOutput.body;
837
- const doc = (0, import_smithy_client5.take)(data, {
838
- error: import_smithy_client5.expectString,
839
- error_description: import_smithy_client5.expectString
840
- });
841
- Object.assign(contents, doc);
842
- const exception = new SlowDownException({
843
- $metadata: deserializeMetadata(parsedOutput),
844
- ...contents
845
- });
846
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
847
- }, "de_SlowDownExceptionRes");
848
- var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
849
- const contents = (0, import_smithy_client5.map)({});
850
- const data = parsedOutput.body;
851
- const doc = (0, import_smithy_client5.take)(data, {
852
- error: import_smithy_client5.expectString,
853
- error_description: import_smithy_client5.expectString
854
- });
855
- Object.assign(contents, doc);
856
- const exception = new UnauthorizedClientException({
857
- $metadata: deserializeMetadata(parsedOutput),
858
- ...contents
859
- });
860
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
861
- }, "de_UnauthorizedClientExceptionRes");
862
- var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
863
- const contents = (0, import_smithy_client5.map)({});
864
- const data = parsedOutput.body;
865
- const doc = (0, import_smithy_client5.take)(data, {
866
- error: import_smithy_client5.expectString,
867
- error_description: import_smithy_client5.expectString
868
- });
869
- Object.assign(contents, doc);
870
- const exception = new UnsupportedGrantTypeException({
871
- $metadata: deserializeMetadata(parsedOutput),
872
- ...contents
873
- });
874
- return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
875
- }, "de_UnsupportedGrantTypeExceptionRes");
876
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
877
- httpStatusCode: output.statusCode,
878
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
879
- extendedRequestId: output.headers["x-amz-id-2"],
880
- cfId: output.headers["x-amz-cf-id"]
881
- }), "deserializeMetadata");
882
- var CreateTokenCommand = class extends import_smithy_client6.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
883
- return [
884
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
885
- (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
886
- ];
887
- }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
888
- static {
889
- __name(this, "CreateTokenCommand");
890
- }
891
- };
892
- var commands = {
893
- CreateTokenCommand
894
- };
895
- var SSOOIDC = class extends SSOOIDCClient {
896
- static {
897
- __name(this, "SSOOIDC");
898
- }
899
- };
900
- (0, import_smithy_client7.createAggregatedClient)(commands, SSOOIDC);
901
- });
902
- export default require_sso_oidc();