@stacksjs/actions 0.70.22 → 0.70.25

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