cognova 0.2.3 → 0.2.5

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 (1117) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{DQlXU6_H.js → -2wkydbj.js} +1 -1
  3. package/.output/public/_nuxt/{D9V13KTK.js → 0J8pJb0Z.js} +1 -1
  4. package/.output/public/_nuxt/{CclZMdca.js → 0LyRrTRM.js} +1 -1
  5. package/.output/public/_nuxt/{CflRLvFC.js → 1Hz98MKF.js} +1 -1
  6. package/.output/public/_nuxt/{DkBIU-1F.js → 1IuG3yiQ.js} +1 -1
  7. package/.output/public/_nuxt/{B_17gAr_.js → 4bC1z31I.js} +1 -1
  8. package/.output/public/_nuxt/{CC4Goztu.js → A5lrd5_j.js} +1 -1
  9. package/.output/public/_nuxt/{BHe4VLtR.js → B-5roYpk.js} +1 -1
  10. package/.output/public/_nuxt/{B_qzFVK_.js → B-YQztaH.js} +1 -1
  11. package/.output/public/_nuxt/B1gFtqXK.js +1 -0
  12. package/.output/public/_nuxt/B43p0So7.js +1 -0
  13. package/.output/public/_nuxt/{DSQj-oMk.js → B5OWqWCh.js} +1 -1
  14. package/.output/public/_nuxt/{CvJtd2Af.js → B7-0ADn3.js} +1 -1
  15. package/.output/public/_nuxt/{DU6ewLkE.js → B8Kve-DH.js} +1 -1
  16. package/.output/public/_nuxt/{BF7413u4.js → B9Kd_0HK.js} +1 -1
  17. package/.output/public/_nuxt/{BhrzKbv9.js → BJ_GgKV0.js} +1 -1
  18. package/.output/public/_nuxt/{CM2phu_3.js → BJi2ZHtT.js} +1 -1
  19. package/.output/public/_nuxt/{qR_K5W8V.js → BLL1JLwq.js} +1 -1
  20. package/.output/public/_nuxt/{aiXk7zRt.js → BLszW9T3.js} +1 -1
  21. package/.output/public/_nuxt/{DeAGWdWK.js → BMLwzSDu.js} +1 -1
  22. package/.output/public/_nuxt/{B5dI_yLq.js → BNlugvM3.js} +1 -1
  23. package/.output/public/_nuxt/{Dvw-hR3Y.js → BTfZ7nek.js} +1 -1
  24. package/.output/public/_nuxt/{m5001Uvl.js → BTk5mgdf.js} +1 -1
  25. package/.output/public/_nuxt/{DfF1qofg.js → BW-E-Sar.js} +1 -1
  26. package/.output/public/_nuxt/{xxnk7j0F.js → BZFXnEwe.js} +1 -1
  27. package/.output/public/_nuxt/{DaBp0Gba.js → B_28CKij.js} +2 -2
  28. package/.output/public/_nuxt/{CYjcQPl-.js → BaJEGr8G.js} +1 -1
  29. package/.output/public/_nuxt/{CFyD2NHP.js → BaVaTug8.js} +1 -1
  30. package/.output/public/_nuxt/{_E89BQAO.js → Bb1B0ntt.js} +1 -1
  31. package/.output/public/_nuxt/{C3dYlP5x.js → Bb9LNSu_.js} +1 -1
  32. package/.output/public/_nuxt/{BLmc9T7l.js → BbPnqQJ0.js} +1 -1
  33. package/.output/public/_nuxt/{XHiJSquP.js → Bc0NIKN7.js} +1 -1
  34. package/.output/public/_nuxt/{DFg8PvHV.js → BdCB2PoJ.js} +1 -1
  35. package/.output/public/_nuxt/{BQZfTrUg.js → Bf34lExB.js} +1 -1
  36. package/.output/public/_nuxt/{CrZGoMo_.js → BhOIdu3Z.js} +1 -1
  37. package/.output/public/_nuxt/{PqWbiAD2.js → BhSWIRpp.js} +1 -1
  38. package/.output/public/_nuxt/{DqsUSndS.js → BjFs8Ujb.js} +1 -1
  39. package/.output/public/_nuxt/{DauLdT7p.js → BmTCDcNm.js} +1 -1
  40. package/.output/public/_nuxt/{DAIbdyS6.js → Bn8loaeQ.js} +1 -1
  41. package/.output/public/_nuxt/{BGtUoCgi.js → BoPAYize.js} +1 -1
  42. package/.output/public/_nuxt/{BtVIBBUN.js → BrICHPil.js} +1 -1
  43. package/.output/public/_nuxt/{gGlaVUMD.js → Brqrl-cH.js} +1 -1
  44. package/.output/public/_nuxt/{9QKmiSP_.js → BsPj3ifk.js} +1 -1
  45. package/.output/public/_nuxt/{DAvlXjt0.js → BsXPllgv.js} +1 -1
  46. package/.output/public/_nuxt/{DEATxnaF.js → BvuV9uCn.js} +1 -1
  47. package/.output/public/_nuxt/{DaH2FbAy.js → By6kmkhJ.js} +1 -1
  48. package/.output/public/_nuxt/{Cwtd8e-P.js → ByfSJZV6.js} +1 -1
  49. package/.output/public/_nuxt/{D1r0uqf3.js → C14DGwaT.js} +1 -1
  50. package/.output/public/_nuxt/{DmAM6bZ0.js → C4XVJnNJ.js} +1 -1
  51. package/.output/public/_nuxt/{BIvPdoE3.js → C5nfaH9w.js} +1 -1
  52. package/.output/public/_nuxt/{fEUQvmn8.js → C6Kc4XvS.js} +1 -1
  53. package/.output/public/_nuxt/{BrEXdify.js → CB8_A8N4.js} +1 -1
  54. package/.output/public/_nuxt/{D1DYuOOm.js → CBrXB4hk.js} +1 -1
  55. package/.output/public/_nuxt/{Bwcpy7gC.js → CEfkp9Rl.js} +2 -2
  56. package/.output/public/_nuxt/{D5EZbuub.js → CG0fS-BQ.js} +1 -1
  57. package/.output/public/_nuxt/{BlPToGni.js → CJ85o8FK.js} +1 -1
  58. package/.output/public/_nuxt/{-AsXrBBy.js → CK5Ef4YR.js} +1 -1
  59. package/.output/public/_nuxt/{cL7whuPe.js → CLZS246x.js} +1 -1
  60. package/.output/public/_nuxt/{BnmwiZbF.js → CNwGp6eP.js} +1 -1
  61. package/.output/public/_nuxt/{Bw5h4Jaf.js → CSQ-nblB.js} +1 -1
  62. package/.output/public/_nuxt/{DQvuQpwh.js → CVr40yKH.js} +1 -1
  63. package/.output/public/_nuxt/{B-2BuR5g.js → CW8xtqwN.js} +1 -1
  64. package/.output/public/_nuxt/{CQpYRq61.js → CXuKrnTA.js} +1 -1
  65. package/.output/public/_nuxt/{DWhzQg7B.js → CeDxLTxX.js} +1 -1
  66. package/.output/public/_nuxt/{Bl6LNGlA.js → Cebw7Q7c.js} +1 -1
  67. package/.output/public/_nuxt/{DmmTnMzZ.js → Cedv1M65.js} +1 -1
  68. package/.output/public/_nuxt/{B6fnZcA6.js → CfWDee_q.js} +1 -1
  69. package/.output/public/_nuxt/{CHpwuMSk.js → CgQKyBSS.js} +1 -1
  70. package/.output/public/_nuxt/{C2RZSTuy.js → Ci-MVdCd.js} +1 -1
  71. package/.output/public/_nuxt/{DBKzwexZ.js → CjRmY2OQ.js} +1 -1
  72. package/.output/public/_nuxt/{Tu4FhMRc.js → CjYUi9c8.js} +1 -1
  73. package/.output/public/_nuxt/{xKRwul0f.js → CkvyAKbu.js} +1 -1
  74. package/.output/public/_nuxt/{wPSLEMBw.js → CnW8zyuA.js} +1 -1
  75. package/.output/public/_nuxt/{UO2Y9Nve.js → Cow1TrPj.js} +1 -1
  76. package/.output/public/_nuxt/{C4zyxZG7.js → CpC3C9gj.js} +1 -1
  77. package/.output/public/_nuxt/{D0P9llU7.js → CphXSvBo.js} +1 -1
  78. package/.output/public/_nuxt/{mQkFCz_M.js → CqiOV9n1.js} +1 -1
  79. package/.output/public/_nuxt/{BIMBp1Tj.js → CrjKigv8.js} +1 -1
  80. package/.output/public/_nuxt/{p9l1LjVc.js → CvMqUdkl.js} +3 -3
  81. package/.output/public/_nuxt/{DmeAKr3J.js → CwCEQ4Dw.js} +1 -1
  82. package/.output/public/_nuxt/{BbRPwpIX.js → CwJR22-0.js} +1 -1
  83. package/.output/public/_nuxt/{BtNnS4m3.js → CwaMSU1O.js} +1 -1
  84. package/.output/public/_nuxt/{D_vK6VPK.js → CxJr4mB0.js} +1 -1
  85. package/.output/public/_nuxt/{ARbTpeGy.js → CzTTKfet.js} +1 -1
  86. package/.output/public/_nuxt/{DaJo0CeV.js → CzqLfT8k.js} +1 -1
  87. package/.output/public/_nuxt/{5UFq_rDn.js → D-wVwRIx.js} +1 -1
  88. package/.output/public/_nuxt/D2f7BlK2.js +1 -0
  89. package/.output/public/_nuxt/D2lmhTjQ.js +1 -0
  90. package/.output/public/_nuxt/{B4u7Mczo.js → D3V98LVR.js} +1 -1
  91. package/.output/public/_nuxt/D64-rCSQ.js +1 -0
  92. package/.output/public/_nuxt/{CGQDTeaO.js → DAFasgHH.js} +1 -1
  93. package/.output/public/_nuxt/{BlwHr46F.js → DAs574wU.js} +1 -1
  94. package/.output/public/_nuxt/{BQnublTW.js → DB3y_21M.js} +1 -1
  95. package/.output/public/_nuxt/{C3sh_tLi.js → DCco_rlV.js} +1 -1
  96. package/.output/public/_nuxt/{90UksHlj.js → DGP2JJt8.js} +1 -1
  97. package/.output/public/_nuxt/{HOeKUnra.js → DImdNj-F.js} +1 -1
  98. package/.output/public/_nuxt/{CzIMQevQ.js → DMsHLHmB.js} +1 -1
  99. package/.output/public/_nuxt/{ct6_k5IW.js → DNpsjOxN.js} +1 -1
  100. package/.output/public/_nuxt/{UKPXYG4z.js → DV0JMebZ.js} +1 -1
  101. package/.output/public/_nuxt/{CLzcRUcs.js → DZ_azKLI.js} +1 -1
  102. package/.output/public/_nuxt/{BBiRyPlN.js → DZdh7_lh.js} +1 -1
  103. package/.output/public/_nuxt/{MpTk6K7N.js → DaiWSWdm.js} +1 -1
  104. package/.output/public/_nuxt/{BOgdaA_8.js → Db5XIfWS.js} +1 -1
  105. package/.output/public/_nuxt/{ClXDAYjE.js → DfpSaqgV.js} +1 -1
  106. package/.output/public/_nuxt/{D3a8R1T6.js → DgKeJf5C.js} +1 -1
  107. package/.output/public/_nuxt/{BWqJFnZy.js → DgPiIWA2.js} +1 -1
  108. package/.output/public/_nuxt/{BKaRtCjP.js → Dkzqkzki.js} +1 -1
  109. package/.output/public/_nuxt/DpYns7cT.js +1 -0
  110. package/.output/public/_nuxt/{5Zh-9l8_.js → Dpp5cOwJ.js} +1 -1
  111. package/.output/public/_nuxt/{DiGBA-aA.js → Drr-RSSP.js} +1 -1
  112. package/.output/public/_nuxt/{CUN4bYcg.js → DsKy-gee.js} +1 -1
  113. package/.output/public/_nuxt/{BqtxLJaf.js → DuOsLoVR.js} +1 -1
  114. package/.output/public/_nuxt/{IR1jkN7B.js → DvgLoqaC.js} +1 -1
  115. package/.output/public/_nuxt/{2W1RPpXM.js → Dx2Tgm6S.js} +1 -1
  116. package/.output/public/_nuxt/{D1dDc8Vw.js → DxR8g9So.js} +1 -1
  117. package/.output/public/_nuxt/Dysa6np_.js +1 -0
  118. package/.output/public/_nuxt/{gjmGkVlL.js → DytaiikM.js} +1 -1
  119. package/.output/public/_nuxt/{Cx44SSNp.js → EgYyfo1g.js} +3 -3
  120. package/.output/public/_nuxt/{NZ7Wz6LP.js → HC3657Xq.js} +1 -1
  121. package/.output/public/_nuxt/{CZ32KfaS.js → HCCuOAgZ.js} +1 -1
  122. package/.output/public/_nuxt/{BVypxKRT.js → JJIcQEna.js} +1 -1
  123. package/.output/public/_nuxt/{FNhYm5FX.js → MdebRWqA.js} +1 -1
  124. package/.output/public/_nuxt/{CxEVzuCn.js → MzEmU9ER.js} +1 -1
  125. package/.output/public/_nuxt/{C0TUK31m.js → NBE83ZQn.js} +1 -1
  126. package/.output/public/_nuxt/{ZR87XvwB.js → NlScC3GW.js} +1 -1
  127. package/.output/public/_nuxt/{xgpiGSxb.js → RRoc4m9d.js} +1 -1
  128. package/.output/public/_nuxt/{BXxYdXMr.js → S4a_N6rD.js} +1 -1
  129. package/.output/public/_nuxt/{DAE2hbP7.js → WWNeb45u.js} +1 -1
  130. package/.output/public/_nuxt/{DiJxF69i.js → XzRnkkwG.js} +1 -1
  131. package/.output/public/_nuxt/{DdPA4eTX.js → Zjvb5YJR.js} +1 -1
  132. package/.output/public/_nuxt/{uc4c4mfb.js → _16_b82K.js} +1 -1
  133. package/.output/public/_nuxt/{CXoITXft.js → atVSHCxP.js} +1 -1
  134. package/.output/public/_nuxt/builds/latest.json +1 -1
  135. package/.output/public/_nuxt/builds/meta/8c74f6cf-7412-4c62-a25a-07541ca3e889.json +1 -0
  136. package/.output/public/_nuxt/{Dz6sfh81.js → deSeNTOh.js} +1 -1
  137. package/.output/public/_nuxt/f7zDjk6q.js +1 -0
  138. package/.output/public/_nuxt/{CdpT_Vb6.js → fTEmwfo4.js} +1 -1
  139. package/.output/public/_nuxt/{CkqNv7sq.js → hqpqUuXS.js} +1 -1
  140. package/.output/public/_nuxt/{DPFugPaB.js → jeu3Xx8e.js} +1 -1
  141. package/.output/public/_nuxt/{ApfLnl06.js → pkbwpgSD.js} +1 -1
  142. package/.output/public/_nuxt/{t_9QQ4MF.js → qW7F87d8.js} +3 -3
  143. package/.output/public/_nuxt/{C5I-XBZT.js → sdvIKLwS.js} +1 -1
  144. package/.output/public/_nuxt/{B7uMSBlN.js → vM-wdhkZ.js} +1 -1
  145. package/.output/public/_nuxt/{DNE7kw9s.js → w3t8WD8v.js} +1 -1
  146. package/.output/public/_nuxt/{C1T4GK6c.js → zBoPDS4z.js} +1 -1
  147. package/.output/server/chunks/build/A-BWukSPjS.mjs +4 -1
  148. package/.output/server/chunks/build/Accordion-BaJYea6e.mjs +4 -1
  149. package/.output/server/chunks/build/AccordionItem-DdG2zgcN.mjs +4 -1
  150. package/.output/server/chunks/build/Badge-BrU9UkCv.mjs +4 -1
  151. package/.output/server/chunks/build/Blockquote-DND8wTkU.mjs +4 -1
  152. package/.output/server/chunks/build/Callout-1halpaEg.mjs +4 -1
  153. package/.output/server/chunks/build/Card-BHCSDKDt.mjs +4 -1
  154. package/.output/server/chunks/build/CardGroup-BOuJcNGp.mjs +4 -1
  155. package/.output/server/chunks/build/Caution-BP3y-TcC.mjs +4 -1
  156. package/.output/server/chunks/build/Code-B1xkAS5a.mjs +4 -1
  157. package/.output/server/chunks/build/CodeCollapse-BIhaNa22.mjs +4 -1
  158. package/.output/server/chunks/build/CodeGroup-BviYyCuo.mjs +4 -1
  159. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +5 -2
  160. package/.output/server/chunks/build/CodePreview-D8PsCQ6m.mjs +4 -1
  161. package/.output/server/chunks/build/CodeTree-BUTLupmL.mjs +4 -1
  162. package/.output/server/chunks/build/Collapsible-BIvXNaSq.mjs +4 -1
  163. package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +1 -1
  164. package/.output/server/chunks/build/EditorToolbar-DIfb5arC.mjs +1 -1
  165. package/.output/server/chunks/build/Em-DsIz_BnD.mjs +4 -1
  166. package/.output/server/chunks/build/Field-cwwmSQDT.mjs +4 -1
  167. package/.output/server/chunks/build/FieldGroup-CAIpQv8s.mjs +4 -1
  168. package/.output/server/chunks/build/H1-BbFNsPyP.mjs +4 -1
  169. package/.output/server/chunks/build/H2-vHTl_pWr.mjs +4 -1
  170. package/.output/server/chunks/build/H3-7eTcfO3s.mjs +4 -1
  171. package/.output/server/chunks/build/H4-C89p_PKO.mjs +4 -1
  172. package/.output/server/chunks/build/Hr-Bm8RlL3O.mjs +4 -1
  173. package/.output/server/chunks/build/Icon-Dp9iy0BI.mjs +4 -1
  174. package/.output/server/chunks/build/Img-CWLmvN1t.mjs +5 -2
  175. package/.output/server/chunks/build/Kbd-CQG6I_Ch.mjs +4 -1
  176. package/.output/server/chunks/build/Li-Bw1QUaGv.mjs +4 -1
  177. package/.output/server/chunks/build/MDC-Dx0YPDhe.mjs +1 -1
  178. package/.output/server/chunks/build/Note-CHkjm9jm.mjs +4 -1
  179. package/.output/server/chunks/build/Ol-D-fPnfFM.mjs +4 -1
  180. package/.output/server/chunks/build/P-B5YI1V9y.mjs +4 -1
  181. package/.output/server/chunks/build/Pre-ChiJcf3C.mjs +4 -1
  182. package/.output/server/chunks/build/ProseH5-DahJyv8h.mjs +4 -1
  183. package/.output/server/chunks/build/ProseH6-C4Is5h6c.mjs +4 -1
  184. package/.output/server/chunks/build/Select-BB1oLrCD.mjs +1 -1
  185. package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +1 -1
  186. package/.output/server/chunks/build/Steps-BZpvXfzb.mjs +4 -1
  187. package/.output/server/chunks/build/Strong-DXJqOWL3.mjs +4 -1
  188. package/.output/server/chunks/build/Table-BSrLZ7dt.mjs +4 -1
  189. package/.output/server/chunks/build/Table-DCwTlhCj.mjs +1 -1
  190. package/.output/server/chunks/build/Tabs-Dk3nvOFF.mjs +4 -1
  191. package/.output/server/chunks/build/TabsItem-CDhyuBtJ.mjs +4 -1
  192. package/.output/server/chunks/build/Tbody-CjMT5oH-.mjs +4 -1
  193. package/.output/server/chunks/build/Td-ZBVaEjFN.mjs +4 -1
  194. package/.output/server/chunks/build/Th-D317icbd.mjs +4 -1
  195. package/.output/server/chunks/build/Thead-Ca_ZESTK.mjs +4 -1
  196. package/.output/server/chunks/build/Tip-CP3oTARR.mjs +4 -1
  197. package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +1 -1
  198. package/.output/server/chunks/build/Tr-6jI8j9gD.mjs +4 -1
  199. package/.output/server/chunks/build/Tree-DUhXKd8y.mjs +1 -1
  200. package/.output/server/chunks/build/Ul-BUGj_CPb.mjs +4 -1
  201. package/.output/server/chunks/build/Warning-BJ8G6cxC.mjs +4 -1
  202. package/.output/server/chunks/build/_id_-DN00UDdO.mjs +4 -1
  203. package/.output/server/chunks/build/_id_-DN00UDdO.mjs.map +1 -1
  204. package/.output/server/chunks/build/_name_-BnS_KEfX.mjs +4 -1
  205. package/.output/server/chunks/build/_name_-BnS_KEfX.mjs.map +1 -1
  206. package/.output/server/chunks/build/_uuid_-DfJaumTE.mjs +5 -2
  207. package/.output/server/chunks/build/auth-CvD7MqKW.mjs +4 -1
  208. package/.output/server/chunks/build/auth-CvD7MqKW.mjs.map +1 -1
  209. package/.output/server/chunks/build/chat-CZMiB68R.mjs +4 -1
  210. package/.output/server/chunks/build/chat-CZMiB68R.mjs.map +1 -1
  211. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  212. package/.output/server/chunks/build/cookie-C_iulBi6.mjs +1 -1
  213. package/.output/server/chunks/build/dashboard-CLk1NlbR.mjs +4 -1
  214. package/.output/server/chunks/build/dashboard-CLk1NlbR.mjs.map +1 -1
  215. package/.output/server/chunks/build/dashboard-CiVTAZuF.mjs +5 -2
  216. package/.output/server/chunks/build/docs-ChGwOPg5.mjs +5 -2
  217. package/.output/server/chunks/build/error-404-BzbcNcdU.mjs +4 -1
  218. package/.output/server/chunks/build/error-500-uCDjGRW8.mjs +4 -1
  219. package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -1
  220. package/.output/server/chunks/build/hooks-D328DcO6.mjs +4 -1
  221. package/.output/server/chunks/build/hooks-D328DcO6.mjs.map +1 -1
  222. package/.output/server/chunks/build/index-Byt-3Yq6.mjs +4 -1
  223. package/.output/server/chunks/build/index-C9PuieXh.mjs +4 -1
  224. package/.output/server/chunks/build/index-C9PuieXh.mjs.map +1 -1
  225. package/.output/server/chunks/build/{index-C_LcBBgO.mjs → index-CAnGTRlu.mjs} +281 -14
  226. package/.output/server/chunks/build/{index-C_LcBBgO.mjs.map → index-CAnGTRlu.mjs.map} +1 -1
  227. package/.output/server/chunks/build/index-CxDxc9fm.mjs +1 -1
  228. package/.output/server/chunks/build/index-DzdvIi8V.mjs +4 -1
  229. package/.output/server/chunks/build/{library-CbWcF5wT.mjs → library-Aeg7_Lsb.mjs} +8 -3
  230. package/.output/server/chunks/build/library-Aeg7_Lsb.mjs.map +1 -0
  231. package/.output/server/chunks/build/login-DnnElTl2.mjs +4 -1
  232. package/.output/server/chunks/build/memories-BqA719O1.mjs +4 -1
  233. package/.output/server/chunks/build/memories-BqA719O1.mjs.map +1 -1
  234. package/.output/server/chunks/build/server.mjs +8 -5
  235. package/.output/server/chunks/build/{settings-DdkKCJ00.mjs → settings-DuT6LGJZ.mjs} +524 -12
  236. package/.output/server/chunks/build/settings-DuT6LGJZ.mjs.map +1 -0
  237. package/.output/server/chunks/build/styles.mjs +2 -2
  238. package/.output/server/chunks/build/tasks-DnAFqbtt.mjs +4 -1
  239. package/.output/server/chunks/build/tasks-DnAFqbtt.mjs.map +1 -1
  240. package/.output/server/chunks/build/usage-CSrBh4Or.mjs +4 -1
  241. package/.output/server/chunks/build/useNotificationBus-BG5JNQf1.mjs +1 -1
  242. package/.output/server/chunks/build/view-n2sYa4Zh.mjs +5 -2
  243. package/.output/server/chunks/build/virtual_nuxt__Users_tony_Documents_GitHub_second-brain_node_modules_.cache_nuxt_.nuxt_mdc-imports-PtwWlZ2H.mjs +4 -1
  244. package/.output/server/chunks/nitro/nitro.mjs +2091 -1081
  245. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  246. package/.output/server/chunks/routes/_ws/chat.mjs +4 -1
  247. package/.output/server/chunks/routes/_ws/chat.mjs.map +1 -1
  248. package/.output/server/chunks/routes/api/agents/_id/cancel.post.mjs +4 -1
  249. package/.output/server/chunks/routes/api/agents/_id/cancel.post.mjs.map +1 -1
  250. package/.output/server/chunks/routes/api/agents/_id/run.post.mjs +4 -1
  251. package/.output/server/chunks/routes/api/agents/_id/run.post.mjs.map +1 -1
  252. package/.output/server/chunks/routes/api/agents/_id/runs.get.mjs +4 -1
  253. package/.output/server/chunks/routes/api/agents/_id/runs.get.mjs.map +1 -1
  254. package/.output/server/chunks/routes/api/agents/_id/stats.get.mjs +4 -1
  255. package/.output/server/chunks/routes/api/agents/_id/stats.get.mjs.map +1 -1
  256. package/.output/server/chunks/routes/api/agents/_id_.delete.mjs +4 -1
  257. package/.output/server/chunks/routes/api/agents/_id_.delete.mjs.map +1 -1
  258. package/.output/server/chunks/routes/api/agents/_id_.get.mjs +4 -1
  259. package/.output/server/chunks/routes/api/agents/_id_.get.mjs.map +1 -1
  260. package/.output/server/chunks/routes/api/agents/_id_.patch.mjs +4 -1
  261. package/.output/server/chunks/routes/api/agents/_id_.patch.mjs.map +1 -1
  262. package/.output/server/chunks/routes/api/agents/stats.get.mjs +4 -1
  263. package/.output/server/chunks/routes/api/agents/stats.get.mjs.map +1 -1
  264. package/.output/server/chunks/routes/api/auth/_...all_.mjs +4 -1
  265. package/.output/server/chunks/routes/api/auth/_...all_.mjs.map +1 -1
  266. package/.output/server/chunks/routes/api/bridges/_id/health.get.mjs +98 -0
  267. package/.output/server/chunks/routes/api/bridges/_id/health.get.mjs.map +1 -0
  268. package/.output/server/chunks/routes/api/bridges/_id_.delete.mjs +68 -0
  269. package/.output/server/chunks/routes/api/bridges/_id_.delete.mjs.map +1 -0
  270. package/.output/server/chunks/routes/api/bridges/_id_.get.mjs +60 -0
  271. package/.output/server/chunks/routes/api/bridges/_id_.get.mjs.map +1 -0
  272. package/.output/server/chunks/routes/api/bridges/_id_.put.mjs +79 -0
  273. package/.output/server/chunks/routes/api/bridges/_id_.put.mjs.map +1 -0
  274. package/.output/server/chunks/routes/api/bridges/context.get.mjs +183 -0
  275. package/.output/server/chunks/routes/api/bridges/context.get.mjs.map +1 -0
  276. package/.output/server/chunks/routes/api/conversations/_id_.delete.mjs +5 -2
  277. package/.output/server/chunks/routes/api/conversations/_id_.delete.mjs.map +1 -1
  278. package/.output/server/chunks/routes/api/conversations/_id_.get.mjs +5 -2
  279. package/.output/server/chunks/routes/api/conversations/_id_.get.mjs.map +1 -1
  280. package/.output/server/chunks/routes/api/dashboard/overview.get.mjs +5 -2
  281. package/.output/server/chunks/routes/api/dashboard/overview.get.mjs.map +1 -1
  282. package/.output/server/chunks/routes/api/documents/_id/public.get.mjs +5 -2
  283. package/.output/server/chunks/routes/api/documents/_id/public.get.mjs.map +1 -1
  284. package/.output/server/chunks/routes/api/documents/_id/restore.post.mjs +5 -2
  285. package/.output/server/chunks/routes/api/documents/_id/restore.post.mjs.map +1 -1
  286. package/.output/server/chunks/routes/api/documents/by-path.post.mjs +5 -2
  287. package/.output/server/chunks/routes/api/documents/by-path.post.mjs.map +1 -1
  288. package/.output/server/chunks/routes/api/documents/index.delete.mjs +5 -2
  289. package/.output/server/chunks/routes/api/documents/index.delete.mjs.map +1 -1
  290. package/.output/server/chunks/routes/api/documents/index.put.mjs +5 -2
  291. package/.output/server/chunks/routes/api/documents/index.put.mjs.map +1 -1
  292. package/.output/server/chunks/routes/api/fs/delete.post.mjs +5 -2
  293. package/.output/server/chunks/routes/api/fs/delete.post.mjs.map +1 -1
  294. package/.output/server/chunks/routes/api/fs/list.get.mjs +5 -2
  295. package/.output/server/chunks/routes/api/fs/list.get.mjs.map +1 -1
  296. package/.output/server/chunks/routes/api/fs/mkdir.post.mjs +5 -2
  297. package/.output/server/chunks/routes/api/fs/mkdir.post.mjs.map +1 -1
  298. package/.output/server/chunks/routes/api/fs/move.post.mjs +5 -2
  299. package/.output/server/chunks/routes/api/fs/move.post.mjs.map +1 -1
  300. package/.output/server/chunks/routes/api/fs/read.post.mjs +5 -2
  301. package/.output/server/chunks/routes/api/fs/read.post.mjs.map +1 -1
  302. package/.output/server/chunks/routes/api/fs/rename.post.mjs +5 -2
  303. package/.output/server/chunks/routes/api/fs/rename.post.mjs.map +1 -1
  304. package/.output/server/chunks/routes/api/fs/write.post.mjs +5 -2
  305. package/.output/server/chunks/routes/api/fs/write.post.mjs.map +1 -1
  306. package/.output/server/chunks/routes/api/health.get.mjs +5 -2
  307. package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
  308. package/.output/server/chunks/routes/api/home.get.mjs +5 -2
  309. package/.output/server/chunks/routes/api/home.get.mjs.map +1 -1
  310. package/.output/server/chunks/routes/api/hooks/index.get.mjs +5 -2
  311. package/.output/server/chunks/routes/api/hooks/index.get.mjs.map +1 -1
  312. package/.output/server/chunks/routes/api/hooks/index.post.mjs +5 -2
  313. package/.output/server/chunks/routes/api/hooks/index.post.mjs.map +1 -1
  314. package/.output/server/chunks/routes/api/hooks/stats.get.mjs +5 -2
  315. package/.output/server/chunks/routes/api/hooks/stats.get.mjs.map +1 -1
  316. package/.output/server/chunks/routes/api/index.get.mjs +4 -1
  317. package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
  318. package/.output/server/chunks/routes/api/index.get10.mjs +86 -0
  319. package/.output/server/chunks/routes/api/index.get10.mjs.map +1 -0
  320. package/.output/server/chunks/routes/api/index.get2.mjs +11 -5
  321. package/.output/server/chunks/routes/api/index.get2.mjs.map +1 -1
  322. package/.output/server/chunks/routes/api/index.get3.mjs +8 -34
  323. package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -1
  324. package/.output/server/chunks/routes/api/index.get4.mjs +35 -5
  325. package/.output/server/chunks/routes/api/index.get4.mjs.map +1 -1
  326. package/.output/server/chunks/routes/api/index.get5.mjs +12 -15
  327. package/.output/server/chunks/routes/api/index.get5.mjs.map +1 -1
  328. package/.output/server/chunks/routes/api/index.get6.mjs +17 -22
  329. package/.output/server/chunks/routes/api/index.get6.mjs.map +1 -1
  330. package/.output/server/chunks/routes/api/index.get7.mjs +28 -40
  331. package/.output/server/chunks/routes/api/index.get7.mjs.map +1 -1
  332. package/.output/server/chunks/routes/api/index.get8.mjs +56 -38
  333. package/.output/server/chunks/routes/api/index.get8.mjs.map +1 -1
  334. package/.output/server/chunks/routes/api/index.get9.mjs +36 -39
  335. package/.output/server/chunks/routes/api/index.get9.mjs.map +1 -1
  336. package/.output/server/chunks/routes/api/index.post.mjs +4 -1
  337. package/.output/server/chunks/routes/api/index.post.mjs.map +1 -1
  338. package/.output/server/chunks/routes/api/index.post2.mjs +26 -17
  339. package/.output/server/chunks/routes/api/index.post2.mjs.map +1 -1
  340. package/.output/server/chunks/routes/api/index.post3.mjs +21 -35
  341. package/.output/server/chunks/routes/api/index.post3.mjs.map +1 -1
  342. package/.output/server/chunks/routes/api/index.post4.mjs +35 -25
  343. package/.output/server/chunks/routes/api/index.post4.mjs.map +1 -1
  344. package/.output/server/chunks/routes/api/index.post5.mjs +75 -0
  345. package/.output/server/chunks/routes/api/index.post5.mjs.map +1 -0
  346. package/.output/server/chunks/routes/api/index.put.mjs +5 -2
  347. package/.output/server/chunks/routes/api/index.put.mjs.map +1 -1
  348. package/.output/server/chunks/routes/api/memory/_id_.delete.mjs +5 -2
  349. package/.output/server/chunks/routes/api/memory/_id_.delete.mjs.map +1 -1
  350. package/.output/server/chunks/routes/api/memory/context.get.mjs +5 -2
  351. package/.output/server/chunks/routes/api/memory/context.get.mjs.map +1 -1
  352. package/.output/server/chunks/routes/api/memory/extract.post.mjs +5 -2
  353. package/.output/server/chunks/routes/api/memory/extract.post.mjs.map +1 -1
  354. package/.output/server/chunks/routes/api/memory/search.get.mjs +5 -2
  355. package/.output/server/chunks/routes/api/memory/search.get.mjs.map +1 -1
  356. package/.output/server/chunks/routes/api/memory/store.post.mjs +5 -2
  357. package/.output/server/chunks/routes/api/memory/store.post.mjs.map +1 -1
  358. package/.output/server/chunks/routes/api/projects/index.delete.mjs +5 -2
  359. package/.output/server/chunks/routes/api/projects/index.delete.mjs.map +1 -1
  360. package/.output/server/chunks/routes/api/projects/index.get.mjs +5 -2
  361. package/.output/server/chunks/routes/api/projects/index.get.mjs.map +1 -1
  362. package/.output/server/chunks/routes/api/projects/index.put.mjs +5 -2
  363. package/.output/server/chunks/routes/api/projects/index.put.mjs.map +1 -1
  364. package/.output/server/chunks/routes/api/secrets/_key_.delete.mjs +5 -2
  365. package/.output/server/chunks/routes/api/secrets/_key_.delete.mjs.map +1 -1
  366. package/.output/server/chunks/routes/api/secrets/_key_.get.mjs +5 -2
  367. package/.output/server/chunks/routes/api/secrets/_key_.get.mjs.map +1 -1
  368. package/.output/server/chunks/routes/api/secrets/_key_.put.mjs +5 -2
  369. package/.output/server/chunks/routes/api/secrets/_key_.put.mjs.map +1 -1
  370. package/.output/server/chunks/routes/api/skills/_name/delete.post.mjs +69 -0
  371. package/.output/server/chunks/routes/api/skills/_name/delete.post.mjs.map +1 -0
  372. package/.output/server/chunks/routes/api/skills/_name/export.get.mjs +5 -2
  373. package/.output/server/chunks/routes/api/skills/_name/export.get.mjs.map +1 -1
  374. package/.output/server/chunks/routes/api/skills/_name/files/create.post.mjs +5 -2
  375. package/.output/server/chunks/routes/api/skills/_name/files/create.post.mjs.map +1 -1
  376. package/.output/server/chunks/routes/api/skills/_name/files/delete.post.mjs +5 -2
  377. package/.output/server/chunks/routes/api/skills/_name/files/delete.post.mjs.map +1 -1
  378. package/.output/server/chunks/routes/api/skills/_name/files/read.post.mjs +5 -2
  379. package/.output/server/chunks/routes/api/skills/_name/files/read.post.mjs.map +1 -1
  380. package/.output/server/chunks/routes/api/skills/_name/files/write.post.mjs +5 -2
  381. package/.output/server/chunks/routes/api/skills/_name/files/write.post.mjs.map +1 -1
  382. package/.output/server/chunks/routes/api/skills/_name/index.get.mjs +5 -2
  383. package/.output/server/chunks/routes/api/skills/_name/index.get.mjs.map +1 -1
  384. package/.output/server/chunks/routes/api/skills/_name/rename.post.mjs +5 -2
  385. package/.output/server/chunks/routes/api/skills/_name/rename.post.mjs.map +1 -1
  386. package/.output/server/chunks/routes/api/skills/_name/toggle.post.mjs +5 -2
  387. package/.output/server/chunks/routes/api/skills/_name/toggle.post.mjs.map +1 -1
  388. package/.output/server/chunks/routes/api/skills/create.post.mjs +5 -2
  389. package/.output/server/chunks/routes/api/skills/create.post.mjs.map +1 -1
  390. package/.output/server/chunks/routes/api/skills/generate.post.mjs +5 -2
  391. package/.output/server/chunks/routes/api/skills/generate.post.mjs.map +1 -1
  392. package/.output/server/chunks/routes/api/skills/import.post.mjs +5 -2
  393. package/.output/server/chunks/routes/api/skills/import.post.mjs.map +1 -1
  394. package/.output/server/chunks/routes/api/skills/index.get.mjs +5 -2
  395. package/.output/server/chunks/routes/api/skills/index.get.mjs.map +1 -1
  396. package/.output/server/chunks/routes/api/skills/index.get2.mjs +5 -2
  397. package/.output/server/chunks/routes/api/skills/index.get2.mjs.map +1 -1
  398. package/.output/server/chunks/routes/api/skills/library/check-updates.get.mjs +5 -2
  399. package/.output/server/chunks/routes/api/skills/library/check-updates.get.mjs.map +1 -1
  400. package/.output/server/chunks/routes/api/skills/library/install.post.mjs +9 -4
  401. package/.output/server/chunks/routes/api/skills/library/install.post.mjs.map +1 -1
  402. package/.output/server/chunks/routes/api/tasks/_id/restore.post.mjs +5 -2
  403. package/.output/server/chunks/routes/api/tasks/_id/restore.post.mjs.map +1 -1
  404. package/.output/server/chunks/routes/api/tasks/index.delete.mjs +5 -2
  405. package/.output/server/chunks/routes/api/tasks/index.delete.mjs.map +1 -1
  406. package/.output/server/chunks/routes/api/tasks/index.get.mjs +4 -1
  407. package/.output/server/chunks/routes/api/tasks/index.get.mjs.map +1 -1
  408. package/.output/server/chunks/routes/api/tasks/index.put.mjs +5 -2
  409. package/.output/server/chunks/routes/api/tasks/index.put.mjs.map +1 -1
  410. package/.output/server/chunks/routes/api/tasks/tags.get.mjs +5 -2
  411. package/.output/server/chunks/routes/api/tasks/tags.get.mjs.map +1 -1
  412. package/.output/server/chunks/routes/api/usage/stats.get.mjs +5 -2
  413. package/.output/server/chunks/routes/api/usage/stats.get.mjs.map +1 -1
  414. package/.output/server/chunks/routes/api/user/email.patch.mjs +5 -2
  415. package/.output/server/chunks/routes/api/user/email.patch.mjs.map +1 -1
  416. package/.output/server/chunks/routes/api/webhooks/bluebubbles.post.mjs +56 -0
  417. package/.output/server/chunks/routes/api/webhooks/bluebubbles.post.mjs.map +1 -0
  418. package/.output/server/chunks/routes/api/webhooks/telegram.post.mjs +60 -0
  419. package/.output/server/chunks/routes/api/webhooks/telegram.post.mjs.map +1 -0
  420. package/.output/server/chunks/routes/notifications.mjs +5 -2
  421. package/.output/server/chunks/routes/notifications.mjs.map +1 -1
  422. package/.output/server/chunks/routes/renderer.mjs +1 -1
  423. package/.output/server/chunks/routes/terminal.mjs +5 -2
  424. package/.output/server/chunks/routes/terminal.mjs.map +1 -1
  425. package/.output/server/index.mjs +5 -2
  426. package/.output/server/index.mjs.map +1 -1
  427. package/.output/server/node_modules/.nitro/@discordjs/collection@1.5.3/dist/index.js +543 -0
  428. package/.output/server/node_modules/.nitro/@discordjs/collection@1.5.3/package.json +76 -0
  429. package/.output/server/node_modules/.nitro/@discordjs/collection@2.1.1/dist/index.js +567 -0
  430. package/.output/server/node_modules/.nitro/@discordjs/collection@2.1.1/package.json +86 -0
  431. package/.output/server/node_modules/@discordjs/builders/dist/index.js +4229 -0
  432. package/.output/server/node_modules/@discordjs/builders/package.json +99 -0
  433. package/.output/server/node_modules/@discordjs/formatters/dist/index.js +519 -0
  434. package/.output/server/node_modules/@discordjs/formatters/package.json +83 -0
  435. package/.output/server/node_modules/@discordjs/rest/dist/index.js +1515 -0
  436. package/.output/server/node_modules/@discordjs/rest/package.json +119 -0
  437. package/.output/server/node_modules/@discordjs/util/dist/index.js +159 -0
  438. package/.output/server/node_modules/@discordjs/util/package.json +94 -0
  439. package/.output/server/node_modules/@discordjs/ws/dist/defaultWorker.js +1057 -0
  440. package/.output/server/node_modules/@discordjs/ws/dist/index.js +1506 -0
  441. package/.output/server/node_modules/@discordjs/ws/package.json +113 -0
  442. package/.output/server/node_modules/@sapphire/async-queue/dist/cjs/index.cjs +137 -0
  443. package/.output/server/node_modules/@sapphire/async-queue/package.json +74 -0
  444. package/.output/server/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs +3210 -0
  445. package/.output/server/node_modules/@sapphire/shapeshift/package.json +125 -0
  446. package/.output/server/node_modules/@sapphire/snowflake/dist/cjs/index.cjs +194 -0
  447. package/.output/server/node_modules/@sapphire/snowflake/package.json +72 -0
  448. package/.output/server/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs +2825 -0
  449. package/.output/server/node_modules/@vladfrangu/async_event_emitter/package.json +112 -0
  450. package/.output/server/node_modules/discord-api-types/gateway/v10.js +277 -0
  451. package/.output/server/node_modules/discord-api-types/globals.js +105 -0
  452. package/.output/server/node_modules/discord-api-types/package.json +215 -0
  453. package/.output/server/node_modules/discord-api-types/payloads/common.js +310 -0
  454. package/.output/server/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.js +21 -0
  455. package/.output/server/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.js +18 -0
  456. package/.output/server/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.js +21 -0
  457. package/.output/server/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.js +89 -0
  458. package/.output/server/node_modules/discord-api-types/payloads/v10/_interactions/responses.js +63 -0
  459. package/.output/server/node_modules/discord-api-types/payloads/v10/application.js +138 -0
  460. package/.output/server/node_modules/discord-api-types/payloads/v10/auditLog.js +85 -0
  461. package/.output/server/node_modules/discord-api-types/payloads/v10/autoModeration.js +88 -0
  462. package/.output/server/node_modules/discord-api-types/payloads/v10/channel.js +219 -0
  463. package/.output/server/node_modules/discord-api-types/payloads/v10/gateway.js +103 -0
  464. package/.output/server/node_modules/discord-api-types/payloads/v10/guild.js +403 -0
  465. package/.output/server/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.js +74 -0
  466. package/.output/server/node_modules/discord-api-types/payloads/v10/index.js +37 -0
  467. package/.output/server/node_modules/discord-api-types/payloads/v10/interactions.js +19 -0
  468. package/.output/server/node_modules/discord-api-types/payloads/v10/invite.js +31 -0
  469. package/.output/server/node_modules/discord-api-types/payloads/v10/message.js +379 -0
  470. package/.output/server/node_modules/discord-api-types/payloads/v10/monetization.js +101 -0
  471. package/.output/server/node_modules/discord-api-types/payloads/v10/oauth2.js +148 -0
  472. package/.output/server/node_modules/discord-api-types/payloads/v10/permissions.js +17 -0
  473. package/.output/server/node_modules/discord-api-types/payloads/v10/poll.js +17 -0
  474. package/.output/server/node_modules/discord-api-types/payloads/v10/stageInstance.js +21 -0
  475. package/.output/server/node_modules/discord-api-types/payloads/v10/sticker.js +31 -0
  476. package/.output/server/node_modules/discord-api-types/payloads/v10/teams.js +24 -0
  477. package/.output/server/node_modules/discord-api-types/payloads/v10/user.js +189 -0
  478. package/.output/server/node_modules/discord-api-types/payloads/v10/webhook.js +73 -0
  479. package/.output/server/node_modules/discord-api-types/rest/common.js +273 -0
  480. package/.output/server/node_modules/discord-api-types/rest/v10/channel.js +12 -0
  481. package/.output/server/node_modules/discord-api-types/rest/v10/index.js +1272 -0
  482. package/.output/server/node_modules/discord-api-types/rest/v10/monetization.js +12 -0
  483. package/.output/server/node_modules/discord-api-types/rpc/common.js +240 -0
  484. package/.output/server/node_modules/discord-api-types/rpc/v10.js +299 -0
  485. package/.output/server/node_modules/discord-api-types/utils/internals.js +13 -0
  486. package/.output/server/node_modules/discord-api-types/utils/v10.js +158 -0
  487. package/.output/server/node_modules/discord-api-types/v10.js +25 -0
  488. package/.output/server/node_modules/discord.js/package.json +107 -0
  489. package/.output/server/node_modules/discord.js/src/client/BaseClient.js +120 -0
  490. package/.output/server/node_modules/discord.js/src/client/Client.js +649 -0
  491. package/.output/server/node_modules/discord.js/src/client/WebhookClient.js +103 -0
  492. package/.output/server/node_modules/discord.js/src/client/actions/Action.js +143 -0
  493. package/.output/server/node_modules/discord.js/src/client/actions/ActionsManager.js +85 -0
  494. package/.output/server/node_modules/discord.js/src/client/actions/ApplicationCommandPermissionsUpdate.js +34 -0
  495. package/.output/server/node_modules/discord.js/src/client/actions/AutoModerationActionExecution.js +26 -0
  496. package/.output/server/node_modules/discord.js/src/client/actions/AutoModerationRuleCreate.js +27 -0
  497. package/.output/server/node_modules/discord.js/src/client/actions/AutoModerationRuleDelete.js +31 -0
  498. package/.output/server/node_modules/discord.js/src/client/actions/AutoModerationRuleUpdate.js +29 -0
  499. package/.output/server/node_modules/discord.js/src/client/actions/ChannelCreate.js +23 -0
  500. package/.output/server/node_modules/discord.js/src/client/actions/ChannelDelete.js +23 -0
  501. package/.output/server/node_modules/discord.js/src/client/actions/ChannelUpdate.js +42 -0
  502. package/.output/server/node_modules/discord.js/src/client/actions/EntitlementCreate.js +23 -0
  503. package/.output/server/node_modules/discord.js/src/client/actions/EntitlementDelete.js +27 -0
  504. package/.output/server/node_modules/discord.js/src/client/actions/EntitlementUpdate.js +25 -0
  505. package/.output/server/node_modules/discord.js/src/client/actions/GuildAuditLogEntryCreate.js +29 -0
  506. package/.output/server/node_modules/discord.js/src/client/actions/GuildBanAdd.js +20 -0
  507. package/.output/server/node_modules/discord.js/src/client/actions/GuildBanRemove.js +25 -0
  508. package/.output/server/node_modules/discord.js/src/client/actions/GuildChannelsPositionUpdate.js +21 -0
  509. package/.output/server/node_modules/discord.js/src/client/actions/GuildDelete.js +44 -0
  510. package/.output/server/node_modules/discord.js/src/client/actions/GuildEmojiCreate.js +20 -0
  511. package/.output/server/node_modules/discord.js/src/client/actions/GuildEmojiDelete.js +19 -0
  512. package/.output/server/node_modules/discord.js/src/client/actions/GuildEmojiUpdate.js +20 -0
  513. package/.output/server/node_modules/discord.js/src/client/actions/GuildEmojisUpdate.js +34 -0
  514. package/.output/server/node_modules/discord.js/src/client/actions/GuildIntegrationsUpdate.js +19 -0
  515. package/.output/server/node_modules/discord.js/src/client/actions/GuildMemberRemove.js +31 -0
  516. package/.output/server/node_modules/discord.js/src/client/actions/GuildMemberUpdate.js +44 -0
  517. package/.output/server/node_modules/discord.js/src/client/actions/GuildRoleCreate.js +25 -0
  518. package/.output/server/node_modules/discord.js/src/client/actions/GuildRoleDelete.js +29 -0
  519. package/.output/server/node_modules/discord.js/src/client/actions/GuildRoleUpdate.js +39 -0
  520. package/.output/server/node_modules/discord.js/src/client/actions/GuildRolesPositionUpdate.js +21 -0
  521. package/.output/server/node_modules/discord.js/src/client/actions/GuildScheduledEventCreate.js +27 -0
  522. package/.output/server/node_modules/discord.js/src/client/actions/GuildScheduledEventDelete.js +31 -0
  523. package/.output/server/node_modules/discord.js/src/client/actions/GuildScheduledEventUpdate.js +30 -0
  524. package/.output/server/node_modules/discord.js/src/client/actions/GuildScheduledEventUserAdd.js +32 -0
  525. package/.output/server/node_modules/discord.js/src/client/actions/GuildScheduledEventUserRemove.js +32 -0
  526. package/.output/server/node_modules/discord.js/src/client/actions/GuildSoundboardSoundDelete.js +29 -0
  527. package/.output/server/node_modules/discord.js/src/client/actions/GuildStickerCreate.js +20 -0
  528. package/.output/server/node_modules/discord.js/src/client/actions/GuildStickerDelete.js +19 -0
  529. package/.output/server/node_modules/discord.js/src/client/actions/GuildStickerUpdate.js +20 -0
  530. package/.output/server/node_modules/discord.js/src/client/actions/GuildStickersUpdate.js +34 -0
  531. package/.output/server/node_modules/discord.js/src/client/actions/GuildUpdate.js +33 -0
  532. package/.output/server/node_modules/discord.js/src/client/actions/InteractionCreate.js +105 -0
  533. package/.output/server/node_modules/discord.js/src/client/actions/InviteCreate.js +27 -0
  534. package/.output/server/node_modules/discord.js/src/client/actions/InviteDelete.js +29 -0
  535. package/.output/server/node_modules/discord.js/src/client/actions/MessageCreate.js +41 -0
  536. package/.output/server/node_modules/discord.js/src/client/actions/MessageDelete.js +32 -0
  537. package/.output/server/node_modules/discord.js/src/client/actions/MessageDeleteBulk.js +47 -0
  538. package/.output/server/node_modules/discord.js/src/client/actions/MessagePollVoteAdd.js +40 -0
  539. package/.output/server/node_modules/discord.js/src/client/actions/MessagePollVoteRemove.js +38 -0
  540. package/.output/server/node_modules/discord.js/src/client/actions/MessageReactionAdd.js +70 -0
  541. package/.output/server/node_modules/discord.js/src/client/actions/MessageReactionRemove.js +50 -0
  542. package/.output/server/node_modules/discord.js/src/client/actions/MessageReactionRemoveAll.js +33 -0
  543. package/.output/server/node_modules/discord.js/src/client/actions/MessageReactionRemoveEmoji.js +28 -0
  544. package/.output/server/node_modules/discord.js/src/client/actions/MessageUpdate.js +26 -0
  545. package/.output/server/node_modules/discord.js/src/client/actions/PresenceUpdate.js +45 -0
  546. package/.output/server/node_modules/discord.js/src/client/actions/StageInstanceCreate.js +28 -0
  547. package/.output/server/node_modules/discord.js/src/client/actions/StageInstanceDelete.js +31 -0
  548. package/.output/server/node_modules/discord.js/src/client/actions/StageInstanceUpdate.js +30 -0
  549. package/.output/server/node_modules/discord.js/src/client/actions/ThreadCreate.js +24 -0
  550. package/.output/server/node_modules/discord.js/src/client/actions/ThreadDelete.js +26 -0
  551. package/.output/server/node_modules/discord.js/src/client/actions/ThreadListSync.js +60 -0
  552. package/.output/server/node_modules/discord.js/src/client/actions/ThreadMemberUpdate.js +30 -0
  553. package/.output/server/node_modules/discord.js/src/client/actions/ThreadMembersUpdate.js +47 -0
  554. package/.output/server/node_modules/discord.js/src/client/actions/TypingStart.js +29 -0
  555. package/.output/server/node_modules/discord.js/src/client/actions/UserUpdate.js +36 -0
  556. package/.output/server/node_modules/discord.js/src/client/actions/VoiceStateUpdate.js +43 -0
  557. package/.output/server/node_modules/discord.js/src/client/actions/WebhooksUpdate.js +37 -0
  558. package/.output/server/node_modules/discord.js/src/client/voice/ClientVoiceManager.js +44 -0
  559. package/.output/server/node_modules/discord.js/src/client/websocket/WebSocketManager.js +407 -0
  560. package/.output/server/node_modules/discord.js/src/client/websocket/WebSocketShard.js +234 -0
  561. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/APPLICATION_COMMAND_PERMISSIONS_UPDATE.js +5 -0
  562. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/AUTO_MODERATION_ACTION_EXECUTION.js +5 -0
  563. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/AUTO_MODERATION_RULE_CREATE.js +5 -0
  564. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/AUTO_MODERATION_RULE_DELETE.js +5 -0
  565. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/AUTO_MODERATION_RULE_UPDATE.js +5 -0
  566. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/CHANNEL_CREATE.js +5 -0
  567. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/CHANNEL_DELETE.js +5 -0
  568. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/CHANNEL_PINS_UPDATE.js +22 -0
  569. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/CHANNEL_UPDATE.js +16 -0
  570. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/ENTITLEMENT_CREATE.js +5 -0
  571. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/ENTITLEMENT_DELETE.js +5 -0
  572. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/ENTITLEMENT_UPDATE.js +5 -0
  573. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_AUDIT_LOG_ENTRY_CREATE.js +5 -0
  574. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_BAN_ADD.js +5 -0
  575. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_BAN_REMOVE.js +5 -0
  576. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_CREATE.js +33 -0
  577. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_DELETE.js +5 -0
  578. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_EMOJIS_UPDATE.js +5 -0
  579. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_INTEGRATIONS_UPDATE.js +5 -0
  580. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_MEMBERS_CHUNK.js +39 -0
  581. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_MEMBER_ADD.js +20 -0
  582. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_MEMBER_REMOVE.js +5 -0
  583. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_MEMBER_UPDATE.js +5 -0
  584. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_ROLE_CREATE.js +5 -0
  585. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_ROLE_DELETE.js +5 -0
  586. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_ROLE_UPDATE.js +5 -0
  587. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_CREATE.js +5 -0
  588. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_DELETE.js +5 -0
  589. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_UPDATE.js +5 -0
  590. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_USER_ADD.js +5 -0
  591. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_USER_REMOVE.js +5 -0
  592. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUNDS_UPDATE.js +24 -0
  593. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_CREATE.js +18 -0
  594. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_DELETE.js +5 -0
  595. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_UPDATE.js +20 -0
  596. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_STICKERS_UPDATE.js +5 -0
  597. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/GUILD_UPDATE.js +5 -0
  598. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js +5 -0
  599. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/INVITE_CREATE.js +5 -0
  600. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/INVITE_DELETE.js +5 -0
  601. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js +5 -0
  602. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_DELETE.js +5 -0
  603. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_DELETE_BULK.js +5 -0
  604. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_POLL_VOTE_ADD.js +5 -0
  605. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_POLL_VOTE_REMOVE.js +5 -0
  606. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_REACTION_ADD.js +5 -0
  607. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE.js +5 -0
  608. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE_ALL.js +5 -0
  609. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE_EMOJI.js +5 -0
  610. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_UPDATE.js +16 -0
  611. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/PRESENCE_UPDATE.js +5 -0
  612. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/RATE_LIMITED.js +25 -0
  613. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/READY.js +27 -0
  614. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/RESUMED.js +14 -0
  615. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/SOUNDBOARD_SOUNDS.js +24 -0
  616. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/STAGE_INSTANCE_CREATE.js +5 -0
  617. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/STAGE_INSTANCE_DELETE.js +5 -0
  618. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/STAGE_INSTANCE_UPDATE.js +5 -0
  619. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/SUBSCRIPTION_CREATE.js +14 -0
  620. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/SUBSCRIPTION_DELETE.js +16 -0
  621. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/SUBSCRIPTION_UPDATE.js +16 -0
  622. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/THREAD_CREATE.js +5 -0
  623. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/THREAD_DELETE.js +5 -0
  624. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/THREAD_LIST_SYNC.js +5 -0
  625. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/THREAD_MEMBERS_UPDATE.js +5 -0
  626. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/THREAD_MEMBER_UPDATE.js +5 -0
  627. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/THREAD_UPDATE.js +16 -0
  628. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/TYPING_START.js +5 -0
  629. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/USER_UPDATE.js +5 -0
  630. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js +16 -0
  631. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/VOICE_SERVER_UPDATE.js +6 -0
  632. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/VOICE_STATE_UPDATE.js +5 -0
  633. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/WEBHOOKS_UPDATE.js +5 -0
  634. package/.output/server/node_modules/discord.js/src/client/websocket/handlers/index.js +79 -0
  635. package/.output/server/node_modules/discord.js/src/errors/DJSError.js +48 -0
  636. package/.output/server/node_modules/discord.js/src/errors/ErrorCodes.js +356 -0
  637. package/.output/server/node_modules/discord.js/src/errors/Messages.js +187 -0
  638. package/.output/server/node_modules/discord.js/src/errors/index.js +5 -0
  639. package/.output/server/node_modules/discord.js/src/index.js +254 -0
  640. package/.output/server/node_modules/discord.js/src/managers/ApplicationCommandManager.js +269 -0
  641. package/.output/server/node_modules/discord.js/src/managers/ApplicationCommandPermissionsManager.js +428 -0
  642. package/.output/server/node_modules/discord.js/src/managers/ApplicationEmojiManager.js +142 -0
  643. package/.output/server/node_modules/discord.js/src/managers/AutoModerationRuleManager.js +292 -0
  644. package/.output/server/node_modules/discord.js/src/managers/BaseGuildEmojiManager.js +85 -0
  645. package/.output/server/node_modules/discord.js/src/managers/BaseManager.js +19 -0
  646. package/.output/server/node_modules/discord.js/src/managers/CachedManager.js +64 -0
  647. package/.output/server/node_modules/discord.js/src/managers/CategoryChannelChildManager.js +79 -0
  648. package/.output/server/node_modules/discord.js/src/managers/ChannelManager.js +135 -0
  649. package/.output/server/node_modules/discord.js/src/managers/DMMessageManager.js +17 -0
  650. package/.output/server/node_modules/discord.js/src/managers/DataManager.js +61 -0
  651. package/.output/server/node_modules/discord.js/src/managers/EntitlementManager.js +174 -0
  652. package/.output/server/node_modules/discord.js/src/managers/GuildApplicationCommandManager.js +28 -0
  653. package/.output/server/node_modules/discord.js/src/managers/GuildBanManager.js +249 -0
  654. package/.output/server/node_modules/discord.js/src/managers/GuildChannelManager.js +519 -0
  655. package/.output/server/node_modules/discord.js/src/managers/GuildEmojiManager.js +174 -0
  656. package/.output/server/node_modules/discord.js/src/managers/GuildEmojiRoleManager.js +126 -0
  657. package/.output/server/node_modules/discord.js/src/managers/GuildForumThreadManager.js +83 -0
  658. package/.output/server/node_modules/discord.js/src/managers/GuildInviteManager.js +215 -0
  659. package/.output/server/node_modules/discord.js/src/managers/GuildManager.js +408 -0
  660. package/.output/server/node_modules/discord.js/src/managers/GuildMemberManager.js +638 -0
  661. package/.output/server/node_modules/discord.js/src/managers/GuildMemberRoleManager.js +217 -0
  662. package/.output/server/node_modules/discord.js/src/managers/GuildMessageManager.js +17 -0
  663. package/.output/server/node_modules/discord.js/src/managers/GuildScheduledEventManager.js +315 -0
  664. package/.output/server/node_modules/discord.js/src/managers/GuildSoundboardSoundManager.js +214 -0
  665. package/.output/server/node_modules/discord.js/src/managers/GuildStickerManager.js +182 -0
  666. package/.output/server/node_modules/discord.js/src/managers/GuildTextThreadManager.js +91 -0
  667. package/.output/server/node_modules/discord.js/src/managers/MessageManager.js +368 -0
  668. package/.output/server/node_modules/discord.js/src/managers/PartialGroupDMMessageManager.js +17 -0
  669. package/.output/server/node_modules/discord.js/src/managers/PermissionOverwriteManager.js +166 -0
  670. package/.output/server/node_modules/discord.js/src/managers/PollAnswerVoterManager.js +50 -0
  671. package/.output/server/node_modules/discord.js/src/managers/PresenceManager.js +58 -0
  672. package/.output/server/node_modules/discord.js/src/managers/ReactionManager.js +68 -0
  673. package/.output/server/node_modules/discord.js/src/managers/ReactionUserManager.js +78 -0
  674. package/.output/server/node_modules/discord.js/src/managers/RoleManager.js +444 -0
  675. package/.output/server/node_modules/discord.js/src/managers/StageInstanceManager.js +159 -0
  676. package/.output/server/node_modules/discord.js/src/managers/SubscriptionManager.js +81 -0
  677. package/.output/server/node_modules/discord.js/src/managers/ThreadManager.js +193 -0
  678. package/.output/server/node_modules/discord.js/src/managers/ThreadMemberManager.js +204 -0
  679. package/.output/server/node_modules/discord.js/src/managers/UserManager.js +146 -0
  680. package/.output/server/node_modules/discord.js/src/managers/VoiceStateManager.js +59 -0
  681. package/.output/server/node_modules/discord.js/src/sharding/Shard.js +482 -0
  682. package/.output/server/node_modules/discord.js/src/sharding/ShardClientUtil.js +292 -0
  683. package/.output/server/node_modules/discord.js/src/sharding/ShardingManager.js +331 -0
  684. package/.output/server/node_modules/discord.js/src/structures/ActionRow.js +46 -0
  685. package/.output/server/node_modules/discord.js/src/structures/ActionRowBuilder.js +35 -0
  686. package/.output/server/node_modules/discord.js/src/structures/AnonymousGuild.js +97 -0
  687. package/.output/server/node_modules/discord.js/src/structures/ApplicationCommand.js +639 -0
  688. package/.output/server/node_modules/discord.js/src/structures/ApplicationEmoji.js +169 -0
  689. package/.output/server/node_modules/discord.js/src/structures/ApplicationRoleConnectionMetadata.js +46 -0
  690. package/.output/server/node_modules/discord.js/src/structures/Attachment.js +163 -0
  691. package/.output/server/node_modules/discord.js/src/structures/AttachmentBuilder.js +111 -0
  692. package/.output/server/node_modules/discord.js/src/structures/AutoModerationActionExecution.js +116 -0
  693. package/.output/server/node_modules/discord.js/src/structures/AutoModerationRule.js +288 -0
  694. package/.output/server/node_modules/discord.js/src/structures/AutocompleteInteraction.js +102 -0
  695. package/.output/server/node_modules/discord.js/src/structures/Base.js +43 -0
  696. package/.output/server/node_modules/discord.js/src/structures/BaseChannel.js +171 -0
  697. package/.output/server/node_modules/discord.js/src/structures/BaseGuild.js +119 -0
  698. package/.output/server/node_modules/discord.js/src/structures/BaseGuildEmoji.js +111 -0
  699. package/.output/server/node_modules/discord.js/src/structures/BaseGuildTextChannel.js +196 -0
  700. package/.output/server/node_modules/discord.js/src/structures/BaseGuildVoiceChannel.js +234 -0
  701. package/.output/server/node_modules/discord.js/src/structures/BaseInteraction.js +349 -0
  702. package/.output/server/node_modules/discord.js/src/structures/BaseSelectMenuComponent.js +56 -0
  703. package/.output/server/node_modules/discord.js/src/structures/ButtonBuilder.js +44 -0
  704. package/.output/server/node_modules/discord.js/src/structures/ButtonComponent.js +65 -0
  705. package/.output/server/node_modules/discord.js/src/structures/ButtonInteraction.js +11 -0
  706. package/.output/server/node_modules/discord.js/src/structures/CategoryChannel.js +45 -0
  707. package/.output/server/node_modules/discord.js/src/structures/ChannelSelectMenuBuilder.js +31 -0
  708. package/.output/server/node_modules/discord.js/src/structures/ChannelSelectMenuComponent.js +20 -0
  709. package/.output/server/node_modules/discord.js/src/structures/ChannelSelectMenuInteraction.js +33 -0
  710. package/.output/server/node_modules/discord.js/src/structures/ChatInputCommandInteraction.js +42 -0
  711. package/.output/server/node_modules/discord.js/src/structures/ClientApplication.js +415 -0
  712. package/.output/server/node_modules/discord.js/src/structures/ClientPresence.js +84 -0
  713. package/.output/server/node_modules/discord.js/src/structures/ClientUser.js +204 -0
  714. package/.output/server/node_modules/discord.js/src/structures/CommandInteraction.js +168 -0
  715. package/.output/server/node_modules/discord.js/src/structures/CommandInteractionOptionResolver.js +308 -0
  716. package/.output/server/node_modules/discord.js/src/structures/Component.js +56 -0
  717. package/.output/server/node_modules/discord.js/src/structures/ContainerComponent.js +60 -0
  718. package/.output/server/node_modules/discord.js/src/structures/ContextMenuCommandInteraction.js +65 -0
  719. package/.output/server/node_modules/discord.js/src/structures/DMChannel.js +129 -0
  720. package/.output/server/node_modules/discord.js/src/structures/DirectoryChannel.js +36 -0
  721. package/.output/server/node_modules/discord.js/src/structures/Embed.js +237 -0
  722. package/.output/server/node_modules/discord.js/src/structures/EmbedBuilder.js +50 -0
  723. package/.output/server/node_modules/discord.js/src/structures/Emoji.js +115 -0
  724. package/.output/server/node_modules/discord.js/src/structures/Entitlement.js +179 -0
  725. package/.output/server/node_modules/discord.js/src/structures/FileComponent.js +40 -0
  726. package/.output/server/node_modules/discord.js/src/structures/ForumChannel.js +31 -0
  727. package/.output/server/node_modules/discord.js/src/structures/Guild.js +1496 -0
  728. package/.output/server/node_modules/discord.js/src/structures/GuildAuditLogs.js +91 -0
  729. package/.output/server/node_modules/discord.js/src/structures/GuildAuditLogsEntry.js +527 -0
  730. package/.output/server/node_modules/discord.js/src/structures/GuildBan.js +59 -0
  731. package/.output/server/node_modules/discord.js/src/structures/GuildChannel.js +476 -0
  732. package/.output/server/node_modules/discord.js/src/structures/GuildEmoji.js +148 -0
  733. package/.output/server/node_modules/discord.js/src/structures/GuildMember.js +591 -0
  734. package/.output/server/node_modules/discord.js/src/structures/GuildOnboarding.js +64 -0
  735. package/.output/server/node_modules/discord.js/src/structures/GuildOnboardingPrompt.js +78 -0
  736. package/.output/server/node_modules/discord.js/src/structures/GuildOnboardingPromptOption.js +86 -0
  737. package/.output/server/node_modules/discord.js/src/structures/GuildPreview.js +193 -0
  738. package/.output/server/node_modules/discord.js/src/structures/GuildPreviewEmoji.js +27 -0
  739. package/.output/server/node_modules/discord.js/src/structures/GuildScheduledEvent.js +534 -0
  740. package/.output/server/node_modules/discord.js/src/structures/GuildTemplate.js +242 -0
  741. package/.output/server/node_modules/discord.js/src/structures/Integration.js +220 -0
  742. package/.output/server/node_modules/discord.js/src/structures/IntegrationApplication.js +85 -0
  743. package/.output/server/node_modules/discord.js/src/structures/InteractionCallback.js +74 -0
  744. package/.output/server/node_modules/discord.js/src/structures/InteractionCallbackResource.js +52 -0
  745. package/.output/server/node_modules/discord.js/src/structures/InteractionCallbackResponse.js +33 -0
  746. package/.output/server/node_modules/discord.js/src/structures/InteractionCollector.js +269 -0
  747. package/.output/server/node_modules/discord.js/src/structures/InteractionResponse.js +102 -0
  748. package/.output/server/node_modules/discord.js/src/structures/InteractionWebhook.js +59 -0
  749. package/.output/server/node_modules/discord.js/src/structures/Invite.js +341 -0
  750. package/.output/server/node_modules/discord.js/src/structures/InviteGuild.js +22 -0
  751. package/.output/server/node_modules/discord.js/src/structures/InviteStageInstance.js +87 -0
  752. package/.output/server/node_modules/discord.js/src/structures/LabelComponent.js +54 -0
  753. package/.output/server/node_modules/discord.js/src/structures/MediaChannel.js +11 -0
  754. package/.output/server/node_modules/discord.js/src/structures/MediaGalleryComponent.js +31 -0
  755. package/.output/server/node_modules/discord.js/src/structures/MediaGalleryItem.js +51 -0
  756. package/.output/server/node_modules/discord.js/src/structures/MentionableSelectMenuBuilder.js +32 -0
  757. package/.output/server/node_modules/discord.js/src/structures/MentionableSelectMenuComponent.js +11 -0
  758. package/.output/server/node_modules/discord.js/src/structures/MentionableSelectMenuInteraction.js +71 -0
  759. package/.output/server/node_modules/discord.js/src/structures/Message.js +1137 -0
  760. package/.output/server/node_modules/discord.js/src/structures/MessageCollector.js +146 -0
  761. package/.output/server/node_modules/discord.js/src/structures/MessageComponentInteraction.js +108 -0
  762. package/.output/server/node_modules/discord.js/src/structures/MessageContextMenuCommandInteraction.js +20 -0
  763. package/.output/server/node_modules/discord.js/src/structures/MessageMentions.js +297 -0
  764. package/.output/server/node_modules/discord.js/src/structures/MessagePayload.js +344 -0
  765. package/.output/server/node_modules/discord.js/src/structures/MessageReaction.js +200 -0
  766. package/.output/server/node_modules/discord.js/src/structures/ModalBuilder.js +36 -0
  767. package/.output/server/node_modules/discord.js/src/structures/ModalSubmitFields.js +232 -0
  768. package/.output/server/node_modules/discord.js/src/structures/ModalSubmitInteraction.js +256 -0
  769. package/.output/server/node_modules/discord.js/src/structures/NewsChannel.js +32 -0
  770. package/.output/server/node_modules/discord.js/src/structures/OAuth2Guild.js +28 -0
  771. package/.output/server/node_modules/discord.js/src/structures/PartialGroupDMChannel.js +131 -0
  772. package/.output/server/node_modules/discord.js/src/structures/PermissionOverwrites.js +199 -0
  773. package/.output/server/node_modules/discord.js/src/structures/Poll.js +175 -0
  774. package/.output/server/node_modules/discord.js/src/structures/PollAnswer.js +114 -0
  775. package/.output/server/node_modules/discord.js/src/structures/Presence.js +385 -0
  776. package/.output/server/node_modules/discord.js/src/structures/PrimaryEntryPointCommandInteraction.js +11 -0
  777. package/.output/server/node_modules/discord.js/src/structures/ReactionCollector.js +229 -0
  778. package/.output/server/node_modules/discord.js/src/structures/ReactionEmoji.js +31 -0
  779. package/.output/server/node_modules/discord.js/src/structures/Role.js +519 -0
  780. package/.output/server/node_modules/discord.js/src/structures/RoleSelectMenuBuilder.js +31 -0
  781. package/.output/server/node_modules/discord.js/src/structures/RoleSelectMenuComponent.js +11 -0
  782. package/.output/server/node_modules/discord.js/src/structures/RoleSelectMenuInteraction.js +33 -0
  783. package/.output/server/node_modules/discord.js/src/structures/SKU.js +52 -0
  784. package/.output/server/node_modules/discord.js/src/structures/SectionComponent.js +42 -0
  785. package/.output/server/node_modules/discord.js/src/structures/SelectMenuBuilder.js +26 -0
  786. package/.output/server/node_modules/discord.js/src/structures/SelectMenuComponent.js +26 -0
  787. package/.output/server/node_modules/discord.js/src/structures/SelectMenuInteraction.js +26 -0
  788. package/.output/server/node_modules/discord.js/src/structures/SelectMenuOptionBuilder.js +26 -0
  789. package/.output/server/node_modules/discord.js/src/structures/SeparatorComponent.js +30 -0
  790. package/.output/server/node_modules/discord.js/src/structures/SoundboardSound.js +204 -0
  791. package/.output/server/node_modules/discord.js/src/structures/StageChannel.js +112 -0
  792. package/.output/server/node_modules/discord.js/src/structures/StageInstance.js +167 -0
  793. package/.output/server/node_modules/discord.js/src/structures/Sticker.js +268 -0
  794. package/.output/server/node_modules/discord.js/src/structures/StickerPack.js +95 -0
  795. package/.output/server/node_modules/discord.js/src/structures/StringSelectMenuBuilder.js +79 -0
  796. package/.output/server/node_modules/discord.js/src/structures/StringSelectMenuComponent.js +20 -0
  797. package/.output/server/node_modules/discord.js/src/structures/StringSelectMenuInteraction.js +21 -0
  798. package/.output/server/node_modules/discord.js/src/structures/StringSelectMenuOptionBuilder.js +49 -0
  799. package/.output/server/node_modules/discord.js/src/structures/Subscription.js +117 -0
  800. package/.output/server/node_modules/discord.js/src/structures/Team.js +117 -0
  801. package/.output/server/node_modules/discord.js/src/structures/TeamMember.js +79 -0
  802. package/.output/server/node_modules/discord.js/src/structures/TextChannel.js +33 -0
  803. package/.output/server/node_modules/discord.js/src/structures/TextDisplayComponent.js +20 -0
  804. package/.output/server/node_modules/discord.js/src/structures/TextInputBuilder.js +31 -0
  805. package/.output/server/node_modules/discord.js/src/structures/TextInputComponent.js +29 -0
  806. package/.output/server/node_modules/discord.js/src/structures/ThreadChannel.js +612 -0
  807. package/.output/server/node_modules/discord.js/src/structures/ThreadMember.js +119 -0
  808. package/.output/server/node_modules/discord.js/src/structures/ThreadOnlyChannel.js +249 -0
  809. package/.output/server/node_modules/discord.js/src/structures/ThumbnailComponent.js +49 -0
  810. package/.output/server/node_modules/discord.js/src/structures/Typing.js +74 -0
  811. package/.output/server/node_modules/discord.js/src/structures/UnfurledMediaItem.js +33 -0
  812. package/.output/server/node_modules/discord.js/src/structures/User.js +505 -0
  813. package/.output/server/node_modules/discord.js/src/structures/UserContextMenuCommandInteraction.js +29 -0
  814. package/.output/server/node_modules/discord.js/src/structures/UserSelectMenuBuilder.js +31 -0
  815. package/.output/server/node_modules/discord.js/src/structures/UserSelectMenuComponent.js +11 -0
  816. package/.output/server/node_modules/discord.js/src/structures/UserSelectMenuInteraction.js +51 -0
  817. package/.output/server/node_modules/discord.js/src/structures/VoiceChannel.js +116 -0
  818. package/.output/server/node_modules/discord.js/src/structures/VoiceChannelEffect.js +78 -0
  819. package/.output/server/node_modules/discord.js/src/structures/VoiceRegion.js +46 -0
  820. package/.output/server/node_modules/discord.js/src/structures/VoiceState.js +312 -0
  821. package/.output/server/node_modules/discord.js/src/structures/Webhook.js +489 -0
  822. package/.output/server/node_modules/discord.js/src/structures/WelcomeChannel.js +60 -0
  823. package/.output/server/node_modules/discord.js/src/structures/WelcomeScreen.js +49 -0
  824. package/.output/server/node_modules/discord.js/src/structures/Widget.js +97 -0
  825. package/.output/server/node_modules/discord.js/src/structures/WidgetMember.js +99 -0
  826. package/.output/server/node_modules/discord.js/src/structures/interfaces/Application.js +158 -0
  827. package/.output/server/node_modules/discord.js/src/structures/interfaces/Collector.js +335 -0
  828. package/.output/server/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js +494 -0
  829. package/.output/server/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js +447 -0
  830. package/.output/server/node_modules/discord.js/src/util/ActivityFlagsBitField.js +26 -0
  831. package/.output/server/node_modules/discord.js/src/util/ApplicationFlagsBitField.js +41 -0
  832. package/.output/server/node_modules/discord.js/src/util/AttachmentFlagsBitField.js +26 -0
  833. package/.output/server/node_modules/discord.js/src/util/BitField.js +178 -0
  834. package/.output/server/node_modules/discord.js/src/util/ChannelFlagsBitField.js +41 -0
  835. package/.output/server/node_modules/discord.js/src/util/Channels.js +161 -0
  836. package/.output/server/node_modules/discord.js/src/util/Colors.js +73 -0
  837. package/.output/server/node_modules/discord.js/src/util/Components.js +311 -0
  838. package/.output/server/node_modules/discord.js/src/util/Constants.js +283 -0
  839. package/.output/server/node_modules/discord.js/src/util/DataResolver.js +142 -0
  840. package/.output/server/node_modules/discord.js/src/util/Enums.js +13 -0
  841. package/.output/server/node_modules/discord.js/src/util/Events.js +190 -0
  842. package/.output/server/node_modules/discord.js/src/util/Formatters.js +413 -0
  843. package/.output/server/node_modules/discord.js/src/util/GuildMemberFlagsBitField.js +42 -0
  844. package/.output/server/node_modules/discord.js/src/util/IntentsBitField.js +34 -0
  845. package/.output/server/node_modules/discord.js/src/util/InviteFlagsBitField.js +28 -0
  846. package/.output/server/node_modules/discord.js/src/util/LimitedCollection.js +68 -0
  847. package/.output/server/node_modules/discord.js/src/util/MessageFlagsBitField.js +41 -0
  848. package/.output/server/node_modules/discord.js/src/util/Options.js +239 -0
  849. package/.output/server/node_modules/discord.js/src/util/Partials.js +50 -0
  850. package/.output/server/node_modules/discord.js/src/util/PermissionsBitField.js +104 -0
  851. package/.output/server/node_modules/discord.js/src/util/RoleFlagsBitField.js +26 -0
  852. package/.output/server/node_modules/discord.js/src/util/SKUFlagsBitField.js +26 -0
  853. package/.output/server/node_modules/discord.js/src/util/ShardEvents.js +29 -0
  854. package/.output/server/node_modules/discord.js/src/util/Status.js +33 -0
  855. package/.output/server/node_modules/discord.js/src/util/Sweepers.js +487 -0
  856. package/.output/server/node_modules/discord.js/src/util/Symbols.js +3 -0
  857. package/.output/server/node_modules/discord.js/src/util/SystemChannelFlagsBitField.js +43 -0
  858. package/.output/server/node_modules/discord.js/src/util/ThreadMemberFlagsBitField.js +32 -0
  859. package/.output/server/node_modules/discord.js/src/util/Transformers.js +125 -0
  860. package/.output/server/node_modules/discord.js/src/util/UserFlagsBitField.js +32 -0
  861. package/.output/server/node_modules/discord.js/src/util/Util.js +558 -0
  862. package/.output/server/node_modules/discord.js/src/util/WebSocketShardEvents.js +25 -0
  863. package/.output/server/node_modules/fast-deep-equal/es6/index.js +72 -0
  864. package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
  865. package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
  866. package/.output/server/node_modules/lodash/_Hash.js +32 -0
  867. package/.output/server/node_modules/lodash/_ListCache.js +32 -0
  868. package/.output/server/node_modules/lodash/_Map.js +7 -0
  869. package/.output/server/node_modules/lodash/_MapCache.js +32 -0
  870. package/.output/server/node_modules/lodash/_Set.js +7 -0
  871. package/.output/server/node_modules/lodash/_SetCache.js +27 -0
  872. package/.output/server/node_modules/lodash/_Symbol.js +6 -0
  873. package/.output/server/node_modules/lodash/_arrayIncludes.js +17 -0
  874. package/.output/server/node_modules/lodash/_arrayIncludesWith.js +22 -0
  875. package/.output/server/node_modules/lodash/_arrayMap.js +21 -0
  876. package/.output/server/node_modules/lodash/_assocIndexOf.js +21 -0
  877. package/.output/server/node_modules/lodash/_baseFindIndex.js +24 -0
  878. package/.output/server/node_modules/lodash/_baseGet.js +24 -0
  879. package/.output/server/node_modules/lodash/_baseGetTag.js +28 -0
  880. package/.output/server/node_modules/lodash/_baseIndexOf.js +20 -0
  881. package/.output/server/node_modules/lodash/_baseIsNaN.js +12 -0
  882. package/.output/server/node_modules/lodash/_baseIsNative.js +47 -0
  883. package/.output/server/node_modules/lodash/_baseToString.js +37 -0
  884. package/.output/server/node_modules/lodash/_baseUniq.js +72 -0
  885. package/.output/server/node_modules/lodash/_cacheHas.js +13 -0
  886. package/.output/server/node_modules/lodash/_castPath.js +21 -0
  887. package/.output/server/node_modules/lodash/_coreJsData.js +6 -0
  888. package/.output/server/node_modules/lodash/_createSet.js +19 -0
  889. package/.output/server/node_modules/lodash/_freeGlobal.js +4 -0
  890. package/.output/server/node_modules/lodash/_getMapData.js +18 -0
  891. package/.output/server/node_modules/lodash/_getNative.js +17 -0
  892. package/.output/server/node_modules/lodash/_getRawTag.js +46 -0
  893. package/.output/server/node_modules/lodash/_getValue.js +13 -0
  894. package/.output/server/node_modules/lodash/_hashClear.js +15 -0
  895. package/.output/server/node_modules/lodash/_hashDelete.js +17 -0
  896. package/.output/server/node_modules/lodash/_hashGet.js +30 -0
  897. package/.output/server/node_modules/lodash/_hashHas.js +23 -0
  898. package/.output/server/node_modules/lodash/_hashSet.js +23 -0
  899. package/.output/server/node_modules/lodash/_isKey.js +29 -0
  900. package/.output/server/node_modules/lodash/_isKeyable.js +15 -0
  901. package/.output/server/node_modules/lodash/_isMasked.js +20 -0
  902. package/.output/server/node_modules/lodash/_listCacheClear.js +13 -0
  903. package/.output/server/node_modules/lodash/_listCacheDelete.js +35 -0
  904. package/.output/server/node_modules/lodash/_listCacheGet.js +19 -0
  905. package/.output/server/node_modules/lodash/_listCacheHas.js +16 -0
  906. package/.output/server/node_modules/lodash/_listCacheSet.js +26 -0
  907. package/.output/server/node_modules/lodash/_mapCacheClear.js +21 -0
  908. package/.output/server/node_modules/lodash/_mapCacheDelete.js +18 -0
  909. package/.output/server/node_modules/lodash/_mapCacheGet.js +16 -0
  910. package/.output/server/node_modules/lodash/_mapCacheHas.js +16 -0
  911. package/.output/server/node_modules/lodash/_mapCacheSet.js +22 -0
  912. package/.output/server/node_modules/lodash/_memoizeCapped.js +26 -0
  913. package/.output/server/node_modules/lodash/_nativeCreate.js +6 -0
  914. package/.output/server/node_modules/lodash/_objectToString.js +22 -0
  915. package/.output/server/node_modules/lodash/_root.js +9 -0
  916. package/.output/server/node_modules/lodash/_setCacheAdd.js +19 -0
  917. package/.output/server/node_modules/lodash/_setCacheHas.js +14 -0
  918. package/.output/server/node_modules/lodash/_setToArray.js +18 -0
  919. package/.output/server/node_modules/lodash/_strictIndexOf.js +23 -0
  920. package/.output/server/node_modules/lodash/_stringToPath.js +27 -0
  921. package/.output/server/node_modules/lodash/_toKey.js +21 -0
  922. package/.output/server/node_modules/lodash/_toSource.js +26 -0
  923. package/.output/server/node_modules/lodash/eq.js +37 -0
  924. package/.output/server/node_modules/lodash/get.js +33 -0
  925. package/.output/server/node_modules/lodash/isArray.js +26 -0
  926. package/.output/server/node_modules/lodash/isFunction.js +37 -0
  927. package/.output/server/node_modules/lodash/isObject.js +31 -0
  928. package/.output/server/node_modules/lodash/isObjectLike.js +29 -0
  929. package/.output/server/node_modules/lodash/isSymbol.js +29 -0
  930. package/.output/server/node_modules/lodash/memoize.js +73 -0
  931. package/.output/server/node_modules/lodash/noop.js +17 -0
  932. package/.output/server/node_modules/lodash/package.json +19 -0
  933. package/.output/server/node_modules/lodash/toString.js +28 -0
  934. package/.output/server/node_modules/lodash/uniqWith.js +28 -0
  935. package/.output/server/node_modules/lodash.snakecase/index.js +435 -0
  936. package/.output/server/node_modules/lodash.snakecase/package.json +19 -0
  937. package/.output/server/node_modules/magic-bytes.js/dist/index.js +61 -0
  938. package/.output/server/node_modules/magic-bytes.js/dist/model/pattern-tree.js +1176 -0
  939. package/.output/server/node_modules/magic-bytes.js/dist/model/toHex.js +8 -0
  940. package/.output/server/node_modules/magic-bytes.js/dist/model/tree.js +61 -0
  941. package/.output/server/node_modules/magic-bytes.js/package.json +77 -0
  942. package/.output/server/node_modules/ts-mixer/dist/cjs/decorator.js +109 -0
  943. package/.output/server/node_modules/ts-mixer/dist/cjs/index.js +12 -0
  944. package/.output/server/node_modules/ts-mixer/dist/cjs/mixin-tracking.js +42 -0
  945. package/.output/server/node_modules/ts-mixer/dist/cjs/mixins.js +82 -0
  946. package/.output/server/node_modules/ts-mixer/dist/cjs/proxy.js +82 -0
  947. package/.output/server/node_modules/ts-mixer/dist/cjs/settings.js +9 -0
  948. package/.output/server/node_modules/ts-mixer/dist/cjs/util.js +85 -0
  949. package/.output/server/node_modules/ts-mixer/package.json +63 -0
  950. package/.output/server/node_modules/tslib/package.json +47 -0
  951. package/.output/server/node_modules/tslib/tslib.js +484 -0
  952. package/.output/server/node_modules/undici/index.js +169 -0
  953. package/.output/server/node_modules/undici/lib/api/abort-signal.js +57 -0
  954. package/.output/server/node_modules/undici/lib/api/api-connect.js +108 -0
  955. package/.output/server/node_modules/undici/lib/api/api-pipeline.js +251 -0
  956. package/.output/server/node_modules/undici/lib/api/api-request.js +214 -0
  957. package/.output/server/node_modules/undici/lib/api/api-stream.js +220 -0
  958. package/.output/server/node_modules/undici/lib/api/api-upgrade.js +108 -0
  959. package/.output/server/node_modules/undici/lib/api/index.js +7 -0
  960. package/.output/server/node_modules/undici/lib/api/readable.js +385 -0
  961. package/.output/server/node_modules/undici/lib/api/util.js +93 -0
  962. package/.output/server/node_modules/undici/lib/core/connect.js +240 -0
  963. package/.output/server/node_modules/undici/lib/core/constants.js +118 -0
  964. package/.output/server/node_modules/undici/lib/core/diagnostics.js +202 -0
  965. package/.output/server/node_modules/undici/lib/core/errors.js +244 -0
  966. package/.output/server/node_modules/undici/lib/core/request.js +395 -0
  967. package/.output/server/node_modules/undici/lib/core/symbols.js +67 -0
  968. package/.output/server/node_modules/undici/lib/core/tree.js +152 -0
  969. package/.output/server/node_modules/undici/lib/core/util.js +719 -0
  970. package/.output/server/node_modules/undici/lib/dispatcher/agent.js +129 -0
  971. package/.output/server/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
  972. package/.output/server/node_modules/undici/lib/dispatcher/client-h1.js +1370 -0
  973. package/.output/server/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
  974. package/.output/server/node_modules/undici/lib/dispatcher/client.js +622 -0
  975. package/.output/server/node_modules/undici/lib/dispatcher/dispatcher-base.js +190 -0
  976. package/.output/server/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
  977. package/.output/server/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
  978. package/.output/server/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
  979. package/.output/server/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
  980. package/.output/server/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
  981. package/.output/server/node_modules/undici/lib/dispatcher/pool.js +107 -0
  982. package/.output/server/node_modules/undici/lib/dispatcher/proxy-agent.js +192 -0
  983. package/.output/server/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  984. package/.output/server/node_modules/undici/lib/global.js +32 -0
  985. package/.output/server/node_modules/undici/lib/handler/decorator-handler.js +44 -0
  986. package/.output/server/node_modules/undici/lib/handler/redirect-handler.js +232 -0
  987. package/.output/server/node_modules/undici/lib/handler/retry-handler.js +374 -0
  988. package/.output/server/node_modules/undici/lib/interceptor/dns.js +375 -0
  989. package/.output/server/node_modules/undici/lib/interceptor/dump.js +123 -0
  990. package/.output/server/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
  991. package/.output/server/node_modules/undici/lib/interceptor/redirect.js +24 -0
  992. package/.output/server/node_modules/undici/lib/interceptor/retry.js +19 -0
  993. package/.output/server/node_modules/undici/lib/llhttp/constants.js +278 -0
  994. package/.output/server/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
  995. package/.output/server/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
  996. package/.output/server/node_modules/undici/lib/llhttp/utils.js +15 -0
  997. package/.output/server/node_modules/undici/lib/mock/mock-agent.js +160 -0
  998. package/.output/server/node_modules/undici/lib/mock/mock-client.js +59 -0
  999. package/.output/server/node_modules/undici/lib/mock/mock-errors.js +17 -0
  1000. package/.output/server/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
  1001. package/.output/server/node_modules/undici/lib/mock/mock-pool.js +59 -0
  1002. package/.output/server/node_modules/undici/lib/mock/mock-symbols.js +23 -0
  1003. package/.output/server/node_modules/undici/lib/mock/mock-utils.js +367 -0
  1004. package/.output/server/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  1005. package/.output/server/node_modules/undici/lib/mock/pluralizer.js +29 -0
  1006. package/.output/server/node_modules/undici/lib/util/timers.js +423 -0
  1007. package/.output/server/node_modules/undici/lib/web/cache/cache.js +859 -0
  1008. package/.output/server/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  1009. package/.output/server/node_modules/undici/lib/web/cache/symbols.js +5 -0
  1010. package/.output/server/node_modules/undici/lib/web/cache/util.js +45 -0
  1011. package/.output/server/node_modules/undici/lib/web/cookies/constants.js +12 -0
  1012. package/.output/server/node_modules/undici/lib/web/cookies/index.js +184 -0
  1013. package/.output/server/node_modules/undici/lib/web/cookies/parse.js +317 -0
  1014. package/.output/server/node_modules/undici/lib/web/cookies/util.js +282 -0
  1015. package/.output/server/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
  1016. package/.output/server/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
  1017. package/.output/server/node_modules/undici/lib/web/eventsource/util.js +37 -0
  1018. package/.output/server/node_modules/undici/lib/web/fetch/body.js +533 -0
  1019. package/.output/server/node_modules/undici/lib/web/fetch/constants.js +124 -0
  1020. package/.output/server/node_modules/undici/lib/web/fetch/data-url.js +744 -0
  1021. package/.output/server/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
  1022. package/.output/server/node_modules/undici/lib/web/fetch/file.js +126 -0
  1023. package/.output/server/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
  1024. package/.output/server/node_modules/undici/lib/web/fetch/formdata.js +252 -0
  1025. package/.output/server/node_modules/undici/lib/web/fetch/global.js +40 -0
  1026. package/.output/server/node_modules/undici/lib/web/fetch/headers.js +687 -0
  1027. package/.output/server/node_modules/undici/lib/web/fetch/index.js +2266 -0
  1028. package/.output/server/node_modules/undici/lib/web/fetch/request.js +1037 -0
  1029. package/.output/server/node_modules/undici/lib/web/fetch/response.js +605 -0
  1030. package/.output/server/node_modules/undici/lib/web/fetch/symbols.js +9 -0
  1031. package/.output/server/node_modules/undici/lib/web/fetch/util.js +1632 -0
  1032. package/.output/server/node_modules/undici/lib/web/fetch/webidl.js +695 -0
  1033. package/.output/server/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
  1034. package/.output/server/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
  1035. package/.output/server/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
  1036. package/.output/server/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
  1037. package/.output/server/node_modules/undici/lib/web/fileapi/util.js +391 -0
  1038. package/.output/server/node_modules/undici/lib/web/websocket/connection.js +371 -0
  1039. package/.output/server/node_modules/undici/lib/web/websocket/constants.js +66 -0
  1040. package/.output/server/node_modules/undici/lib/web/websocket/events.js +329 -0
  1041. package/.output/server/node_modules/undici/lib/web/websocket/frame.js +96 -0
  1042. package/.output/server/node_modules/undici/lib/web/websocket/permessage-deflate.js +70 -0
  1043. package/.output/server/node_modules/undici/lib/web/websocket/receiver.js +424 -0
  1044. package/.output/server/node_modules/undici/lib/web/websocket/sender.js +104 -0
  1045. package/.output/server/node_modules/undici/lib/web/websocket/symbols.js +12 -0
  1046. package/.output/server/node_modules/undici/lib/web/websocket/util.js +314 -0
  1047. package/.output/server/node_modules/undici/lib/web/websocket/websocket.js +588 -0
  1048. package/.output/server/node_modules/undici/package.json +160 -0
  1049. package/.output/server/node_modules/ws/index.js +13 -0
  1050. package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
  1051. package/.output/server/node_modules/ws/lib/constants.js +18 -0
  1052. package/.output/server/node_modules/ws/lib/event-target.js +292 -0
  1053. package/.output/server/node_modules/ws/lib/extension.js +203 -0
  1054. package/.output/server/node_modules/ws/lib/limiter.js +55 -0
  1055. package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
  1056. package/.output/server/node_modules/ws/lib/receiver.js +706 -0
  1057. package/.output/server/node_modules/ws/lib/sender.js +602 -0
  1058. package/.output/server/node_modules/ws/lib/stream.js +161 -0
  1059. package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
  1060. package/.output/server/node_modules/ws/lib/validation.js +152 -0
  1061. package/.output/server/node_modules/ws/lib/websocket-server.js +550 -0
  1062. package/.output/server/node_modules/ws/lib/websocket.js +1388 -0
  1063. package/.output/server/node_modules/ws/package.json +69 -0
  1064. package/.output/server/package.json +21 -1
  1065. package/Claude/hooks/lib/hook_client.py +38 -0
  1066. package/Claude/hooks/session-start.py +8 -1
  1067. package/Claude/skills/bridge/SKILL.md +125 -0
  1068. package/Claude/skills/bridge/bridge.py +234 -0
  1069. package/README.md +1 -1
  1070. package/app/components/skills/Card.vue +18 -0
  1071. package/app/pages/settings.vue +279 -3
  1072. package/app/pages/skills/index.vue +106 -0
  1073. package/app/pages/skills/library.vue +20 -1
  1074. package/nuxt.config.ts +2 -2
  1075. package/package.json +4 -5
  1076. package/server/api/bridges/[id]/health.get.ts +78 -0
  1077. package/server/api/bridges/[id].delete.ts +41 -0
  1078. package/server/api/bridges/[id].get.ts +25 -0
  1079. package/server/api/bridges/[id].put.ts +54 -0
  1080. package/server/api/bridges/context.get.ts +168 -0
  1081. package/server/api/bridges/index.get.ts +15 -0
  1082. package/server/api/bridges/index.post.ts +39 -0
  1083. package/server/api/skills/[name]/delete.post.ts +38 -0
  1084. package/server/api/skills/index.get.ts +24 -0
  1085. package/server/api/skills/library/install.post.ts +7 -3
  1086. package/server/api/webhooks/bluebubbles.post.ts +23 -0
  1087. package/server/api/webhooks/telegram.post.ts +34 -0
  1088. package/server/bridge/adapters/discord.ts +180 -0
  1089. package/server/bridge/adapters/email.ts +50 -0
  1090. package/server/bridge/adapters/google.ts +215 -0
  1091. package/server/bridge/adapters/imessage.ts +352 -0
  1092. package/server/bridge/adapters/telegram.ts +294 -0
  1093. package/server/bridge/lifecycle.ts +124 -0
  1094. package/server/bridge/registry.ts +50 -0
  1095. package/server/bridge/router.ts +126 -0
  1096. package/server/bridge/types.ts +87 -0
  1097. package/server/db/schema.ts +53 -0
  1098. package/server/drizzle/migrations/0014_worthless_cable.sql +36 -0
  1099. package/server/drizzle/migrations/meta/0014_snapshot.json +1959 -0
  1100. package/server/drizzle/migrations/meta/_journal.json +7 -0
  1101. package/server/plugins/06.message-bridge.ts +42 -0
  1102. package/server/utils/get-secret.ts +18 -0
  1103. package/server/utils/notify-resource.ts +2 -1
  1104. package/shared/types/index.ts +113 -0
  1105. package/shared/utils/notification-defaults.ts +2 -1
  1106. package/.output/public/_nuxt/BMdnU6BF.js +0 -1
  1107. package/.output/public/_nuxt/BSsvedap.js +0 -1
  1108. package/.output/public/_nuxt/C2ANDZen.js +0 -1
  1109. package/.output/public/_nuxt/CC77iplr.js +0 -1
  1110. package/.output/public/_nuxt/DM4MyqI-.js +0 -1
  1111. package/.output/public/_nuxt/DO0oG4fG.js +0 -1
  1112. package/.output/public/_nuxt/DRlG_bnX.js +0 -1
  1113. package/.output/public/_nuxt/YGWAImQo.js +0 -1
  1114. package/.output/public/_nuxt/builds/meta/91727fcc-bf7f-407f-9b1e-092017fcfee0.json +0 -1
  1115. package/.output/server/chunks/build/library-CbWcF5wT.mjs.map +0 -1
  1116. package/.output/server/chunks/build/settings-DdkKCJ00.mjs.map +0 -1
  1117. package/Claude/CLAUDE.md +0 -129
@@ -0,0 +1,1515 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ ALLOWED_EXTENSIONS: () => ALLOWED_EXTENSIONS,
25
+ ALLOWED_SIZES: () => ALLOWED_SIZES,
26
+ ALLOWED_STICKER_EXTENSIONS: () => ALLOWED_STICKER_EXTENSIONS,
27
+ BurstHandlerMajorIdKey: () => BurstHandlerMajorIdKey,
28
+ CDN: () => CDN,
29
+ DEPRECATION_WARNING_PREFIX: () => DEPRECATION_WARNING_PREFIX,
30
+ DefaultRestOptions: () => DefaultRestOptions,
31
+ DefaultUserAgent: () => DefaultUserAgent,
32
+ DefaultUserAgentAppendix: () => DefaultUserAgentAppendix,
33
+ DiscordAPIError: () => DiscordAPIError,
34
+ HTTPError: () => HTTPError,
35
+ OverwrittenMimeTypes: () => OverwrittenMimeTypes,
36
+ REST: () => REST,
37
+ RESTEvents: () => RESTEvents,
38
+ RateLimitError: () => RateLimitError,
39
+ RequestMethod: () => RequestMethod,
40
+ calculateUserDefaultAvatarIndex: () => calculateUserDefaultAvatarIndex,
41
+ makeURLSearchParams: () => makeURLSearchParams,
42
+ parseResponse: () => parseResponse,
43
+ version: () => version
44
+ });
45
+ module.exports = __toCommonJS(src_exports);
46
+ var import_node_buffer = require("buffer");
47
+ var import_util2 = require("@discordjs/util");
48
+ var import_undici2 = require("undici");
49
+
50
+ // src/environment.ts
51
+ var defaultStrategy;
52
+ function setDefaultStrategy(newStrategy) {
53
+ defaultStrategy = newStrategy;
54
+ }
55
+ __name(setDefaultStrategy, "setDefaultStrategy");
56
+ function getDefaultStrategy() {
57
+ return defaultStrategy;
58
+ }
59
+ __name(getDefaultStrategy, "getDefaultStrategy");
60
+
61
+ // src/strategies/undiciRequest.ts
62
+ var import_node_http = require("http");
63
+ var import_node_url = require("url");
64
+ var import_node_util = require("util");
65
+ var import_undici = require("undici");
66
+ async function makeRequest(url, init) {
67
+ const options = {
68
+ ...init,
69
+ body: await resolveBody(init.body)
70
+ };
71
+ const res = await (0, import_undici.request)(url, options);
72
+ return {
73
+ body: res.body,
74
+ async arrayBuffer() {
75
+ return res.body.arrayBuffer();
76
+ },
77
+ async json() {
78
+ return res.body.json();
79
+ },
80
+ async text() {
81
+ return res.body.text();
82
+ },
83
+ get bodyUsed() {
84
+ return res.body.bodyUsed;
85
+ },
86
+ headers: new import_undici.Headers(res.headers),
87
+ status: res.statusCode,
88
+ statusText: import_node_http.STATUS_CODES[res.statusCode],
89
+ ok: res.statusCode >= 200 && res.statusCode < 300
90
+ };
91
+ }
92
+ __name(makeRequest, "makeRequest");
93
+ async function resolveBody(body) {
94
+ if (body == null) {
95
+ return null;
96
+ } else if (typeof body === "string") {
97
+ return body;
98
+ } else if (import_node_util.types.isUint8Array(body)) {
99
+ return body;
100
+ } else if (import_node_util.types.isArrayBuffer(body)) {
101
+ return new Uint8Array(body);
102
+ } else if (body instanceof import_node_url.URLSearchParams) {
103
+ return body.toString();
104
+ } else if (body instanceof DataView) {
105
+ return new Uint8Array(body.buffer);
106
+ } else if (body instanceof Blob) {
107
+ return new Uint8Array(await body.arrayBuffer());
108
+ } else if (body instanceof FormData) {
109
+ return body;
110
+ } else if (body[Symbol.iterator]) {
111
+ const chunks = [...body];
112
+ return Buffer.concat(chunks);
113
+ } else if (body[Symbol.asyncIterator]) {
114
+ const chunks = [];
115
+ for await (const chunk of body) {
116
+ chunks.push(chunk);
117
+ }
118
+ return Buffer.concat(chunks);
119
+ }
120
+ throw new TypeError(`Unable to resolve body.`);
121
+ }
122
+ __name(resolveBody, "resolveBody");
123
+
124
+ // src/lib/CDN.ts
125
+ var import_v102 = require("discord-api-types/v10");
126
+
127
+ // src/lib/utils/constants.ts
128
+ var import_util = require("@discordjs/util");
129
+ var import_v10 = require("discord-api-types/v10");
130
+ var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.6.0)`;
131
+ var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
132
+ var DefaultRestOptions = {
133
+ agent: null,
134
+ api: "https://discord.com/api",
135
+ authPrefix: "Bot",
136
+ cdn: "https://cdn.discordapp.com",
137
+ headers: {},
138
+ invalidRequestWarningInterval: 0,
139
+ globalRequestsPerSecond: 50,
140
+ offset: 50,
141
+ rejectOnRateLimit: null,
142
+ retries: 3,
143
+ timeout: 15e3,
144
+ userAgentAppendix: DefaultUserAgentAppendix,
145
+ version: import_v10.APIVersion,
146
+ hashSweepInterval: 144e5,
147
+ // 4 Hours
148
+ hashLifetime: 864e5,
149
+ // 24 Hours
150
+ handlerSweepInterval: 36e5,
151
+ // 1 Hour
152
+ async makeRequest(...args) {
153
+ return getDefaultStrategy()(...args);
154
+ },
155
+ mediaProxy: "https://media.discordapp.net"
156
+ };
157
+ var RESTEvents = /* @__PURE__ */ ((RESTEvents2) => {
158
+ RESTEvents2["Debug"] = "restDebug";
159
+ RESTEvents2["HandlerSweep"] = "handlerSweep";
160
+ RESTEvents2["HashSweep"] = "hashSweep";
161
+ RESTEvents2["InvalidRequestWarning"] = "invalidRequestWarning";
162
+ RESTEvents2["RateLimited"] = "rateLimited";
163
+ RESTEvents2["Response"] = "response";
164
+ return RESTEvents2;
165
+ })(RESTEvents || {});
166
+ var ALLOWED_EXTENSIONS = ["webp", "png", "jpg", "jpeg", "gif"];
167
+ var ALLOWED_STICKER_EXTENSIONS = ["png", "json", "gif"];
168
+ var ALLOWED_SIZES = [
169
+ 16,
170
+ 32,
171
+ 64,
172
+ 128,
173
+ 256,
174
+ 512,
175
+ 1024,
176
+ 2048,
177
+ 4096
178
+ ];
179
+ var OverwrittenMimeTypes = {
180
+ // https://github.com/discordjs/discord.js/issues/8557
181
+ "image/apng": "image/png"
182
+ };
183
+ var BurstHandlerMajorIdKey = "burst";
184
+ var DEPRECATION_WARNING_PREFIX = "DeprecationWarning";
185
+
186
+ // src/lib/errors/RateLimitError.ts
187
+ var RateLimitError = class _RateLimitError extends Error {
188
+ static {
189
+ __name(this, "RateLimitError");
190
+ }
191
+ timeToReset;
192
+ limit;
193
+ method;
194
+ hash;
195
+ url;
196
+ route;
197
+ majorParameter;
198
+ global;
199
+ retryAfter;
200
+ sublimitTimeout;
201
+ scope;
202
+ constructor({
203
+ timeToReset,
204
+ limit,
205
+ method,
206
+ hash,
207
+ url,
208
+ route,
209
+ majorParameter,
210
+ global,
211
+ retryAfter,
212
+ sublimitTimeout,
213
+ scope
214
+ }) {
215
+ super();
216
+ this.timeToReset = timeToReset;
217
+ this.limit = limit;
218
+ this.method = method;
219
+ this.hash = hash;
220
+ this.url = url;
221
+ this.route = route;
222
+ this.majorParameter = majorParameter;
223
+ this.global = global;
224
+ this.retryAfter = retryAfter;
225
+ this.sublimitTimeout = sublimitTimeout;
226
+ this.scope = scope;
227
+ }
228
+ /**
229
+ * The name of the error
230
+ */
231
+ get name() {
232
+ return `${_RateLimitError.name}[${this.route}]`;
233
+ }
234
+ };
235
+
236
+ // src/lib/utils/types.ts
237
+ var RequestMethod = /* @__PURE__ */ ((RequestMethod2) => {
238
+ RequestMethod2["Delete"] = "DELETE";
239
+ RequestMethod2["Get"] = "GET";
240
+ RequestMethod2["Patch"] = "PATCH";
241
+ RequestMethod2["Post"] = "POST";
242
+ RequestMethod2["Put"] = "PUT";
243
+ return RequestMethod2;
244
+ })(RequestMethod || {});
245
+
246
+ // src/lib/utils/utils.ts
247
+ function serializeSearchParam(value) {
248
+ switch (typeof value) {
249
+ case "string":
250
+ return value;
251
+ case "number":
252
+ case "bigint":
253
+ case "boolean":
254
+ return value.toString();
255
+ case "object":
256
+ if (value === null) return null;
257
+ if (value instanceof Date) {
258
+ return Number.isNaN(value.getTime()) ? null : value.toISOString();
259
+ }
260
+ if (typeof value.toString === "function" && value.toString !== Object.prototype.toString) return value.toString();
261
+ return null;
262
+ default:
263
+ return null;
264
+ }
265
+ }
266
+ __name(serializeSearchParam, "serializeSearchParam");
267
+ function makeURLSearchParams(options) {
268
+ const params = new URLSearchParams();
269
+ if (!options) return params;
270
+ for (const [key, value] of Object.entries(options)) {
271
+ const serialized = serializeSearchParam(value);
272
+ if (serialized !== null) params.append(key, serialized);
273
+ }
274
+ return params;
275
+ }
276
+ __name(makeURLSearchParams, "makeURLSearchParams");
277
+ async function parseResponse(res) {
278
+ if (res.headers.get("Content-Type")?.startsWith("application/json")) {
279
+ return res.json();
280
+ }
281
+ return res.arrayBuffer();
282
+ }
283
+ __name(parseResponse, "parseResponse");
284
+ function hasSublimit(bucketRoute, body, method) {
285
+ if (bucketRoute === "/channels/:id") {
286
+ if (typeof body !== "object" || body === null) return false;
287
+ if (method !== "PATCH" /* Patch */) return false;
288
+ const castedBody = body;
289
+ return ["name", "topic"].some((key) => Reflect.has(castedBody, key));
290
+ }
291
+ return true;
292
+ }
293
+ __name(hasSublimit, "hasSublimit");
294
+ function shouldRetry(error) {
295
+ if (error.name === "AbortError") return true;
296
+ return "code" in error && error.code === "ECONNRESET" || error.message.includes("ECONNRESET");
297
+ }
298
+ __name(shouldRetry, "shouldRetry");
299
+ async function onRateLimit(manager, rateLimitData) {
300
+ const { options } = manager;
301
+ if (!options.rejectOnRateLimit) return;
302
+ const shouldThrow = typeof options.rejectOnRateLimit === "function" ? await options.rejectOnRateLimit(rateLimitData) : options.rejectOnRateLimit.some((route) => rateLimitData.route.startsWith(route.toLowerCase()));
303
+ if (shouldThrow) {
304
+ throw new RateLimitError(rateLimitData);
305
+ }
306
+ }
307
+ __name(onRateLimit, "onRateLimit");
308
+ function calculateUserDefaultAvatarIndex(userId) {
309
+ return Number(BigInt(userId) >> 22n) % 6;
310
+ }
311
+ __name(calculateUserDefaultAvatarIndex, "calculateUserDefaultAvatarIndex");
312
+ async function sleep(ms) {
313
+ return new Promise((resolve) => {
314
+ setTimeout(() => resolve(), ms);
315
+ });
316
+ }
317
+ __name(sleep, "sleep");
318
+ function isBufferLike(value) {
319
+ return value instanceof ArrayBuffer || value instanceof Uint8Array || value instanceof Uint8ClampedArray;
320
+ }
321
+ __name(isBufferLike, "isBufferLike");
322
+ function deprecationWarning(message) {
323
+ if (typeof globalThis.process === "undefined") {
324
+ console.warn(`${DEPRECATION_WARNING_PREFIX}: ${message}`);
325
+ } else {
326
+ process.emitWarning(message, DEPRECATION_WARNING_PREFIX);
327
+ }
328
+ }
329
+ __name(deprecationWarning, "deprecationWarning");
330
+ function normalizeRateLimitOffset(offset, route) {
331
+ if (typeof offset === "number") {
332
+ return Math.max(0, offset);
333
+ }
334
+ const result = offset(route);
335
+ return Math.max(0, result);
336
+ }
337
+ __name(normalizeRateLimitOffset, "normalizeRateLimitOffset");
338
+
339
+ // src/lib/CDN.ts
340
+ var deprecationEmittedForEmoji = false;
341
+ var CDN = class {
342
+ constructor(cdn = DefaultRestOptions.cdn, mediaProxy = DefaultRestOptions.mediaProxy) {
343
+ this.cdn = cdn;
344
+ this.mediaProxy = mediaProxy;
345
+ }
346
+ static {
347
+ __name(this, "CDN");
348
+ }
349
+ /**
350
+ * Generates an app asset URL for a client's asset.
351
+ *
352
+ * @param clientId - The client id that has the asset
353
+ * @param assetHash - The hash provided by Discord for this asset
354
+ * @param options - Optional options for the asset
355
+ */
356
+ appAsset(clientId, assetHash, options) {
357
+ return this.makeURL(`/app-assets/${clientId}/${assetHash}`, options);
358
+ }
359
+ /**
360
+ * Generates an app icon URL for a client's icon.
361
+ *
362
+ * @param clientId - The client id that has the icon
363
+ * @param iconHash - The hash provided by Discord for this icon
364
+ * @param options - Optional options for the icon
365
+ */
366
+ appIcon(clientId, iconHash, options) {
367
+ return this.makeURL(`/app-icons/${clientId}/${iconHash}`, options);
368
+ }
369
+ /**
370
+ * Generates an avatar URL, e.g. for a user or a webhook.
371
+ *
372
+ * @param id - The id that has the icon
373
+ * @param avatarHash - The hash provided by Discord for this avatar
374
+ * @param options - Optional options for the avatar
375
+ */
376
+ avatar(id, avatarHash, options) {
377
+ return this.dynamicMakeURL(`/avatars/${id}/${avatarHash}`, avatarHash, options);
378
+ }
379
+ avatarDecoration(userIdOrAsset, userAvatarDecoration, options) {
380
+ if (userAvatarDecoration) {
381
+ return this.makeURL(`/avatar-decorations/${userIdOrAsset}/${userAvatarDecoration}`, options);
382
+ }
383
+ return this.makeURL(`/avatar-decoration-presets/${userIdOrAsset}`, { extension: "png" });
384
+ }
385
+ /**
386
+ * Generates a banner URL, e.g. for a user or a guild.
387
+ *
388
+ * @param id - The id that has the banner splash
389
+ * @param bannerHash - The hash provided by Discord for this banner
390
+ * @param options - Optional options for the banner
391
+ */
392
+ banner(id, bannerHash, options) {
393
+ return this.dynamicMakeURL(`/banners/${id}/${bannerHash}`, bannerHash, options);
394
+ }
395
+ /**
396
+ * Generates an icon URL for a channel, e.g. a group DM.
397
+ *
398
+ * @param channelId - The channel id that has the icon
399
+ * @param iconHash - The hash provided by Discord for this channel
400
+ * @param options - Optional options for the icon
401
+ */
402
+ channelIcon(channelId, iconHash, options) {
403
+ return this.makeURL(`/channel-icons/${channelId}/${iconHash}`, options);
404
+ }
405
+ /**
406
+ * Generates a default avatar URL
407
+ *
408
+ * @param index - The default avatar index
409
+ * @remarks
410
+ * To calculate the index for a user do `(userId >> 22) % 6`,
411
+ * or `discriminator % 5` if they're using the legacy username system.
412
+ */
413
+ defaultAvatar(index) {
414
+ return this.makeURL(`/embed/avatars/${index}`, { extension: "png" });
415
+ }
416
+ /**
417
+ * Generates a discovery splash URL for a guild's discovery splash.
418
+ *
419
+ * @param guildId - The guild id that has the discovery splash
420
+ * @param splashHash - The hash provided by Discord for this splash
421
+ * @param options - Optional options for the splash
422
+ */
423
+ discoverySplash(guildId, splashHash, options) {
424
+ return this.makeURL(`/discovery-splashes/${guildId}/${splashHash}`, options);
425
+ }
426
+ emoji(emojiId, options) {
427
+ let resolvedOptions;
428
+ if (typeof options === "string") {
429
+ if (!deprecationEmittedForEmoji) {
430
+ deprecationWarning(
431
+ "Passing a string for the second parameter of CDN#emoji() is deprecated. Use an object instead."
432
+ );
433
+ deprecationEmittedForEmoji = true;
434
+ }
435
+ resolvedOptions = { extension: options };
436
+ } else {
437
+ resolvedOptions = options;
438
+ }
439
+ return this.makeURL(`/emojis/${emojiId}`, resolvedOptions);
440
+ }
441
+ /**
442
+ * Generates a guild member avatar URL.
443
+ *
444
+ * @param guildId - The id of the guild
445
+ * @param userId - The id of the user
446
+ * @param avatarHash - The hash provided by Discord for this avatar
447
+ * @param options - Optional options for the avatar
448
+ */
449
+ guildMemberAvatar(guildId, userId, avatarHash, options) {
450
+ return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/avatars/${avatarHash}`, avatarHash, options);
451
+ }
452
+ /**
453
+ * Generates a guild member banner URL.
454
+ *
455
+ * @param guildId - The id of the guild
456
+ * @param userId - The id of the user
457
+ * @param bannerHash - The hash provided by Discord for this banner
458
+ * @param options - Optional options for the banner
459
+ */
460
+ guildMemberBanner(guildId, userId, bannerHash, options) {
461
+ return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/banners/${bannerHash}`, bannerHash, options);
462
+ }
463
+ /**
464
+ * Generates an icon URL, e.g. for a guild.
465
+ *
466
+ * @param id - The id that has the icon splash
467
+ * @param iconHash - The hash provided by Discord for this icon
468
+ * @param options - Optional options for the icon
469
+ */
470
+ icon(id, iconHash, options) {
471
+ return this.dynamicMakeURL(`/icons/${id}/${iconHash}`, iconHash, options);
472
+ }
473
+ /**
474
+ * Generates a URL for the icon of a role
475
+ *
476
+ * @param roleId - The id of the role that has the icon
477
+ * @param roleIconHash - The hash provided by Discord for this role icon
478
+ * @param options - Optional options for the role icon
479
+ */
480
+ roleIcon(roleId, roleIconHash, options) {
481
+ return this.makeURL(`/role-icons/${roleId}/${roleIconHash}`, options);
482
+ }
483
+ /**
484
+ * Generates a guild invite splash URL for a guild's invite splash.
485
+ *
486
+ * @param guildId - The guild id that has the invite splash
487
+ * @param splashHash - The hash provided by Discord for this splash
488
+ * @param options - Optional options for the splash
489
+ */
490
+ splash(guildId, splashHash, options) {
491
+ return this.makeURL(`/splashes/${guildId}/${splashHash}`, options);
492
+ }
493
+ /**
494
+ * Generates a sticker URL.
495
+ *
496
+ * @param stickerId - The sticker id
497
+ * @param extension - The extension of the sticker
498
+ * @privateRemarks
499
+ * Stickers cannot have a `.webp` extension, so we default to a `.png`.
500
+ * Sticker GIFs do not use the CDN base URL.
501
+ */
502
+ sticker(stickerId, extension = "png") {
503
+ return this.makeURL(`/stickers/${stickerId}`, {
504
+ allowedExtensions: ALLOWED_STICKER_EXTENSIONS,
505
+ base: extension === "gif" ? this.mediaProxy : this.cdn,
506
+ extension
507
+ });
508
+ }
509
+ /**
510
+ * Generates a sticker pack banner URL.
511
+ *
512
+ * @param bannerId - The banner id
513
+ * @param options - Optional options for the banner
514
+ */
515
+ stickerPackBanner(bannerId, options) {
516
+ return this.makeURL(`/app-assets/710982414301790216/store/${bannerId}`, options);
517
+ }
518
+ /**
519
+ * Generates a team icon URL for a team's icon.
520
+ *
521
+ * @param teamId - The team id that has the icon
522
+ * @param iconHash - The hash provided by Discord for this icon
523
+ * @param options - Optional options for the icon
524
+ */
525
+ teamIcon(teamId, iconHash, options) {
526
+ return this.makeURL(`/team-icons/${teamId}/${iconHash}`, options);
527
+ }
528
+ /**
529
+ * Generates a cover image for a guild scheduled event.
530
+ *
531
+ * @param scheduledEventId - The scheduled event id
532
+ * @param coverHash - The hash provided by discord for this cover image
533
+ * @param options - Optional options for the cover image
534
+ */
535
+ guildScheduledEventCover(scheduledEventId, coverHash, options) {
536
+ return this.makeURL(`/guild-events/${scheduledEventId}/${coverHash}`, options);
537
+ }
538
+ /**
539
+ * Generates a URL for a soundboard sound.
540
+ *
541
+ * @param soundId - The soundboard sound id
542
+ */
543
+ soundboardSound(soundId) {
544
+ return `${this.cdn}${import_v102.CDNRoutes.soundboardSound(soundId)}`;
545
+ }
546
+ /**
547
+ * Generates a URL for a guild tag badge.
548
+ *
549
+ * @param guildId - The guild id
550
+ * @param badgeHash - The hash of the badge
551
+ * @param options - Optional options for the badge
552
+ */
553
+ guildTagBadge(guildId, badgeHash, options) {
554
+ return this.makeURL(`/guild-tag-badges/${guildId}/${badgeHash}`, options);
555
+ }
556
+ /**
557
+ * Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
558
+ *
559
+ * @param route - The base cdn route
560
+ * @param hash - The hash provided by Discord for this icon
561
+ * @param options - Optional options for the link
562
+ */
563
+ dynamicMakeURL(route, hash, { forceStatic = false, ...options } = {}) {
564
+ return this.makeURL(route, !forceStatic && hash.startsWith("a_") ? { ...options, extension: "gif" } : options);
565
+ }
566
+ /**
567
+ * Constructs the URL for the resource
568
+ *
569
+ * @param route - The base cdn route
570
+ * @param options - The extension/size options for the link
571
+ */
572
+ makeURL(route, {
573
+ allowedExtensions = ALLOWED_EXTENSIONS,
574
+ base = this.cdn,
575
+ extension = "webp",
576
+ size,
577
+ animated
578
+ } = {}) {
579
+ extension = String(extension).toLowerCase();
580
+ if (!allowedExtensions.includes(extension)) {
581
+ throw new RangeError(`Invalid extension provided: ${extension}
582
+ Must be one of: ${allowedExtensions.join(", ")}`);
583
+ }
584
+ if (size && !ALLOWED_SIZES.includes(size)) {
585
+ throw new RangeError(`Invalid size provided: ${size}
586
+ Must be one of: ${ALLOWED_SIZES.join(", ")}`);
587
+ }
588
+ const url = new URL(`${base}${route}.${extension}`);
589
+ if (animated !== void 0) {
590
+ url.searchParams.set("animated", String(animated));
591
+ }
592
+ if (size) {
593
+ url.searchParams.set("size", String(size));
594
+ }
595
+ return url.toString();
596
+ }
597
+ };
598
+
599
+ // src/lib/errors/DiscordAPIError.ts
600
+ function isErrorGroupWrapper(error) {
601
+ return Reflect.has(error, "_errors");
602
+ }
603
+ __name(isErrorGroupWrapper, "isErrorGroupWrapper");
604
+ function isErrorResponse(error) {
605
+ return typeof Reflect.get(error, "message") === "string";
606
+ }
607
+ __name(isErrorResponse, "isErrorResponse");
608
+ var DiscordAPIError = class _DiscordAPIError extends Error {
609
+ /**
610
+ * @param rawError - The error reported by Discord
611
+ * @param code - The error code reported by Discord
612
+ * @param status - The status code of the response
613
+ * @param method - The method of the request that erred
614
+ * @param url - The url of the request that erred
615
+ * @param bodyData - The unparsed data for the request that errored
616
+ */
617
+ constructor(rawError, code, status, method, url, bodyData) {
618
+ super(_DiscordAPIError.getMessage(rawError));
619
+ this.rawError = rawError;
620
+ this.code = code;
621
+ this.status = status;
622
+ this.method = method;
623
+ this.url = url;
624
+ this.requestBody = { files: bodyData.files, json: bodyData.body };
625
+ }
626
+ static {
627
+ __name(this, "DiscordAPIError");
628
+ }
629
+ requestBody;
630
+ /**
631
+ * The name of the error
632
+ */
633
+ get name() {
634
+ return `${_DiscordAPIError.name}[${this.code}]`;
635
+ }
636
+ static getMessage(error) {
637
+ let flattened = "";
638
+ if ("code" in error) {
639
+ if (error.errors) {
640
+ flattened = [...this.flattenDiscordError(error.errors)].join("\n");
641
+ }
642
+ return error.message && flattened ? `${error.message}
643
+ ${flattened}` : error.message || flattened || "Unknown Error";
644
+ }
645
+ return error.error_description ?? "No Description";
646
+ }
647
+ static *flattenDiscordError(obj, key = "") {
648
+ if (isErrorResponse(obj)) {
649
+ return yield `${key.length ? `${key}[${obj.code}]` : `${obj.code}`}: ${obj.message}`.trim();
650
+ }
651
+ for (const [otherKey, val] of Object.entries(obj)) {
652
+ const nextKey = otherKey.startsWith("_") ? key : key ? Number.isNaN(Number(otherKey)) ? `${key}.${otherKey}` : `${key}[${otherKey}]` : otherKey;
653
+ if (typeof val === "string") {
654
+ yield val;
655
+ } else if (isErrorGroupWrapper(val)) {
656
+ for (const error of val._errors) {
657
+ yield* this.flattenDiscordError(error, nextKey);
658
+ }
659
+ } else {
660
+ yield* this.flattenDiscordError(val, nextKey);
661
+ }
662
+ }
663
+ }
664
+ };
665
+
666
+ // src/lib/errors/HTTPError.ts
667
+ var HTTPError = class _HTTPError extends Error {
668
+ /**
669
+ * @param status - The status code of the response
670
+ * @param statusText - The status text of the response
671
+ * @param method - The method of the request that erred
672
+ * @param url - The url of the request that erred
673
+ * @param bodyData - The unparsed data for the request that errored
674
+ */
675
+ constructor(status, statusText, method, url, bodyData) {
676
+ super(statusText);
677
+ this.status = status;
678
+ this.method = method;
679
+ this.url = url;
680
+ this.requestBody = { files: bodyData.files, json: bodyData.body };
681
+ }
682
+ static {
683
+ __name(this, "HTTPError");
684
+ }
685
+ requestBody;
686
+ name = _HTTPError.name;
687
+ };
688
+
689
+ // src/lib/REST.ts
690
+ var import_collection = require("@discordjs/collection");
691
+ var import_snowflake = require("@sapphire/snowflake");
692
+ var import_async_event_emitter = require("@vladfrangu/async_event_emitter");
693
+ var import_magic_bytes = require("magic-bytes.js");
694
+
695
+ // src/lib/handlers/Shared.ts
696
+ var invalidCount = 0;
697
+ var invalidCountResetTime = null;
698
+ function incrementInvalidCount(manager) {
699
+ if (!invalidCountResetTime || invalidCountResetTime < Date.now()) {
700
+ invalidCountResetTime = Date.now() + 1e3 * 60 * 10;
701
+ invalidCount = 0;
702
+ }
703
+ invalidCount++;
704
+ const emitInvalid = manager.options.invalidRequestWarningInterval > 0 && invalidCount % manager.options.invalidRequestWarningInterval === 0;
705
+ if (emitInvalid) {
706
+ manager.emit("invalidRequestWarning" /* InvalidRequestWarning */, {
707
+ count: invalidCount,
708
+ remainingTime: invalidCountResetTime - Date.now()
709
+ });
710
+ }
711
+ }
712
+ __name(incrementInvalidCount, "incrementInvalidCount");
713
+ async function makeNetworkRequest(manager, routeId, url, options, requestData, retries) {
714
+ const controller = new AbortController();
715
+ const timeout = setTimeout(() => controller.abort(), manager.options.timeout);
716
+ if (requestData.signal) {
717
+ if (requestData.signal.aborted) controller.abort();
718
+ else requestData.signal.addEventListener("abort", () => controller.abort());
719
+ }
720
+ let res;
721
+ try {
722
+ res = await manager.options.makeRequest(url, { ...options, signal: controller.signal });
723
+ } catch (error) {
724
+ if (!(error instanceof Error)) throw error;
725
+ if (shouldRetry(error) && retries !== manager.options.retries) {
726
+ return null;
727
+ }
728
+ throw error;
729
+ } finally {
730
+ clearTimeout(timeout);
731
+ }
732
+ if (manager.listenerCount("response" /* Response */)) {
733
+ manager.emit(
734
+ "response" /* Response */,
735
+ {
736
+ method: options.method ?? "get",
737
+ path: routeId.original,
738
+ route: routeId.bucketRoute,
739
+ options,
740
+ data: requestData,
741
+ retries
742
+ },
743
+ res instanceof Response ? res.clone() : { ...res }
744
+ );
745
+ }
746
+ return res;
747
+ }
748
+ __name(makeNetworkRequest, "makeNetworkRequest");
749
+ async function handleErrors(manager, res, method, url, requestData, retries) {
750
+ const status = res.status;
751
+ if (status >= 500 && status < 600) {
752
+ if (retries !== manager.options.retries) {
753
+ return null;
754
+ }
755
+ throw new HTTPError(status, res.statusText, method, url, requestData);
756
+ } else {
757
+ if (status >= 400 && status < 500) {
758
+ if (status === 401 && requestData.auth) {
759
+ manager.setToken(null);
760
+ }
761
+ const data = await parseResponse(res);
762
+ throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
763
+ }
764
+ return res;
765
+ }
766
+ }
767
+ __name(handleErrors, "handleErrors");
768
+
769
+ // src/lib/handlers/BurstHandler.ts
770
+ var BurstHandler = class {
771
+ /**
772
+ * @param manager - The request manager
773
+ * @param hash - The hash that this RequestHandler handles
774
+ * @param majorParameter - The major parameter for this handler
775
+ */
776
+ constructor(manager, hash, majorParameter) {
777
+ this.manager = manager;
778
+ this.hash = hash;
779
+ this.majorParameter = majorParameter;
780
+ this.id = `${hash}:${majorParameter}`;
781
+ }
782
+ static {
783
+ __name(this, "BurstHandler");
784
+ }
785
+ /**
786
+ * {@inheritdoc IHandler.id}
787
+ */
788
+ id;
789
+ /**
790
+ * {@inheritDoc IHandler.inactive}
791
+ */
792
+ inactive = false;
793
+ /**
794
+ * Emits a debug message
795
+ *
796
+ * @param message - The message to debug
797
+ */
798
+ debug(message) {
799
+ this.manager.emit("restDebug" /* Debug */, `[REST ${this.id}] ${message}`);
800
+ }
801
+ /**
802
+ * {@inheritDoc IHandler.queueRequest}
803
+ */
804
+ async queueRequest(routeId, url, options, requestData) {
805
+ return this.runRequest(routeId, url, options, requestData);
806
+ }
807
+ /**
808
+ * The method that actually makes the request to the API, and updates info about the bucket accordingly
809
+ *
810
+ * @param routeId - The generalized API route with literal ids for major parameters
811
+ * @param url - The fully resolved URL to make the request to
812
+ * @param options - The fetch options needed to make the request
813
+ * @param requestData - Extra data from the user's request needed for errors and additional processing
814
+ * @param retries - The number of retries this request has already attempted (recursion)
815
+ */
816
+ async runRequest(routeId, url, options, requestData, retries = 0) {
817
+ const method = options.method ?? "get";
818
+ const res = await makeNetworkRequest(this.manager, routeId, url, options, requestData, retries);
819
+ if (res === null) {
820
+ return this.runRequest(routeId, url, options, requestData, ++retries);
821
+ }
822
+ const status = res.status;
823
+ let retryAfter = 0;
824
+ const retry = res.headers.get("Retry-After");
825
+ const offset = normalizeRateLimitOffset(this.manager.options.offset, routeId.bucketRoute);
826
+ if (retry) retryAfter = Number(retry) * 1e3 + offset;
827
+ if (status === 401 || status === 403 || status === 429) {
828
+ incrementInvalidCount(this.manager);
829
+ }
830
+ if (status >= 200 && status < 300) {
831
+ return res;
832
+ } else if (status === 429) {
833
+ const isGlobal = res.headers.has("X-RateLimit-Global");
834
+ const scope = res.headers.get("X-RateLimit-Scope") ?? "user";
835
+ await onRateLimit(this.manager, {
836
+ global: isGlobal,
837
+ method,
838
+ url,
839
+ route: routeId.bucketRoute,
840
+ majorParameter: this.majorParameter,
841
+ hash: this.hash,
842
+ limit: Number.POSITIVE_INFINITY,
843
+ timeToReset: retryAfter,
844
+ retryAfter,
845
+ sublimitTimeout: 0,
846
+ scope
847
+ });
848
+ this.debug(
849
+ [
850
+ "Encountered unexpected 429 rate limit",
851
+ ` Global : ${isGlobal}`,
852
+ ` Method : ${method}`,
853
+ ` URL : ${url}`,
854
+ ` Bucket : ${routeId.bucketRoute}`,
855
+ ` Major parameter: ${routeId.majorParameter}`,
856
+ ` Hash : ${this.hash}`,
857
+ ` Limit : ${Number.POSITIVE_INFINITY}`,
858
+ ` Retry After : ${retryAfter}ms`,
859
+ ` Sublimit : None`,
860
+ ` Scope : ${scope}`
861
+ ].join("\n")
862
+ );
863
+ await sleep(retryAfter);
864
+ return this.runRequest(routeId, url, options, requestData, retries);
865
+ } else {
866
+ const handled = await handleErrors(this.manager, res, method, url, requestData, retries);
867
+ if (handled === null) {
868
+ return this.runRequest(routeId, url, options, requestData, ++retries);
869
+ }
870
+ return handled;
871
+ }
872
+ }
873
+ };
874
+
875
+ // src/lib/handlers/SequentialHandler.ts
876
+ var import_async_queue = require("@sapphire/async-queue");
877
+ var SequentialHandler = class {
878
+ /**
879
+ * @param manager - The request manager
880
+ * @param hash - The hash that this RequestHandler handles
881
+ * @param majorParameter - The major parameter for this handler
882
+ */
883
+ constructor(manager, hash, majorParameter) {
884
+ this.manager = manager;
885
+ this.hash = hash;
886
+ this.majorParameter = majorParameter;
887
+ this.id = `${hash}:${majorParameter}`;
888
+ }
889
+ static {
890
+ __name(this, "SequentialHandler");
891
+ }
892
+ /**
893
+ * {@inheritDoc IHandler.id}
894
+ */
895
+ id;
896
+ /**
897
+ * The time this rate limit bucket will reset
898
+ */
899
+ reset = -1;
900
+ /**
901
+ * The remaining requests that can be made before we are rate limited
902
+ */
903
+ remaining = 1;
904
+ /**
905
+ * The total number of requests that can be made before we are rate limited
906
+ */
907
+ limit = Number.POSITIVE_INFINITY;
908
+ /**
909
+ * The interface used to sequence async requests sequentially
910
+ */
911
+ #asyncQueue = new import_async_queue.AsyncQueue();
912
+ /**
913
+ * The interface used to sequence sublimited async requests sequentially
914
+ */
915
+ #sublimitedQueue = null;
916
+ /**
917
+ * A promise wrapper for when the sublimited queue is finished being processed or null when not being processed
918
+ */
919
+ #sublimitPromise = null;
920
+ /**
921
+ * Whether the sublimit queue needs to be shifted in the finally block
922
+ */
923
+ #shiftSublimit = false;
924
+ /**
925
+ * {@inheritDoc IHandler.inactive}
926
+ */
927
+ get inactive() {
928
+ return this.#asyncQueue.remaining === 0 && (this.#sublimitedQueue === null || this.#sublimitedQueue.remaining === 0) && !this.limited;
929
+ }
930
+ /**
931
+ * If the rate limit bucket is currently limited by the global limit
932
+ */
933
+ get globalLimited() {
934
+ return this.manager.globalRemaining <= 0 && Date.now() < this.manager.globalReset;
935
+ }
936
+ /**
937
+ * If the rate limit bucket is currently limited by its limit
938
+ */
939
+ get localLimited() {
940
+ return this.remaining <= 0 && Date.now() < this.reset;
941
+ }
942
+ /**
943
+ * If the rate limit bucket is currently limited
944
+ */
945
+ get limited() {
946
+ return this.globalLimited || this.localLimited;
947
+ }
948
+ /**
949
+ * The time until queued requests can continue
950
+ */
951
+ getTimeToReset(routeId) {
952
+ const offset = normalizeRateLimitOffset(this.manager.options.offset, routeId.bucketRoute);
953
+ return this.reset + offset - Date.now();
954
+ }
955
+ /**
956
+ * Emits a debug message
957
+ *
958
+ * @param message - The message to debug
959
+ */
960
+ debug(message) {
961
+ this.manager.emit("restDebug" /* Debug */, `[REST ${this.id}] ${message}`);
962
+ }
963
+ /**
964
+ * Delay all requests for the specified amount of time, handling global rate limits
965
+ *
966
+ * @param time - The amount of time to delay all requests for
967
+ */
968
+ async globalDelayFor(time) {
969
+ await sleep(time);
970
+ this.manager.globalDelay = null;
971
+ }
972
+ /**
973
+ * {@inheritDoc IHandler.queueRequest}
974
+ */
975
+ async queueRequest(routeId, url, options, requestData) {
976
+ let queue = this.#asyncQueue;
977
+ let queueType = 0 /* Standard */;
978
+ if (this.#sublimitedQueue && hasSublimit(routeId.bucketRoute, requestData.body, options.method)) {
979
+ queue = this.#sublimitedQueue;
980
+ queueType = 1 /* Sublimit */;
981
+ }
982
+ await queue.wait({ signal: requestData.signal });
983
+ if (queueType === 0 /* Standard */) {
984
+ if (this.#sublimitedQueue && hasSublimit(routeId.bucketRoute, requestData.body, options.method)) {
985
+ queue = this.#sublimitedQueue;
986
+ const wait = queue.wait();
987
+ this.#asyncQueue.shift();
988
+ await wait;
989
+ } else if (this.#sublimitPromise) {
990
+ await this.#sublimitPromise.promise;
991
+ }
992
+ }
993
+ try {
994
+ return await this.runRequest(routeId, url, options, requestData);
995
+ } finally {
996
+ queue.shift();
997
+ if (this.#shiftSublimit) {
998
+ this.#shiftSublimit = false;
999
+ this.#sublimitedQueue?.shift();
1000
+ }
1001
+ if (this.#sublimitedQueue?.remaining === 0) {
1002
+ this.#sublimitPromise?.resolve();
1003
+ this.#sublimitedQueue = null;
1004
+ }
1005
+ }
1006
+ }
1007
+ /**
1008
+ * The method that actually makes the request to the api, and updates info about the bucket accordingly
1009
+ *
1010
+ * @param routeId - The generalized api route with literal ids for major parameters
1011
+ * @param url - The fully resolved url to make the request to
1012
+ * @param options - The fetch options needed to make the request
1013
+ * @param requestData - Extra data from the user's request needed for errors and additional processing
1014
+ * @param retries - The number of retries this request has already attempted (recursion)
1015
+ */
1016
+ async runRequest(routeId, url, options, requestData, retries = 0) {
1017
+ while (this.limited) {
1018
+ const isGlobal = this.globalLimited;
1019
+ let limit2;
1020
+ let timeout;
1021
+ let delay;
1022
+ if (isGlobal) {
1023
+ const offset2 = normalizeRateLimitOffset(this.manager.options.offset, routeId.bucketRoute);
1024
+ limit2 = this.manager.options.globalRequestsPerSecond;
1025
+ timeout = this.manager.globalReset + offset2 - Date.now();
1026
+ if (!this.manager.globalDelay) {
1027
+ this.manager.globalDelay = this.globalDelayFor(timeout);
1028
+ }
1029
+ delay = this.manager.globalDelay;
1030
+ } else {
1031
+ limit2 = this.limit;
1032
+ timeout = this.getTimeToReset(routeId);
1033
+ delay = sleep(timeout);
1034
+ }
1035
+ const rateLimitData = {
1036
+ global: isGlobal,
1037
+ method: options.method ?? "get",
1038
+ url,
1039
+ route: routeId.bucketRoute,
1040
+ majorParameter: this.majorParameter,
1041
+ hash: this.hash,
1042
+ limit: limit2,
1043
+ timeToReset: timeout,
1044
+ retryAfter: timeout,
1045
+ sublimitTimeout: 0,
1046
+ scope: "user"
1047
+ };
1048
+ this.manager.emit("rateLimited" /* RateLimited */, rateLimitData);
1049
+ await onRateLimit(this.manager, rateLimitData);
1050
+ if (isGlobal) {
1051
+ this.debug(`Global rate limit hit, blocking all requests for ${timeout}ms`);
1052
+ } else {
1053
+ this.debug(`Waiting ${timeout}ms for rate limit to pass`);
1054
+ }
1055
+ await delay;
1056
+ }
1057
+ if (!this.manager.globalReset || this.manager.globalReset < Date.now()) {
1058
+ this.manager.globalReset = Date.now() + 1e3;
1059
+ this.manager.globalRemaining = this.manager.options.globalRequestsPerSecond;
1060
+ }
1061
+ this.manager.globalRemaining--;
1062
+ const method = options.method ?? "get";
1063
+ const res = await makeNetworkRequest(this.manager, routeId, url, options, requestData, retries);
1064
+ if (res === null) {
1065
+ return this.runRequest(routeId, url, options, requestData, ++retries);
1066
+ }
1067
+ const status = res.status;
1068
+ let retryAfter = 0;
1069
+ const limit = res.headers.get("X-RateLimit-Limit");
1070
+ const remaining = res.headers.get("X-RateLimit-Remaining");
1071
+ const reset = res.headers.get("X-RateLimit-Reset-After");
1072
+ const hash = res.headers.get("X-RateLimit-Bucket");
1073
+ const retry = res.headers.get("Retry-After");
1074
+ const scope = res.headers.get("X-RateLimit-Scope") ?? "user";
1075
+ const offset = normalizeRateLimitOffset(this.manager.options.offset, routeId.bucketRoute);
1076
+ this.limit = limit ? Number(limit) : Number.POSITIVE_INFINITY;
1077
+ this.remaining = remaining ? Number(remaining) : 1;
1078
+ this.reset = reset ? Number(reset) * 1e3 + Date.now() + offset : Date.now();
1079
+ if (retry) retryAfter = Number(retry) * 1e3 + offset;
1080
+ if (hash && hash !== this.hash) {
1081
+ this.debug(["Received bucket hash update", ` Old Hash : ${this.hash}`, ` New Hash : ${hash}`].join("\n"));
1082
+ this.manager.hashes.set(`${method}:${routeId.bucketRoute}`, { value: hash, lastAccess: Date.now() });
1083
+ } else if (hash) {
1084
+ const hashData = this.manager.hashes.get(`${method}:${routeId.bucketRoute}`);
1085
+ if (hashData) {
1086
+ hashData.lastAccess = Date.now();
1087
+ }
1088
+ }
1089
+ let sublimitTimeout = null;
1090
+ if (retryAfter > 0) {
1091
+ if (res.headers.has("X-RateLimit-Global")) {
1092
+ this.manager.globalRemaining = 0;
1093
+ this.manager.globalReset = Date.now() + retryAfter;
1094
+ } else if (!this.localLimited) {
1095
+ sublimitTimeout = retryAfter;
1096
+ }
1097
+ }
1098
+ if (status === 401 || status === 403 || status === 429) {
1099
+ incrementInvalidCount(this.manager);
1100
+ }
1101
+ if (res.ok) {
1102
+ return res;
1103
+ } else if (status === 429) {
1104
+ const isGlobal = this.globalLimited;
1105
+ let limit2;
1106
+ let timeout;
1107
+ if (isGlobal) {
1108
+ const offset2 = normalizeRateLimitOffset(this.manager.options.offset, routeId.bucketRoute);
1109
+ limit2 = this.manager.options.globalRequestsPerSecond;
1110
+ timeout = this.manager.globalReset + offset2 - Date.now();
1111
+ } else {
1112
+ limit2 = this.limit;
1113
+ timeout = this.getTimeToReset(routeId);
1114
+ }
1115
+ await onRateLimit(this.manager, {
1116
+ global: isGlobal,
1117
+ method,
1118
+ url,
1119
+ route: routeId.bucketRoute,
1120
+ majorParameter: this.majorParameter,
1121
+ hash: this.hash,
1122
+ limit: limit2,
1123
+ timeToReset: timeout,
1124
+ retryAfter,
1125
+ sublimitTimeout: sublimitTimeout ?? 0,
1126
+ scope
1127
+ });
1128
+ this.debug(
1129
+ [
1130
+ "Encountered unexpected 429 rate limit",
1131
+ ` Global : ${isGlobal.toString()}`,
1132
+ ` Method : ${method}`,
1133
+ ` URL : ${url}`,
1134
+ ` Bucket : ${routeId.bucketRoute}`,
1135
+ ` Major parameter: ${routeId.majorParameter}`,
1136
+ ` Hash : ${this.hash}`,
1137
+ ` Limit : ${limit2}`,
1138
+ ` Retry After : ${retryAfter}ms`,
1139
+ ` Sublimit : ${sublimitTimeout ? `${sublimitTimeout}ms` : "None"}`,
1140
+ ` Scope : ${scope}`
1141
+ ].join("\n")
1142
+ );
1143
+ if (sublimitTimeout) {
1144
+ const firstSublimit = !this.#sublimitedQueue;
1145
+ if (firstSublimit) {
1146
+ this.#sublimitedQueue = new import_async_queue.AsyncQueue();
1147
+ void this.#sublimitedQueue.wait();
1148
+ this.#asyncQueue.shift();
1149
+ }
1150
+ this.#sublimitPromise?.resolve();
1151
+ this.#sublimitPromise = null;
1152
+ await sleep(sublimitTimeout);
1153
+ let resolve;
1154
+ const promise = new Promise((res2) => resolve = res2);
1155
+ this.#sublimitPromise = { promise, resolve };
1156
+ if (firstSublimit) {
1157
+ await this.#asyncQueue.wait();
1158
+ this.#shiftSublimit = true;
1159
+ }
1160
+ }
1161
+ return this.runRequest(routeId, url, options, requestData, retries);
1162
+ } else {
1163
+ const handled = await handleErrors(this.manager, res, method, url, requestData, retries);
1164
+ if (handled === null) {
1165
+ return this.runRequest(routeId, url, options, requestData, ++retries);
1166
+ }
1167
+ return handled;
1168
+ }
1169
+ }
1170
+ };
1171
+
1172
+ // src/lib/REST.ts
1173
+ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
1174
+ static {
1175
+ __name(this, "REST");
1176
+ }
1177
+ /**
1178
+ * The {@link https://undici.nodejs.org/#/docs/api/Agent | Agent} for all requests
1179
+ * performed by this manager.
1180
+ */
1181
+ agent = null;
1182
+ cdn;
1183
+ /**
1184
+ * The number of requests remaining in the global bucket
1185
+ */
1186
+ globalRemaining;
1187
+ /**
1188
+ * The promise used to wait out the global rate limit
1189
+ */
1190
+ globalDelay = null;
1191
+ /**
1192
+ * The timestamp at which the global bucket resets
1193
+ */
1194
+ globalReset = -1;
1195
+ /**
1196
+ * API bucket hashes that are cached from provided routes
1197
+ */
1198
+ hashes = new import_collection.Collection();
1199
+ /**
1200
+ * Request handlers created from the bucket hash and the major parameters
1201
+ */
1202
+ handlers = new import_collection.Collection();
1203
+ #token = null;
1204
+ hashTimer;
1205
+ handlerTimer;
1206
+ options;
1207
+ constructor(options = {}) {
1208
+ super();
1209
+ this.cdn = new CDN(options.cdn ?? DefaultRestOptions.cdn, options.mediaProxy ?? DefaultRestOptions.mediaProxy);
1210
+ this.options = { ...DefaultRestOptions, ...options };
1211
+ this.globalRemaining = Math.max(1, this.options.globalRequestsPerSecond);
1212
+ this.agent = options.agent ?? null;
1213
+ this.setupSweepers();
1214
+ }
1215
+ setupSweepers() {
1216
+ const validateMaxInterval = /* @__PURE__ */ __name((interval) => {
1217
+ if (interval > 144e5) {
1218
+ throw new Error("Cannot set an interval greater than 4 hours");
1219
+ }
1220
+ }, "validateMaxInterval");
1221
+ if (this.options.hashSweepInterval !== 0 && this.options.hashSweepInterval !== Number.POSITIVE_INFINITY) {
1222
+ validateMaxInterval(this.options.hashSweepInterval);
1223
+ this.hashTimer = setInterval(() => {
1224
+ const sweptHashes = new import_collection.Collection();
1225
+ const currentDate = Date.now();
1226
+ this.hashes.sweep((val, key) => {
1227
+ if (val.lastAccess === -1) return false;
1228
+ const shouldSweep = Math.floor(currentDate - val.lastAccess) > this.options.hashLifetime;
1229
+ if (shouldSweep) {
1230
+ sweptHashes.set(key, val);
1231
+ this.emit("restDebug" /* Debug */, `Hash ${val.value} for ${key} swept due to lifetime being exceeded`);
1232
+ }
1233
+ return shouldSweep;
1234
+ });
1235
+ this.emit("hashSweep" /* HashSweep */, sweptHashes);
1236
+ }, this.options.hashSweepInterval);
1237
+ this.hashTimer.unref?.();
1238
+ }
1239
+ if (this.options.handlerSweepInterval !== 0 && this.options.handlerSweepInterval !== Number.POSITIVE_INFINITY) {
1240
+ validateMaxInterval(this.options.handlerSweepInterval);
1241
+ this.handlerTimer = setInterval(() => {
1242
+ const sweptHandlers = new import_collection.Collection();
1243
+ this.handlers.sweep((val, key) => {
1244
+ const { inactive } = val;
1245
+ if (inactive) {
1246
+ sweptHandlers.set(key, val);
1247
+ this.emit("restDebug" /* Debug */, `Handler ${val.id} for ${key} swept due to being inactive`);
1248
+ }
1249
+ return inactive;
1250
+ });
1251
+ this.emit("handlerSweep" /* HandlerSweep */, sweptHandlers);
1252
+ }, this.options.handlerSweepInterval);
1253
+ this.handlerTimer.unref?.();
1254
+ }
1255
+ }
1256
+ /**
1257
+ * Runs a get request from the api
1258
+ *
1259
+ * @param fullRoute - The full route to query
1260
+ * @param options - Optional request options
1261
+ */
1262
+ async get(fullRoute, options = {}) {
1263
+ return this.request({ ...options, fullRoute, method: "GET" /* Get */ });
1264
+ }
1265
+ /**
1266
+ * Runs a delete request from the api
1267
+ *
1268
+ * @param fullRoute - The full route to query
1269
+ * @param options - Optional request options
1270
+ */
1271
+ async delete(fullRoute, options = {}) {
1272
+ return this.request({ ...options, fullRoute, method: "DELETE" /* Delete */ });
1273
+ }
1274
+ /**
1275
+ * Runs a post request from the api
1276
+ *
1277
+ * @param fullRoute - The full route to query
1278
+ * @param options - Optional request options
1279
+ */
1280
+ async post(fullRoute, options = {}) {
1281
+ return this.request({ ...options, fullRoute, method: "POST" /* Post */ });
1282
+ }
1283
+ /**
1284
+ * Runs a put request from the api
1285
+ *
1286
+ * @param fullRoute - The full route to query
1287
+ * @param options - Optional request options
1288
+ */
1289
+ async put(fullRoute, options = {}) {
1290
+ return this.request({ ...options, fullRoute, method: "PUT" /* Put */ });
1291
+ }
1292
+ /**
1293
+ * Runs a patch request from the api
1294
+ *
1295
+ * @param fullRoute - The full route to query
1296
+ * @param options - Optional request options
1297
+ */
1298
+ async patch(fullRoute, options = {}) {
1299
+ return this.request({ ...options, fullRoute, method: "PATCH" /* Patch */ });
1300
+ }
1301
+ /**
1302
+ * Runs a request from the api
1303
+ *
1304
+ * @param options - Request options
1305
+ */
1306
+ async request(options) {
1307
+ const response = await this.queueRequest(options);
1308
+ return parseResponse(response);
1309
+ }
1310
+ /**
1311
+ * Sets the default agent to use for requests performed by this manager
1312
+ *
1313
+ * @param agent - The agent to use
1314
+ */
1315
+ setAgent(agent) {
1316
+ this.agent = agent;
1317
+ return this;
1318
+ }
1319
+ /**
1320
+ * Sets the authorization token that should be used for requests
1321
+ *
1322
+ * @param token - The authorization token to use
1323
+ */
1324
+ setToken(token) {
1325
+ this.#token = token;
1326
+ return this;
1327
+ }
1328
+ /**
1329
+ * Queues a request to be sent
1330
+ *
1331
+ * @param request - All the information needed to make a request
1332
+ * @returns The response from the api request
1333
+ */
1334
+ async queueRequest(request2) {
1335
+ const routeId = _REST.generateRouteData(request2.fullRoute, request2.method);
1336
+ const hash = this.hashes.get(`${request2.method}:${routeId.bucketRoute}`) ?? {
1337
+ value: `Global(${request2.method}:${routeId.bucketRoute})`,
1338
+ lastAccess: -1
1339
+ };
1340
+ const handler = this.handlers.get(`${hash.value}:${routeId.majorParameter}`) ?? this.createHandler(hash.value, routeId.majorParameter);
1341
+ const { url, fetchOptions } = await this.resolveRequest(request2);
1342
+ return handler.queueRequest(routeId, url, fetchOptions, {
1343
+ body: request2.body,
1344
+ files: request2.files,
1345
+ auth: request2.auth !== false,
1346
+ signal: request2.signal
1347
+ });
1348
+ }
1349
+ /**
1350
+ * Creates a new rate limit handler from a hash, based on the hash and the major parameter
1351
+ *
1352
+ * @param hash - The hash for the route
1353
+ * @param majorParameter - The major parameter for this handler
1354
+ * @internal
1355
+ */
1356
+ createHandler(hash, majorParameter) {
1357
+ const queue = majorParameter === BurstHandlerMajorIdKey ? new BurstHandler(this, hash, majorParameter) : new SequentialHandler(this, hash, majorParameter);
1358
+ this.handlers.set(queue.id, queue);
1359
+ return queue;
1360
+ }
1361
+ /**
1362
+ * Formats the request data to a usable format for fetch
1363
+ *
1364
+ * @param request - The request data
1365
+ */
1366
+ async resolveRequest(request2) {
1367
+ const { options } = this;
1368
+ let query = "";
1369
+ if (request2.query) {
1370
+ const resolvedQuery = request2.query.toString();
1371
+ if (resolvedQuery !== "") {
1372
+ query = `?${resolvedQuery}`;
1373
+ }
1374
+ }
1375
+ const headers = {
1376
+ ...this.options.headers,
1377
+ "User-Agent": `${DefaultUserAgent} ${options.userAgentAppendix}`.trim()
1378
+ };
1379
+ if (request2.auth !== false) {
1380
+ if (!this.#token) {
1381
+ throw new Error("Expected token to be set for this request, but none was present");
1382
+ }
1383
+ headers.Authorization = `${request2.authPrefix ?? this.options.authPrefix} ${this.#token}`;
1384
+ }
1385
+ if (request2.reason?.length) {
1386
+ headers["X-Audit-Log-Reason"] = encodeURIComponent(request2.reason);
1387
+ }
1388
+ const url = `${options.api}${request2.versioned === false ? "" : `/v${options.version}`}${request2.fullRoute}${query}`;
1389
+ let finalBody;
1390
+ let additionalHeaders = {};
1391
+ if (request2.files?.length) {
1392
+ const formData = new FormData();
1393
+ for (const [index, file] of request2.files.entries()) {
1394
+ const fileKey = file.key ?? `files[${index}]`;
1395
+ if (isBufferLike(file.data)) {
1396
+ let contentType = file.contentType;
1397
+ if (!contentType) {
1398
+ const [parsedType] = (0, import_magic_bytes.filetypeinfo)(file.data);
1399
+ if (parsedType) {
1400
+ contentType = OverwrittenMimeTypes[parsedType.mime] ?? parsedType.mime ?? "application/octet-stream";
1401
+ }
1402
+ }
1403
+ formData.append(fileKey, new Blob([file.data], { type: contentType }), file.name);
1404
+ } else {
1405
+ formData.append(fileKey, new Blob([`${file.data}`], { type: file.contentType }), file.name);
1406
+ }
1407
+ }
1408
+ if (request2.body != null) {
1409
+ if (request2.appendToFormData) {
1410
+ for (const [key, value] of Object.entries(request2.body)) {
1411
+ formData.append(key, value);
1412
+ }
1413
+ } else {
1414
+ formData.append("payload_json", JSON.stringify(request2.body));
1415
+ }
1416
+ }
1417
+ finalBody = formData;
1418
+ } else if (request2.body != null) {
1419
+ if (request2.passThroughBody) {
1420
+ finalBody = request2.body;
1421
+ } else {
1422
+ finalBody = JSON.stringify(request2.body);
1423
+ additionalHeaders = { "Content-Type": "application/json" };
1424
+ }
1425
+ }
1426
+ const method = request2.method.toUpperCase();
1427
+ const fetchOptions = {
1428
+ // Set body to null on get / head requests. This does not follow fetch spec (likely because it causes subtle bugs) but is aligned with what request was doing
1429
+ body: ["GET", "HEAD"].includes(method) ? null : finalBody,
1430
+ headers: { ...request2.headers, ...additionalHeaders, ...headers },
1431
+ method,
1432
+ // Prioritize setting an agent per request, use the agent for this instance otherwise.
1433
+ dispatcher: request2.dispatcher ?? this.agent ?? void 0
1434
+ };
1435
+ return { url, fetchOptions };
1436
+ }
1437
+ /**
1438
+ * Stops the hash sweeping interval
1439
+ */
1440
+ clearHashSweeper() {
1441
+ clearInterval(this.hashTimer);
1442
+ }
1443
+ /**
1444
+ * Stops the request handler sweeping interval
1445
+ */
1446
+ clearHandlerSweeper() {
1447
+ clearInterval(this.handlerTimer);
1448
+ }
1449
+ /**
1450
+ * Generates route data for an endpoint:method
1451
+ *
1452
+ * @param endpoint - The raw endpoint to generalize
1453
+ * @param method - The HTTP method this endpoint is called without
1454
+ * @internal
1455
+ */
1456
+ static generateRouteData(endpoint, method) {
1457
+ if (endpoint.startsWith("/interactions/") && endpoint.endsWith("/callback")) {
1458
+ return {
1459
+ majorParameter: BurstHandlerMajorIdKey,
1460
+ bucketRoute: "/interactions/:id/:token/callback",
1461
+ original: endpoint
1462
+ };
1463
+ }
1464
+ const majorIdMatch = /(?:^\/webhooks\/(\d{17,19}\/[^/?]+))|(?:^\/(?:channels|guilds|webhooks)\/(\d{17,19}))/.exec(
1465
+ endpoint
1466
+ );
1467
+ const majorId = majorIdMatch?.[2] ?? majorIdMatch?.[1] ?? "global";
1468
+ const baseRoute = endpoint.replaceAll(/\d{17,19}/g, ":id").replace(/\/reactions\/(.*)/, "/reactions/:reaction").replace(/\/webhooks\/:id\/[^/?]+/, "/webhooks/:id/:token");
1469
+ let exceptions = "";
1470
+ if (method === "DELETE" /* Delete */ && baseRoute === "/channels/:id/messages/:id") {
1471
+ const id = /\d{17,19}$/.exec(endpoint)[0];
1472
+ const timestamp = import_snowflake.DiscordSnowflake.timestampFrom(id);
1473
+ if (Date.now() - timestamp > 1e3 * 60 * 60 * 24 * 14) {
1474
+ exceptions += "/Delete Old Message";
1475
+ }
1476
+ }
1477
+ return {
1478
+ majorParameter: majorId,
1479
+ bucketRoute: baseRoute + exceptions,
1480
+ original: endpoint
1481
+ };
1482
+ }
1483
+ };
1484
+
1485
+ // src/shared.ts
1486
+ var version = "2.6.0";
1487
+
1488
+ // src/index.ts
1489
+ globalThis.FormData ??= import_undici2.FormData;
1490
+ globalThis.Blob ??= import_node_buffer.Blob;
1491
+ setDefaultStrategy((0, import_util2.shouldUseGlobalFetchAndWebSocket)() ? fetch : makeRequest);
1492
+ // Annotate the CommonJS export names for ESM import in node:
1493
+ 0 && (module.exports = {
1494
+ ALLOWED_EXTENSIONS,
1495
+ ALLOWED_SIZES,
1496
+ ALLOWED_STICKER_EXTENSIONS,
1497
+ BurstHandlerMajorIdKey,
1498
+ CDN,
1499
+ DEPRECATION_WARNING_PREFIX,
1500
+ DefaultRestOptions,
1501
+ DefaultUserAgent,
1502
+ DefaultUserAgentAppendix,
1503
+ DiscordAPIError,
1504
+ HTTPError,
1505
+ OverwrittenMimeTypes,
1506
+ REST,
1507
+ RESTEvents,
1508
+ RateLimitError,
1509
+ RequestMethod,
1510
+ calculateUserDefaultAvatarIndex,
1511
+ makeURLSearchParams,
1512
+ parseResponse,
1513
+ version
1514
+ });
1515
+ //# sourceMappingURL=index.js.map