@beesolve/analytics-processor 0.0.0 → 0.2.1

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 (341) hide show
  1. package/DOCS.md +20 -0
  2. package/README.md +87 -3
  3. package/dist/cdk.d.ts +49 -0
  4. package/dist/cdk.js +127 -0
  5. package/dist/dailyRollup/bowser-UJEXXM6S.mjs +2 -0
  6. package/dist/dailyRollup/bowser-UJEXXM6S.mjs.map +7 -0
  7. package/dist/dailyRollup/chunk-3GD7PA4I.mjs +2 -0
  8. package/dist/dailyRollup/chunk-3GD7PA4I.mjs.map +7 -0
  9. package/dist/dailyRollup/chunk-3YRRUMLY.mjs +10 -0
  10. package/dist/dailyRollup/chunk-3YRRUMLY.mjs.map +7 -0
  11. package/dist/dailyRollup/chunk-5JDAL5HL.mjs +2 -0
  12. package/dist/dailyRollup/chunk-5JDAL5HL.mjs.map +7 -0
  13. package/dist/dailyRollup/chunk-C4CD3R2M.mjs +2 -0
  14. package/dist/dailyRollup/chunk-C4CD3R2M.mjs.map +7 -0
  15. package/dist/dailyRollup/chunk-CFZ5JWD3.mjs +2 -0
  16. package/dist/dailyRollup/chunk-CFZ5JWD3.mjs.map +7 -0
  17. package/dist/dailyRollup/chunk-FLISSIFQ.mjs +4 -0
  18. package/dist/dailyRollup/chunk-FLISSIFQ.mjs.map +7 -0
  19. package/dist/dailyRollup/chunk-G7FCKJTE.mjs +8 -0
  20. package/dist/dailyRollup/chunk-G7FCKJTE.mjs.map +7 -0
  21. package/dist/dailyRollup/chunk-GHMUY3QB.mjs +13 -0
  22. package/dist/dailyRollup/chunk-GHMUY3QB.mjs.map +7 -0
  23. package/dist/dailyRollup/chunk-HGD7WY52.mjs +2 -0
  24. package/dist/dailyRollup/chunk-HGD7WY52.mjs.map +7 -0
  25. package/dist/dailyRollup/chunk-IHCR62UU.mjs +6 -0
  26. package/dist/dailyRollup/chunk-IHCR62UU.mjs.map +7 -0
  27. package/dist/dailyRollup/chunk-KT7DZL3D.mjs +2 -0
  28. package/dist/dailyRollup/chunk-KT7DZL3D.mjs.map +7 -0
  29. package/dist/dailyRollup/chunk-LK4IXOEA.mjs +2 -0
  30. package/dist/dailyRollup/chunk-LK4IXOEA.mjs.map +7 -0
  31. package/dist/dailyRollup/chunk-MATUPZWL.mjs +6 -0
  32. package/dist/dailyRollup/chunk-MATUPZWL.mjs.map +7 -0
  33. package/dist/dailyRollup/chunk-NX6AKUU3.mjs +2 -0
  34. package/dist/dailyRollup/chunk-NX6AKUU3.mjs.map +7 -0
  35. package/dist/dailyRollup/chunk-PBJCPHYW.mjs +10 -0
  36. package/dist/dailyRollup/chunk-PBJCPHYW.mjs.map +7 -0
  37. package/dist/dailyRollup/chunk-PNUYSX4A.mjs +2 -0
  38. package/dist/dailyRollup/chunk-PNUYSX4A.mjs.map +7 -0
  39. package/dist/dailyRollup/chunk-RO44VKXZ.mjs +2 -0
  40. package/dist/dailyRollup/chunk-RO44VKXZ.mjs.map +7 -0
  41. package/dist/dailyRollup/chunk-RU3KGSS6.mjs +2 -0
  42. package/dist/dailyRollup/chunk-RU3KGSS6.mjs.map +7 -0
  43. package/dist/dailyRollup/chunk-VG37NXBO.mjs +2 -0
  44. package/dist/dailyRollup/chunk-VG37NXBO.mjs.map +7 -0
  45. package/dist/dailyRollup/chunk-VVG5B2RA.mjs +13 -0
  46. package/dist/dailyRollup/chunk-VVG5B2RA.mjs.map +7 -0
  47. package/dist/dailyRollup/chunk-YIZKQ2WK.mjs +10 -0
  48. package/dist/dailyRollup/chunk-YIZKQ2WK.mjs.map +7 -0
  49. package/dist/dailyRollup/chunk-ZH5DZOB5.mjs +2 -0
  50. package/dist/dailyRollup/chunk-ZH5DZOB5.mjs.map +7 -0
  51. package/dist/dailyRollup/client-7VYWT6KE.mjs +2 -0
  52. package/dist/dailyRollup/client-7VYWT6KE.mjs.map +7 -0
  53. package/dist/dailyRollup/dailyRollup.mjs +2 -0
  54. package/dist/dailyRollup/dailyRollup.mjs.map +7 -0
  55. package/dist/dailyRollup/dist-es-3PO6WBRA.mjs +2 -0
  56. package/dist/dailyRollup/dist-es-3PO6WBRA.mjs.map +7 -0
  57. package/dist/dailyRollup/dist-es-4375P743.mjs +2 -0
  58. package/dist/dailyRollup/dist-es-4375P743.mjs.map +7 -0
  59. package/dist/dailyRollup/dist-es-43J27JDM.mjs +3 -0
  60. package/dist/dailyRollup/dist-es-43J27JDM.mjs.map +7 -0
  61. package/dist/dailyRollup/dist-es-6SRW3I3T.mjs +2 -0
  62. package/dist/dailyRollup/dist-es-6SRW3I3T.mjs.map +7 -0
  63. package/dist/dailyRollup/dist-es-BMGNYEV6.mjs +3 -0
  64. package/dist/dailyRollup/dist-es-BMGNYEV6.mjs.map +7 -0
  65. package/dist/dailyRollup/dist-es-BQ5OLCIJ.mjs +2 -0
  66. package/dist/dailyRollup/dist-es-BQ5OLCIJ.mjs.map +7 -0
  67. package/dist/dailyRollup/dist-es-CFDT5MDO.mjs +2 -0
  68. package/dist/dailyRollup/dist-es-CFDT5MDO.mjs.map +7 -0
  69. package/dist/dailyRollup/dist-es-FPBJ7DAB.mjs +2 -0
  70. package/dist/dailyRollup/dist-es-FPBJ7DAB.mjs.map +7 -0
  71. package/dist/dailyRollup/dist-es-G4DL2UUB.mjs +7 -0
  72. package/dist/dailyRollup/dist-es-G4DL2UUB.mjs.map +7 -0
  73. package/dist/dailyRollup/dist-es-IRYFH3EH.mjs +2 -0
  74. package/dist/dailyRollup/dist-es-IRYFH3EH.mjs.map +7 -0
  75. package/dist/dailyRollup/dist-es-L5F6PNYU.mjs +2 -0
  76. package/dist/dailyRollup/dist-es-L5F6PNYU.mjs.map +7 -0
  77. package/dist/dailyRollup/dist-es-LEKBJS4E.mjs +2 -0
  78. package/dist/dailyRollup/dist-es-LEKBJS4E.mjs.map +7 -0
  79. package/dist/dailyRollup/dist-es-NMUDTELL.mjs +2 -0
  80. package/dist/dailyRollup/dist-es-NMUDTELL.mjs.map +7 -0
  81. package/dist/dailyRollup/dist-es-OY2VA72W.mjs +2 -0
  82. package/dist/dailyRollup/dist-es-OY2VA72W.mjs.map +7 -0
  83. package/dist/dailyRollup/dist-es-SJKDRHZJ.mjs +2 -0
  84. package/dist/dailyRollup/dist-es-SJKDRHZJ.mjs.map +7 -0
  85. package/dist/dailyRollup/dist-es-UGFAGDM2.mjs +7 -0
  86. package/dist/dailyRollup/dist-es-UGFAGDM2.mjs.map +7 -0
  87. package/dist/dailyRollup/dist-es-YRXTT57X.mjs +3 -0
  88. package/dist/dailyRollup/dist-es-YRXTT57X.mjs.map +7 -0
  89. package/dist/dailyRollup/event-streams-G2EZD32F.mjs +2 -0
  90. package/dist/dailyRollup/event-streams-G2EZD32F.mjs.map +7 -0
  91. package/dist/dailyRollup/event-streams-H4LI66VS.mjs +2 -0
  92. package/dist/dailyRollup/event-streams-H4LI66VS.mjs.map +7 -0
  93. package/dist/dailyRollup/event-streams-U52YN65T.mjs +2 -0
  94. package/dist/dailyRollup/event-streams-U52YN65T.mjs.map +7 -0
  95. package/dist/dailyRollup/loadCognitoIdentity-3OXED256.mjs +2 -0
  96. package/dist/dailyRollup/loadCognitoIdentity-3OXED256.mjs.map +7 -0
  97. package/dist/dailyRollup/loadSso-6KWTKR23.mjs +2 -0
  98. package/dist/dailyRollup/loadSso-6KWTKR23.mjs.map +7 -0
  99. package/dist/dailyRollup/loadSso-AITTIS6M.mjs +2 -0
  100. package/dist/dailyRollup/loadSso-AITTIS6M.mjs.map +7 -0
  101. package/dist/dailyRollup/loadSts-LQCNCE76.mjs +2 -0
  102. package/dist/dailyRollup/loadSts-LQCNCE76.mjs.map +7 -0
  103. package/dist/dailyRollup/signin-THWW5VM5.mjs +2 -0
  104. package/dist/dailyRollup/signin-THWW5VM5.mjs.map +7 -0
  105. package/dist/dailyRollup/signin-ZKLDJEMJ.mjs +2 -0
  106. package/dist/dailyRollup/signin-ZKLDJEMJ.mjs.map +7 -0
  107. package/dist/dailyRollup/sso-oidc-MI4NLGSV.mjs +2 -0
  108. package/dist/dailyRollup/sso-oidc-MI4NLGSV.mjs.map +7 -0
  109. package/dist/dailyRollup/sso-oidc-OWLWHDBI.mjs +2 -0
  110. package/dist/dailyRollup/sso-oidc-OWLWHDBI.mjs.map +7 -0
  111. package/dist/dailyRollup/sts-AQIPDWOX.mjs +2 -0
  112. package/dist/dailyRollup/sts-AQIPDWOX.mjs.map +7 -0
  113. package/dist/dailyRollup/sts-EN7K54DW.mjs +2 -0
  114. package/dist/dailyRollup/sts-EN7K54DW.mjs.map +7 -0
  115. package/dist/hourly/bowser-UJEXXM6S.mjs +2 -0
  116. package/dist/hourly/bowser-UJEXXM6S.mjs.map +7 -0
  117. package/dist/hourly/chunk-2LV65MUY.mjs +2 -0
  118. package/dist/hourly/chunk-2LV65MUY.mjs.map +7 -0
  119. package/dist/hourly/chunk-3GD7PA4I.mjs +2 -0
  120. package/dist/hourly/chunk-3GD7PA4I.mjs.map +7 -0
  121. package/dist/hourly/chunk-4X6M4ZIM.mjs +13 -0
  122. package/dist/hourly/chunk-4X6M4ZIM.mjs.map +7 -0
  123. package/dist/hourly/chunk-5EEREEGM.mjs +10 -0
  124. package/dist/hourly/chunk-5EEREEGM.mjs.map +7 -0
  125. package/dist/hourly/chunk-5JDAL5HL.mjs +2 -0
  126. package/dist/hourly/chunk-5JDAL5HL.mjs.map +7 -0
  127. package/dist/hourly/chunk-C4CD3R2M.mjs +2 -0
  128. package/dist/hourly/chunk-C4CD3R2M.mjs.map +7 -0
  129. package/dist/hourly/chunk-CDK2TDZ3.mjs +2 -0
  130. package/dist/hourly/chunk-CDK2TDZ3.mjs.map +7 -0
  131. package/dist/hourly/chunk-CFZ5JWD3.mjs +2 -0
  132. package/dist/hourly/chunk-CFZ5JWD3.mjs.map +7 -0
  133. package/dist/hourly/chunk-DDOSB7QU.mjs +10 -0
  134. package/dist/hourly/chunk-DDOSB7QU.mjs.map +7 -0
  135. package/dist/hourly/chunk-FLISSIFQ.mjs +4 -0
  136. package/dist/hourly/chunk-FLISSIFQ.mjs.map +7 -0
  137. package/dist/hourly/chunk-G7FCKJTE.mjs +8 -0
  138. package/dist/hourly/chunk-G7FCKJTE.mjs.map +7 -0
  139. package/dist/hourly/chunk-HGD7WY52.mjs +2 -0
  140. package/dist/hourly/chunk-HGD7WY52.mjs.map +7 -0
  141. package/dist/hourly/chunk-IHCR62UU.mjs +6 -0
  142. package/dist/hourly/chunk-IHCR62UU.mjs.map +7 -0
  143. package/dist/hourly/chunk-LK4IXOEA.mjs +2 -0
  144. package/dist/hourly/chunk-LK4IXOEA.mjs.map +7 -0
  145. package/dist/hourly/chunk-MATUPZWL.mjs +6 -0
  146. package/dist/hourly/chunk-MATUPZWL.mjs.map +7 -0
  147. package/dist/hourly/chunk-NX6AKUU3.mjs +2 -0
  148. package/dist/hourly/chunk-NX6AKUU3.mjs.map +7 -0
  149. package/dist/hourly/chunk-OV75J3RB.mjs +10 -0
  150. package/dist/hourly/chunk-OV75J3RB.mjs.map +7 -0
  151. package/dist/hourly/chunk-RO44VKXZ.mjs +2 -0
  152. package/dist/hourly/chunk-RO44VKXZ.mjs.map +7 -0
  153. package/dist/hourly/chunk-RU3KGSS6.mjs +2 -0
  154. package/dist/hourly/chunk-RU3KGSS6.mjs.map +7 -0
  155. package/dist/hourly/chunk-SEATMW6H.mjs +2 -0
  156. package/dist/hourly/chunk-SEATMW6H.mjs.map +7 -0
  157. package/dist/hourly/chunk-UEL4UF23.mjs +2 -0
  158. package/dist/hourly/chunk-UEL4UF23.mjs.map +7 -0
  159. package/dist/hourly/chunk-VG37NXBO.mjs +2 -0
  160. package/dist/hourly/chunk-VG37NXBO.mjs.map +7 -0
  161. package/dist/hourly/chunk-YLTURKBY.mjs +13 -0
  162. package/dist/hourly/chunk-YLTURKBY.mjs.map +7 -0
  163. package/dist/hourly/chunk-ZH5DZOB5.mjs +2 -0
  164. package/dist/hourly/chunk-ZH5DZOB5.mjs.map +7 -0
  165. package/dist/hourly/client-YFAS5DGU.mjs +2 -0
  166. package/dist/hourly/client-YFAS5DGU.mjs.map +7 -0
  167. package/dist/hourly/dist-es-2QGRGQLF.mjs +7 -0
  168. package/dist/hourly/dist-es-2QGRGQLF.mjs.map +7 -0
  169. package/dist/hourly/dist-es-4JJUYAKR.mjs +2 -0
  170. package/dist/hourly/dist-es-4JJUYAKR.mjs.map +7 -0
  171. package/dist/hourly/dist-es-4NUPISR6.mjs +3 -0
  172. package/dist/hourly/dist-es-4NUPISR6.mjs.map +7 -0
  173. package/dist/hourly/dist-es-4PFASTED.mjs +2 -0
  174. package/dist/hourly/dist-es-4PFASTED.mjs.map +7 -0
  175. package/dist/hourly/dist-es-ARVZEK2B.mjs +2 -0
  176. package/dist/hourly/dist-es-ARVZEK2B.mjs.map +7 -0
  177. package/dist/hourly/dist-es-BH4D2XQ2.mjs +2 -0
  178. package/dist/hourly/dist-es-BH4D2XQ2.mjs.map +7 -0
  179. package/dist/hourly/dist-es-D46ET7B3.mjs +2 -0
  180. package/dist/hourly/dist-es-D46ET7B3.mjs.map +7 -0
  181. package/dist/hourly/dist-es-DQHOM6HA.mjs +3 -0
  182. package/dist/hourly/dist-es-DQHOM6HA.mjs.map +7 -0
  183. package/dist/hourly/dist-es-ETNPEJSC.mjs +2 -0
  184. package/dist/hourly/dist-es-ETNPEJSC.mjs.map +7 -0
  185. package/dist/hourly/dist-es-HCGEEOBW.mjs +2 -0
  186. package/dist/hourly/dist-es-HCGEEOBW.mjs.map +7 -0
  187. package/dist/hourly/dist-es-LONCZIHI.mjs +2 -0
  188. package/dist/hourly/dist-es-LONCZIHI.mjs.map +7 -0
  189. package/dist/hourly/dist-es-PV5J6DAM.mjs +2 -0
  190. package/dist/hourly/dist-es-PV5J6DAM.mjs.map +7 -0
  191. package/dist/hourly/dist-es-S4EGUNEL.mjs +2 -0
  192. package/dist/hourly/dist-es-S4EGUNEL.mjs.map +7 -0
  193. package/dist/hourly/dist-es-VDZMHJW2.mjs +7 -0
  194. package/dist/hourly/dist-es-VDZMHJW2.mjs.map +7 -0
  195. package/dist/hourly/dist-es-WBVL2T3J.mjs +2 -0
  196. package/dist/hourly/dist-es-WBVL2T3J.mjs.map +7 -0
  197. package/dist/hourly/dist-es-YFKUCAP2.mjs +2 -0
  198. package/dist/hourly/dist-es-YFKUCAP2.mjs.map +7 -0
  199. package/dist/hourly/dist-es-YZBMXOS5.mjs +3 -0
  200. package/dist/hourly/dist-es-YZBMXOS5.mjs.map +7 -0
  201. package/dist/hourly/event-streams-G2EZD32F.mjs +2 -0
  202. package/dist/hourly/event-streams-G2EZD32F.mjs.map +7 -0
  203. package/dist/hourly/event-streams-H4LI66VS.mjs +2 -0
  204. package/dist/hourly/event-streams-H4LI66VS.mjs.map +7 -0
  205. package/dist/hourly/event-streams-U52YN65T.mjs +2 -0
  206. package/dist/hourly/event-streams-U52YN65T.mjs.map +7 -0
  207. package/dist/hourly/hourly.mjs +11 -0
  208. package/dist/hourly/hourly.mjs.map +7 -0
  209. package/dist/hourly/loadCognitoIdentity-KHSY4IOA.mjs +2 -0
  210. package/dist/hourly/loadCognitoIdentity-KHSY4IOA.mjs.map +7 -0
  211. package/dist/hourly/loadSso-HHJP34KX.mjs +2 -0
  212. package/dist/hourly/loadSso-HHJP34KX.mjs.map +7 -0
  213. package/dist/hourly/loadSso-R47RBCPJ.mjs +2 -0
  214. package/dist/hourly/loadSso-R47RBCPJ.mjs.map +7 -0
  215. package/dist/hourly/loadSts-5X55AJY5.mjs +2 -0
  216. package/dist/hourly/loadSts-5X55AJY5.mjs.map +7 -0
  217. package/dist/hourly/signin-F7JF6BF6.mjs +2 -0
  218. package/dist/hourly/signin-F7JF6BF6.mjs.map +7 -0
  219. package/dist/hourly/signin-WDXS6SW2.mjs +2 -0
  220. package/dist/hourly/signin-WDXS6SW2.mjs.map +7 -0
  221. package/dist/hourly/sso-oidc-63EGB35D.mjs +2 -0
  222. package/dist/hourly/sso-oidc-63EGB35D.mjs.map +7 -0
  223. package/dist/hourly/sso-oidc-UVLJZI2R.mjs +2 -0
  224. package/dist/hourly/sso-oidc-UVLJZI2R.mjs.map +7 -0
  225. package/dist/hourly/sts-4M7S3GN4.mjs +2 -0
  226. package/dist/hourly/sts-4M7S3GN4.mjs.map +7 -0
  227. package/dist/hourly/sts-YXUOYWFS.mjs +2 -0
  228. package/dist/hourly/sts-YXUOYWFS.mjs.map +7 -0
  229. package/dist/index.d.ts +359 -0
  230. package/dist/index.js +1011 -0
  231. package/dist/monthlyRollup/bowser-UJEXXM6S.mjs +2 -0
  232. package/dist/monthlyRollup/bowser-UJEXXM6S.mjs.map +7 -0
  233. package/dist/monthlyRollup/chunk-3GD7PA4I.mjs +2 -0
  234. package/dist/monthlyRollup/chunk-3GD7PA4I.mjs.map +7 -0
  235. package/dist/monthlyRollup/chunk-3YRRUMLY.mjs +10 -0
  236. package/dist/monthlyRollup/chunk-3YRRUMLY.mjs.map +7 -0
  237. package/dist/monthlyRollup/chunk-5JDAL5HL.mjs +2 -0
  238. package/dist/monthlyRollup/chunk-5JDAL5HL.mjs.map +7 -0
  239. package/dist/monthlyRollup/chunk-C4CD3R2M.mjs +2 -0
  240. package/dist/monthlyRollup/chunk-C4CD3R2M.mjs.map +7 -0
  241. package/dist/monthlyRollup/chunk-CFZ5JWD3.mjs +2 -0
  242. package/dist/monthlyRollup/chunk-CFZ5JWD3.mjs.map +7 -0
  243. package/dist/monthlyRollup/chunk-FLISSIFQ.mjs +4 -0
  244. package/dist/monthlyRollup/chunk-FLISSIFQ.mjs.map +7 -0
  245. package/dist/monthlyRollup/chunk-G7FCKJTE.mjs +8 -0
  246. package/dist/monthlyRollup/chunk-G7FCKJTE.mjs.map +7 -0
  247. package/dist/monthlyRollup/chunk-GHMUY3QB.mjs +13 -0
  248. package/dist/monthlyRollup/chunk-GHMUY3QB.mjs.map +7 -0
  249. package/dist/monthlyRollup/chunk-HGD7WY52.mjs +2 -0
  250. package/dist/monthlyRollup/chunk-HGD7WY52.mjs.map +7 -0
  251. package/dist/monthlyRollup/chunk-IHCR62UU.mjs +6 -0
  252. package/dist/monthlyRollup/chunk-IHCR62UU.mjs.map +7 -0
  253. package/dist/monthlyRollup/chunk-KT7DZL3D.mjs +2 -0
  254. package/dist/monthlyRollup/chunk-KT7DZL3D.mjs.map +7 -0
  255. package/dist/monthlyRollup/chunk-LK4IXOEA.mjs +2 -0
  256. package/dist/monthlyRollup/chunk-LK4IXOEA.mjs.map +7 -0
  257. package/dist/monthlyRollup/chunk-MATUPZWL.mjs +6 -0
  258. package/dist/monthlyRollup/chunk-MATUPZWL.mjs.map +7 -0
  259. package/dist/monthlyRollup/chunk-NX6AKUU3.mjs +2 -0
  260. package/dist/monthlyRollup/chunk-NX6AKUU3.mjs.map +7 -0
  261. package/dist/monthlyRollup/chunk-PBJCPHYW.mjs +10 -0
  262. package/dist/monthlyRollup/chunk-PBJCPHYW.mjs.map +7 -0
  263. package/dist/monthlyRollup/chunk-PNUYSX4A.mjs +2 -0
  264. package/dist/monthlyRollup/chunk-PNUYSX4A.mjs.map +7 -0
  265. package/dist/monthlyRollup/chunk-RO44VKXZ.mjs +2 -0
  266. package/dist/monthlyRollup/chunk-RO44VKXZ.mjs.map +7 -0
  267. package/dist/monthlyRollup/chunk-RU3KGSS6.mjs +2 -0
  268. package/dist/monthlyRollup/chunk-RU3KGSS6.mjs.map +7 -0
  269. package/dist/monthlyRollup/chunk-VG37NXBO.mjs +2 -0
  270. package/dist/monthlyRollup/chunk-VG37NXBO.mjs.map +7 -0
  271. package/dist/monthlyRollup/chunk-VVG5B2RA.mjs +13 -0
  272. package/dist/monthlyRollup/chunk-VVG5B2RA.mjs.map +7 -0
  273. package/dist/monthlyRollup/chunk-YIZKQ2WK.mjs +10 -0
  274. package/dist/monthlyRollup/chunk-YIZKQ2WK.mjs.map +7 -0
  275. package/dist/monthlyRollup/chunk-ZH5DZOB5.mjs +2 -0
  276. package/dist/monthlyRollup/chunk-ZH5DZOB5.mjs.map +7 -0
  277. package/dist/monthlyRollup/client-7VYWT6KE.mjs +2 -0
  278. package/dist/monthlyRollup/client-7VYWT6KE.mjs.map +7 -0
  279. package/dist/monthlyRollup/dist-es-3PO6WBRA.mjs +2 -0
  280. package/dist/monthlyRollup/dist-es-3PO6WBRA.mjs.map +7 -0
  281. package/dist/monthlyRollup/dist-es-4375P743.mjs +2 -0
  282. package/dist/monthlyRollup/dist-es-4375P743.mjs.map +7 -0
  283. package/dist/monthlyRollup/dist-es-43J27JDM.mjs +3 -0
  284. package/dist/monthlyRollup/dist-es-43J27JDM.mjs.map +7 -0
  285. package/dist/monthlyRollup/dist-es-6SRW3I3T.mjs +2 -0
  286. package/dist/monthlyRollup/dist-es-6SRW3I3T.mjs.map +7 -0
  287. package/dist/monthlyRollup/dist-es-BMGNYEV6.mjs +3 -0
  288. package/dist/monthlyRollup/dist-es-BMGNYEV6.mjs.map +7 -0
  289. package/dist/monthlyRollup/dist-es-BQ5OLCIJ.mjs +2 -0
  290. package/dist/monthlyRollup/dist-es-BQ5OLCIJ.mjs.map +7 -0
  291. package/dist/monthlyRollup/dist-es-CFDT5MDO.mjs +2 -0
  292. package/dist/monthlyRollup/dist-es-CFDT5MDO.mjs.map +7 -0
  293. package/dist/monthlyRollup/dist-es-FPBJ7DAB.mjs +2 -0
  294. package/dist/monthlyRollup/dist-es-FPBJ7DAB.mjs.map +7 -0
  295. package/dist/monthlyRollup/dist-es-G4DL2UUB.mjs +7 -0
  296. package/dist/monthlyRollup/dist-es-G4DL2UUB.mjs.map +7 -0
  297. package/dist/monthlyRollup/dist-es-IRYFH3EH.mjs +2 -0
  298. package/dist/monthlyRollup/dist-es-IRYFH3EH.mjs.map +7 -0
  299. package/dist/monthlyRollup/dist-es-L5F6PNYU.mjs +2 -0
  300. package/dist/monthlyRollup/dist-es-L5F6PNYU.mjs.map +7 -0
  301. package/dist/monthlyRollup/dist-es-LEKBJS4E.mjs +2 -0
  302. package/dist/monthlyRollup/dist-es-LEKBJS4E.mjs.map +7 -0
  303. package/dist/monthlyRollup/dist-es-NMUDTELL.mjs +2 -0
  304. package/dist/monthlyRollup/dist-es-NMUDTELL.mjs.map +7 -0
  305. package/dist/monthlyRollup/dist-es-OY2VA72W.mjs +2 -0
  306. package/dist/monthlyRollup/dist-es-OY2VA72W.mjs.map +7 -0
  307. package/dist/monthlyRollup/dist-es-SJKDRHZJ.mjs +2 -0
  308. package/dist/monthlyRollup/dist-es-SJKDRHZJ.mjs.map +7 -0
  309. package/dist/monthlyRollup/dist-es-UGFAGDM2.mjs +7 -0
  310. package/dist/monthlyRollup/dist-es-UGFAGDM2.mjs.map +7 -0
  311. package/dist/monthlyRollup/dist-es-YRXTT57X.mjs +3 -0
  312. package/dist/monthlyRollup/dist-es-YRXTT57X.mjs.map +7 -0
  313. package/dist/monthlyRollup/event-streams-G2EZD32F.mjs +2 -0
  314. package/dist/monthlyRollup/event-streams-G2EZD32F.mjs.map +7 -0
  315. package/dist/monthlyRollup/event-streams-H4LI66VS.mjs +2 -0
  316. package/dist/monthlyRollup/event-streams-H4LI66VS.mjs.map +7 -0
  317. package/dist/monthlyRollup/event-streams-U52YN65T.mjs +2 -0
  318. package/dist/monthlyRollup/event-streams-U52YN65T.mjs.map +7 -0
  319. package/dist/monthlyRollup/loadCognitoIdentity-3OXED256.mjs +2 -0
  320. package/dist/monthlyRollup/loadCognitoIdentity-3OXED256.mjs.map +7 -0
  321. package/dist/monthlyRollup/loadSso-6KWTKR23.mjs +2 -0
  322. package/dist/monthlyRollup/loadSso-6KWTKR23.mjs.map +7 -0
  323. package/dist/monthlyRollup/loadSso-AITTIS6M.mjs +2 -0
  324. package/dist/monthlyRollup/loadSso-AITTIS6M.mjs.map +7 -0
  325. package/dist/monthlyRollup/loadSts-LQCNCE76.mjs +2 -0
  326. package/dist/monthlyRollup/loadSts-LQCNCE76.mjs.map +7 -0
  327. package/dist/monthlyRollup/monthlyRollup.mjs +2 -0
  328. package/dist/monthlyRollup/monthlyRollup.mjs.map +7 -0
  329. package/dist/monthlyRollup/signin-THWW5VM5.mjs +2 -0
  330. package/dist/monthlyRollup/signin-THWW5VM5.mjs.map +7 -0
  331. package/dist/monthlyRollup/signin-ZKLDJEMJ.mjs +2 -0
  332. package/dist/monthlyRollup/signin-ZKLDJEMJ.mjs.map +7 -0
  333. package/dist/monthlyRollup/sso-oidc-MI4NLGSV.mjs +2 -0
  334. package/dist/monthlyRollup/sso-oidc-MI4NLGSV.mjs.map +7 -0
  335. package/dist/monthlyRollup/sso-oidc-OWLWHDBI.mjs +2 -0
  336. package/dist/monthlyRollup/sso-oidc-OWLWHDBI.mjs.map +7 -0
  337. package/dist/monthlyRollup/sts-AQIPDWOX.mjs +2 -0
  338. package/dist/monthlyRollup/sts-AQIPDWOX.mjs.map +7 -0
  339. package/dist/monthlyRollup/sts-EN7K54DW.mjs +2 -0
  340. package/dist/monthlyRollup/sts-EN7K54DW.mjs.map +7 -0
  341. package/package.json +55 -6
@@ -0,0 +1,2 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import{e as M}from"./chunk-5JDAL5HL.mjs";import{d}from"./chunk-NX6AKUU3.mjs";import{a as r}from"./chunk-CFZ5JWD3.mjs";var W="AWS_EXECUTION_ENV",R="AWS_REGION",v="AWS_DEFAULT_REGION",k="AWS_EC2_METADATA_DISABLED",H=["in-region","cross-region","mobile","standard","legacy"],K="/latest/meta-data/placement/region",$="/latest/api/token",j="x-aws-ec2-metadata-token",X="x-aws-ec2-metadata-token-ttl-seconds";var B=1e3,ge=6e4,J=0,T=r(async()=>{if(!process.env[k]&&!(Date.now()<J))try{let e=Oe(),o=(await q({...e,path:$,method:"PUT",headers:{[X]:"21600"}})).toString();return(await q({...e,path:K,method:"GET",headers:{[j]:o}})).toString().trim()||z()}catch{return z()}},"getInstanceMetadataRegion"),z=r(()=>{J=Date.now()+ge},"cacheNegativeAndReturnUndefined"),Oe=r(()=>{let e=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(e){let o=new URL(e);return{hostname:o.hostname.replace(/^\[(.+)]$/,"$1"),port:o.port?Number(o.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},"resolveImdsEndpoint"),q=r(async e=>{let{request:o}=await import("node:http");return new Promise((t,n)=>{let i=o({hostname:e.hostname,port:e.port,path:e.path,method:e.method,headers:e.headers,timeout:B,signal:AbortSignal.timeout(B)});i.on("error",s=>{n(s),i.destroy()}),i.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:c=400}=s;if(c<200||c>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:c})),i.destroy();return}let a=[];s.on("data",f=>a.push(f)),s.on("end",()=>{t(Buffer.concat(a)),i.destroy()})}),i.end()})},"imdsRequest");var Z="AWS_REGION",Q="region",w={environmentVariableSelector:r(e=>e[Z],"environmentVariableSelector"),configFileSelector:r(e=>e[Q],"configFileSelector"),default:r(async()=>{let e=await T();if(e)return e;throw new Error("Region is missing")},"default")},Ie={preferredFile:"credentials"};var Y=new Set,ee=r((e,o=M)=>{if(!Y.has(e)&&!o(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else Y.add(e)},"checkRegion");var x=r(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion");var oe=r(e=>x(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion");var Fe=r(e=>{let{region:o,useFipsEndpoint:t}=e;if(!o)throw new Error("Region is missing");return Object.assign(e,{region:r(async()=>{let n=typeof o=="function"?await o():o,i=oe(n);return ee(i),i},"region"),useFipsEndpoint:r(async()=>{let n=typeof o=="string"?o:await o();return x(n)?!0:typeof t!="function"?Promise.resolve(!!t):t()},"useFipsEndpoint")})},"resolveRegionConfig");var p=class e extends Error{static{r(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(o,t=!0){let n,i=!0;typeof t=="boolean"?(n=void 0,i=t):t!=null&&typeof t=="object"&&(n=t.logger,i=t.tryNextLink??!0),super(o),this.tryNextLink=i,Object.setPrototypeOf(this,e.prototype),n?.debug?.(`@smithy/property-provider ${i?"->":"(!)"} ${o}`)}static from(o,t=!0){return Object.assign(new this(o.message,t),o)}};var _=class e extends p{static{r(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(o,t=!0){super(o,t),Object.setPrototypeOf(this,e.prototype)}};var y=class e extends p{static{r(this,"TokenProviderError")}name="TokenProviderError";constructor(o,t=!0){super(o,t),Object.setPrototypeOf(this,e.prototype)}};var L=r((...e)=>async()=>{if(e.length===0)throw new p("No providers in chain");let o;for(let t of e)try{return await t()}catch(n){if(o=n,n?.tryNextLink)continue;throw n}throw o},"chain");var re=r(e=>()=>Promise.resolve(e),"fromValue");var h=r((e,o,t)=>{let n,i,s,c=!1,a=r(async()=>{i||(i=e());try{n=await i,s=!0,c=!1}finally{i=void 0}return n},"coalesceProvider");return o===void 0?async f=>((!s||f?.forceRefresh)&&(n=await a()),n):async f=>((!s||f?.forceRefresh)&&(n=await a()),c?n:t&&!t(n)?(c=!0,n):(o(n)&&await a(),n))},"memoize");var u=r((e,o,t)=>{if(o in e){if(e[o]==="true")return!0;if(e[o]==="false")return!1;throw new Error(`Cannot load ${t} "${o}". Expected "true" or "false", got ${e[o]}.`)}},"booleanSelector");var m;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(m||(m={}));import{homedir as Te}from"node:os";import{sep as xe}from"node:path";var U={},he=r(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),E=r(()=>{let{HOME:e,USERPROFILE:o,HOMEPATH:t,HOMEDRIVE:n=`C:${xe}`}=process.env;if(e)return e;if(o)return o;if(t)return`${n}${t}`;let i=he();return U[i]||(U[i]=Te()),U[i]},"getHomeDir");var te="AWS_PROFILE",ne="default",G=r(e=>e.profile||process.env[te]||ne,"getProfileName");import{createHash as Ae}from"node:crypto";import{join as De}from"node:path";var b=r(e=>{let t=Ae("sha1").update(e).digest("hex");return De(E(),".aws","sso","cache",`${t}.json`)},"getSSOTokenFilepath");import{readFile as Ce}from"node:fs/promises";var S={},Pe=r(async e=>{if(S[e])return S[e];let o=b(e),t=await Ce(o,"utf8");return JSON.parse(t)},"getSSOTokenFromFile");import{join as ae}from"node:path";var ie=r(e=>Object.entries(e).filter(([o])=>{let t=o.indexOf(".");return t===-1?!1:Object.values(d).includes(o.substring(0,t))}).reduce((o,[t,n])=>{let i=t.indexOf("."),s=t.substring(0,i)===d.PROFILE?t.substring(i+1):t;return o[s]=n,o},{...e.default&&{default:e.default}}),"getConfigData");import{join as Re}from"node:path";var ve="AWS_CONFIG_FILE",A=r(()=>process.env[ve]||Re(E(),".aws","config"),"getConfigFilepath");import{join as we}from"node:path";var ye="AWS_SHARED_CREDENTIALS_FILE",se=r(()=>process.env[ye]||we(E(),".aws","credentials"),"getCredentialsFilepath");var Le=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,Ue=["__proto__","profile __proto__"],O=r(e=>{let o={},t,n;for(let i of e.split(/\r?\n/)){let s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,n=void 0;let a=s.substring(1,s.length-1),f=Le.exec(a);if(f){let[,l,,N]=f;Object.values(d).includes(l)&&(t=[l,N].join("."))}else t=a;if(Ue.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(t){let a=s.indexOf("=");if(![0,-1].includes(a)){let[f,l]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(l==="")n=f;else{n&&i.trimStart()===i&&(n=void 0),o[t]=o[t]||{};let N=n?[n,f].join("."):f;o[t][N]=l}}}}return o},"parseIni");import{readFile as Ge}from"node:fs/promises";var V={},I={},F=r((e,o)=>I[e]!==void 0?I[e]:((!V[e]||o?.ignoreCache)&&(V[e]=Ge(e,"utf8")),V[e]),"readFile");var ce=r(()=>({}),"swallowError"),D=r(async(e={})=>{let{filepath:o=se(),configFilepath:t=A()}=e,n=E(),i="~/",s=o;o.startsWith(i)&&(s=ae(n,o.slice(2)));let c=t;t.startsWith(i)&&(c=ae(n,t.slice(2)));let a=await Promise.all([F(c,{ignoreCache:e.ignoreCache}).then(O).then(ie).catch(ce),F(s,{ignoreCache:e.ignoreCache}).then(O).catch(ce)]);return{configFile:a[0],credentialsFile:a[1]}},"loadSharedConfigFiles");var fe=r(e=>Object.entries(e).filter(([o])=>o.startsWith(d.SSO_SESSION+".")).reduce((o,[t,n])=>({...o,[t.substring(t.indexOf(".")+1)]:n}),{}),"getSsoSessionData");var be=r(()=>({}),"swallowError"),Ve=r(async(e={})=>F(e.configFilepath??A()).then(O).then(fe).catch(be),"loadSsoSessionData");var pe=r((...e)=>{let o={};for(let t of e)for(let[n,i]of Object.entries(t))o[n]!==void 0?Object.assign(o[n],i):o[n]=i;return o},"mergeConfigFiles");var Me=r(async e=>{let o=await D(e);return pe(o.configFile,o.credentialsFile)},"parseKnownFiles");var We={getFileRecord(){return I},interceptFile(e,o){I[e]=Promise.resolve(o)},getTokenRecord(){return S},interceptToken(e,o){S[e]=o}};function C(e){try{let o=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return o.delete("CONFIG"),o.delete("CONFIG_PREFIX_SEPARATOR"),o.delete("ENV"),[...o].join(", ")}catch{return e}}r(C,"getSelectorName");var me=r((e,o)=>async()=>{try{let t=e(process.env,o);if(t===void 0)throw new Error;return t}catch(t){throw new _(t.message||`Not found in ENV: ${C(e.toString())}`,{logger:o?.logger})}},"fromEnv");var le=r((e,{preferredFile:o="config",...t}={})=>async()=>{let n=G(t),{configFile:i,credentialsFile:s}=await D(t),c=s[n]||{},a=i[n]||{},f=o==="config"?{...c,...a}:{...a,...c};try{let N=e(f,o==="config"?i:s);if(N===void 0)throw new Error;return N}catch(l){throw new _(l.message||`Not found in config files w/ profile [${n}]: ${C(e.toString())}`,{logger:t.logger})}},"fromSharedConfigFiles");var ke=r(e=>typeof e=="function","isFunction"),Ee=r(e=>ke(e)?async()=>await e():re(e),"fromStatic");var P=r(({environmentVariableSelector:e,configFileSelector:o,default:t},n={})=>{let{signingName:i,logger:s}=n;return h(L(me(e,{signingName:i,logger:s}),le(o,n),Ee(t)))},"loadConfig");var de="AWS_USE_DUALSTACK_ENDPOINT",_e="use_dualstack_endpoint";var He={environmentVariableSelector:r(e=>u(e,de,m.ENV),"environmentVariableSelector"),configFileSelector:r(e=>u(e,_e,m.CONFIG),"configFileSelector"),default:!1};var ue="AWS_USE_FIPS_ENDPOINT",Ne="use_fips_endpoint";var Ke={environmentVariableSelector:r(e=>u(e,ue,m.ENV),"environmentVariableSelector"),configFileSelector:r(e=>u(e,Ne,m.CONFIG),"configFileSelector"),default:!1};var $e="AWS_DEFAULTS_MODE",je="defaults_mode",Se={environmentVariableSelector:r(e=>e[$e],"environmentVariableSelector"),configFileSelector:r(e=>e[je],"configFileSelector"),default:"legacy"};var Xe=r(({region:e=P(w),defaultsMode:o=P(Se)}={})=>h(async()=>{let t=typeof o=="function"?await o():o;switch(t?.toLowerCase()){case"auto":return Be(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${H.join(", ")}, got ${t}`)}}),"resolveDefaultsModeConfig"),Be=r(async e=>{if(e){let o=typeof e=="function"?await e():e,t=await ze();return t?o===t?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),ze=r(async()=>process.env[W]&&(process.env[R]||process.env[v])?process.env[R]??process.env[v]:T(),"inferPhysicalRegion");export{p as a,_ as b,y as c,L as d,u as e,m as f,te as g,G as h,b as i,Pe as j,Ve as k,Me as l,We as m,P as n,He as o,Ke as p,Z as q,Q as r,w as s,Ie as t,Fe as u,Xe as v};
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js", "../../../../node_modules/.bun/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js"],
4
+ "sourcesContent": ["export const AWS_EXECUTION_ENV = \"AWS_EXECUTION_ENV\";\nexport const AWS_REGION_ENV = \"AWS_REGION\";\nexport const AWS_DEFAULT_REGION_ENV = \"AWS_DEFAULT_REGION\";\nexport const ENV_IMDS_DISABLED = \"AWS_EC2_METADATA_DISABLED\";\nexport const DEFAULTS_MODE_OPTIONS = [\"in-region\", \"cross-region\", \"mobile\", \"standard\", \"legacy\"];\nexport const IMDS_REGION_PATH = \"/latest/meta-data/placement/region\";\nexport const IMDS_TOKEN_PATH = \"/latest/api/token\";\nexport const X_AWS_EC2_METADATA_TOKEN = \"x-aws-ec2-metadata-token\";\nexport const X_AWS_EC2_METADATA_TOKEN_TTL = \"x-aws-ec2-metadata-token-ttl-seconds\";\n", "import { ENV_IMDS_DISABLED, IMDS_REGION_PATH, IMDS_TOKEN_PATH, X_AWS_EC2_METADATA_TOKEN, X_AWS_EC2_METADATA_TOKEN_TTL, } from \"../../defaults-mode/constants\";\nconst TIMEOUT_MS = 1000;\nconst NEG_CACHE_TTL_MS = 60_000;\nlet negativeCacheUntil = 0;\nexport const getInstanceMetadataRegion = async () => {\n if (process.env[ENV_IMDS_DISABLED]) {\n return undefined;\n }\n if (Date.now() < negativeCacheUntil) {\n return undefined;\n }\n try {\n const endpoint = resolveImdsEndpoint();\n const token = (await imdsRequest({\n ...endpoint,\n path: IMDS_TOKEN_PATH,\n method: \"PUT\",\n headers: {\n [X_AWS_EC2_METADATA_TOKEN_TTL]: \"21600\",\n },\n })).toString();\n const region = (await imdsRequest({\n ...endpoint,\n path: IMDS_REGION_PATH,\n method: \"GET\",\n headers: {\n [X_AWS_EC2_METADATA_TOKEN]: token,\n },\n }))\n .toString()\n .trim();\n return region || cacheNegativeAndReturnUndefined();\n }\n catch {\n return cacheNegativeAndReturnUndefined();\n }\n};\nconst cacheNegativeAndReturnUndefined = () => {\n negativeCacheUntil = Date.now() + NEG_CACHE_TTL_MS;\n return undefined;\n};\nconst resolveImdsEndpoint = () => {\n const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;\n if (envEndpoint) {\n const url = new URL(envEndpoint);\n return {\n hostname: url.hostname.replace(/^\\[(.+)]$/, \"$1\"),\n port: url.port ? Number(url.port) : undefined,\n };\n }\n if (process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE === \"IPv6\") {\n return { hostname: \"fd00:ec2::254\" };\n }\n return { hostname: \"169.254.169.254\" };\n};\nconst imdsRequest = async (options) => {\n const { request } = await import(\"node:http\");\n return new Promise((resolve, reject) => {\n const req = request({\n hostname: options.hostname,\n port: options.port,\n path: options.path,\n method: options.method,\n headers: options.headers,\n timeout: TIMEOUT_MS,\n signal: AbortSignal.timeout(TIMEOUT_MS),\n });\n req.on(\"error\", (err) => {\n reject(err);\n req.destroy();\n });\n req.on(\"timeout\", () => {\n reject(new Error(\"TimeoutError from instance metadata service\"));\n req.destroy();\n });\n req.on(\"response\", (res) => {\n const { statusCode = 400 } = res;\n if (statusCode < 200 || statusCode >= 300) {\n reject(Object.assign(new Error(\"Error response received from instance metadata service\"), { statusCode }));\n req.destroy();\n return;\n }\n const chunks = [];\n res.on(\"data\", (chunk) => chunks.push(chunk));\n res.on(\"end\", () => {\n resolve(Buffer.concat(chunks));\n req.destroy();\n });\n });\n req.end();\n });\n};\n", "import { getInstanceMetadataRegion } from \"./getInstanceMetadataRegion\";\nexport const REGION_ENV_NAME = \"AWS_REGION\";\nexport const REGION_INI_NAME = \"region\";\nexport const NODE_REGION_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => env[REGION_ENV_NAME],\n configFileSelector: (profile) => profile[REGION_INI_NAME],\n default: async () => {\n const region = await getInstanceMetadataRegion();\n if (region) {\n return region;\n }\n throw new Error(\"Region is missing\");\n },\n};\nexport const NODE_REGION_CONFIG_FILE_OPTIONS = {\n preferredFile: \"credentials\",\n};\n", "import { isValidHostLabel } from \"@smithy/core/transport\";\nconst validRegions = new Set();\nexport const checkRegion = (region, check = isValidHostLabel) => {\n if (!validRegions.has(region) && !check(region)) {\n if (region === \"*\") {\n console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of \"*\". See \"sigv4a\" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);\n }\n else {\n throw new Error(`Region not accepted: region=\"${region}\" is not a valid hostname component.`);\n }\n }\n else {\n validRegions.add(region);\n }\n};\n", "export const isFipsRegion = (region) => typeof region === \"string\" && (region.startsWith(\"fips-\") || region.endsWith(\"-fips\"));\n", "import { isFipsRegion } from \"./isFipsRegion\";\nexport const getRealRegion = (region) => isFipsRegion(region)\n ? [\"fips-aws-global\", \"aws-fips\"].includes(region)\n ? \"us-east-1\"\n : region.replace(/fips-(dkr-|prod-)?|-fips/, \"\")\n : region;\n", "import { checkRegion } from \"./checkRegion\";\nimport { getRealRegion } from \"./getRealRegion\";\nimport { isFipsRegion } from \"./isFipsRegion\";\nexport const resolveRegionConfig = (input) => {\n const { region, useFipsEndpoint } = input;\n if (!region) {\n throw new Error(\"Region is missing\");\n }\n return Object.assign(input, {\n region: async () => {\n const providedRegion = typeof region === \"function\" ? await region() : region;\n const realRegion = getRealRegion(providedRegion);\n checkRegion(realRegion);\n return realRegion;\n },\n useFipsEndpoint: async () => {\n const providedRegion = typeof region === \"string\" ? region : await region();\n if (isFipsRegion(providedRegion)) {\n return true;\n }\n return typeof useFipsEndpoint !== \"function\" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();\n },\n });\n};\n", "export class ProviderError extends Error {\n name = \"ProviderError\";\n tryNextLink;\n constructor(message, options = true) {\n let logger;\n let tryNextLink = true;\n if (typeof options === \"boolean\") {\n logger = undefined;\n tryNextLink = options;\n }\n else if (options != null && typeof options === \"object\") {\n logger = options.logger;\n tryNextLink = options.tryNextLink ?? true;\n }\n super(message);\n this.tryNextLink = tryNextLink;\n Object.setPrototypeOf(this, ProviderError.prototype);\n logger?.debug?.(`@smithy/property-provider ${tryNextLink ? \"->\" : \"(!)\"} ${message}`);\n }\n static from(error, options = true) {\n return Object.assign(new this(error.message, options), error);\n }\n}\n", "import { ProviderError } from \"./ProviderError\";\nexport class CredentialsProviderError extends ProviderError {\n name = \"CredentialsProviderError\";\n constructor(message, options = true) {\n super(message, options);\n Object.setPrototypeOf(this, CredentialsProviderError.prototype);\n }\n}\n", "import { ProviderError } from \"./ProviderError\";\nexport class TokenProviderError extends ProviderError {\n name = \"TokenProviderError\";\n constructor(message, options = true) {\n super(message, options);\n Object.setPrototypeOf(this, TokenProviderError.prototype);\n }\n}\n", "import { ProviderError } from \"./ProviderError\";\nexport const chain = (...providers) => async () => {\n if (providers.length === 0) {\n throw new ProviderError(\"No providers in chain\");\n }\n let lastProviderError;\n for (const provider of providers) {\n try {\n const credentials = await provider();\n return credentials;\n }\n catch (err) {\n lastProviderError = err;\n if (err?.tryNextLink) {\n continue;\n }\n throw err;\n }\n }\n throw lastProviderError;\n};\n", "export const fromValue = (staticValue) => () => Promise.resolve(staticValue);\n", "export const memoize = (provider, isExpired, requiresRefresh) => {\n let resolved;\n let pending;\n let hasResult;\n let isConstant = false;\n const coalesceProvider = async () => {\n if (!pending) {\n pending = provider();\n }\n try {\n resolved = await pending;\n hasResult = true;\n isConstant = false;\n }\n finally {\n pending = undefined;\n }\n return resolved;\n };\n if (isExpired === undefined) {\n return async (options) => {\n if (!hasResult || options?.forceRefresh) {\n resolved = await coalesceProvider();\n }\n return resolved;\n };\n }\n return async (options) => {\n if (!hasResult || options?.forceRefresh) {\n resolved = await coalesceProvider();\n }\n if (isConstant) {\n return resolved;\n }\n if (requiresRefresh && !requiresRefresh(resolved)) {\n isConstant = true;\n return resolved;\n }\n if (isExpired(resolved)) {\n await coalesceProvider();\n return resolved;\n }\n return resolved;\n };\n};\n", "export const booleanSelector = (obj, key, type) => {\n if (!(key in obj))\n return undefined;\n if (obj[key] === \"true\")\n return true;\n if (obj[key] === \"false\")\n return false;\n throw new Error(`Cannot load ${type} \"${key}\". Expected \"true\" or \"false\", got ${obj[key]}.`);\n};\n", "export var SelectorType;\n(function (SelectorType) {\n SelectorType[\"ENV\"] = \"env\";\n SelectorType[\"CONFIG\"] = \"shared config entry\";\n})(SelectorType || (SelectorType = {}));\n", "import { homedir } from \"node:os\";\nimport { sep } from \"node:path\";\nconst homeDirCache = {};\nconst getHomeDirCacheKey = () => {\n if (process && process.geteuid) {\n return `${process.geteuid()}`;\n }\n return \"DEFAULT\";\n};\nexport const getHomeDir = () => {\n const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;\n if (HOME)\n return HOME;\n if (USERPROFILE)\n return USERPROFILE;\n if (HOMEPATH)\n return `${HOMEDRIVE}${HOMEPATH}`;\n const homeDirCacheKey = getHomeDirCacheKey();\n if (!homeDirCache[homeDirCacheKey])\n homeDirCache[homeDirCacheKey] = homedir();\n return homeDirCache[homeDirCacheKey];\n};\n", "export const ENV_PROFILE = \"AWS_PROFILE\";\nexport const DEFAULT_PROFILE = \"default\";\nexport const getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;\n", "import { createHash } from \"node:crypto\";\nimport { join } from \"node:path\";\nimport { getHomeDir } from \"./getHomeDir\";\nexport const getSSOTokenFilepath = (id) => {\n const hasher = createHash(\"sha1\");\n const cacheName = hasher.update(id).digest(\"hex\");\n return join(getHomeDir(), \".aws\", \"sso\", \"cache\", `${cacheName}.json`);\n};\n", "import { readFile } from \"node:fs/promises\";\nimport { getSSOTokenFilepath } from \"./getSSOTokenFilepath\";\nexport const tokenIntercept = {};\nexport const getSSOTokenFromFile = async (id) => {\n if (tokenIntercept[id]) {\n return tokenIntercept[id];\n }\n const ssoTokenFilepath = getSSOTokenFilepath(id);\n const ssoTokenText = await readFile(ssoTokenFilepath, \"utf8\");\n return JSON.parse(ssoTokenText);\n};\n", "import { join } from \"node:path\";\nimport { getConfigData } from \"./getConfigData\";\nimport { getConfigFilepath } from \"./getConfigFilepath\";\nimport { getCredentialsFilepath } from \"./getCredentialsFilepath\";\nimport { getHomeDir } from \"./getHomeDir\";\nimport { parseIni } from \"./parseIni\";\nimport { readFile } from \"./readFile\";\nconst swallowError = () => ({});\nexport { CONFIG_PREFIX_SEPARATOR } from \"./constants\";\nexport const loadSharedConfigFiles = async (init = {}) => {\n const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;\n const homeDir = getHomeDir();\n const relativeHomeDirPrefix = \"~/\";\n let resolvedFilepath = filepath;\n if (filepath.startsWith(relativeHomeDirPrefix)) {\n resolvedFilepath = join(homeDir, filepath.slice(2));\n }\n let resolvedConfigFilepath = configFilepath;\n if (configFilepath.startsWith(relativeHomeDirPrefix)) {\n resolvedConfigFilepath = join(homeDir, configFilepath.slice(2));\n }\n const parsedFiles = await Promise.all([\n readFile(resolvedConfigFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .then(getConfigData)\n .catch(swallowError),\n readFile(resolvedFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .catch(swallowError),\n ]);\n return {\n configFile: parsedFiles[0],\n credentialsFile: parsedFiles[1],\n };\n};\n", "import { IniSectionType } from \"@smithy/types\";\nimport { CONFIG_PREFIX_SEPARATOR } from \"./constants\";\nexport const getConfigData = (data) => Object.entries(data)\n .filter(([key]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n if (indexOfSeparator === -1) {\n return false;\n }\n return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));\n})\n .reduce((acc, [key, value]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;\n acc[updatedKey] = value;\n return acc;\n}, {\n ...(data.default && { default: data.default }),\n});\n", "import { join } from \"node:path\";\nimport { getHomeDir } from \"./getHomeDir\";\nexport const ENV_CONFIG_PATH = \"AWS_CONFIG_FILE\";\nexport const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), \".aws\", \"config\");\n", "import { join } from \"node:path\";\nimport { getHomeDir } from \"./getHomeDir\";\nexport const ENV_CREDENTIALS_PATH = \"AWS_SHARED_CREDENTIALS_FILE\";\nexport const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), \".aws\", \"credentials\");\n", "import { IniSectionType } from \"@smithy/types\";\nimport { CONFIG_PREFIX_SEPARATOR } from \"./constants\";\nconst prefixKeyRegex = /^([\\w-]+)\\s([\"'])?([\\w-@+.%:/]+)\\2$/;\nconst profileNameBlockList = [\"__proto__\", \"profile __proto__\"];\nexport const parseIni = (iniData) => {\n const map = {};\n let currentSection;\n let currentSubSection;\n for (const iniLine of iniData.split(/\\r?\\n/)) {\n const trimmedLine = iniLine.split(/(^|\\s)[;#]/)[0].trim();\n const isSection = trimmedLine[0] === \"[\" && trimmedLine[trimmedLine.length - 1] === \"]\";\n if (isSection) {\n currentSection = undefined;\n currentSubSection = undefined;\n const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);\n const matches = prefixKeyRegex.exec(sectionName);\n if (matches) {\n const [, prefix, , name] = matches;\n if (Object.values(IniSectionType).includes(prefix)) {\n currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);\n }\n }\n else {\n currentSection = sectionName;\n }\n if (profileNameBlockList.includes(sectionName)) {\n throw new Error(`Found invalid profile name \"${sectionName}\"`);\n }\n }\n else if (currentSection) {\n const indexOfEqualsSign = trimmedLine.indexOf(\"=\");\n if (![0, -1].includes(indexOfEqualsSign)) {\n const [name, value] = [\n trimmedLine.substring(0, indexOfEqualsSign).trim(),\n trimmedLine.substring(indexOfEqualsSign + 1).trim(),\n ];\n if (value === \"\") {\n currentSubSection = name;\n }\n else {\n if (currentSubSection && iniLine.trimStart() === iniLine) {\n currentSubSection = undefined;\n }\n map[currentSection] = map[currentSection] || {};\n const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;\n map[currentSection][key] = value;\n }\n }\n }\n }\n return map;\n};\n", "import { readFile as fsReadFile } from \"node:fs/promises\";\nexport const filePromises = {};\nexport const fileIntercept = {};\nexport const readFile = (path, options) => {\n if (fileIntercept[path] !== undefined) {\n return fileIntercept[path];\n }\n if (!filePromises[path] || options?.ignoreCache) {\n filePromises[path] = fsReadFile(path, \"utf8\");\n }\n return filePromises[path];\n};\n", "import { IniSectionType } from \"@smithy/types\";\nimport { CONFIG_PREFIX_SEPARATOR } from \"./loadSharedConfigFiles\";\nexport const getSsoSessionData = (data) => Object.entries(data)\n .filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR))\n .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});\n", "import { getConfigFilepath } from \"./getConfigFilepath\";\nimport { getSsoSessionData } from \"./getSsoSessionData\";\nimport { parseIni } from \"./parseIni\";\nimport { readFile } from \"./readFile\";\nconst swallowError = () => ({});\nexport const loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath())\n .then(parseIni)\n .then(getSsoSessionData)\n .catch(swallowError);\n", "export const mergeConfigFiles = (...files) => {\n const merged = {};\n for (const file of files) {\n for (const [key, values] of Object.entries(file)) {\n if (merged[key] !== undefined) {\n Object.assign(merged[key], values);\n }\n else {\n merged[key] = values;\n }\n }\n }\n return merged;\n};\n", "import { loadSharedConfigFiles } from \"./loadSharedConfigFiles\";\nimport { mergeConfigFiles } from \"./mergeConfigFiles\";\nexport const parseKnownFiles = async (init) => {\n const parsedFiles = await loadSharedConfigFiles(init);\n return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);\n};\n", "import { tokenIntercept } from \"./getSSOTokenFromFile\";\nimport { fileIntercept } from \"./readFile\";\nexport const externalDataInterceptor = {\n getFileRecord() {\n return fileIntercept;\n },\n interceptFile(path, contents) {\n fileIntercept[path] = Promise.resolve(contents);\n },\n getTokenRecord() {\n return tokenIntercept;\n },\n interceptToken(id, contents) {\n tokenIntercept[id] = contents;\n },\n};\n", "export function getSelectorName(functionString) {\n try {\n const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));\n constants.delete(\"CONFIG\");\n constants.delete(\"CONFIG_PREFIX_SEPARATOR\");\n constants.delete(\"ENV\");\n return [...constants].join(\", \");\n }\n catch (ignored) {\n return functionString;\n }\n}\n", "import { CredentialsProviderError } from \"../property-provider/CredentialsProviderError\";\nimport { getSelectorName } from \"./getSelectorName\";\nexport const fromEnv = (envVarSelector, options) => async () => {\n try {\n const config = envVarSelector(process.env, options);\n if (config === undefined) {\n throw new Error();\n }\n return config;\n }\n catch (e) {\n throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });\n }\n};\n", "import { CredentialsProviderError } from \"../property-provider/CredentialsProviderError\";\nimport { getProfileName } from \"../shared-ini-file-loader/getProfileName\";\nimport { loadSharedConfigFiles } from \"../shared-ini-file-loader/loadSharedConfigFiles\";\nimport { getSelectorName } from \"./getSelectorName\";\nexport const fromSharedConfigFiles = (configSelector, { preferredFile = \"config\", ...init } = {}) => async () => {\n const profile = getProfileName(init);\n const { configFile, credentialsFile } = await loadSharedConfigFiles(init);\n const profileFromCredentials = credentialsFile[profile] || {};\n const profileFromConfig = configFile[profile] || {};\n const mergedProfile = preferredFile === \"config\"\n ? { ...profileFromCredentials, ...profileFromConfig }\n : { ...profileFromConfig, ...profileFromCredentials };\n try {\n const cfgFile = preferredFile === \"config\" ? configFile : credentialsFile;\n const configValue = configSelector(mergedProfile, cfgFile);\n if (configValue === undefined) {\n throw new Error();\n }\n return configValue;\n }\n catch (e) {\n throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });\n }\n};\n", "import { fromValue } from \"../property-provider/fromValue\";\nconst isFunction = (func) => typeof func === \"function\";\nexport const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromValue(defaultValue);\n", "import { chain } from \"../property-provider/chain\";\nimport { memoize } from \"../property-provider/memoize\";\nimport { fromEnv } from \"./fromEnv\";\nimport { fromSharedConfigFiles } from \"./fromSharedConfigFiles\";\nimport { fromStatic } from \"./fromStatic\";\nexport const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {\n const { signingName, logger } = configuration;\n const envOptions = { signingName, logger };\n return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));\n};\n", "import { booleanSelector } from \"../../util-config-provider/booleanSelector\";\nimport { SelectorType } from \"../../util-config-provider/types\";\nexport const ENV_USE_DUALSTACK_ENDPOINT = \"AWS_USE_DUALSTACK_ENDPOINT\";\nexport const CONFIG_USE_DUALSTACK_ENDPOINT = \"use_dualstack_endpoint\";\nexport const DEFAULT_USE_DUALSTACK_ENDPOINT = false;\nexport const NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),\n configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),\n default: false,\n};\nexport const nodeDualstackConfigSelectors = {\n environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),\n configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),\n default: undefined,\n};\n", "import { booleanSelector } from \"../../util-config-provider/booleanSelector\";\nimport { SelectorType } from \"../../util-config-provider/types\";\nexport const ENV_USE_FIPS_ENDPOINT = \"AWS_USE_FIPS_ENDPOINT\";\nexport const CONFIG_USE_FIPS_ENDPOINT = \"use_fips_endpoint\";\nexport const DEFAULT_USE_FIPS_ENDPOINT = false;\nexport const NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),\n configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),\n default: false,\n};\nexport const nodeFipsConfigSelectors = {\n environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),\n configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),\n default: undefined,\n};\n", "const AWS_DEFAULTS_MODE_ENV = \"AWS_DEFAULTS_MODE\";\nconst AWS_DEFAULTS_MODE_CONFIG = \"defaults_mode\";\nexport const NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => {\n return env[AWS_DEFAULTS_MODE_ENV];\n },\n configFileSelector: (profile) => {\n return profile[AWS_DEFAULTS_MODE_CONFIG];\n },\n default: \"legacy\",\n};\n", "import { NODE_REGION_CONFIG_OPTIONS } from \"../config-resolver/regionConfig/config\";\nimport { getInstanceMetadataRegion } from \"../config-resolver/regionConfig/getInstanceMetadataRegion\";\nimport { loadConfig } from \"../node-config-provider/configLoader\";\nimport { memoize } from \"../property-provider/memoize\";\nimport { AWS_DEFAULT_REGION_ENV, AWS_EXECUTION_ENV, AWS_REGION_ENV, DEFAULTS_MODE_OPTIONS } from \"./constants\";\nimport { NODE_DEFAULTS_MODE_CONFIG_OPTIONS } from \"./defaultsModeConfig\";\nexport const resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => memoize(async () => {\n const mode = typeof defaultsMode === \"function\" ? await defaultsMode() : defaultsMode;\n switch (mode?.toLowerCase()) {\n case \"auto\":\n return resolveNodeDefaultsModeAuto(region);\n case \"in-region\":\n case \"cross-region\":\n case \"mobile\":\n case \"standard\":\n case \"legacy\":\n return Promise.resolve(mode?.toLocaleLowerCase());\n case undefined:\n return Promise.resolve(\"legacy\");\n default:\n throw new Error(`Invalid parameter for \"defaultsMode\", expect ${DEFAULTS_MODE_OPTIONS.join(\", \")}, got ${mode}`);\n }\n});\nconst resolveNodeDefaultsModeAuto = async (clientRegion) => {\n if (clientRegion) {\n const resolvedRegion = typeof clientRegion === \"function\" ? await clientRegion() : clientRegion;\n const inferredRegion = await inferPhysicalRegion();\n if (!inferredRegion) {\n return \"standard\";\n }\n if (resolvedRegion === inferredRegion) {\n return \"in-region\";\n }\n else {\n return \"cross-region\";\n }\n }\n return \"standard\";\n};\nconst inferPhysicalRegion = async () => {\n if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {\n return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];\n }\n return getInstanceMetadataRegion();\n};\n"],
5
+ "mappings": ";sHAAO,IAAMA,EAAoB,oBACpBC,EAAiB,aACjBC,EAAyB,qBACzBC,EAAoB,4BACpBC,EAAwB,CAAC,YAAa,eAAgB,SAAU,WAAY,QAAQ,EACpFC,EAAmB,qCACnBC,EAAkB,oBAClBC,EAA2B,2BAC3BC,EAA+B,uCCP5C,IAAMC,EAAa,IACbC,GAAmB,IACrBC,EAAqB,EACZC,EAA4BC,EAAA,SAAY,CACjD,GAAI,SAAQ,IAAIC,CAAiB,GAG7B,OAAK,IAAI,EAAIH,GAGjB,GAAI,CACA,IAAMI,EAAWC,GAAoB,EAC/BC,GAAS,MAAMC,EAAY,CAC7B,GAAGH,EACH,KAAMI,EACN,OAAQ,MACR,QAAS,CACL,CAACC,CAA4B,EAAG,OACpC,CACJ,CAAC,GAAG,SAAS,EAWb,OAVgB,MAAMF,EAAY,CAC9B,GAAGH,EACH,KAAMM,EACN,OAAQ,MACR,QAAS,CACL,CAACC,CAAwB,EAAGL,CAChC,CACJ,CAAC,GACI,SAAS,EACT,KAAK,GACOM,EAAgC,CACrD,MACM,CACF,OAAOA,EAAgC,CAC3C,CACJ,EAhCyC,6BAiCnCA,EAAkCV,EAAA,IAAM,CAC1CF,EAAqB,KAAK,IAAI,EAAID,EAEtC,EAHwC,mCAIlCM,GAAsBH,EAAA,IAAM,CAC9B,IAAMW,EAAc,QAAQ,IAAI,kCAChC,GAAIA,EAAa,CACb,IAAMC,EAAM,IAAI,IAAID,CAAW,EAC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GAAK,QAAQ,IAAIC,CAAsB,EAErEC,EAA0B,EAJT",
6
+ "names": ["AWS_EXECUTION_ENV", "AWS_REGION_ENV", "AWS_DEFAULT_REGION_ENV", "ENV_IMDS_DISABLED", "DEFAULTS_MODE_OPTIONS", "IMDS_REGION_PATH", "IMDS_TOKEN_PATH", "X_AWS_EC2_METADATA_TOKEN", "X_AWS_EC2_METADATA_TOKEN_TTL", "TIMEOUT_MS", "NEG_CACHE_TTL_MS", "negativeCacheUntil", "getInstanceMetadataRegion", "__name", "ENV_IMDS_DISABLED", "endpoint", "resolveImdsEndpoint", "token", "imdsRequest", "IMDS_TOKEN_PATH", "X_AWS_EC2_METADATA_TOKEN_TTL", "IMDS_REGION_PATH", "X_AWS_EC2_METADATA_TOKEN", "cacheNegativeAndReturnUndefined", "envEndpoint", "url", "options", "request", "resolve", "reject", "req", "err", "res", "statusCode", "chunks", "chunk", "REGION_ENV_NAME", "REGION_INI_NAME", "NODE_REGION_CONFIG_OPTIONS", "__name", "env", "profile", "region", "getInstanceMetadataRegion", "NODE_REGION_CONFIG_FILE_OPTIONS", "validRegions", "checkRegion", "__name", "region", "check", "isValidHostLabel", "isFipsRegion", "__name", "region", "getRealRegion", "__name", "region", "isFipsRegion", "resolveRegionConfig", "__name", "input", "region", "useFipsEndpoint", "providedRegion", "realRegion", "getRealRegion", "checkRegion", "isFipsRegion", "ProviderError", "_ProviderError", "__name", "message", "options", "logger", "tryNextLink", "error", "CredentialsProviderError", "_CredentialsProviderError", "ProviderError", "__name", "message", "options", "TokenProviderError", "_TokenProviderError", "ProviderError", "__name", "message", "options", "chain", "__name", "providers", "ProviderError", "lastProviderError", "provider", "err", "fromValue", "__name", "staticValue", "memoize", "__name", "provider", "isExpired", "requiresRefresh", "resolved", "pending", "hasResult", "isConstant", "coalesceProvider", "options", "booleanSelector", "__name", "obj", "key", "type", "SelectorType", "homedir", "sep", "homeDirCache", "getHomeDirCacheKey", "__name", "getHomeDir", "HOME", "USERPROFILE", "HOMEPATH", "HOMEDRIVE", "sep", "homeDirCacheKey", "homedir", "ENV_PROFILE", "DEFAULT_PROFILE", "getProfileName", "__name", "init", "createHash", "join", "getSSOTokenFilepath", "__name", "id", "cacheName", "createHash", "join", "getHomeDir", "readFile", "tokenIntercept", "getSSOTokenFromFile", "__name", "id", "ssoTokenFilepath", "getSSOTokenFilepath", "ssoTokenText", "readFile", "join", "getConfigData", "__name", "data", "key", "indexOfSeparator", "IniSectionType", "acc", "value", "updatedKey", "join", "ENV_CONFIG_PATH", "getConfigFilepath", "__name", "join", "getHomeDir", "join", "ENV_CREDENTIALS_PATH", "getCredentialsFilepath", "__name", "join", "getHomeDir", "prefixKeyRegex", "profileNameBlockList", "parseIni", "__name", "iniData", "map", "currentSection", "currentSubSection", "iniLine", "trimmedLine", "sectionName", "matches", "prefix", "name", "IniSectionType", "indexOfEqualsSign", "value", "key", "fsReadFile", "filePromises", "fileIntercept", "readFile", "__name", "path", "options", "fsReadFile", "swallowError", "__name", "loadSharedConfigFiles", "init", "filepath", "getCredentialsFilepath", "configFilepath", "getConfigFilepath", "homeDir", "getHomeDir", "relativeHomeDirPrefix", "resolvedFilepath", "join", "resolvedConfigFilepath", "parsedFiles", "readFile", "parseIni", "getConfigData", "getSsoSessionData", "__name", "data", "key", "IniSectionType", "acc", "value", "swallowError", "__name", "loadSsoSessionData", "init", "readFile", "getConfigFilepath", "parseIni", "getSsoSessionData", "mergeConfigFiles", "__name", "files", "merged", "file", "key", "values", "parseKnownFiles", "__name", "init", "parsedFiles", "loadSharedConfigFiles", "mergeConfigFiles", "externalDataInterceptor", "fileIntercept", "path", "contents", "tokenIntercept", "id", "getSelectorName", "functionString", "constants", "__name", "fromEnv", "__name", "envVarSelector", "options", "config", "e", "CredentialsProviderError", "getSelectorName", "fromSharedConfigFiles", "__name", "configSelector", "preferredFile", "init", "profile", "getProfileName", "configFile", "credentialsFile", "loadSharedConfigFiles", "profileFromCredentials", "profileFromConfig", "mergedProfile", "configValue", "e", "CredentialsProviderError", "getSelectorName", "isFunction", "__name", "func", "fromStatic", "defaultValue", "fromValue", "loadConfig", "__name", "environmentVariableSelector", "configFileSelector", "defaultValue", "configuration", "signingName", "logger", "memoize", "chain", "fromEnv", "fromSharedConfigFiles", "fromStatic", "ENV_USE_DUALSTACK_ENDPOINT", "CONFIG_USE_DUALSTACK_ENDPOINT", "NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS", "__name", "env", "booleanSelector", "ENV_USE_DUALSTACK_ENDPOINT", "SelectorType", "profile", "CONFIG_USE_DUALSTACK_ENDPOINT", "ENV_USE_FIPS_ENDPOINT", "CONFIG_USE_FIPS_ENDPOINT", "NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS", "__name", "env", "booleanSelector", "ENV_USE_FIPS_ENDPOINT", "SelectorType", "profile", "CONFIG_USE_FIPS_ENDPOINT", "AWS_DEFAULTS_MODE_ENV", "AWS_DEFAULTS_MODE_CONFIG", "NODE_DEFAULTS_MODE_CONFIG_OPTIONS", "__name", "env", "profile", "resolveDefaultsModeConfig", "__name", "region", "loadConfig", "NODE_REGION_CONFIG_OPTIONS", "defaultsMode", "NODE_DEFAULTS_MODE_CONFIG_OPTIONS", "memoize", "mode", "resolveNodeDefaultsModeAuto", "DEFAULTS_MODE_OPTIONS", "clientRegion", "resolvedRegion", "inferredRegion", "inferPhysicalRegion", "AWS_EXECUTION_ENV", "AWS_REGION_ENV", "AWS_DEFAULT_REGION_ENV", "getInstanceMetadataRegion"]
7
+ }
@@ -0,0 +1,2 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import{$ as w,Aa as O,Ba as P,Ca as Q,Da as R,Ea as S,Fa as T,Ga as U,Ha as V,Ia as W,Ja as X,R as m,S as n,T as o,U as p,V as q,W as r,X as s,Y as t,Z as u,_ as v,aa as x,ka as y,la as z,m as a,ma as A,n as b,na as B,o as c,oa as C,p as d,pa as D,qa as E,ra as F,sa as G,t as j,ta as H,ua as I,v as k,va as J,wa as K,x as l,xa as L,ya as M,za as N}from"./chunk-3YRRUMLY.mjs";import{q as e,r as f,s as g,t as h,u as i}from"./chunk-ZH5DZOB5.mjs";import"./chunk-RO44VKXZ.mjs";import"./chunk-MATUPZWL.mjs";import"./chunk-5JDAL5HL.mjs";import"./chunk-NX6AKUU3.mjs";import"./chunk-CFZ5JWD3.mjs";export{y as DEFAULT_UA_APP_ID,j as EndpointError,M as NODE_APP_ID_CONFIG_OPTIONS,h as NODE_REGION_CONFIG_FILE_OPTIONS,g as NODE_REGION_CONFIG_OPTIONS,e as REGION_ENV_NAME,f as REGION_INI_NAME,K as UA_APP_ID_ENV_NAME,L as UA_APP_ID_INI_NAME,R as awsEndpointFunctions,I as createDefaultUserAgentProvider,N as createUserAgentStringParsingProvider,H as crtAvailability,J as defaultUserAgent,b as emitWarningIfUnsupportedVersion,O as fallback,W as getAwsRegionExtensionConfiguration,r as getHostHeaderPlugin,u as getLoggerPlugin,c as getLongPollPlugin,x as getRecursionDetectionPlugin,F as getUserAgentMiddlewareOptions,G as getUserAgentPlugin,D as getUserAgentPrefix,p as hostHeaderMiddleware,q as hostHeaderMiddlewareOptions,k as isIpAddress,P as isVirtualHostableS3Bucket,s as loggerMiddleware,t as loggerMiddlewareOptions,Q as parseArn,A as partition,w as recursionDetectionMiddleware,v as recursionDetectionMiddlewareOptions,X as resolveAwsRegionExtensionConfiguration,S as resolveDefaultAwsRegionalEndpointsConfig,l as resolveEndpoint,o as resolveHostHeaderConfig,i as resolveRegionConfig,z as resolveUserAgentConfig,d as setCredentialFeature,m as setFeature,B as setPartitionInfo,n as setTokenFeature,a as state,U as stsRegionDefaultResolver,V as stsRegionWarning,T as toEndpointV1,C as useDefaultPartitionInfo,E as userAgentMiddleware};
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import{b as N,p as S}from"./chunk-YIZKQ2WK.mjs";import"./chunk-IHCR62UU.mjs";import"./chunk-RO44VKXZ.mjs";import"./chunk-NX6AKUU3.mjs";import{a as _}from"./chunk-CFZ5JWD3.mjs";var C="AWS_ACCESS_KEY_ID",A="AWS_SECRET_ACCESS_KEY",p="AWS_SESSION_TOKEN",I="AWS_CREDENTIAL_EXPIRATION",a="AWS_CREDENTIAL_SCOPE",i="AWS_ACCOUNT_ID",T=_(e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[C],E=process.env[A],r=process.env[p],n=process.env[I],s=process.env[a],t=process.env[i];if(o&&E){let c={accessKeyId:o,secretAccessKey:E,...r&&{sessionToken:r},...n&&{expiration:new Date(n)},...s&&{credentialScope:s},...t&&{accountId:t}};return N(c,"CREDENTIALS_ENV_VARS","g"),c}throw new S("Unable to find environment variable credentials.",{logger:e?.logger})},"fromEnv");export{i as ENV_ACCOUNT_ID,a as ENV_CREDENTIAL_SCOPE,I as ENV_EXPIRATION,C as ENV_KEY,A as ENV_SECRET,p as ENV_SESSION,T as fromEnv};
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.73/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js"],
4
+ "sourcesContent": ["import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { CredentialsProviderError } from \"@smithy/core/config\";\nexport const ENV_KEY = \"AWS_ACCESS_KEY_ID\";\nexport const ENV_SECRET = \"AWS_SECRET_ACCESS_KEY\";\nexport const ENV_SESSION = \"AWS_SESSION_TOKEN\";\nexport const ENV_EXPIRATION = \"AWS_CREDENTIAL_EXPIRATION\";\nexport const ENV_CREDENTIAL_SCOPE = \"AWS_CREDENTIAL_SCOPE\";\nexport const ENV_ACCOUNT_ID = \"AWS_ACCOUNT_ID\";\nexport const fromEnv = (init) => async () => {\n init?.logger?.debug(\"@aws-sdk/credential-provider-env - fromEnv\");\n const accessKeyId = process.env[ENV_KEY];\n const secretAccessKey = process.env[ENV_SECRET];\n const sessionToken = process.env[ENV_SESSION];\n const expiry = process.env[ENV_EXPIRATION];\n const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];\n const accountId = process.env[ENV_ACCOUNT_ID];\n if (accessKeyId && secretAccessKey) {\n const credentials = {\n accessKeyId,\n secretAccessKey,\n ...(sessionToken && { sessionToken }),\n ...(expiry && { expiration: new Date(expiry) }),\n ...(credentialScope && { credentialScope }),\n ...(accountId && { accountId }),\n };\n setCredentialFeature(credentials, \"CREDENTIALS_ENV_VARS\", \"g\");\n return credentials;\n }\n throw new CredentialsProviderError(\"Unable to find environment variable credentials.\", { logger: init?.logger });\n};\n"],
5
+ "mappings": ";gLAEO,IAAMA,EAAU,oBACVC,EAAa,wBACbC,EAAc,oBACdC,EAAiB,4BACjBC,EAAuB,uBACvBC,EAAiB,iBACjBC,EAAUC,EAACC,GAAS,SAAY,CACzCA,GAAM,QAAQ,MAAM,4CAA4C,EAChE,IAAMC,EAAc,QAAQ,IAAIT,CAAO,EACjCU,EAAkB,QAAQ,IAAIT,CAAU,EACxCU,EAAe,QAAQ,IAAIT,CAAW,EACtCU,EAAS,QAAQ,IAAIT,CAAc,EACnCU,EAAkB,QAAQ,IAAIT,CAAoB,EAClDU,EAAY,QAAQ,IAAIT,CAAc,EAC5C,GAAII,GAAeC,EAAiB,CAChC,IAAMK,EAAc,CAChB,YAAAN,EACA,gBAAAC,EACA,GAAIC,GAAgB,CAAE,aAAAA,CAAa,EACnC,GAAIC,GAAU,CAAE,WAAY,IAAI,KAAKA,CAAM,CAAE,EAC7C,GAAIC,GAAmB,CAAE,gBAAAA,CAAgB,EACzC,GAAIC,GAAa,CAAE,UAAAA,CAAU,CACjC,EACA,OAAAE,EAAqBD,EAAa,uBAAwB,GAAG,EACtDA,CACX,CACA,MAAM,IAAIE,EAAyB,mDAAoD,CAAE,OAAQT,GAAM,MAAO,CAAC,CACnH,EArBuB",
6
+ "names": ["ENV_KEY", "ENV_SECRET", "ENV_SESSION", "ENV_EXPIRATION", "ENV_CREDENTIAL_SCOPE", "ENV_ACCOUNT_ID", "fromEnv", "__name", "init", "accessKeyId", "secretAccessKey", "sessionToken", "expiry", "credentialScope", "accountId", "credentials", "setCredentialFeature", "CredentialsProviderError"]
7
+ }
@@ -0,0 +1,2 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import{p as a}from"./chunk-3YRRUMLY.mjs";import{b as f,d as w,h as u,l as E}from"./chunk-ZH5DZOB5.mjs";import"./chunk-RO44VKXZ.mjs";import"./chunk-MATUPZWL.mjs";import"./chunk-5JDAL5HL.mjs";import"./chunk-NX6AKUU3.mjs";import{a as t}from"./chunk-CFZ5JWD3.mjs";var P=t((e,o,r)=>{let n={EcsContainer:t(async i=>{let{fromHttp:c}=await import("./dist-es-UGFAGDM2.mjs"),{fromContainerMetadata:s}=await import("./dist-es-BMGNYEV6.mjs");return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>w(c(i??{}),s(i))().then(m)},"EcsContainer"),Ec2InstanceMetadata:t(async i=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:c}=await import("./dist-es-BMGNYEV6.mjs");return async()=>c(i)().then(m)},"Ec2InstanceMetadata"),Environment:t(async i=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:c}=await import("./dist-es-LEKBJS4E.mjs");return async()=>c(i)().then(m)},"Environment")};if(e in n)return n[e];throw new f(`Unsupported credential source in profile ${o}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),m=t(e=>a(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider");var v=t((e,{profile:o="default",logger:r}={})=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&($(e,{profile:o,logger:r})||W(e,{profile:o,logger:r})),"isAssumeRoleProfile"),$=t((e,{profile:o,logger:r})=>{let n=typeof e.source_profile=="string"&&typeof e.credential_source>"u";return n&&r?.debug?.(` ${o} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`),n},"isAssumeRoleWithSourceProfile"),W=t((e,{profile:o,logger:r})=>{let n=typeof e.credential_source=="string"&&typeof e.source_profile>"u";return n&&r?.debug?.(` ${o} isCredentialSourceProfile credential_source=${e.credential_source}`),n},"isCredentialSourceProfile"),I=t(async(e,o,r,n,i={},c)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let s=o[e],{source_profile:l,region:h}=s;if(!r.roleAssumer){let{getDefaultRoleAssumer:d}=await import("./sts-EN7K54DW.mjs");r.roleAssumer=d({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:h??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(l&&l in i)throw new f(`Detected a cycle attempting to resolve credentials for profile ${u(r)}. Profiles visited: `+Object.keys(i).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${l?`source_profile=[${l}]`:`profile=[${e}]`}`);let g=l?c(l,o,r,n,{...i,[l]:!0},S(o[l]??{})):(await P(s.credential_source,e,r.logger)(r))();if(S(s))return g.then(d=>a(d,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let d={RoleArn:s.role_arn,RoleSessionName:s.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:s.external_id,DurationSeconds:parseInt(s.duration_seconds||"3600",10)},{mfa_serial:_}=s;if(_){if(!r.mfaCodeProvider)throw new f(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});d.SerialNumber=_,d.TokenCode=await r.mfaCodeProvider(_)}let D=await g;return r.roleAssumer(D,d).then(T=>a(T,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),S=t(e=>!e.role_arn&&!!e.credential_source,"isCredentialSourceWithoutRoleArn");var R=t(e=>!!(e&&e.login_session),"isLoginProfile"),A=t(async(e,o,r)=>{let{fromLoginCredentials:n}=await import("./dist-es-OY2VA72W.mjs"),i=await n({...o,profile:e})({callerClientConfig:r});return a(i,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials");var L=t(e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string","isProcessProfile"),O=t(async(e,o)=>{let{fromProcess:r}=await import("./dist-es-BQ5OLCIJ.mjs"),n=await r({...e,profile:o})();return a(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials");var b=t(async(e,o,r={},n)=>{let{fromSSO:i}=await import("./dist-es-43J27JDM.mjs");return i({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(c=>o.sso_session?a(c,"CREDENTIALS_PROFILE_SSO","r"):a(c,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),x=t(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile");var p=t(e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,"isStaticCredsProfile"),C=t(async(e,o)=>{o?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return a(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials");var k=t(e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,"isWebIdentityProfile"),F=t(async(e,o,r)=>{let{fromTokenFile:n}=await import("./dist-es-6SRW3I3T.mjs"),i=await n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:o.roleAssumerWithWebIdentity,logger:o.logger,parentClientConfig:o.parentClientConfig})({callerClientConfig:r});return a(i,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials");var y=t(async(e,o,r,n,i={},c=!1)=>{let s=o[e];if(Object.keys(i).length>0&&p(s))return C(s,r);if(c||v(s,{profile:e,logger:r.logger}))return I(e,o,r,n,i,y);if(p(s))return C(s,r);if(k(s))return F(s,r,n);if(L(s))return O(r,e);if(x(s))return await b(e,s,r,n);if(R(s))return A(e,r,n);throw new f(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData");var N=t((e={})=>async({callerClientConfig:o}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await E(e);return y(u({profile:e.profile??o?.profile}),r,e,o)},"fromIni");export{N as fromIni};
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.17/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js"],
4
+ "sourcesContent": ["import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { chain, CredentialsProviderError } from \"@smithy/core/config\";\nexport const resolveCredentialSource = (credentialSource, profileName, logger) => {\n const sourceProvidersMap = {\n EcsContainer: async (options) => {\n const { fromHttp } = await import(\"@aws-sdk/credential-provider-http\");\n const { fromContainerMetadata } = await import(\"@smithy/credential-provider-imds\");\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is EcsContainer\");\n return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);\n },\n Ec2InstanceMetadata: async (options) => {\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata\");\n const { fromInstanceMetadata } = await import(\"@smithy/credential-provider-imds\");\n return async () => fromInstanceMetadata(options)().then(setNamedProvider);\n },\n Environment: async (options) => {\n logger?.debug(\"@aws-sdk/credential-provider-ini - credential_source is Environment\");\n const { fromEnv } = await import(\"@aws-sdk/credential-provider-env\");\n return async () => fromEnv(options)().then(setNamedProvider);\n },\n };\n if (credentialSource in sourceProvidersMap) {\n return sourceProvidersMap[credentialSource];\n }\n else {\n throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +\n `expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });\n }\n};\nconst setNamedProvider = (creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_NAMED_PROVIDER\", \"p\");\n", "import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { CredentialsProviderError, getProfileName } from \"@smithy/core/config\";\nimport { resolveCredentialSource } from \"./resolveCredentialSource\";\nexport const isAssumeRoleProfile = (arg, { profile = \"default\", logger } = {}) => {\n return (Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.role_arn === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.role_session_name) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.external_id) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.mfa_serial) > -1 &&\n (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger })));\n};\nconst isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {\n const withSourceProfile = typeof arg.source_profile === \"string\" && typeof arg.credential_source === \"undefined\";\n if (withSourceProfile) {\n logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);\n }\n return withSourceProfile;\n};\nconst isCredentialSourceProfile = (arg, { profile, logger }) => {\n const withProviderProfile = typeof arg.credential_source === \"string\" && typeof arg.source_profile === \"undefined\";\n if (withProviderProfile) {\n logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);\n }\n return withProviderProfile;\n};\nexport const resolveAssumeRoleCredentials = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, resolveProfileData) => {\n options.logger?.debug(\"@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)\");\n const profileData = profiles[profileName];\n const { source_profile, region } = profileData;\n if (!options.roleAssumer) {\n const { getDefaultRoleAssumer } = await import(\"@aws-sdk/nested-clients/sts\");\n options.roleAssumer = getDefaultRoleAssumer({\n ...options.clientConfig,\n credentialProviderLogger: options.logger,\n parentClientConfig: {\n ...callerClientConfig,\n ...options?.parentClientConfig,\n region: region ?? options?.parentClientConfig?.region ?? callerClientConfig?.region,\n },\n }, options.clientPlugins);\n }\n if (source_profile && source_profile in visitedProfiles) {\n throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` +\n ` ${getProfileName(options)}. Profiles visited: ` +\n Object.keys(visitedProfiles).join(\", \"), { logger: options.logger });\n }\n options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);\n const sourceCredsProvider = source_profile\n ? resolveProfileData(source_profile, profiles, options, callerClientConfig, {\n ...visitedProfiles,\n [source_profile]: true,\n }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {}))\n : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();\n if (isCredentialSourceWithoutRoleArn(profileData)) {\n return sourceCredsProvider.then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SOURCE_PROFILE\", \"o\"));\n }\n else {\n const params = {\n RoleArn: profileData.role_arn,\n RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,\n ExternalId: profileData.external_id,\n DurationSeconds: parseInt(profileData.duration_seconds || \"3600\", 10),\n };\n const { mfa_serial } = profileData;\n if (mfa_serial) {\n if (!options.mfaCodeProvider) {\n throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });\n }\n params.SerialNumber = mfa_serial;\n params.TokenCode = await options.mfaCodeProvider(mfa_serial);\n }\n const sourceCreds = await sourceCredsProvider;\n return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SOURCE_PROFILE\", \"o\"));\n }\n};\nconst isCredentialSourceWithoutRoleArn = (section) => {\n return !section.role_arn && !!section.credential_source;\n};\n", "import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isLoginProfile = (data) => {\n return Boolean(data && data.login_session);\n};\nexport const resolveLoginCredentials = async (profileName, options, callerClientConfig) => {\n const { fromLoginCredentials } = await import(\"@aws-sdk/credential-provider-login\");\n const credentials = await fromLoginCredentials({\n ...options,\n profile: profileName,\n })({ callerClientConfig });\n return setCredentialFeature(credentials, \"CREDENTIALS_PROFILE_LOGIN\", \"AC\");\n};\n", "import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isProcessProfile = (arg) => Boolean(arg) && typeof arg === \"object\" && typeof arg.credential_process === \"string\";\nexport const resolveProcessCredentials = async (options, profile) => {\n const { fromProcess } = await import(\"@aws-sdk/credential-provider-process\");\n const credentials = await fromProcess({\n ...options,\n profile,\n })();\n return setCredentialFeature(credentials, \"CREDENTIALS_PROFILE_PROCESS\", \"v\");\n};\n", "import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {\n const { fromSSO } = await import(\"@aws-sdk/credential-provider-sso\");\n return fromSSO({\n profile,\n logger: options.logger,\n parentClientConfig: options.parentClientConfig,\n clientConfig: options.clientConfig,\n })({\n callerClientConfig,\n }).then((creds) => {\n if (profileData.sso_session) {\n return setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SSO\", \"r\");\n }\n else {\n return setCredentialFeature(creds, \"CREDENTIALS_PROFILE_SSO_LEGACY\", \"t\");\n }\n });\n};\nexport const isSsoProfile = (arg) => arg &&\n (typeof arg.sso_start_url === \"string\" ||\n typeof arg.sso_account_id === \"string\" ||\n typeof arg.sso_session === \"string\" ||\n typeof arg.sso_region === \"string\" ||\n typeof arg.sso_role_name === \"string\");\n", "import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isStaticCredsProfile = (arg) => Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.aws_access_key_id === \"string\" &&\n typeof arg.aws_secret_access_key === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.aws_session_token) > -1 &&\n [\"undefined\", \"string\"].indexOf(typeof arg.aws_account_id) > -1;\nexport const resolveStaticCredentials = async (profile, options) => {\n options?.logger?.debug(\"@aws-sdk/credential-provider-ini - resolveStaticCredentials\");\n const credentials = {\n accessKeyId: profile.aws_access_key_id,\n secretAccessKey: profile.aws_secret_access_key,\n sessionToken: profile.aws_session_token,\n ...(profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope }),\n ...(profile.aws_account_id && { accountId: profile.aws_account_id }),\n };\n return setCredentialFeature(credentials, \"CREDENTIALS_PROFILE\", \"n\");\n};\n", "import { setCredentialFeature } from \"@aws-sdk/core/client\";\nexport const isWebIdentityProfile = (arg) => Boolean(arg) &&\n typeof arg === \"object\" &&\n typeof arg.web_identity_token_file === \"string\" &&\n typeof arg.role_arn === \"string\" &&\n [\"undefined\", \"string\"].indexOf(typeof arg.role_session_name) > -1;\nexport const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {\n const { fromTokenFile } = await import(\"@aws-sdk/credential-provider-web-identity\");\n const credentials = await fromTokenFile({\n webIdentityTokenFile: profile.web_identity_token_file,\n roleArn: profile.role_arn,\n roleSessionName: profile.role_session_name,\n roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,\n logger: options.logger,\n parentClientConfig: options.parentClientConfig,\n })({\n callerClientConfig,\n });\n return setCredentialFeature(credentials, \"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN\", \"q\");\n};\n", "import { CredentialsProviderError } from \"@smithy/core/config\";\nimport { isAssumeRoleProfile, resolveAssumeRoleCredentials } from \"./resolveAssumeRoleCredentials\";\nimport { isLoginProfile, resolveLoginCredentials } from \"./resolveLoginCredentials\";\nimport { isProcessProfile, resolveProcessCredentials } from \"./resolveProcessCredentials\";\nimport { isSsoProfile, resolveSsoCredentials } from \"./resolveSsoCredentials\";\nimport { isStaticCredsProfile, resolveStaticCredentials } from \"./resolveStaticCredentials\";\nimport { isWebIdentityProfile, resolveWebIdentityCredentials } from \"./resolveWebIdentityCredentials\";\nexport const resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {\n const data = profiles[profileName];\n if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {\n return resolveStaticCredentials(data, options);\n }\n if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {\n return resolveAssumeRoleCredentials(profileName, profiles, options, callerClientConfig, visitedProfiles, resolveProfileData);\n }\n if (isStaticCredsProfile(data)) {\n return resolveStaticCredentials(data, options);\n }\n if (isWebIdentityProfile(data)) {\n return resolveWebIdentityCredentials(data, options, callerClientConfig);\n }\n if (isProcessProfile(data)) {\n return resolveProcessCredentials(options, profileName);\n }\n if (isSsoProfile(data)) {\n return await resolveSsoCredentials(profileName, data, options, callerClientConfig);\n }\n if (isLoginProfile(data)) {\n return resolveLoginCredentials(profileName, options, callerClientConfig);\n }\n throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });\n};\n", "import { getProfileName, parseKnownFiles } from \"@smithy/core/config\";\nimport { resolveProfileData } from \"./resolveProfileData\";\nexport const fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-ini - fromIni\");\n const profiles = await parseKnownFiles(init);\n return resolveProfileData(getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n }), profiles, init, callerClientConfig);\n};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AASC,EAAoBC,EAAkB,CAAC,EAAGC,EAA4B,KAAU,CACrJ,IAAMC,EAAOL,EAASD,CAAW,EACjC,GAAI,OAAO,KAAKI,CAAe,EAAE,OAAS,GAAKG,EAAqBD,CAAI,EACpE,OAAOE,EAAyBF,EAAMJ,CAAO,EAEjD,GAAIG,GAA6BI,EAAoBH,EAAM,CAAE,QAASN,EAAa,OAAQE,EAAQ,MAAO,CAAC,EACvG,OAAOQ,EAA6BV,EAAaC,EAAUC,EAASC,EAAoBC,EAAiBN,CAAkB,EAE/H,GAAIS,EAAqBD,CAAI,EACzB,OAAOE,EAAyBF,EAAMJ,CAAO,EAEjD,GAAIS,EAAqBL,CAAI,EACzB,OAAOM,EAA8BN,EAAMJ,EAASC,CAAkB,EAE1E,GAAIU,EAAiBP,CAAI,EACrB,OAAOQ,EAA0BZ,EAASF,CAAW,EAEzD,GAAIe,EAAaT,CAAI,EACjB,OAAO,MAAMU,EAAsBhB,EAAaM,EAAMJ,EAASC,CAAkB,EAErF,GAAIc,EAAeX,CAAI,EACnB,OAAOY,EAAwBlB,EAAaE,EAASC,CAAkB,EAE3E,MAAM,IAAIgB,EAAyB,iDAAiDnB,CAAW,0CAA2C,CAAE,OAAQE,EAAQ,MAAO,CAAC,CACxK,EAxBkC,sBCL3B,IAAMkB,EAAUC,EAAA,CAACC,EAAO,CAAC,IAAM,MAAO,CAAE,mBAAAC,CAAmB,EAAI,CAAC,IAAM,CACzED,EAAK,QAAQ,MAAM,4CAA4C,EAC/D,IAAME,EAAW,MAAMC,EAAgBH,CAAI,EAC3C,OAAOI,EAAmBC,EAAe,CACrC,QAASL,EAAK,SAAWC,GAAoB,OACjD,CAAC,EAAGC,EAAUF,EAAMC,CAAkB,CAC1C,EANuB",
6
+ "names": ["resolveCredentialSource", "__name", "credentialSource", "profileName", "logger", "sourceProvidersMap", "options", "fromHttp", "fromContainerMetadata", "chain", "setNamedProvider", "fromInstanceMetadata", "fromEnv", "CredentialsProviderError", "creds", "setCredentialFeature", "isAssumeRoleProfile", "__name", "arg", "profile", "logger", "isAssumeRoleWithSourceProfile", "isCredentialSourceProfile", "withSourceProfile", "withProviderProfile", "resolveAssumeRoleCredentials", "profileName", "profiles", "options", "callerClientConfig", "visitedProfiles", "resolveProfileData", "profileData", "source_profile", "region", "getDefaultRoleAssumer", "CredentialsProviderError", "getProfileName", "sourceCredsProvider", "isCredentialSourceWithoutRoleArn", "resolveCredentialSource", "creds", "setCredentialFeature", "params", "mfa_serial", "sourceCreds", "section", "isLoginProfile", "__name", "data", "resolveLoginCredentials", "profileName", "options", "callerClientConfig", "fromLoginCredentials", "credentials", "setCredentialFeature", "isProcessProfile", "__name", "arg", "resolveProcessCredentials", "options", "profile", "fromProcess", "credentials", "setCredentialFeature", "resolveSsoCredentials", "__name", "profile", "profileData", "options", "callerClientConfig", "fromSSO", "creds", "setCredentialFeature", "isSsoProfile", "arg", "isStaticCredsProfile", "__name", "arg", "resolveStaticCredentials", "profile", "options", "credentials", "setCredentialFeature", "isWebIdentityProfile", "__name", "arg", "resolveWebIdentityCredentials", "profile", "options", "callerClientConfig", "fromTokenFile", "credentials", "setCredentialFeature", "resolveProfileData", "__name", "profileName", "profiles", "options", "callerClientConfig", "visitedProfiles", "isAssumeRoleRecursiveCall", "data", "isStaticCredsProfile", "resolveStaticCredentials", "isAssumeRoleProfile", "resolveAssumeRoleCredentials", "isWebIdentityProfile", "resolveWebIdentityCredentials", "isProcessProfile", "resolveProcessCredentials", "isSsoProfile", "resolveSsoCredentials", "isLoginProfile", "resolveLoginCredentials", "CredentialsProviderError", "fromIni", "__name", "init", "callerClientConfig", "profiles", "parseKnownFiles", "resolveProfileData", "getProfileName"]
7
+ }
@@ -0,0 +1,3 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import{p as v}from"./chunk-3YRRUMLY.mjs";import{b as f,c as d,h as E,i as q,j as A,k as I,l as N}from"./chunk-ZH5DZOB5.mjs";import"./chunk-RO44VKXZ.mjs";import"./chunk-MATUPZWL.mjs";import"./chunk-5JDAL5HL.mjs";import"./chunk-NX6AKUU3.mjs";import{a as o}from"./chunk-CFZ5JWD3.mjs";var P=o(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile");var _="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var W=o(async(e,s={},t)=>{let{SSOOIDCClient:n}=await import("./sso-oidc-OWLWHDBI.mjs"),i=o(p=>s.clientConfig?.[p]??s.parentClientConfig?.[p]??t?.[p],"coalesce");return new n(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:i("logger"),userAgentAppId:i("userAgentAppId")}))},"getSsoOidcClient");var X=o(async(e,s,t={},n)=>{let{CreateTokenCommand:i}=await import("./sso-oidc-OWLWHDBI.mjs");return(await W(s,t,n)).send(new i({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken");var F=o(e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new d(`Token is expired. ${_}`,!1)},"validateTokenExpiry");var w=o((e,s,t=!1)=>{if(typeof s>"u")throw new d(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${_}`,!1)},"validateTokenKey");import{promises as Y}from"node:fs";var{writeFile:B}=Y,z=o((e,s)=>{let t=q(e),n=JSON.stringify(s,null,2);return B(t,n)},"writeSSOTokenToFile");var J=new Map,D=o((e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let t=await N(e),n=E({profile:e.profile??s?.profile}),i=t[n];if(i){if(!i.sso_session)throw new d(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new d(`Profile '${n}' could not be found in shared credentials file.`,!1);let a=i.sso_session,g=(await I(e))[a];if(!g)throw new d(`Sso session '${a}' could not be found in shared credentials file.`,!1);for(let l of["sso_start_url","sso_region"])if(!g[l])throw new d(`Sso session '${a}' is missing required property '${l}'.`,!1);let S=g.sso_start_url,O=g.sso_region,r;try{r=await A(a)}catch{throw new d(`The SSO session token associated with profile=${n} was not found or is invalid. ${_}`,!1)}w("accessToken",r.accessToken),w("expiresAt",r.expiresAt);let{accessToken:k,expiresAt:T}=r,c={token:k,expiration:new Date(T)};if(c.expiration.getTime()-Date.now()>3e5)return c;let m=J.get(a)??0;if(Date.now()-m<30*1e3)return F(c),c;w("clientId",r.clientId,!0),w("clientSecret",r.clientSecret,!0),w("refreshToken",r.refreshToken,!0);try{J.set(a,Date.now());let l=await X(r,O,e,s);w("accessToken",l.accessToken),w("expiresIn",l.expiresIn);let x=new Date(Date.now()+l.expiresIn*1e3);try{await z(a,{...r,accessToken:l.accessToken,expiresAt:x.toISOString(),refreshToken:l.refreshToken})}catch{}return{token:l.accessToken,expiration:x}}catch{return F(c),c}},"fromSso");var C=!1,$=o(async({ssoStartUrl:e,ssoSession:s,ssoAccountId:t,ssoRegion:n,ssoRoleName:i,ssoClient:a,clientConfig:p,parentClientConfig:g,callerClientConfig:S,profile:O,filepath:r,configFilepath:k,ignoreCache:T,logger:c})=>{let m,l="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let u=await D({profile:O,filepath:r,configFilepath:k,ignoreCache:T,clientConfig:p,parentClientConfig:g,logger:c})({callerClientConfig:S});m={accessToken:u.token,expiresAt:new Date(u.expiration).toISOString()}}catch(u){throw new f(u.message,{tryNextLink:C,logger:c})}else try{m=await A(e)}catch{throw new f(`The SSO session associated with this profile is invalid. ${l}`,{tryNextLink:C,logger:c})}if(new Date(m.expiresAt).getTime()-Date.now()<=0)throw new f(`The SSO session associated with this profile has expired. ${l}`,{tryNextLink:C,logger:c});let{accessToken:x}=m,{SSOClient:h,GetRoleCredentialsCommand:y}=await import("./loadSso-AITTIS6M.mjs"),V=a||new h(Object.assign({},p??{},{logger:p?.logger??S?.logger??g?.logger,region:p?.region??n,userAgentAppId:p?.userAgentAppId??S?.userAgentAppId??g?.userAgentAppId})),M;try{M=await V.send(new y({accountId:t,roleName:i,accessToken:x}))}catch(u){throw new f(u,{tryNextLink:C,logger:c})}let{roleCredentials:{accessKeyId:b,secretAccessKey:G,sessionToken:K,expiration:H,credentialScope:U,accountId:j}={}}=M;if(!b||!G||!K||!H)throw new f("SSO returns an invalid temporary credential.",{tryNextLink:C,logger:c});let R={accessKeyId:b,secretAccessKey:G,sessionToken:K,expiration:new Date(H),...U&&{credentialScope:U},...j&&{accountId:j}};return s?v(R,"CREDENTIALS_SSO","s"):v(R,"CREDENTIALS_SSO_LEGACY","u"),R},"resolveSSOCredentials");var L=o((e,s)=>{let{sso_start_url:t,sso_account_id:n,sso_region:i,sso_role_name:a}=e;if(!t||!n||!i||!a)throw new f(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
3
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return e},"validateSsoProfile");var Z=o((e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:i,ssoRoleName:a,ssoSession:p}=e,{ssoClient:g}=e,S=E({profile:e.profile??s?.profile});if(!t&&!n&&!i&&!a&&!p){let r=(await N(e))[S];if(!r)throw new f(`Profile ${S} was not found.`,{logger:e.logger});if(!P(r))throw new f(`Profile ${S} is not configured with SSO credentials.`,{logger:e.logger});if(r?.sso_session){let h=(await I(e))[r.sso_session],y=` configurations in profile ${S} and sso-session ${r.sso_session}`;if(i&&i!==h.sso_region)throw new f("Conflicting SSO region"+y,{tryNextLink:!1,logger:e.logger});if(t&&t!==h.sso_start_url)throw new f("Conflicting SSO start_url"+y,{tryNextLink:!1,logger:e.logger});r.sso_region=h.sso_region,r.sso_start_url=h.sso_start_url}let{sso_start_url:k,sso_account_id:T,sso_region:c,sso_role_name:m,sso_session:l}=L(r,e.logger);return $({ssoStartUrl:k,ssoSession:l,ssoAccountId:T,ssoRegion:c,ssoRoleName:m,ssoClient:g,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:S,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else{if(!t||!n||!i||!a)throw new f('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});return $({ssoStartUrl:t,ssoSession:p,ssoAccountId:n,ssoRegion:i,ssoRoleName:a,ssoClient:g,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:S,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}},"fromSSO");export{Z as fromSSO,P as isSsoProfile,L as validateSsoProfile};
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.16/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js", "../../../../node_modules/.bun/@aws-sdk+token-providers@3.1138.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js", "../../../../node_modules/.bun/@aws-sdk+token-providers@3.1138.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js", "../../../../node_modules/.bun/@aws-sdk+token-providers@3.1138.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js", "../../../../node_modules/.bun/@aws-sdk+token-providers@3.1138.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js", "../../../../node_modules/.bun/@aws-sdk+token-providers@3.1138.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js", "../../../../node_modules/.bun/@aws-sdk+token-providers@3.1138.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js", "../../../../node_modules/.bun/@aws-sdk+token-providers@3.1138.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.16/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.16/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.16/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js"],
4
+ "sourcesContent": ["export const isSsoProfile = (arg) => arg &&\n (typeof arg.sso_start_url === \"string\" ||\n typeof arg.sso_account_id === \"string\" ||\n typeof arg.sso_session === \"string\" ||\n typeof arg.sso_region === \"string\" ||\n typeof arg.sso_role_name === \"string\");\n", "export const EXPIRE_WINDOW_MS = 5 * 60 * 1000;\nexport const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;\n", "export const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {\n const { SSOOIDCClient } = await import(\"@aws-sdk/nested-clients/sso-oidc\");\n const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];\n const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {\n region: ssoRegion ?? init.clientConfig?.region,\n logger: coalesce(\"logger\"),\n userAgentAppId: coalesce(\"userAgentAppId\"),\n }));\n return ssoOidcClient;\n};\n", "import { getSsoOidcClient } from \"./getSsoOidcClient\";\nexport const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {\n const { CreateTokenCommand } = await import(\"@aws-sdk/nested-clients/sso-oidc\");\n const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);\n return ssoOidcClient.send(new CreateTokenCommand({\n clientId: ssoToken.clientId,\n clientSecret: ssoToken.clientSecret,\n refreshToken: ssoToken.refreshToken,\n grantType: \"refresh_token\",\n }));\n};\n", "import { TokenProviderError } from \"@smithy/core/config\";\nimport { REFRESH_MESSAGE } from \"./constants\";\nexport const validateTokenExpiry = (token) => {\n if (token.expiration && token.expiration.getTime() < Date.now()) {\n throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);\n }\n};\n", "import { TokenProviderError } from \"@smithy/core/config\";\nimport { REFRESH_MESSAGE } from \"./constants\";\nexport const validateTokenKey = (key, value, forRefresh = false) => {\n if (typeof value === \"undefined\") {\n throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? \". Cannot refresh\" : \"\"}. ${REFRESH_MESSAGE}`, false);\n }\n};\n", "import { getSSOTokenFilepath } from \"@smithy/core/config\";\nimport { promises as fsPromises } from \"node:fs\";\nconst { writeFile } = fsPromises;\nexport const writeSSOTokenToFile = (id, ssoToken) => {\n const tokenFilepath = getSSOTokenFilepath(id);\n const tokenString = JSON.stringify(ssoToken, null, 2);\n return writeFile(tokenFilepath, tokenString);\n};\n", "import { getProfileName, getSSOTokenFromFile, loadSsoSessionData, parseKnownFiles, TokenProviderError, } from \"@smithy/core/config\";\nimport { EXPIRE_WINDOW_MS, REFRESH_MESSAGE } from \"./constants\";\nimport { getNewSsoOidcToken } from \"./getNewSsoOidcToken\";\nimport { validateTokenExpiry } from \"./validateTokenExpiry\";\nimport { validateTokenKey } from \"./validateTokenKey\";\nimport { writeSSOTokenToFile } from \"./writeSSOTokenToFile\";\nconst lastRefreshAttemptTimes = new Map();\nexport const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/token-providers - fromSso\");\n const profiles = await parseKnownFiles(init);\n const profileName = getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n });\n const profile = profiles[profileName];\n if (!profile) {\n throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);\n }\n else if (!profile[\"sso_session\"]) {\n throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);\n }\n const ssoSessionName = profile[\"sso_session\"];\n const ssoSessions = await loadSsoSessionData(init);\n const ssoSession = ssoSessions[ssoSessionName];\n if (!ssoSession) {\n throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);\n }\n for (const ssoSessionRequiredKey of [\"sso_start_url\", \"sso_region\"]) {\n if (!ssoSession[ssoSessionRequiredKey]) {\n throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);\n }\n }\n const ssoStartUrl = ssoSession[\"sso_start_url\"];\n const ssoRegion = ssoSession[\"sso_region\"];\n let ssoToken;\n try {\n ssoToken = await getSSOTokenFromFile(ssoSessionName);\n }\n catch (e) {\n throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);\n }\n validateTokenKey(\"accessToken\", ssoToken.accessToken);\n validateTokenKey(\"expiresAt\", ssoToken.expiresAt);\n const { accessToken, expiresAt } = ssoToken;\n const existingToken = {\n token: accessToken,\n expiration: new Date(expiresAt),\n };\n if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {\n return existingToken;\n }\n const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;\n if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {\n validateTokenExpiry(existingToken);\n return existingToken;\n }\n validateTokenKey(\"clientId\", ssoToken.clientId, true);\n validateTokenKey(\"clientSecret\", ssoToken.clientSecret, true);\n validateTokenKey(\"refreshToken\", ssoToken.refreshToken, true);\n try {\n lastRefreshAttemptTimes.set(ssoSessionName, Date.now());\n const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);\n validateTokenKey(\"accessToken\", newSsoOidcToken.accessToken);\n validateTokenKey(\"expiresIn\", newSsoOidcToken.expiresIn);\n const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);\n try {\n await writeSSOTokenToFile(ssoSessionName, {\n ...ssoToken,\n accessToken: newSsoOidcToken.accessToken,\n expiresAt: newTokenExpiration.toISOString(),\n refreshToken: newSsoOidcToken.refreshToken,\n });\n }\n catch (error) {\n }\n return {\n token: newSsoOidcToken.accessToken,\n expiration: newTokenExpiration,\n };\n }\n catch (error) {\n validateTokenExpiry(existingToken);\n return existingToken;\n }\n};\n", "import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { fromSso as getSsoTokenProvider } from \"@aws-sdk/token-providers\";\nimport { CredentialsProviderError, getSSOTokenFromFile } from \"@smithy/core/config\";\nconst SHOULD_FAIL_CREDENTIAL_CHAIN = false;\nexport const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger, }) => {\n let token;\n const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;\n if (ssoSession) {\n try {\n const _token = await getSsoTokenProvider({\n profile,\n filepath,\n configFilepath,\n ignoreCache,\n clientConfig,\n parentClientConfig,\n logger,\n })({ callerClientConfig });\n token = {\n accessToken: _token.token,\n expiresAt: new Date(_token.expiration).toISOString(),\n };\n }\n catch (e) {\n throw new CredentialsProviderError(e.message, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n }\n else {\n try {\n token = await getSSOTokenFromFile(ssoStartUrl);\n }\n catch (e) {\n throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n }\n if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {\n throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const { accessToken } = token;\n const { SSOClient, GetRoleCredentialsCommand } = await import(\"./loadSso.js\");\n const sso = ssoClient ||\n new SSOClient(Object.assign({}, clientConfig ?? {}, {\n logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,\n region: clientConfig?.region ?? ssoRegion,\n userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId,\n }));\n let ssoResp;\n try {\n ssoResp = await sso.send(new GetRoleCredentialsCommand({\n accountId: ssoAccountId,\n roleName: ssoRoleName,\n accessToken,\n }));\n }\n catch (e) {\n throw new CredentialsProviderError(e, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp;\n if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {\n throw new CredentialsProviderError(\"SSO returns an invalid temporary credential.\", {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const credentials = {\n accessKeyId,\n secretAccessKey,\n sessionToken,\n expiration: new Date(expiration),\n ...(credentialScope && { credentialScope }),\n ...(accountId && { accountId }),\n };\n if (ssoSession) {\n setCredentialFeature(credentials, \"CREDENTIALS_SSO\", \"s\");\n }\n else {\n setCredentialFeature(credentials, \"CREDENTIALS_SSO_LEGACY\", \"u\");\n }\n return credentials;\n};\n", "import { CredentialsProviderError } from \"@smithy/core/config\";\nexport const validateSsoProfile = (profile, logger) => {\n const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;\n if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {\n throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters \"sso_account_id\", ` +\n `\"sso_region\", \"sso_role_name\", \"sso_start_url\". Got ${Object.keys(profile).join(\", \")}\\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });\n }\n return profile;\n};\n", "import { CredentialsProviderError, getProfileName, loadSsoSessionData, parseKnownFiles } from \"@smithy/core/config\";\nimport { isSsoProfile } from \"./isSsoProfile\";\nimport { resolveSSOCredentials } from \"./resolveSSOCredentials\";\nimport { validateSsoProfile } from \"./validateSsoProfile\";\nexport const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-sso - fromSSO\");\n const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;\n const { ssoClient } = init;\n const profileName = getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n });\n if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {\n const profiles = await parseKnownFiles(init);\n const profile = profiles[profileName];\n if (!profile) {\n throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });\n }\n if (!isSsoProfile(profile)) {\n throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {\n logger: init.logger,\n });\n }\n if (profile?.sso_session) {\n const ssoSessions = await loadSsoSessionData(init);\n const session = ssoSessions[profile.sso_session];\n const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;\n if (ssoRegion && ssoRegion !== session.sso_region) {\n throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {\n tryNextLink: false,\n logger: init.logger,\n });\n }\n if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {\n throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {\n tryNextLink: false,\n logger: init.logger,\n });\n }\n profile.sso_region = session.sso_region;\n profile.sso_start_url = session.sso_start_url;\n }\n const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init.logger);\n return resolveSSOCredentials({\n ssoStartUrl: sso_start_url,\n ssoSession: sso_session,\n ssoAccountId: sso_account_id,\n ssoRegion: sso_region,\n ssoRoleName: sso_role_name,\n ssoClient: ssoClient,\n clientConfig: init.clientConfig,\n parentClientConfig: init.parentClientConfig,\n callerClientConfig: init.callerClientConfig,\n profile: profileName,\n filepath: init.filepath,\n configFilepath: init.configFilepath,\n ignoreCache: init.ignoreCache,\n logger: init.logger,\n });\n }\n else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {\n throw new CredentialsProviderError(\"Incomplete configuration. The fromSSO() argument hash must include \" +\n '\"ssoStartUrl\", \"ssoAccountId\", \"ssoRegion\", \"ssoRoleName\"', { tryNextLink: false, logger: init.logger });\n }\n else {\n return resolveSSOCredentials({\n ssoStartUrl,\n ssoSession,\n ssoAccountId,\n ssoRegion,\n ssoRoleName,\n ssoClient,\n clientConfig: init.clientConfig,\n parentClientConfig: init.parentClientConfig,\n callerClientConfig: init.callerClientConfig,\n profile: profileName,\n filepath: init.filepath,\n configFilepath: init.configFilepath,\n ignoreCache: init.ignoreCache,\n logger: init.logger,\n });\n }\n};\n"],
5
+ "mappings": ";yRAAO,IAAMA,EAAeC,EAACC,GAAQA,IAChC,OAAOA,EAAI,eAAkB,UAC1B,OAAOA,EAAI,gBAAmB,UAC9B,OAAOA,EAAI,aAAgB,UAC3B,OAAOA,EAAI,YAAe,UAC1B,OAAOA,EAAI,eAAkB,UALT,gBCCrB,IAAMC,EAAkB,kFCDxB,IAAMC,EAAmBC,EAAA,MAAOC,EAAWC,EAAO,CAAC,EAAGC,IAAuB,CAChF,GAAM,CAAE,cAAAC,CAAc,EAAI,KAAM,QAAO,yBAAkC,EACnEC,EAAWL,EAACM,GAASJ,EAAK,eAAeI,CAAI,GAAKJ,EAAK,qBAAqBI,CAAI,GAAKH,IAAqBG,CAAI,EAAnG,YAMjB,OALsB,IAAIF,EAAc,OAAO,OAAO,CAAC,EAAGF,EAAK,cAAgB,CAAC,EAAG,CAC/E,OAAQD,GAAaC,EAAK,cAAc,OACxC,OAAQG,EAAS,QAAQ,EACzB,eAAgBA,EAAS,gBAAgB,CAC7C,CAAC,CAAC,CAEN,EATgC,oBCCzB,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I,EAAa,CACvE,YAAa,GACb,OAAQhB,EAAK,MACjB,CAAC,EAEL,GAAIE,GAAeA,IAAgBY,EAAQ,cACvC,MAAM,IAAIF,EAAyB,4BAA8BI,EAAa,CAC1E,YAAa,GACb,OAAQhB,EAAK,MACjB,CAAC,EAELU,EAAQ,WAAaI,EAAQ,WAC7BJ,EAAQ,cAAgBI,EAAQ,aACpC,CACA,GAAM,CAAE,cAAAG,EAAe,eAAAC,EAAgB,WAAAC,EAAY,cAAAC,EAAe,YAAAC,CAAY,EAAIC,EAAmBZ,EAASV,EAAK,MAAM,EACzH,OAAOuB,EAAsB,CACzB,YAAaN,EACb,WAAYI,EACZ,aAAcH,EACd,UAAWC,EACX,YAAaC,EACb,UAAWb,EACX,aAAcP,EAAK,aACnB,mBAAoBA,EAAK,mBACzB,mBAAoBA,EAAK,mBACzB,QAASQ,EACT,SAAUR,EAAK,SACf,eAAgBA,EAAK,eACrB,YAAaA,EAAK,YAClB,OAAQA,EAAK,MACjB,CAAC,CACL,KACK,IAAI,CAACE,GAAe,CAACC,GAAgB,CAACC,GAAa,CAACC,EACrD,MAAM,IAAIO,EAAyB,+HAC8B,CAAE,YAAa,GAAO,OAAQZ,EAAK,MAAO,CAAC,EAG5G,OAAOuB,EAAsB,CACzB,YAAArB,EACA,WAAAI,EACA,aAAAH,EACA,UAAAC,EACA,YAAAC,EACA,UAAAE,EACA,aAAcP,EAAK,aACnB,mBAAoBA,EAAK,mBACzB,mBAAoBA,EAAK,mBACzB,QAASQ,EACT,SAAUR,EAAK,SACf,eAAgBA,EAAK,eACrB,YAAaA,EAAK,YAClB,OAAQA,EAAK,MACjB,CAAC,EAET,EA7EuB",
6
+ "names": ["isSsoProfile", "__name", "arg", "REFRESH_MESSAGE", "getSsoOidcClient", "__name", "ssoRegion", "init", "callerClientConfig", "SSOOIDCClient", "coalesce", "prop", "getNewSsoOidcToken", "__name", "ssoToken", "ssoRegion", "init", "callerClientConfig", "CreateTokenCommand", "getSsoOidcClient", "validateTokenExpiry", "__name", "token", "TokenProviderError", "REFRESH_MESSAGE", "validateTokenKey", "__name", "key", "value", "forRefresh", "TokenProviderError", "REFRESH_MESSAGE", "fsPromises", "writeFile", "fsPromises", "writeSSOTokenToFile", "__name", "id", "ssoToken", "tokenFilepath", "getSSOTokenFilepath", "tokenString", "lastRefreshAttemptTimes", "fromSso", "__name", "init", "callerClientConfig", "profiles", "parseKnownFiles", "profileName", "getProfileName", "profile", "TokenProviderError", "ssoSessionName", "ssoSession", "loadSsoSessionData", "ssoSessionRequiredKey", "ssoStartUrl", "ssoRegion", "ssoToken", "getSSOTokenFromFile", "REFRESH_MESSAGE", "validateTokenKey", "accessToken", "expiresAt", "existingToken", "lastRefreshAttemptTime", "validateTokenExpiry", "newSsoOidcToken", "getNewSsoOidcToken", "newTokenExpiration", "writeSSOTokenToFile", "SHOULD_FAIL_CREDENTIAL_CHAIN", "resolveSSOCredentials", "__name", "ssoStartUrl", "ssoSession", "ssoAccountId", "ssoRegion", "ssoRoleName", "ssoClient", "clientConfig", "parentClientConfig", "callerClientConfig", "profile", "filepath", "configFilepath", "ignoreCache", "logger", "token", "refreshMessage", "_token", "fromSso", "e", "CredentialsProviderError", "getSSOTokenFromFile", "accessToken", "SSOClient", "GetRoleCredentialsCommand", "sso", "ssoResp", "accessKeyId", "secretAccessKey", "sessionToken", "expiration", "credentialScope", "accountId", "credentials", "setCredentialFeature", "validateSsoProfile", "__name", "profile", "logger", "sso_start_url", "sso_account_id", "sso_region", "sso_role_name", "CredentialsProviderError", "fromSSO", "__name", "init", "callerClientConfig", "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName", "ssoSession", "ssoClient", "profileName", "getProfileName", "profile", "parseKnownFiles", "CredentialsProviderError", "isSsoProfile", "session", "loadSsoSessionData", "conflictMsg", "sso_start_url", "sso_account_id", "sso_region", "sso_role_name", "sso_session", "validateSsoProfile", "resolveSSOCredentials"]
7
+ }
@@ -0,0 +1,2 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import{p as d}from"./chunk-3YRRUMLY.mjs";import{b as a,m}from"./chunk-ZH5DZOB5.mjs";import"./chunk-RO44VKXZ.mjs";import"./chunk-MATUPZWL.mjs";import"./chunk-5JDAL5HL.mjs";import"./chunk-NX6AKUU3.mjs";import{a as t}from"./chunk-CFZ5JWD3.mjs";import{readFileSync as S}from"node:fs";var c=t(e=>async s=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:i,providerId:n,policyArns:g,policy:E,durationSeconds:p}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:_}=await import("./sts-EN7K54DW.mjs");l=_({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...s?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:i,ProviderId:n,PolicyArns:g,Policy:E,DurationSeconds:p})},"fromWebToken");var f="AWS_WEB_IDENTITY_TOKEN_FILE",T="AWS_ROLE_ARN",N="AWS_ROLE_SESSION_NAME",I=t((e={})=>async s=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[f],r=e?.roleArn??process.env[T],i=e?.roleSessionName??process.env[N];if(!o||!r)throw new a("Web identity configuration not specified",{logger:e.logger});let n=await c({...e,webIdentityToken:m?.getTokenRecord?.()[o]??S(o,{encoding:"ascii"}),roleArn:r,roleSessionName:i})(s);return o===process.env[f]&&d(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),n},"fromTokenFile");export{I as fromTokenFile,c as fromWebToken};
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.78/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js", "../../../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.78/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js"],
4
+ "sourcesContent": ["import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { CredentialsProviderError, externalDataInterceptor } from \"@smithy/core/config\";\nimport { readFileSync } from \"node:fs\";\nimport { fromWebToken } from \"./fromWebToken\";\nconst ENV_TOKEN_FILE = \"AWS_WEB_IDENTITY_TOKEN_FILE\";\nconst ENV_ROLE_ARN = \"AWS_ROLE_ARN\";\nconst ENV_ROLE_SESSION_NAME = \"AWS_ROLE_SESSION_NAME\";\nexport const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-web-identity - fromTokenFile\");\n const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];\n const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];\n const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];\n if (!webIdentityTokenFile || !roleArn) {\n throw new CredentialsProviderError(\"Web identity configuration not specified\", {\n logger: init.logger,\n });\n }\n const credentials = await fromWebToken({\n ...init,\n webIdentityToken: externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??\n readFileSync(webIdentityTokenFile, { encoding: \"ascii\" }),\n roleArn,\n roleSessionName,\n })(awsIdentityProperties);\n if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {\n setCredentialFeature(credentials, \"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN\", \"h\");\n }\n return credentials;\n};\n", "export const fromWebToken = (init) => async (awsIdentityProperties) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-web-identity - fromWebToken\");\n const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;\n let { roleAssumerWithWebIdentity } = init;\n if (!roleAssumerWithWebIdentity) {\n const { getDefaultRoleAssumerWithWebIdentity } = await import(\"@aws-sdk/nested-clients/sts\");\n roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({\n ...init.clientConfig,\n credentialProviderLogger: init.logger,\n parentClientConfig: {\n ...awsIdentityProperties?.callerClientConfig,\n ...init.parentClientConfig,\n },\n }, init.clientPlugins);\n }\n return roleAssumerWithWebIdentity({\n RoleArn: roleArn,\n RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,\n WebIdentityToken: webIdentityToken,\n ProviderId: providerId,\n PolicyArns: policyArns,\n Policy: policy,\n DurationSeconds: durationSeconds,\n });\n};\n"],
5
+ "mappings": ";iPAEA,OAAS,gBAAAA,MAAoB,UCFtB,IAAMC,EAAeC,EAACC,GAAS,MAAOC,GAA0B,CACnED,EAAK,QAAQ,MAAM,0DAA0D,EAC7E,GAAM,CAAE,QAAAE,EAAS,gBAAAC,EAAiB,iBAAAC,EAAkB,WAAAC,EAAY,WAAAC,EAAY,OAAAC,EAAQ,gBAAAC,CAAgB,EAAIR,EACpG,CAAE,2BAAAS,CAA2B,EAAIT,EACrC,GAAI,CAACS,EAA4B,CAC7B,GAAM,CAAE,qCAAAC,CAAqC,EAAI,KAAM,QAAO,oBAA6B,EAC3FD,EAA6BC,EAAqC,CAC9D,GAAGV,EAAK,aACR,yBAA0BA,EAAK,OAC/B,mBAAoB,CAChB,GAAGC,GAAuB,mBAC1B,GAAGD,EAAK,kBACZ,CACJ,EAAGA,EAAK,aAAa,CACzB,CACA,OAAOS,EAA2B,CAC9B,QAASP,EACT,gBAAiBC,GAAmB,sBAAsB,KAAK,IAAI,CAAC,GACpE,iBAAkBC,EAClB,WAAYC,EACZ,WAAYC,EACZ,OAAQC,EACR,gBAAiBC,CACrB,CAAC,CACL,EAxB4B,gBDI5B,IAAMG,EAAiB,8BACjBC,EAAe,eACfC,EAAwB,wBACjBC,EAAgBC,EAAA,CAACC,EAAO,CAAC,IAAM,MAAOC,GAA0B,CACzED,EAAK,QAAQ,MAAM,2DAA2D,EAC9E,IAAME,EAAuBF,GAAM,sBAAwB,QAAQ,IAAIL,CAAc,EAC/EQ,EAAUH,GAAM,SAAW,QAAQ,IAAIJ,CAAY,EACnDQ,EAAkBJ,GAAM,iBAAmB,QAAQ,IAAIH,CAAqB,EAClF,GAAI,CAACK,GAAwB,CAACC,EAC1B,MAAM,IAAIE,EAAyB,2CAA4C,CAC3E,OAAQL,EAAK,MACjB,CAAC,EAEL,IAAMM,EAAc,MAAMC,EAAa,CACnC,GAAGP,EACH,iBAAkBQ,GAAyB,iBAAiB,EAAEN,CAAoB,GAC9EO,EAAaP,EAAsB,CAAE,SAAU,OAAQ,CAAC,EAC5D,QAAAC,EACA,gBAAAC,CACJ,CAAC,EAAEH,CAAqB,EACxB,OAAIC,IAAyB,QAAQ,IAAIP,CAAc,GACnDe,EAAqBJ,EAAa,wCAAyC,GAAG,EAE3EA,CACX,EArB6B",
6
+ "names": ["readFileSync", "fromWebToken", "__name", "init", "awsIdentityProperties", "roleArn", "roleSessionName", "webIdentityToken", "providerId", "policyArns", "policy", "durationSeconds", "roleAssumerWithWebIdentity", "getDefaultRoleAssumerWithWebIdentity", "ENV_TOKEN_FILE", "ENV_ROLE_ARN", "ENV_ROLE_SESSION_NAME", "fromTokenFile", "__name", "init", "awsIdentityProperties", "webIdentityTokenFile", "roleArn", "roleSessionName", "CredentialsProviderError", "credentials", "fromWebToken", "externalDataInterceptor", "readFileSync", "setCredentialFeature"]
7
+ }
@@ -0,0 +1,3 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import"./chunk-3GD7PA4I.mjs";import{e as $}from"./chunk-VG37NXBO.mjs";import{d as O}from"./chunk-NX6AKUU3.mjs";import{a as r}from"./chunk-CFZ5JWD3.mjs";var p=class e extends Error{static{r(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(t,o=!0){let n,i=!0;typeof o=="boolean"?(n=void 0,i=o):o!=null&&typeof o=="object"&&(n=o.logger,i=o.tryNextLink??!0),super(t),this.tryNextLink=i,Object.setPrototypeOf(this,e.prototype),n?.debug?.(`@smithy/property-provider ${i?"->":"(!)"} ${t}`)}static from(t,o=!0){return Object.assign(new this(t.message,o),t)}};var l=class e extends p{static{r(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(t,o=!0){super(t,o),Object.setPrototypeOf(this,e.prototype)}};var H=r((...e)=>async()=>{if(e.length===0)throw new p("No providers in chain");let t;for(let o of e)try{return await o()}catch(n){if(t=n,n?.tryNextLink)continue;throw n}throw t},"chain");var K=r(e=>()=>Promise.resolve(e),"fromValue");var W=r((e,t,o)=>{let n,i,s,f=!1,a=r(async()=>{i||(i=e());try{n=await i,s=!0,f=!1}finally{i=void 0}return n},"coalesceProvider");return t===void 0?async c=>((!s||c?.forceRefresh)&&(n=await a()),n):async c=>((!s||c?.forceRefresh)&&(n=await a()),f?n:o&&!o(n)?(f=!0,n):(t(n)&&await a(),n))},"memoize");import{homedir as le}from"node:os";import{sep as me}from"node:path";var R={},pe=r(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),N=r(()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:n=`C:${me}`}=process.env;if(e)return e;if(t)return t;if(o)return`${n}${o}`;let i=pe();return R[i]||(R[i]=le()),R[i]},"getHomeDir");var de="AWS_PROFILE",Ee="default",j=r(e=>e.profile||process.env[de]||Ee,"getProfileName");import{join as Y}from"node:path";var B=r(e=>Object.entries(e).filter(([t])=>{let o=t.indexOf(".");return o===-1?!1:Object.values(O).includes(t.substring(0,o))}).reduce((t,[o,n])=>{let i=o.indexOf("."),s=o.substring(0,i)===O.PROFILE?o.substring(i+1):o;return t[s]=n,t},{...e.default&&{default:e.default}}),"getConfigData");import{join as _e}from"node:path";var Ie="AWS_CONFIG_FILE",q=r(()=>process.env[Ie]||_e(N(),".aws","config"),"getConfigFilepath");import{join as ue}from"node:path";var ge="AWS_SHARED_CREDENTIALS_FILE",X=r(()=>process.env[ge]||ue(N(),".aws","credentials"),"getCredentialsFilepath");var Se=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,Ne=["__proto__","profile __proto__"],L=r(e=>{let t={},o,n;for(let i of e.split(/\r?\n/)){let s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){o=void 0,n=void 0;let a=s.substring(1,s.length-1),c=Se.exec(a);if(c){let[,m,,_]=c;Object.values(O).includes(m)&&(o=[m,_].join("."))}else o=a;if(Ne.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(o){let a=s.indexOf("=");if(![0,-1].includes(a)){let[c,m]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(m==="")n=c;else{n&&i.trimStart()===i&&(n=void 0),t[o]=t[o]||{};let _=n?[n,c].join("."):c;t[o][_]=m}}}}return t},"parseIni");import{readFile as Te}from"node:fs/promises";var M={},z={},b=r((e,t)=>z[e]!==void 0?z[e]:((!M[e]||t?.ignoreCache)&&(M[e]=Te(e,"utf8")),M[e]),"readFile");var J=r(()=>({}),"swallowError"),Z=r(async(e={})=>{let{filepath:t=X(),configFilepath:o=q()}=e,n=N(),i="~/",s=t;t.startsWith(i)&&(s=Y(n,t.slice(2)));let f=o;o.startsWith(i)&&(f=Y(n,o.slice(2)));let a=await Promise.all([b(f,{ignoreCache:e.ignoreCache}).then(L).then(B).catch(J),b(s,{ignoreCache:e.ignoreCache}).then(L).catch(J)]);return{configFile:a[0],credentialsFile:a[1]}},"loadSharedConfigFiles");function F(e){try{let t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return t.delete("CONFIG"),t.delete("CONFIG_PREFIX_SEPARATOR"),t.delete("ENV"),[...t].join(", ")}catch{return e}}r(F,"getSelectorName");var Q=r((e,t)=>async()=>{try{let o=e(process.env,t);if(o===void 0)throw new Error;return o}catch(o){throw new l(o.message||`Not found in ENV: ${F(e.toString())}`,{logger:t?.logger})}},"fromEnv");var ee=r((e,{preferredFile:t="config",...o}={})=>async()=>{let n=j(o),{configFile:i,credentialsFile:s}=await Z(o),f=s[n]||{},a=i[n]||{},c=t==="config"?{...f,...a}:{...a,...f};try{let _=e(c,t==="config"?i:s);if(_===void 0)throw new Error;return _}catch(m){throw new l(m.message||`Not found in config files w/ profile [${n}]: ${F(e.toString())}`,{logger:o.logger})}},"fromSharedConfigFiles");var he=r(e=>typeof e=="function","isFunction"),te=r(e=>he(e)?async()=>await e():K(e),"fromStatic");var T=r(({environmentVariableSelector:e,configFileSelector:t,default:o},n={})=>{let{signingName:i,logger:s}=n;return W(H(Q(e,{signingName:i,logger:s}),ee(t,n),te(o)))},"loadConfig");var D=r(e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials"),v=r(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration),...e.AccountId&&{accountId:e.AccountId}}),"fromImdsCredentials");var Oe=1e3,xe=0,x=r(({maxRetries:e=0,timeout:t=1e3})=>({maxRetries:e,timeout:t}),"providerConfigFromInit");import re from"node:http";function g(e){return new Promise((t,o)=>{let n=re.request({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",i=>{o(Object.assign(new p("Unable to connect to instance metadata service"),i)),n.destroy()}),n.on("timeout",()=>{o(new p("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",i=>{let{statusCode:s=400}=i;(s<200||300<=s)&&(o(Object.assign(new p("Error response received from instance metadata service"),{statusCode:s})),n.destroy());let f=[];i.on("data",a=>{f.push(a)}),i.on("end",()=>{t(Buffer.concat(f)),n.destroy()})}),n.end()})}r(g,"httpRequest");var C=r((e,t)=>{let o=e();for(let n=0;n<t;n++)o=o.catch(e);return o},"retry");var A="AWS_CONTAINER_CREDENTIALS_FULL_URI",P="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",U="AWS_CONTAINER_AUTHORIZATION_TOKEN",Ce=r((e={})=>{let{timeout:t,maxRetries:o}=x(e);return()=>C(async()=>{let n=await Pe({logger:e.logger}),i=JSON.parse(await Ae(t,n));if(!D(i))throw new l("Invalid response received from instance metadata service.",{logger:e.logger});return v(i)},o)},"fromContainerMetadata"),Ae=r(async(e,t)=>(process.env[U]&&(t.headers={...t.headers,Authorization:process.env[U]}),(await g({...t,timeout:e})).toString()),"requestFromEcsImds"),Fe="169.254.170.2",De=new Set(["localhost","127.0.0.1"]),ve=new Set(["http:","https:"]),Pe=r(async({logger:e})=>{if(process.env[P])return{hostname:Fe,path:process.env[P]};if(process.env[A]){let t;try{t=new URL(process.env[A])}catch{throw new l(`${process.env[A]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:e})}if(!t.hostname||!De.has(t.hostname))throw new l(`${t.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:e});if(!t.protocol||!ve.has(t.protocol))throw new l(`${t.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:e});return{protocol:t.protocol,hostname:t.hostname,path:t.pathname+t.search,port:t.port?parseInt(t.port,10):void 0}}throw new l(`The container metadata credential provider cannot be used unless the ${P} or ${A} environment variable is set`,{tryNextLink:!1,logger:e})},"getCmdsUri");var w=class e extends l{static{r(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(t,o=!0){super(t,o),this.tryNextLink=o,Object.setPrototypeOf(this,e.prototype)}};var h;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(h||(h={}));var we="AWS_EC2_METADATA_SERVICE_ENDPOINT",Re="ec2_metadata_service_endpoint",oe={environmentVariableSelector:r(e=>e[we],"environmentVariableSelector"),configFileSelector:r(e=>e[Re],"configFileSelector"),default:void 0};var u;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(u||(u={}));var ye="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",Le="ec2_metadata_service_endpoint_mode",ne={environmentVariableSelector:r(e=>e[ye],"environmentVariableSelector"),configFileSelector:r(e=>e[Le],"configFileSelector"),default:u.IPv4};var V=r(async()=>$(await Me()||await be()),"getInstanceMetadataEndpoint"),Me=r(async()=>T(oe)(),"getFromEndpointConfig"),be=r(async()=>{let e=await T(ne)();switch(e){case u.IPv4:return h.IPv4;case u.IPv6:return h.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(u)}`)}},"getFromEndpointModeConfig");var Ue="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",k=r((e,t)=>{let o=300+Math.floor(Math.random()*300),n=new Date(Date.now()+o*1e3);t.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.
3
+ For more information, please visit: `+Ue);let i=e.originalExpiration??e.expiration;return{...e,...i?{originalExpiration:i}:{},expiration:n}},"getExtendedInstanceMetadataCredentials");var ie=r((e,t={})=>{let o=t?.logger||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=k(i,o))}catch(s){if(n)o.warn("Credential renew failed: ",s),i=k(n,o);else throw s}return n=i,i}},"staticStabilityProvider");var ce="/latest/meta-data/iam/security-credentials/",Ve="/latest/api/token",G="AWS_EC2_METADATA_V1_DISABLED",se="ec2_metadata_v1_disabled",ae="x-aws-ec2-metadata-token",ke=r((e={})=>ie(Ge(e),{logger:e.logger}),"fromInstanceMetadata"),Ge=r((e={})=>{let t=!1,{logger:o,profile:n}=e,{timeout:i,maxRetries:s}=x(e),f=r(async(a,c)=>{if(t||c.headers?.[ae]==null){let d=!1,E=!1,fe=await T({environmentVariableSelector:r(I=>{let S=I[G];if(E=!!S&&S!=="false",S===void 0)throw new l(`${G} not set in env, checking config file next.`,{logger:e.logger});return E},"environmentVariableSelector"),configFileSelector:r(I=>{let S=I[se];return d=!!S&&S!=="false",d},"configFileSelector"),default:!1},{profile:n})();if(e.ec2MetadataV1Disabled||fe){let I=[];throw e.ec2MetadataV1Disabled&&I.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),d&&I.push(`config file profile (${se})`),E&&I.push(`process environment variable (${G})`),new w(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${I.join(", ")}].`)}}let _=(await C(async()=>{let d;try{d=await He(c)}catch(E){throw E.statusCode===401&&(t=!1),E}return d},a)).trim();return C(async()=>{let d;try{d=await Ke(_,c,e)}catch(E){throw E.statusCode===401&&(t=!1),E}return d},a)},"getCredentials");return async()=>{let a=await V();if(t)return o?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),f(s,{...a,timeout:i});{let c;try{c=(await $e({...a,timeout:i})).toString()}catch(m){if(m?.statusCode===400)throw Object.assign(m,{message:"EC2 Metadata token request returned error"});return(m.message==="TimeoutError"||[403,404,405].includes(m.statusCode))&&(t=!0),o?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),f(s,{...a,timeout:i})}return f(s,{...a,headers:{[ae]:c},timeout:i})}}},"getInstanceMetadataProvider"),$e=r(async e=>g({...e,path:Ve,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),He=r(async e=>(await g({...e,path:ce})).toString(),"getProfile"),Ke=r(async(e,t,o)=>{let n=JSON.parse((await g({...t,path:ce+e})).toString());if(!D(n))throw new l("Invalid response received from instance metadata service.",{logger:o.logger});return v(n)},"getCredentialsFromProfile");export{xe as DEFAULT_MAX_RETRIES,Oe as DEFAULT_TIMEOUT,U as ENV_CMDS_AUTH_TOKEN,A as ENV_CMDS_FULL_URI,P as ENV_CMDS_RELATIVE_URI,h as Endpoint,Ce as fromContainerMetadata,ke as fromInstanceMetadata,V as getInstanceMetadataEndpoint,g as httpRequest,x as providerConfigFromInit};