@mastra/server 1.36.0-alpha.1 → 1.36.0-alpha.3

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 (525) hide show
  1. package/CHANGELOG.md +158 -0
  2. package/dist/_types/@internal_core/dist/index.d.ts +506 -28
  3. package/dist/{api-schema-manifest-EMKHNXSD.cjs → api-schema-manifest-HYLH35UU.cjs} +6 -6
  4. package/dist/{api-schema-manifest-EMKHNXSD.cjs.map → api-schema-manifest-HYLH35UU.cjs.map} +1 -1
  5. package/dist/{api-schema-manifest-EJXNYOFH.js → api-schema-manifest-WY623UST.js} +4 -4
  6. package/dist/{api-schema-manifest-EJXNYOFH.js.map → api-schema-manifest-WY623UST.js.map} +1 -1
  7. package/dist/{chunk-YARY4I5U.js → chunk-23S37FLK.js} +9 -3
  8. package/dist/chunk-23S37FLK.js.map +1 -0
  9. package/dist/{chunk-NG62OLVA.js → chunk-2JXX4IPC.js} +3 -3
  10. package/dist/{chunk-NG62OLVA.js.map → chunk-2JXX4IPC.js.map} +1 -1
  11. package/dist/{chunk-BYX5LHPW.cjs → chunk-2R76OYDZ.cjs} +22 -5
  12. package/dist/chunk-2R76OYDZ.cjs.map +1 -0
  13. package/dist/{chunk-6IUJAAQ2.js → chunk-2SMGXJZJ.js} +42 -8
  14. package/dist/chunk-2SMGXJZJ.js.map +1 -0
  15. package/dist/chunk-2YUSBWAC.js +101 -0
  16. package/dist/chunk-2YUSBWAC.js.map +1 -0
  17. package/dist/{chunk-PQDYNK4J.cjs → chunk-3AKG5KEE.cjs} +45 -37
  18. package/dist/chunk-3AKG5KEE.cjs.map +1 -0
  19. package/dist/{chunk-NPMJ6FRL.cjs → chunk-3AWUH2DT.cjs} +113 -86
  20. package/dist/chunk-3AWUH2DT.cjs.map +1 -0
  21. package/dist/{chunk-Y6CAJLYX.js → chunk-3FLL7GNJ.js} +6 -6
  22. package/dist/{chunk-Y6CAJLYX.js.map → chunk-3FLL7GNJ.js.map} +1 -1
  23. package/dist/{chunk-Y5LNMKEY.cjs → chunk-43KD3CRE.cjs} +21 -7
  24. package/dist/chunk-43KD3CRE.cjs.map +1 -0
  25. package/dist/{chunk-3NA22RQ5.cjs → chunk-4BLUIUHS.cjs} +5 -5
  26. package/dist/{chunk-3NA22RQ5.cjs.map → chunk-4BLUIUHS.cjs.map} +1 -1
  27. package/dist/{chunk-FRFWWBSS.js → chunk-4DUHTOLC.js} +4 -4
  28. package/dist/{chunk-FRFWWBSS.js.map → chunk-4DUHTOLC.js.map} +1 -1
  29. package/dist/chunk-4G7S52U3.cjs +356 -0
  30. package/dist/chunk-4G7S52U3.cjs.map +1 -0
  31. package/dist/{chunk-DYN7KSCZ.js → chunk-4KSV4WWQ.js} +6 -6
  32. package/dist/{chunk-DYN7KSCZ.js.map → chunk-4KSV4WWQ.js.map} +1 -1
  33. package/dist/{chunk-CJFSLVFA.js → chunk-4RLRTJ5M.js} +22 -5
  34. package/dist/chunk-4RLRTJ5M.js.map +1 -0
  35. package/dist/{chunk-XHA6OBT3.cjs → chunk-4UFLVROK.cjs} +13 -13
  36. package/dist/{chunk-XHA6OBT3.cjs.map → chunk-4UFLVROK.cjs.map} +1 -1
  37. package/dist/{chunk-YHRGDSTK.js → chunk-4XSWMZTL.js} +40 -3
  38. package/dist/chunk-4XSWMZTL.js.map +1 -0
  39. package/dist/{chunk-MHQFFRA2.cjs → chunk-4Z24UGLY.cjs} +26 -26
  40. package/dist/{chunk-MHQFFRA2.cjs.map → chunk-4Z24UGLY.cjs.map} +1 -1
  41. package/dist/{chunk-GPLCXP3B.cjs → chunk-5GI232FP.cjs} +8 -8
  42. package/dist/{chunk-GPLCXP3B.cjs.map → chunk-5GI232FP.cjs.map} +1 -1
  43. package/dist/{chunk-IIGNRK55.cjs → chunk-5OGVOPLG.cjs} +4 -4
  44. package/dist/{chunk-IIGNRK55.cjs.map → chunk-5OGVOPLG.cjs.map} +1 -1
  45. package/dist/{chunk-5XW4MKE6.cjs → chunk-65T6KVYX.cjs} +11 -2
  46. package/dist/chunk-65T6KVYX.cjs.map +1 -0
  47. package/dist/{chunk-W32BPAIP.js → chunk-664F5XOW.js} +7 -7
  48. package/dist/{chunk-W32BPAIP.js.map → chunk-664F5XOW.js.map} +1 -1
  49. package/dist/{chunk-N44OOOAL.js → chunk-6GMGCV74.js} +5 -5
  50. package/dist/{chunk-N44OOOAL.js.map → chunk-6GMGCV74.js.map} +1 -1
  51. package/dist/chunk-6HR2SJBP.js +101 -0
  52. package/dist/chunk-6HR2SJBP.js.map +1 -0
  53. package/dist/chunk-6JCLSYOU.js +351 -0
  54. package/dist/chunk-6JCLSYOU.js.map +1 -0
  55. package/dist/{chunk-HT4KV7V5.js → chunk-6NIQROP2.js} +23 -13
  56. package/dist/chunk-6NIQROP2.js.map +1 -0
  57. package/dist/chunk-753JFAF2.js +134 -0
  58. package/dist/chunk-753JFAF2.js.map +1 -0
  59. package/dist/{chunk-LQRPDQCE.js → chunk-7EDTSUCY.js} +4 -4
  60. package/dist/{chunk-LQRPDQCE.js.map → chunk-7EDTSUCY.js.map} +1 -1
  61. package/dist/chunk-7U7OWTR2.js +149 -0
  62. package/dist/chunk-7U7OWTR2.js.map +1 -0
  63. package/dist/{chunk-SR6QNILC.cjs → chunk-A4FTF4A7.cjs} +55 -55
  64. package/dist/{chunk-SR6QNILC.cjs.map → chunk-A4FTF4A7.cjs.map} +1 -1
  65. package/dist/{chunk-7YV7MYOP.js → chunk-AAZDGIDJ.js} +22 -12
  66. package/dist/chunk-AAZDGIDJ.js.map +1 -0
  67. package/dist/chunk-APCBVLVG.js +497 -0
  68. package/dist/chunk-APCBVLVG.js.map +1 -0
  69. package/dist/chunk-AR7VSXHH.cjs +143 -0
  70. package/dist/chunk-AR7VSXHH.cjs.map +1 -0
  71. package/dist/{chunk-JRFHBWKQ.cjs → chunk-AY3ZP465.cjs} +36 -26
  72. package/dist/chunk-AY3ZP465.cjs.map +1 -0
  73. package/dist/{chunk-YLJ5EVO3.js → chunk-BWNJBSXL.js} +3 -3
  74. package/dist/{chunk-YLJ5EVO3.js.map → chunk-BWNJBSXL.js.map} +1 -1
  75. package/dist/{chunk-JBAQMT4Y.cjs → chunk-CBHBMWZ2.cjs} +12 -12
  76. package/dist/{chunk-JBAQMT4Y.cjs.map → chunk-CBHBMWZ2.cjs.map} +1 -1
  77. package/dist/{chunk-JW4P6OFG.js → chunk-CCL4C2ZO.js} +4 -4
  78. package/dist/{chunk-JW4P6OFG.js.map → chunk-CCL4C2ZO.js.map} +1 -1
  79. package/dist/{chunk-7LBBDT4S.js → chunk-CGB327L6.js} +3 -3
  80. package/dist/{chunk-7LBBDT4S.js.map → chunk-CGB327L6.js.map} +1 -1
  81. package/dist/{chunk-WP67ASKV.js → chunk-CIBEUC5W.js} +8 -8
  82. package/dist/{chunk-WP67ASKV.js.map → chunk-CIBEUC5W.js.map} +1 -1
  83. package/dist/{chunk-RGUKCKGB.cjs → chunk-CODPCBGN.cjs} +22 -22
  84. package/dist/{chunk-RGUKCKGB.cjs.map → chunk-CODPCBGN.cjs.map} +1 -1
  85. package/dist/{chunk-PM6YRFZW.cjs → chunk-CY2WDWFQ.cjs} +8 -8
  86. package/dist/{chunk-PM6YRFZW.cjs.map → chunk-CY2WDWFQ.cjs.map} +1 -1
  87. package/dist/{chunk-OS2636MU.js → chunk-D4HVKF56.js} +5 -5
  88. package/dist/{chunk-OS2636MU.js.map → chunk-D4HVKF56.js.map} +1 -1
  89. package/dist/{chunk-73MISLDN.cjs → chunk-D774EZRN.cjs} +16 -16
  90. package/dist/{chunk-73MISLDN.cjs.map → chunk-D774EZRN.cjs.map} +1 -1
  91. package/dist/{chunk-L3WM4IWR.cjs → chunk-DYXX34YU.cjs} +56 -21
  92. package/dist/chunk-DYXX34YU.cjs.map +1 -0
  93. package/dist/{chunk-XZT7USLH.js → chunk-E3UHRQZ7.js} +81 -41
  94. package/dist/chunk-E3UHRQZ7.js.map +1 -0
  95. package/dist/{chunk-DZWFQD53.cjs → chunk-EAPGRYRG.cjs} +6 -6
  96. package/dist/{chunk-DZWFQD53.cjs.map → chunk-EAPGRYRG.cjs.map} +1 -1
  97. package/dist/{chunk-R4IYXUNR.cjs → chunk-ESZN7NKS.cjs} +34 -26
  98. package/dist/chunk-ESZN7NKS.cjs.map +1 -0
  99. package/dist/{chunk-E53AJNZB.js → chunk-F2FAL5CZ.js} +2 -2
  100. package/dist/{chunk-E53AJNZB.js.map → chunk-F2FAL5CZ.js.map} +1 -1
  101. package/dist/{chunk-7BM2AIKU.js → chunk-FKQCQSXF.js} +44 -17
  102. package/dist/chunk-FKQCQSXF.js.map +1 -0
  103. package/dist/{chunk-DGJSHUP4.cjs → chunk-FP3SA3LK.cjs} +177 -177
  104. package/dist/{chunk-DGJSHUP4.cjs.map → chunk-FP3SA3LK.cjs.map} +1 -1
  105. package/dist/chunk-G5LQCOFZ.js +292 -0
  106. package/dist/chunk-G5LQCOFZ.js.map +1 -0
  107. package/dist/{chunk-B3UPXBHD.js → chunk-G6W3FFTU.js} +227 -41
  108. package/dist/chunk-G6W3FFTU.js.map +1 -0
  109. package/dist/chunk-GA4BG5JK.js +46 -0
  110. package/dist/chunk-GA4BG5JK.js.map +1 -0
  111. package/dist/{chunk-YPXOTWND.js → chunk-GAGC4WDU.js} +3 -3
  112. package/dist/{chunk-YPXOTWND.js.map → chunk-GAGC4WDU.js.map} +1 -1
  113. package/dist/{chunk-T6QQYYPA.cjs → chunk-GAL7C4Y5.cjs} +36 -26
  114. package/dist/chunk-GAL7C4Y5.cjs.map +1 -0
  115. package/dist/{chunk-GTYVB2TS.js → chunk-GFZR6THV.js} +3 -3
  116. package/dist/{chunk-GTYVB2TS.js.map → chunk-GFZR6THV.js.map} +1 -1
  117. package/dist/{chunk-Q7LA2XMK.js → chunk-GW6T4HLN.js} +9 -9
  118. package/dist/{chunk-Q7LA2XMK.js.map → chunk-GW6T4HLN.js.map} +1 -1
  119. package/dist/{chunk-NDMG7SUN.js → chunk-HFESVWJ6.js} +8 -8
  120. package/dist/{chunk-NDMG7SUN.js.map → chunk-HFESVWJ6.js.map} +1 -1
  121. package/dist/{chunk-BBB4NKZZ.cjs → chunk-HGAPGNWM.cjs} +83 -83
  122. package/dist/{chunk-BBB4NKZZ.cjs.map → chunk-HGAPGNWM.cjs.map} +1 -1
  123. package/dist/{chunk-OOEYTKTC.js → chunk-HGRG2WVX.js} +35 -18
  124. package/dist/chunk-HGRG2WVX.js.map +1 -0
  125. package/dist/{chunk-4YSEVAAS.cjs → chunk-HKM5KOOK.cjs} +31 -31
  126. package/dist/{chunk-4YSEVAAS.cjs.map → chunk-HKM5KOOK.cjs.map} +1 -1
  127. package/dist/chunk-HMJL3C3H.js +36 -0
  128. package/dist/chunk-HMJL3C3H.js.map +1 -0
  129. package/dist/{chunk-X7ZNZFHV.js → chunk-HNGYUI5N.js} +23 -15
  130. package/dist/chunk-HNGYUI5N.js.map +1 -0
  131. package/dist/{chunk-7R7WT24X.cjs → chunk-HWT5YD7H.cjs} +17 -17
  132. package/dist/{chunk-7R7WT24X.cjs.map → chunk-HWT5YD7H.cjs.map} +1 -1
  133. package/dist/{chunk-R3R6VJRM.cjs → chunk-HZNJ4B7D.cjs} +32 -32
  134. package/dist/{chunk-R3R6VJRM.cjs.map → chunk-HZNJ4B7D.cjs.map} +1 -1
  135. package/dist/{chunk-XGNMFTYF.js → chunk-I3RWQGD7.js} +9 -9
  136. package/dist/{chunk-XGNMFTYF.js.map → chunk-I3RWQGD7.js.map} +1 -1
  137. package/dist/{chunk-UQ2H32RT.cjs → chunk-I6WBJDRP.cjs} +10 -10
  138. package/dist/{chunk-UQ2H32RT.cjs.map → chunk-I6WBJDRP.cjs.map} +1 -1
  139. package/dist/{chunk-T3PECMPO.js → chunk-IRJQQYII.js} +7 -7
  140. package/dist/{chunk-T3PECMPO.js.map → chunk-IRJQQYII.js.map} +1 -1
  141. package/dist/chunk-JUYUBEMU.js +28 -0
  142. package/dist/chunk-JUYUBEMU.js.map +1 -0
  143. package/dist/{chunk-IVFIYTLD.cjs → chunk-JZ2K5LY4.cjs} +34 -34
  144. package/dist/{chunk-IVFIYTLD.cjs.map → chunk-JZ2K5LY4.cjs.map} +1 -1
  145. package/dist/{chunk-MEYWNCUV.cjs → chunk-KE4V4LJE.cjs} +7 -7
  146. package/dist/{chunk-MEYWNCUV.cjs.map → chunk-KE4V4LJE.cjs.map} +1 -1
  147. package/dist/{chunk-ES23WZRF.cjs → chunk-LEIV627E.cjs} +15 -15
  148. package/dist/{chunk-ES23WZRF.cjs.map → chunk-LEIV627E.cjs.map} +1 -1
  149. package/dist/{chunk-AIRSK4QU.js → chunk-LH5Y7AJF.js} +46 -7
  150. package/dist/chunk-LH5Y7AJF.js.map +1 -0
  151. package/dist/{chunk-5TTCUSSA.js → chunk-LPFE6YTG.js} +3 -3
  152. package/dist/{chunk-5TTCUSSA.js.map → chunk-LPFE6YTG.js.map} +1 -1
  153. package/dist/{chunk-WYLVJSGR.cjs → chunk-LTRLD33R.cjs} +47 -8
  154. package/dist/chunk-LTRLD33R.cjs.map +1 -0
  155. package/dist/{chunk-UH3MHVDF.cjs → chunk-M4B42JGO.cjs} +6 -3
  156. package/dist/chunk-M4B42JGO.cjs.map +1 -0
  157. package/dist/{chunk-QWPEAC7I.cjs → chunk-MERLF4UP.cjs} +94 -94
  158. package/dist/{chunk-QWPEAC7I.cjs.map → chunk-MERLF4UP.cjs.map} +1 -1
  159. package/dist/{chunk-CIPZ4VOZ.cjs → chunk-N6RQC4Z3.cjs} +4 -4
  160. package/dist/{chunk-CIPZ4VOZ.cjs.map → chunk-N6RQC4Z3.cjs.map} +1 -1
  161. package/dist/chunk-NHJWT4KF.cjs +104 -0
  162. package/dist/chunk-NHJWT4KF.cjs.map +1 -0
  163. package/dist/chunk-O4O2EJF7.cjs +13 -0
  164. package/dist/chunk-O4O2EJF7.cjs.map +1 -0
  165. package/dist/{chunk-H3RUJBEL.cjs → chunk-O7B3P2AT.cjs} +57 -40
  166. package/dist/chunk-O7B3P2AT.cjs.map +1 -0
  167. package/dist/{chunk-L2RZNUOW.js → chunk-OGYYXNGI.js} +4 -4
  168. package/dist/{chunk-L2RZNUOW.js.map → chunk-OGYYXNGI.js.map} +1 -1
  169. package/dist/{chunk-M7DF3D2M.js → chunk-OJNVSXOF.js} +19 -5
  170. package/dist/chunk-OJNVSXOF.js.map +1 -0
  171. package/dist/{chunk-KGK2LCZ4.js → chunk-OKKJPM5N.js} +21 -14
  172. package/dist/chunk-OKKJPM5N.js.map +1 -0
  173. package/dist/{chunk-Z6C7SDXA.js → chunk-ONCDLJUQ.js} +6 -3
  174. package/dist/chunk-ONCDLJUQ.js.map +1 -0
  175. package/dist/{chunk-HX5WL5ZF.js → chunk-OORAVFI4.js} +3 -3
  176. package/dist/{chunk-HX5WL5ZF.js.map → chunk-OORAVFI4.js.map} +1 -1
  177. package/dist/{chunk-M7CTMLXS.js → chunk-OSN3DL34.js} +4 -4
  178. package/dist/{chunk-M7CTMLXS.js.map → chunk-OSN3DL34.js.map} +1 -1
  179. package/dist/{chunk-ZIR2AE52.js → chunk-P5ZWPVC2.js} +4 -4
  180. package/dist/{chunk-ZIR2AE52.js.map → chunk-P5ZWPVC2.js.map} +1 -1
  181. package/dist/{chunk-BBD7VAAR.js → chunk-PQ37PNAE.js} +22 -12
  182. package/dist/chunk-PQ37PNAE.js.map +1 -0
  183. package/dist/{chunk-DRNCUSSM.cjs → chunk-PWGPLCL4.cjs} +5 -5
  184. package/dist/{chunk-DRNCUSSM.cjs.map → chunk-PWGPLCL4.cjs.map} +1 -1
  185. package/dist/chunk-QJU62KP2.cjs +298 -0
  186. package/dist/chunk-QJU62KP2.cjs.map +1 -0
  187. package/dist/{chunk-AY5TY4EN.js → chunk-QUVYOHFH.js} +178 -52
  188. package/dist/chunk-QUVYOHFH.js.map +1 -0
  189. package/dist/{chunk-LTYRUL3Q.cjs → chunk-QZ6UFQ7V.cjs} +42 -2
  190. package/dist/chunk-QZ6UFQ7V.cjs.map +1 -0
  191. package/dist/chunk-REJUB2HI.cjs +104 -0
  192. package/dist/chunk-REJUB2HI.cjs.map +1 -0
  193. package/dist/chunk-RJUQQE46.cjs +551 -0
  194. package/dist/chunk-RJUQQE46.cjs.map +1 -0
  195. package/dist/{chunk-M4MNMBQF.cjs → chunk-RYPLQO4Z.cjs} +32 -25
  196. package/dist/chunk-RYPLQO4Z.cjs.map +1 -0
  197. package/dist/chunk-S77FIEDZ.cjs +504 -0
  198. package/dist/chunk-S77FIEDZ.cjs.map +1 -0
  199. package/dist/chunk-SFPN7SHZ.js +11 -0
  200. package/dist/chunk-SFPN7SHZ.js.map +1 -0
  201. package/dist/{chunk-LBEQ4EE4.js → chunk-SPGVPADY.js} +3 -3
  202. package/dist/{chunk-LBEQ4EE4.js.map → chunk-SPGVPADY.js.map} +1 -1
  203. package/dist/{chunk-Q2B7W7GA.cjs → chunk-T3C54LPX.cjs} +57 -5
  204. package/dist/chunk-T3C54LPX.cjs.map +1 -0
  205. package/dist/chunk-TNXHSUIL.cjs +655 -0
  206. package/dist/chunk-TNXHSUIL.cjs.map +1 -0
  207. package/dist/{chunk-3BL73LS3.cjs → chunk-U72BY62E.cjs} +260 -133
  208. package/dist/chunk-U72BY62E.cjs.map +1 -0
  209. package/dist/{chunk-DZXHO72E.cjs → chunk-UBYGPC2S.cjs} +12 -12
  210. package/dist/{chunk-DZXHO72E.cjs.map → chunk-UBYGPC2S.cjs.map} +1 -1
  211. package/dist/{chunk-IDUFQ5HG.js → chunk-UCKK7LPQ.js} +3 -3
  212. package/dist/{chunk-IDUFQ5HG.js.map → chunk-UCKK7LPQ.js.map} +1 -1
  213. package/dist/{chunk-JX4UGU4A.cjs → chunk-UGJBURIS.cjs} +12 -12
  214. package/dist/{chunk-JX4UGU4A.cjs.map → chunk-UGJBURIS.cjs.map} +1 -1
  215. package/dist/{chunk-PDHGJ7GP.js → chunk-UIRQU4GW.js} +54 -6
  216. package/dist/chunk-UIRQU4GW.js.map +1 -0
  217. package/dist/chunk-V4ATNZXG.cjs +31 -0
  218. package/dist/chunk-V4ATNZXG.cjs.map +1 -0
  219. package/dist/chunk-VX3MJR4P.cjs +161 -0
  220. package/dist/chunk-VX3MJR4P.cjs.map +1 -0
  221. package/dist/{chunk-QTPAVOG2.cjs → chunk-WLGC3IWY.cjs} +49 -39
  222. package/dist/chunk-WLGC3IWY.cjs.map +1 -0
  223. package/dist/{chunk-DM6UW5RD.js → chunk-WM2RUEBO.js} +8 -8
  224. package/dist/{chunk-DM6UW5RD.js.map → chunk-WM2RUEBO.js.map} +1 -1
  225. package/dist/{chunk-4L2UVFJO.js → chunk-WYP25ZMM.js} +120 -5
  226. package/dist/chunk-WYP25ZMM.js.map +1 -0
  227. package/dist/{chunk-MXGCIYNM.js → chunk-XI3XH4G7.js} +22 -12
  228. package/dist/chunk-XI3XH4G7.js.map +1 -0
  229. package/dist/{chunk-YE3LMHL3.js → chunk-XM54QZ3G.js} +5 -5
  230. package/dist/{chunk-YE3LMHL3.js.map → chunk-XM54QZ3G.js.map} +1 -1
  231. package/dist/{chunk-PYZAUXQX.cjs → chunk-XNR667MS.cjs} +27 -27
  232. package/dist/{chunk-PYZAUXQX.cjs.map → chunk-XNR667MS.cjs.map} +1 -1
  233. package/dist/{chunk-Y6MWNLAA.cjs → chunk-XR3CGVKU.cjs} +8 -8
  234. package/dist/{chunk-Y6MWNLAA.cjs.map → chunk-XR3CGVKU.cjs.map} +1 -1
  235. package/dist/{chunk-AZORAK4H.cjs → chunk-XTFWFQZ7.cjs} +2 -2
  236. package/dist/{chunk-AZORAK4H.cjs.map → chunk-XTFWFQZ7.cjs.map} +1 -1
  237. package/dist/{chunk-ELWN7ZXR.js → chunk-Y3KIKJW6.js} +6 -6
  238. package/dist/{chunk-ELWN7ZXR.js.map → chunk-Y3KIKJW6.js.map} +1 -1
  239. package/dist/{chunk-B34S64RC.cjs → chunk-YNSUYESL.cjs} +23 -3
  240. package/dist/chunk-YNSUYESL.cjs.map +1 -0
  241. package/dist/{chunk-3PQSHLG7.cjs → chunk-YQYYIRDS.cjs} +164 -164
  242. package/dist/{chunk-3PQSHLG7.cjs.map → chunk-YQYYIRDS.cjs.map} +1 -1
  243. package/dist/chunk-YRLCLLKR.js +14 -0
  244. package/dist/chunk-YRLCLLKR.js.map +1 -0
  245. package/dist/{chunk-SUT6SU4I.cjs → chunk-Z4PDJRZT.cjs} +124 -5
  246. package/dist/chunk-Z4PDJRZT.cjs.map +1 -0
  247. package/dist/{chunk-JRZZN55Y.cjs → chunk-Z772ZUYH.cjs} +53 -43
  248. package/dist/chunk-Z772ZUYH.cjs.map +1 -0
  249. package/dist/chunk-ZCX2J552.cjs +38 -0
  250. package/dist/chunk-ZCX2J552.cjs.map +1 -0
  251. package/dist/{chunk-OULCMO5R.js → chunk-ZHS2QDGO.js} +23 -15
  252. package/dist/chunk-ZHS2QDGO.js.map +1 -0
  253. package/dist/chunk-ZNP74O27.cjs +19 -0
  254. package/dist/chunk-ZNP74O27.cjs.map +1 -0
  255. package/dist/{dist-5OGIQLEZ.js → dist-TXPFV4FE.js} +3 -3
  256. package/dist/{dist-5OGIQLEZ.js.map → dist-TXPFV4FE.js.map} +1 -1
  257. package/dist/{dist-ON3E5YMU.cjs → dist-VWAYVM5T.cjs} +3 -3
  258. package/dist/{dist-ON3E5YMU.cjs.map → dist-VWAYVM5T.cjs.map} +1 -1
  259. package/dist/docs/SKILL.md +1 -1
  260. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  261. package/dist/server/auth/helpers.d.ts +3 -0
  262. package/dist/server/auth/helpers.d.ts.map +1 -1
  263. package/dist/server/auth/index.cjs +28 -15
  264. package/dist/server/auth/index.js +2 -1
  265. package/dist/server/browser-stream/types.d.ts +9 -0
  266. package/dist/server/browser-stream/types.d.ts.map +1 -1
  267. package/dist/server/constants.d.ts +3 -0
  268. package/dist/server/constants.d.ts.map +1 -1
  269. package/dist/server/handlers/a2a.cjs +14 -14
  270. package/dist/server/handlers/a2a.js +1 -1
  271. package/dist/server/handlers/agent-builder.cjs +16 -16
  272. package/dist/server/handlers/agent-builder.js +1 -1
  273. package/dist/server/handlers/agent-versions.cjs +8 -8
  274. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  275. package/dist/server/handlers/agent-versions.js +1 -1
  276. package/dist/server/handlers/agents.cjs +41 -41
  277. package/dist/server/handlers/agents.d.ts +185 -0
  278. package/dist/server/handlers/agents.d.ts.map +1 -1
  279. package/dist/server/handlers/agents.js +1 -1
  280. package/dist/server/handlers/auth.cjs +15 -11
  281. package/dist/server/handlers/auth.d.ts +168 -146
  282. package/dist/server/handlers/auth.d.ts.map +1 -1
  283. package/dist/server/handlers/auth.js +1 -1
  284. package/dist/server/handlers/authorship.cjs +52 -0
  285. package/dist/server/handlers/authorship.cjs.map +1 -0
  286. package/dist/server/handlers/authorship.d.ts +176 -0
  287. package/dist/server/handlers/authorship.d.ts.map +1 -0
  288. package/dist/server/handlers/authorship.js +3 -0
  289. package/dist/server/handlers/authorship.js.map +1 -0
  290. package/dist/server/handlers/background-tasks.cjs +4 -4
  291. package/dist/server/handlers/background-tasks.js +1 -1
  292. package/dist/server/handlers/builder-registry.cjs +28 -0
  293. package/dist/server/handlers/builder-registry.cjs.map +1 -0
  294. package/dist/server/handlers/builder-registry.d.ts +170 -0
  295. package/dist/server/handlers/builder-registry.d.ts.map +1 -0
  296. package/dist/server/handlers/builder-registry.js +3 -0
  297. package/dist/server/handlers/builder-registry.js.map +1 -0
  298. package/dist/server/handlers/channels.cjs +5 -5
  299. package/dist/server/handlers/channels.js +1 -1
  300. package/dist/server/handlers/conversations.cjs +5 -5
  301. package/dist/server/handlers/conversations.js +1 -1
  302. package/dist/server/handlers/datasets.cjs +26 -26
  303. package/dist/server/handlers/datasets.js +1 -1
  304. package/dist/server/handlers/editor-builder.cjs +24 -0
  305. package/dist/server/handlers/editor-builder.cjs.map +1 -0
  306. package/dist/server/handlers/editor-builder.d.ts +259 -0
  307. package/dist/server/handlers/editor-builder.d.ts.map +1 -0
  308. package/dist/server/handlers/editor-builder.js +3 -0
  309. package/dist/server/handlers/editor-builder.js.map +1 -0
  310. package/dist/server/handlers/error.cjs +3 -3
  311. package/dist/server/handlers/error.d.ts.map +1 -1
  312. package/dist/server/handlers/error.js +1 -1
  313. package/dist/server/handlers/favorites-enrichment.cjs +16 -0
  314. package/dist/server/handlers/favorites-enrichment.cjs.map +1 -0
  315. package/dist/server/handlers/favorites-enrichment.d.ts +27 -0
  316. package/dist/server/handlers/favorites-enrichment.d.ts.map +1 -0
  317. package/dist/server/handlers/favorites-enrichment.js +3 -0
  318. package/dist/server/handlers/favorites-enrichment.js.map +1 -0
  319. package/dist/server/handlers/logs.cjs +4 -4
  320. package/dist/server/handlers/logs.js +1 -1
  321. package/dist/server/handlers/mcp-client-versions.cjs +8 -8
  322. package/dist/server/handlers/mcp-client-versions.d.ts.map +1 -1
  323. package/dist/server/handlers/mcp-client-versions.js +1 -1
  324. package/dist/server/handlers/mcp.cjs +11 -11
  325. package/dist/server/handlers/mcp.js +1 -1
  326. package/dist/server/handlers/memory.cjs +27 -27
  327. package/dist/server/handlers/memory.d.ts +36 -36
  328. package/dist/server/handlers/memory.js +1 -1
  329. package/dist/server/handlers/observability-list-query-schemas.cjs +24 -0
  330. package/dist/server/handlers/observability-list-query-schemas.cjs.map +1 -0
  331. package/dist/server/handlers/observability-list-query-schemas.d.ts +29 -0
  332. package/dist/server/handlers/observability-list-query-schemas.d.ts.map +1 -0
  333. package/dist/server/handlers/observability-list-query-schemas.js +3 -0
  334. package/dist/server/handlers/observability-list-query-schemas.js.map +1 -0
  335. package/dist/server/handlers/observability-new-endpoints.cjs +32 -28
  336. package/dist/server/handlers/observability-new-endpoints.d.ts +326 -48
  337. package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
  338. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  339. package/dist/server/handlers/observability-shared.cjs +23 -7
  340. package/dist/server/handlers/observability-shared.d.ts +22 -1
  341. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  342. package/dist/server/handlers/observability-shared.js +1 -1
  343. package/dist/server/handlers/observability.cjs +43 -39
  344. package/dist/server/handlers/observability.d.ts +18 -8
  345. package/dist/server/handlers/observability.d.ts.map +1 -1
  346. package/dist/server/handlers/observability.js +2 -2
  347. package/dist/server/handlers/processor-providers.cjs +3 -3
  348. package/dist/server/handlers/processor-providers.js +1 -1
  349. package/dist/server/handlers/processors.cjs +4 -4
  350. package/dist/server/handlers/processors.js +1 -1
  351. package/dist/server/handlers/prompt-block-versions.cjs +8 -8
  352. package/dist/server/handlers/prompt-block-versions.d.ts.map +1 -1
  353. package/dist/server/handlers/prompt-block-versions.js +1 -1
  354. package/dist/server/handlers/responses.cjs +4 -4
  355. package/dist/server/handlers/responses.js +1 -1
  356. package/dist/server/handlers/responses.storage.cjs +8 -8
  357. package/dist/server/handlers/responses.storage.js +1 -1
  358. package/dist/server/handlers/schedules.cjs +6 -6
  359. package/dist/server/handlers/schedules.js +1 -1
  360. package/dist/server/handlers/scorer-versions.cjs +8 -8
  361. package/dist/server/handlers/scorer-versions.d.ts.map +1 -1
  362. package/dist/server/handlers/scorer-versions.js +1 -1
  363. package/dist/server/handlers/scores.cjs +7 -7
  364. package/dist/server/handlers/scores.js +1 -1
  365. package/dist/server/handlers/skills-sh-shared.cjs +40 -0
  366. package/dist/server/handlers/skills-sh-shared.cjs.map +1 -0
  367. package/dist/server/handlers/skills-sh-shared.d.ts +89 -0
  368. package/dist/server/handlers/skills-sh-shared.d.ts.map +1 -0
  369. package/dist/server/handlers/skills-sh-shared.js +3 -0
  370. package/dist/server/handlers/skills-sh-shared.js.map +1 -0
  371. package/dist/server/handlers/stored-agent-favorites.cjs +16 -0
  372. package/dist/server/handlers/stored-agent-favorites.cjs.map +1 -0
  373. package/dist/server/handlers/stored-agent-favorites.d.ts +29 -0
  374. package/dist/server/handlers/stored-agent-favorites.d.ts.map +1 -0
  375. package/dist/server/handlers/stored-agent-favorites.js +3 -0
  376. package/dist/server/handlers/stored-agent-favorites.js.map +1 -0
  377. package/dist/server/handlers/stored-agents.cjs +7 -7
  378. package/dist/server/handlers/stored-agents.d.ts +390 -0
  379. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  380. package/dist/server/handlers/stored-agents.js +1 -1
  381. package/dist/server/handlers/stored-mcp-clients.cjs +6 -6
  382. package/dist/server/handlers/stored-mcp-clients.d.ts.map +1 -1
  383. package/dist/server/handlers/stored-mcp-clients.js +1 -1
  384. package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
  385. package/dist/server/handlers/stored-prompt-blocks.d.ts.map +1 -1
  386. package/dist/server/handlers/stored-prompt-blocks.js +1 -1
  387. package/dist/server/handlers/stored-scorers.cjs +6 -6
  388. package/dist/server/handlers/stored-scorers.d.ts.map +1 -1
  389. package/dist/server/handlers/stored-scorers.js +1 -1
  390. package/dist/server/handlers/stored-skill-favorites.cjs +16 -0
  391. package/dist/server/handlers/stored-skill-favorites.cjs.map +1 -0
  392. package/dist/server/handlers/stored-skill-favorites.d.ts +29 -0
  393. package/dist/server/handlers/stored-skill-favorites.d.ts.map +1 -0
  394. package/dist/server/handlers/stored-skill-favorites.js +3 -0
  395. package/dist/server/handlers/stored-skill-favorites.js.map +1 -0
  396. package/dist/server/handlers/stored-skills.cjs +7 -7
  397. package/dist/server/handlers/stored-skills.d.ts +117 -0
  398. package/dist/server/handlers/stored-skills.d.ts.map +1 -1
  399. package/dist/server/handlers/stored-skills.js +1 -1
  400. package/dist/server/handlers/stored-workspaces.cjs +6 -6
  401. package/dist/server/handlers/stored-workspaces.d.ts +2 -0
  402. package/dist/server/handlers/stored-workspaces.d.ts.map +1 -1
  403. package/dist/server/handlers/stored-workspaces.js +1 -1
  404. package/dist/server/handlers/system.cjs +3 -3
  405. package/dist/server/handlers/system.js +1 -1
  406. package/dist/server/handlers/tool-providers.cjs +5 -5
  407. package/dist/server/handlers/tool-providers.js +1 -1
  408. package/dist/server/handlers/tools.cjs +6 -6
  409. package/dist/server/handlers/tools.js +1 -1
  410. package/dist/server/handlers/utils.cjs +10 -10
  411. package/dist/server/handlers/utils.d.ts +1 -1
  412. package/dist/server/handlers/utils.js +1 -1
  413. package/dist/server/handlers/validate-avatar.cjs +12 -0
  414. package/dist/server/handlers/validate-avatar.cjs.map +1 -0
  415. package/dist/server/handlers/validate-avatar.d.ts +7 -0
  416. package/dist/server/handlers/validate-avatar.d.ts.map +1 -0
  417. package/dist/server/handlers/validate-avatar.js +3 -0
  418. package/dist/server/handlers/validate-avatar.js.map +1 -0
  419. package/dist/server/handlers/vector.cjs +16 -16
  420. package/dist/server/handlers/vector.js +1 -1
  421. package/dist/server/handlers/voice.cjs +8 -8
  422. package/dist/server/handlers/voice.js +1 -1
  423. package/dist/server/handlers/workflows.cjs +26 -26
  424. package/dist/server/handlers/workflows.js +1 -1
  425. package/dist/server/handlers/workspace.cjs +26 -26
  426. package/dist/server/handlers/workspace.js +1 -1
  427. package/dist/server/handlers.cjs +35 -35
  428. package/dist/server/handlers.js +16 -16
  429. package/dist/server/schemas/builder-registry.d.ts +73 -0
  430. package/dist/server/schemas/builder-registry.d.ts.map +1 -0
  431. package/dist/server/schemas/editor-builder.d.ts +288 -0
  432. package/dist/server/schemas/editor-builder.d.ts.map +1 -0
  433. package/dist/server/schemas/favorites.d.ts +9 -0
  434. package/dist/server/schemas/favorites.d.ts.map +1 -0
  435. package/dist/server/schemas/index.cjs +388 -372
  436. package/dist/server/schemas/index.js +10 -10
  437. package/dist/server/schemas/memory.d.ts +25 -19
  438. package/dist/server/schemas/memory.d.ts.map +1 -1
  439. package/dist/server/schemas/stored-agents.d.ts +1066 -94
  440. package/dist/server/schemas/stored-agents.d.ts.map +1 -1
  441. package/dist/server/schemas/stored-skills.d.ts +111 -0
  442. package/dist/server/schemas/stored-skills.d.ts.map +1 -1
  443. package/dist/server/schemas/stored-workspaces.d.ts +1 -0
  444. package/dist/server/schemas/stored-workspaces.d.ts.map +1 -1
  445. package/dist/server/server-adapter/index.cjs +200 -124
  446. package/dist/server/server-adapter/index.cjs.map +1 -1
  447. package/dist/server/server-adapter/index.d.ts +9 -1
  448. package/dist/server/server-adapter/index.d.ts.map +1 -1
  449. package/dist/server/server-adapter/index.js +174 -98
  450. package/dist/server/server-adapter/index.js.map +1 -1
  451. package/dist/server/server-adapter/routes/editor-builder.d.ts +353 -0
  452. package/dist/server/server-adapter/routes/editor-builder.d.ts.map +1 -0
  453. package/dist/server/server-adapter/routes/fga-manifest.d.ts +4 -0
  454. package/dist/server/server-adapter/routes/fga-manifest.d.ts.map +1 -0
  455. package/dist/server/server-adapter/routes/index.d.ts +7 -1
  456. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  457. package/dist/server/server-adapter/routes/memory.d.ts +36 -36
  458. package/dist/server/server-adapter/routes/observability.d.ts +176 -28
  459. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  460. package/dist/server/server-adapter/routes/permissions.d.ts +8 -3
  461. package/dist/server/server-adapter/routes/permissions.d.ts.map +1 -1
  462. package/dist/server/server-adapter/routes/route-builder.d.ts +3 -1
  463. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -1
  464. package/dist/server/server-adapter/routes/stored-agents.d.ts +4 -1
  465. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -1
  466. package/dist/server/server-adapter/routes/stored-skills.d.ts +138 -1
  467. package/dist/server/server-adapter/routes/stored-skills.d.ts.map +1 -1
  468. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +2 -0
  469. package/dist/server/server-adapter/routes/stored-workspaces.d.ts.map +1 -1
  470. package/dist/server/utils/resolve-builder-model-policy.d.ts +17 -0
  471. package/dist/server/utils/resolve-builder-model-policy.d.ts.map +1 -0
  472. package/dist/server/utils.d.ts +11 -0
  473. package/dist/server/utils.d.ts.map +1 -1
  474. package/package.json +3 -3
  475. package/dist/chunk-3BL73LS3.cjs.map +0 -1
  476. package/dist/chunk-4L2UVFJO.js.map +0 -1
  477. package/dist/chunk-5XW4MKE6.cjs.map +0 -1
  478. package/dist/chunk-6IUJAAQ2.js.map +0 -1
  479. package/dist/chunk-7BM2AIKU.js.map +0 -1
  480. package/dist/chunk-7YV7MYOP.js.map +0 -1
  481. package/dist/chunk-AIRSK4QU.js.map +0 -1
  482. package/dist/chunk-AY5TY4EN.js.map +0 -1
  483. package/dist/chunk-B34S64RC.cjs.map +0 -1
  484. package/dist/chunk-B3UPXBHD.js.map +0 -1
  485. package/dist/chunk-BBD7VAAR.js.map +0 -1
  486. package/dist/chunk-BYX5LHPW.cjs.map +0 -1
  487. package/dist/chunk-CJFSLVFA.js.map +0 -1
  488. package/dist/chunk-DRTUU5WC.cjs +0 -365
  489. package/dist/chunk-DRTUU5WC.cjs.map +0 -1
  490. package/dist/chunk-H3RUJBEL.cjs.map +0 -1
  491. package/dist/chunk-HT4KV7V5.js.map +0 -1
  492. package/dist/chunk-JRFHBWKQ.cjs.map +0 -1
  493. package/dist/chunk-JRZZN55Y.cjs.map +0 -1
  494. package/dist/chunk-KGK2LCZ4.js.map +0 -1
  495. package/dist/chunk-L3WM4IWR.cjs.map +0 -1
  496. package/dist/chunk-LTYRUL3Q.cjs.map +0 -1
  497. package/dist/chunk-M4MNMBQF.cjs.map +0 -1
  498. package/dist/chunk-M7DF3D2M.js.map +0 -1
  499. package/dist/chunk-MXGCIYNM.js.map +0 -1
  500. package/dist/chunk-NPMJ6FRL.cjs.map +0 -1
  501. package/dist/chunk-OMLB6EMJ.cjs +0 -313
  502. package/dist/chunk-OMLB6EMJ.cjs.map +0 -1
  503. package/dist/chunk-OOEYTKTC.js.map +0 -1
  504. package/dist/chunk-OULCMO5R.js.map +0 -1
  505. package/dist/chunk-P23KBWKB.js +0 -26
  506. package/dist/chunk-P23KBWKB.js.map +0 -1
  507. package/dist/chunk-PDHGJ7GP.js.map +0 -1
  508. package/dist/chunk-PQDYNK4J.cjs.map +0 -1
  509. package/dist/chunk-Q2B7W7GA.cjs.map +0 -1
  510. package/dist/chunk-QTPAVOG2.cjs.map +0 -1
  511. package/dist/chunk-R4IYXUNR.cjs.map +0 -1
  512. package/dist/chunk-SUT6SU4I.cjs.map +0 -1
  513. package/dist/chunk-T6QQYYPA.cjs.map +0 -1
  514. package/dist/chunk-UH3MHVDF.cjs.map +0 -1
  515. package/dist/chunk-WNIL6DVE.cjs +0 -615
  516. package/dist/chunk-WNIL6DVE.cjs.map +0 -1
  517. package/dist/chunk-WYLVJSGR.cjs.map +0 -1
  518. package/dist/chunk-X7ZNZFHV.js.map +0 -1
  519. package/dist/chunk-XT5ZVU5J.js +0 -306
  520. package/dist/chunk-XT5ZVU5J.js.map +0 -1
  521. package/dist/chunk-XZT7USLH.js.map +0 -1
  522. package/dist/chunk-Y5LNMKEY.cjs.map +0 -1
  523. package/dist/chunk-YARY4I5U.js.map +0 -1
  524. package/dist/chunk-YHRGDSTK.js.map +0 -1
  525. package/dist/chunk-Z6C7SDXA.js.map +0 -1
@@ -7,6 +7,7 @@
7
7
  * - Handle OAuth callbacks
8
8
  * - Logout users
9
9
  */
10
+ import { z } from 'zod/v4';
10
11
  /**
11
12
  * Get the public-facing origin from a request, respecting reverse proxy headers.
12
13
  * Behind a proxy (e.g. edge router), request.url contains the internal hostname,
@@ -71,60 +72,60 @@ export declare const GET_AUTH_CAPABILITIES_ROUTE: import("../server-adapter").Se
71
72
  roles: string[];
72
73
  permissions: string[];
73
74
  } | null;
74
- }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
75
- enabled: import("zod").ZodBoolean;
76
- login: import("zod").ZodNullable<import("zod").ZodObject<{
77
- type: import("zod").ZodEnum<{
75
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodUnion<readonly [z.ZodObject<{
76
+ enabled: z.ZodBoolean;
77
+ login: z.ZodNullable<z.ZodObject<{
78
+ type: z.ZodEnum<{
78
79
  credentials: "credentials";
79
80
  sso: "sso";
80
81
  both: "both";
81
82
  }>;
82
- sso: import("zod").ZodOptional<import("zod").ZodObject<{
83
- provider: import("zod").ZodString;
84
- text: import("zod").ZodString;
85
- icon: import("zod").ZodOptional<import("zod").ZodString>;
86
- description: import("zod").ZodOptional<import("zod").ZodString>;
87
- url: import("zod").ZodString;
88
- }, import("zod/v4/core").$strip>>;
89
- signUpEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
90
- description: import("zod").ZodOptional<import("zod").ZodString>;
91
- }, import("zod/v4/core").$strip>>;
92
- user: import("zod").ZodObject<{
93
- id: import("zod").ZodString;
94
- email: import("zod").ZodOptional<import("zod").ZodString>;
95
- name: import("zod").ZodOptional<import("zod").ZodString>;
96
- avatarUrl: import("zod").ZodOptional<import("zod").ZodString>;
97
- }, import("zod/v4/core").$strip>;
98
- capabilities: import("zod").ZodObject<{
99
- user: import("zod").ZodBoolean;
100
- session: import("zod").ZodBoolean;
101
- sso: import("zod").ZodBoolean;
102
- rbac: import("zod").ZodBoolean;
103
- acl: import("zod").ZodBoolean;
104
- }, import("zod/v4/core").$strip>;
105
- access: import("zod").ZodNullable<import("zod").ZodObject<{
106
- roles: import("zod").ZodArray<import("zod").ZodString>;
107
- permissions: import("zod").ZodArray<import("zod").ZodString>;
108
- }, import("zod/v4/core").$strip>>;
109
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
110
- enabled: import("zod").ZodBoolean;
111
- login: import("zod").ZodNullable<import("zod").ZodObject<{
112
- type: import("zod").ZodEnum<{
83
+ sso: z.ZodOptional<z.ZodObject<{
84
+ provider: z.ZodString;
85
+ text: z.ZodString;
86
+ icon: z.ZodOptional<z.ZodString>;
87
+ description: z.ZodOptional<z.ZodString>;
88
+ url: z.ZodString;
89
+ }, z.core.$strip>>;
90
+ signUpEnabled: z.ZodOptional<z.ZodBoolean>;
91
+ description: z.ZodOptional<z.ZodString>;
92
+ }, z.core.$strip>>;
93
+ user: z.ZodObject<{
94
+ id: z.ZodString;
95
+ email: z.ZodOptional<z.ZodString>;
96
+ name: z.ZodOptional<z.ZodString>;
97
+ avatarUrl: z.ZodOptional<z.ZodString>;
98
+ }, z.core.$strip>;
99
+ capabilities: z.ZodObject<{
100
+ user: z.ZodBoolean;
101
+ session: z.ZodBoolean;
102
+ sso: z.ZodBoolean;
103
+ rbac: z.ZodBoolean;
104
+ acl: z.ZodBoolean;
105
+ }, z.core.$strip>;
106
+ access: z.ZodNullable<z.ZodObject<{
107
+ roles: z.ZodArray<z.ZodString>;
108
+ permissions: z.ZodArray<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ enabled: z.ZodBoolean;
112
+ login: z.ZodNullable<z.ZodObject<{
113
+ type: z.ZodEnum<{
113
114
  credentials: "credentials";
114
115
  sso: "sso";
115
116
  both: "both";
116
117
  }>;
117
- sso: import("zod").ZodOptional<import("zod").ZodObject<{
118
- provider: import("zod").ZodString;
119
- text: import("zod").ZodString;
120
- icon: import("zod").ZodOptional<import("zod").ZodString>;
121
- description: import("zod").ZodOptional<import("zod").ZodString>;
122
- url: import("zod").ZodString;
123
- }, import("zod/v4/core").$strip>>;
124
- signUpEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
125
- description: import("zod").ZodOptional<import("zod").ZodString>;
126
- }, import("zod/v4/core").$strip>>;
127
- }, import("zod/v4/core").$strip>]>>, "GET", "/auth/capabilities">;
118
+ sso: z.ZodOptional<z.ZodObject<{
119
+ provider: z.ZodString;
120
+ text: z.ZodString;
121
+ icon: z.ZodOptional<z.ZodString>;
122
+ description: z.ZodOptional<z.ZodString>;
123
+ url: z.ZodString;
124
+ }, z.core.$strip>>;
125
+ signUpEnabled: z.ZodOptional<z.ZodBoolean>;
126
+ description: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strip>>;
128
+ }, z.core.$strip>]>>, "GET", "/auth/capabilities">;
128
129
  export declare const GET_CURRENT_USER_ROUTE: import("../server-adapter").ServerRoute<{}, {
129
130
  id: string;
130
131
  email?: string | undefined;
@@ -132,48 +133,59 @@ export declare const GET_CURRENT_USER_ROUTE: import("../server-adapter").ServerR
132
133
  avatarUrl?: string | undefined;
133
134
  roles?: string[] | undefined;
134
135
  permissions?: string[] | undefined;
135
- } | null, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, import("zod").ZodNullable<import("zod").ZodObject<{
136
- id: import("zod").ZodString;
137
- email: import("zod").ZodOptional<import("zod").ZodString>;
138
- name: import("zod").ZodOptional<import("zod").ZodString>;
139
- avatarUrl: import("zod").ZodOptional<import("zod").ZodString>;
140
- roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
141
- permissions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
142
- }, import("zod/v4/core").$strip>>>, "GET", "/auth/me">;
136
+ } | null, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodNullable<z.ZodObject<{
137
+ id: z.ZodString;
138
+ email: z.ZodOptional<z.ZodString>;
139
+ name: z.ZodOptional<z.ZodString>;
140
+ avatarUrl: z.ZodOptional<z.ZodString>;
141
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ }, z.core.$strip>>>, "GET", "/auth/me">;
143
144
  export declare const GET_SSO_LOGIN_ROUTE: import("../server-adapter").ServerRoute<{
144
145
  redirect_uri?: string | undefined;
145
- }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, import("zod").ZodObject<{
146
- redirect_uri: import("zod").ZodOptional<import("zod").ZodString>;
147
- }, import("zod/v4/core").$strip>, undefined, undefined>, "GET", "/auth/sso/login">;
146
+ }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<{
147
+ redirect_uri: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strip>, undefined, undefined>, "GET", "/auth/sso/login">;
148
149
  export declare const GET_SSO_CALLBACK_ROUTE: import("../server-adapter").ServerRoute<{
149
150
  code: string;
150
151
  state?: string | undefined;
151
- }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, import("zod").ZodObject<{
152
- code: import("zod").ZodString;
153
- state: import("zod").ZodOptional<import("zod").ZodString>;
154
- }, import("zod/v4/core").$strip>, undefined, undefined>, "GET", "/auth/sso/callback">;
152
+ }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<{
153
+ code: z.ZodString;
154
+ state: z.ZodOptional<z.ZodString>;
155
+ }, z.core.$strip>, undefined, undefined>, "GET", "/auth/sso/callback">;
155
156
  export declare const POST_LOGOUT_ROUTE: import("../server-adapter").ServerRoute<{}, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, undefined>, "POST", "/auth/logout">;
156
157
  export declare const POST_REFRESH_ROUTE: import("../server-adapter").ServerRoute<{}, {
157
158
  success: boolean;
158
- }, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, import("zod").ZodObject<{
159
- success: import("zod").ZodBoolean;
160
- }, import("zod/v4/core").$strip>>, "POST", "/auth/refresh">;
159
+ }, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
160
+ success: z.ZodBoolean;
161
+ }, z.core.$strip>>, "POST", "/auth/refresh">;
161
162
  export declare const POST_CREDENTIALS_SIGN_IN_ROUTE: import("../server-adapter").ServerRoute<{
162
163
  email: string;
163
164
  password: string;
164
- }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
165
- email: import("zod").ZodString;
166
- password: import("zod").ZodString;
167
- }, import("zod/v4/core").$strip>, undefined>, "POST", "/auth/credentials/sign-in">;
165
+ }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
166
+ email: z.ZodString;
167
+ password: z.ZodString;
168
+ }, z.core.$strip>, undefined>, "POST", "/auth/credentials/sign-in">;
168
169
  export declare const POST_CREDENTIALS_SIGN_UP_ROUTE: import("../server-adapter").ServerRoute<{
169
170
  email: string;
170
171
  password: string;
171
172
  name?: string | undefined;
172
- }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
173
- email: import("zod").ZodString;
174
- password: import("zod").ZodString;
175
- name: import("zod").ZodOptional<import("zod").ZodString>;
176
- }, import("zod/v4/core").$strip>, undefined>, "POST", "/auth/credentials/sign-up">;
173
+ }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
174
+ email: z.ZodString;
175
+ password: z.ZodString;
176
+ name: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strip>, undefined>, "POST", "/auth/credentials/sign-up">;
178
+ export declare const GET_ROLE_PERMISSIONS_ROUTE: import("../server-adapter").ServerRoute<{
179
+ roleId: string;
180
+ }, {
181
+ roleId: string;
182
+ permissions: string[];
183
+ }, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
184
+ roleId: z.ZodString;
185
+ }, z.core.$strip>, undefined, undefined, z.ZodObject<{
186
+ roleId: z.ZodString;
187
+ permissions: z.ZodArray<z.ZodString>;
188
+ }, z.core.$strip>>, "GET", "/auth/roles/:roleId/permissions">;
177
189
  export declare const AUTH_ROUTES: readonly [import("../server-adapter").ServerRoute<{}, {
178
190
  enabled: boolean;
179
191
  login: {
@@ -219,100 +231,110 @@ export declare const AUTH_ROUTES: readonly [import("../server-adapter").ServerRo
219
231
  roles: string[];
220
232
  permissions: string[];
221
233
  } | null;
222
- }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
223
- enabled: import("zod").ZodBoolean;
224
- login: import("zod").ZodNullable<import("zod").ZodObject<{
225
- type: import("zod").ZodEnum<{
234
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodUnion<readonly [z.ZodObject<{
235
+ enabled: z.ZodBoolean;
236
+ login: z.ZodNullable<z.ZodObject<{
237
+ type: z.ZodEnum<{
226
238
  credentials: "credentials";
227
239
  sso: "sso";
228
240
  both: "both";
229
241
  }>;
230
- sso: import("zod").ZodOptional<import("zod").ZodObject<{
231
- provider: import("zod").ZodString;
232
- text: import("zod").ZodString;
233
- icon: import("zod").ZodOptional<import("zod").ZodString>;
234
- description: import("zod").ZodOptional<import("zod").ZodString>;
235
- url: import("zod").ZodString;
236
- }, import("zod/v4/core").$strip>>;
237
- signUpEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
238
- description: import("zod").ZodOptional<import("zod").ZodString>;
239
- }, import("zod/v4/core").$strip>>;
240
- user: import("zod").ZodObject<{
241
- id: import("zod").ZodString;
242
- email: import("zod").ZodOptional<import("zod").ZodString>;
243
- name: import("zod").ZodOptional<import("zod").ZodString>;
244
- avatarUrl: import("zod").ZodOptional<import("zod").ZodString>;
245
- }, import("zod/v4/core").$strip>;
246
- capabilities: import("zod").ZodObject<{
247
- user: import("zod").ZodBoolean;
248
- session: import("zod").ZodBoolean;
249
- sso: import("zod").ZodBoolean;
250
- rbac: import("zod").ZodBoolean;
251
- acl: import("zod").ZodBoolean;
252
- }, import("zod/v4/core").$strip>;
253
- access: import("zod").ZodNullable<import("zod").ZodObject<{
254
- roles: import("zod").ZodArray<import("zod").ZodString>;
255
- permissions: import("zod").ZodArray<import("zod").ZodString>;
256
- }, import("zod/v4/core").$strip>>;
257
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
258
- enabled: import("zod").ZodBoolean;
259
- login: import("zod").ZodNullable<import("zod").ZodObject<{
260
- type: import("zod").ZodEnum<{
242
+ sso: z.ZodOptional<z.ZodObject<{
243
+ provider: z.ZodString;
244
+ text: z.ZodString;
245
+ icon: z.ZodOptional<z.ZodString>;
246
+ description: z.ZodOptional<z.ZodString>;
247
+ url: z.ZodString;
248
+ }, z.core.$strip>>;
249
+ signUpEnabled: z.ZodOptional<z.ZodBoolean>;
250
+ description: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strip>>;
252
+ user: z.ZodObject<{
253
+ id: z.ZodString;
254
+ email: z.ZodOptional<z.ZodString>;
255
+ name: z.ZodOptional<z.ZodString>;
256
+ avatarUrl: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>;
258
+ capabilities: z.ZodObject<{
259
+ user: z.ZodBoolean;
260
+ session: z.ZodBoolean;
261
+ sso: z.ZodBoolean;
262
+ rbac: z.ZodBoolean;
263
+ acl: z.ZodBoolean;
264
+ }, z.core.$strip>;
265
+ access: z.ZodNullable<z.ZodObject<{
266
+ roles: z.ZodArray<z.ZodString>;
267
+ permissions: z.ZodArray<z.ZodString>;
268
+ }, z.core.$strip>>;
269
+ }, z.core.$strip>, z.ZodObject<{
270
+ enabled: z.ZodBoolean;
271
+ login: z.ZodNullable<z.ZodObject<{
272
+ type: z.ZodEnum<{
261
273
  credentials: "credentials";
262
274
  sso: "sso";
263
275
  both: "both";
264
276
  }>;
265
- sso: import("zod").ZodOptional<import("zod").ZodObject<{
266
- provider: import("zod").ZodString;
267
- text: import("zod").ZodString;
268
- icon: import("zod").ZodOptional<import("zod").ZodString>;
269
- description: import("zod").ZodOptional<import("zod").ZodString>;
270
- url: import("zod").ZodString;
271
- }, import("zod/v4/core").$strip>>;
272
- signUpEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
273
- description: import("zod").ZodOptional<import("zod").ZodString>;
274
- }, import("zod/v4/core").$strip>>;
275
- }, import("zod/v4/core").$strip>]>>, "GET", "/auth/capabilities">, import("../server-adapter").ServerRoute<{}, {
277
+ sso: z.ZodOptional<z.ZodObject<{
278
+ provider: z.ZodString;
279
+ text: z.ZodString;
280
+ icon: z.ZodOptional<z.ZodString>;
281
+ description: z.ZodOptional<z.ZodString>;
282
+ url: z.ZodString;
283
+ }, z.core.$strip>>;
284
+ signUpEnabled: z.ZodOptional<z.ZodBoolean>;
285
+ description: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strip>>;
287
+ }, z.core.$strip>]>>, "GET", "/auth/capabilities">, import("../server-adapter").ServerRoute<{}, {
276
288
  id: string;
277
289
  email?: string | undefined;
278
290
  name?: string | undefined;
279
291
  avatarUrl?: string | undefined;
280
292
  roles?: string[] | undefined;
281
293
  permissions?: string[] | undefined;
282
- } | null, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, import("zod").ZodNullable<import("zod").ZodObject<{
283
- id: import("zod").ZodString;
284
- email: import("zod").ZodOptional<import("zod").ZodString>;
285
- name: import("zod").ZodOptional<import("zod").ZodString>;
286
- avatarUrl: import("zod").ZodOptional<import("zod").ZodString>;
287
- roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
288
- permissions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
289
- }, import("zod/v4/core").$strip>>>, "GET", "/auth/me">, import("../server-adapter").ServerRoute<{
294
+ } | null, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodNullable<z.ZodObject<{
295
+ id: z.ZodString;
296
+ email: z.ZodOptional<z.ZodString>;
297
+ name: z.ZodOptional<z.ZodString>;
298
+ avatarUrl: z.ZodOptional<z.ZodString>;
299
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
300
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
301
+ }, z.core.$strip>>>, "GET", "/auth/me">, import("../server-adapter").ServerRoute<{
290
302
  redirect_uri?: string | undefined;
291
- }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, import("zod").ZodObject<{
292
- redirect_uri: import("zod").ZodOptional<import("zod").ZodString>;
293
- }, import("zod/v4/core").$strip>, undefined, undefined>, "GET", "/auth/sso/login">, import("../server-adapter").ServerRoute<{
303
+ }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<{
304
+ redirect_uri: z.ZodOptional<z.ZodString>;
305
+ }, z.core.$strip>, undefined, undefined>, "GET", "/auth/sso/login">, import("../server-adapter").ServerRoute<{
294
306
  code: string;
295
307
  state?: string | undefined;
296
- }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, import("zod").ZodObject<{
297
- code: import("zod").ZodString;
298
- state: import("zod").ZodOptional<import("zod").ZodString>;
299
- }, import("zod/v4/core").$strip>, undefined, undefined>, "GET", "/auth/sso/callback">, import("../server-adapter").ServerRoute<{}, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, undefined>, "POST", "/auth/logout">, import("../server-adapter").ServerRoute<{}, {
308
+ }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<{
309
+ code: z.ZodString;
310
+ state: z.ZodOptional<z.ZodString>;
311
+ }, z.core.$strip>, undefined, undefined>, "GET", "/auth/sso/callback">, import("../server-adapter").ServerRoute<{}, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, undefined>, "POST", "/auth/logout">, import("../server-adapter").ServerRoute<{}, {
300
312
  success: boolean;
301
- }, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, import("zod").ZodObject<{
302
- success: import("zod").ZodBoolean;
303
- }, import("zod/v4/core").$strip>>, "POST", "/auth/refresh">, import("../server-adapter").ServerRoute<{
313
+ }, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
314
+ success: z.ZodBoolean;
315
+ }, z.core.$strip>>, "POST", "/auth/refresh">, import("../server-adapter").ServerRoute<{
304
316
  email: string;
305
317
  password: string;
306
- }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
307
- email: import("zod").ZodString;
308
- password: import("zod").ZodString;
309
- }, import("zod/v4/core").$strip>, undefined>, "POST", "/auth/credentials/sign-in">, import("../server-adapter").ServerRoute<{
318
+ }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
319
+ email: z.ZodString;
320
+ password: z.ZodString;
321
+ }, z.core.$strip>, undefined>, "POST", "/auth/credentials/sign-in">, import("../server-adapter").ServerRoute<{
310
322
  email: string;
311
323
  password: string;
312
324
  name?: string | undefined;
313
- }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
314
- email: import("zod").ZodString;
315
- password: import("zod").ZodString;
316
- name: import("zod").ZodOptional<import("zod").ZodString>;
317
- }, import("zod/v4/core").$strip>, undefined>, "POST", "/auth/credentials/sign-up">];
325
+ }, unknown, "datastream-response", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
326
+ email: z.ZodString;
327
+ password: z.ZodString;
328
+ name: z.ZodOptional<z.ZodString>;
329
+ }, z.core.$strip>, undefined>, "POST", "/auth/credentials/sign-up">, import("../server-adapter").ServerRoute<{
330
+ roleId: string;
331
+ }, {
332
+ roleId: string;
333
+ permissions: string[];
334
+ }, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
335
+ roleId: z.ZodString;
336
+ }, z.core.$strip>, undefined, undefined, z.ZodObject<{
337
+ roleId: z.ZodString;
338
+ permissions: z.ZodArray<z.ZodString>;
339
+ }, z.core.$strip>>, "GET", "/auth/roles/:roleId/permissions">];
318
340
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA8DH;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAcxD;AA6BD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iEAoEtC,CAAC;AAiBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;sDA8CjC,CAAC;AAMH,eAAO,MAAM,mBAAmB;;;;kFA4E9B,CAAC;AAMH,eAAO,MAAM,sBAAsB;;;;;;qFAiGjC,CAAC;AAMH,eAAO,MAAM,iBAAiB,2LAwD5B,CAAC;AAMH,eAAO,MAAM,kBAAkB;;;;2DAoD7B,CAAC;AAMH,eAAO,MAAM,8BAA8B;;;;;;kFAkDzC,CAAC;AAMH,eAAO,MAAM,8BAA8B;;;;;;;;kFAqDzC,CAAC;AAMH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mFASd,CAAC"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAYH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAoD3B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAcxD;AA6BD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAoEtC,CAAC;AAiBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;uCA8CjC,CAAC;AAMH,eAAO,MAAM,mBAAmB;;;;mEA4E9B,CAAC;AAMH,eAAO,MAAM,sBAAsB;;;;;;sEAiGjC,CAAC;AAMH,eAAO,MAAM,iBAAiB,2LAwD5B,CAAC;AAMH,eAAO,MAAM,kBAAkB;;;;4CAoD7B,CAAC;AAMH,eAAO,MAAM,8BAA8B;;;;;;mEAkDzC,CAAC;AAMH,eAAO,MAAM,8BAA8B;;;;;;;;mEAqDzC,CAAC;AASH,eAAO,MAAM,0BAA0B;;;;;;;;;;6DAkCrC,CAAC;AAMH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAUd,CAAC"}
@@ -1,3 +1,3 @@
1
- export { AUTH_ROUTES, GET_AUTH_CAPABILITIES_ROUTE, GET_CURRENT_USER_ROUTE, GET_SSO_CALLBACK_ROUTE, GET_SSO_LOGIN_ROUTE, POST_CREDENTIALS_SIGN_IN_ROUTE, POST_CREDENTIALS_SIGN_UP_ROUTE, POST_LOGOUT_ROUTE, POST_REFRESH_ROUTE, getPublicOrigin } from '../../chunk-6IUJAAQ2.js';
1
+ export { AUTH_ROUTES, GET_AUTH_CAPABILITIES_ROUTE, GET_CURRENT_USER_ROUTE, GET_ROLE_PERMISSIONS_ROUTE, GET_SSO_CALLBACK_ROUTE, GET_SSO_LOGIN_ROUTE, POST_CREDENTIALS_SIGN_IN_ROUTE, POST_CREDENTIALS_SIGN_UP_ROUTE, POST_LOGOUT_ROUTE, POST_REFRESH_ROUTE, getPublicOrigin } from '../../chunk-2SMGXJZJ.js';
2
2
  //# sourceMappingURL=auth.js.map
3
3
  //# sourceMappingURL=auth.js.map
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ var chunkVX3MJR4P_cjs = require('../../chunk-VX3MJR4P.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "assertExecuteAccess", {
8
+ enumerable: true,
9
+ get: function () { return chunkVX3MJR4P_cjs.assertExecuteAccess; }
10
+ });
11
+ Object.defineProperty(exports, "assertOwnership", {
12
+ enumerable: true,
13
+ get: function () { return chunkVX3MJR4P_cjs.assertOwnership; }
14
+ });
15
+ Object.defineProperty(exports, "assertReadAccess", {
16
+ enumerable: true,
17
+ get: function () { return chunkVX3MJR4P_cjs.assertReadAccess; }
18
+ });
19
+ Object.defineProperty(exports, "assertShareAccess", {
20
+ enumerable: true,
21
+ get: function () { return chunkVX3MJR4P_cjs.assertShareAccess; }
22
+ });
23
+ Object.defineProperty(exports, "assertWriteAccess", {
24
+ enumerable: true,
25
+ get: function () { return chunkVX3MJR4P_cjs.assertWriteAccess; }
26
+ });
27
+ Object.defineProperty(exports, "getCallerAuthorId", {
28
+ enumerable: true,
29
+ get: function () { return chunkVX3MJR4P_cjs.getCallerAuthorId; }
30
+ });
31
+ Object.defineProperty(exports, "getCallerPermissions", {
32
+ enumerable: true,
33
+ get: function () { return chunkVX3MJR4P_cjs.getCallerPermissions; }
34
+ });
35
+ Object.defineProperty(exports, "hasAdminBypass", {
36
+ enumerable: true,
37
+ get: function () { return chunkVX3MJR4P_cjs.hasAdminBypass; }
38
+ });
39
+ Object.defineProperty(exports, "hasScopedPermission", {
40
+ enumerable: true,
41
+ get: function () { return chunkVX3MJR4P_cjs.hasScopedPermission; }
42
+ });
43
+ Object.defineProperty(exports, "matchesAuthorFilter", {
44
+ enumerable: true,
45
+ get: function () { return chunkVX3MJR4P_cjs.matchesAuthorFilter; }
46
+ });
47
+ Object.defineProperty(exports, "resolveAuthorFilter", {
48
+ enumerable: true,
49
+ get: function () { return chunkVX3MJR4P_cjs.resolveAuthorFilter; }
50
+ });
51
+ //# sourceMappingURL=authorship.cjs.map
52
+ //# sourceMappingURL=authorship.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"authorship.cjs"}
@@ -0,0 +1,176 @@
1
+ import type { RequestContext } from '@mastra/core/di';
2
+ /**
3
+ * Shape of a stored record that carries ownership + visibility metadata.
4
+ * Used by `matchesAuthorFilter` and the access-assertion helpers.
5
+ */
6
+ export type OwnedRecord = {
7
+ authorId?: string | null;
8
+ visibility?: 'private' | 'public';
9
+ };
10
+ /**
11
+ * Returns the author id associated with the authenticated caller, or `null`
12
+ * if auth is not configured / the caller cannot be resolved.
13
+ *
14
+ * Prefers `MASTRA_RESOURCE_ID_KEY` (set by `authConfig.mapUserToResourceId`)
15
+ * and falls back to `user.id` on the authenticated user object.
16
+ */
17
+ export declare function getCallerAuthorId(requestContext: RequestContext): string | null;
18
+ /**
19
+ * Returns the list of permission strings currently attached to the caller by
20
+ * the RBAC provider. Returns an empty array when RBAC isn't configured.
21
+ */
22
+ export declare function getCallerPermissions(requestContext: RequestContext): string[];
23
+ /**
24
+ * True if the caller holds a wildcard permission that lets them manage a
25
+ * resource they don't own (e.g. admins listing agents across tenants).
26
+ *
27
+ * Recognizes `*`, `<resource>:*`, and `<resource>:admin`.
28
+ */
29
+ export declare function hasAdminBypass(requestContext: RequestContext, resource: string): boolean;
30
+ /**
31
+ * True if the caller holds a permission explicitly scoped to a specific
32
+ * resource id — e.g. `agents:read:agent-123` or `agents:*:agent-123`.
33
+ *
34
+ * Broad grants without a resource-id segment (e.g. the role-default
35
+ * `agents:execute`) are intentionally NOT treated as satisfying ownership
36
+ * overrides. Those broad grants already gate route access at the
37
+ * `requiresPermission` layer; giving them a second life as per-record
38
+ * overrides would defeat the owner/visibility model.
39
+ *
40
+ * When called without `resourceId` (the legacy shape), falls back to the
41
+ * original "any matching permission" behavior.
42
+ */
43
+ export declare function hasScopedPermission(args: {
44
+ requestContext: RequestContext;
45
+ resource: string;
46
+ action: string;
47
+ resourceId?: string;
48
+ }): boolean;
49
+ export type AuthorFilter = {
50
+ kind: 'unrestricted';
51
+ } | {
52
+ kind: 'exact';
53
+ authorId: string;
54
+ } | {
55
+ kind: 'ownedOrPublic';
56
+ callerAuthorId: string;
57
+ } | {
58
+ kind: 'publicOnly';
59
+ } | {
60
+ kind: 'ownedOrPublicOthers';
61
+ callerAuthorId: string;
62
+ queryAuthorId: string;
63
+ };
64
+ /**
65
+ * Resolves the filter to apply when listing owner-scoped records.
66
+ *
67
+ * Behavior matrix:
68
+ * - Admin bypass + no query overrides → `unrestricted`.
69
+ * - Admin bypass + `authorId=X` → `exact` (all of X's rows).
70
+ * - `visibility=public` (any caller) → `publicOnly` (aggregate public rows across owners).
71
+ * - `authorId=X`, caller === X → `exact` (all of caller's rows).
72
+ * - `authorId=X`, caller !== X (non-admin) → `ownedOrPublicOthers` (only X's public rows).
73
+ * - No caller (auth off) → `unrestricted` (or `exact` if query supplied).
74
+ * - Default → `ownedOrPublic` (caller's rows + legacy unowned + any public rows).
75
+ */
76
+ export declare function resolveAuthorFilter(args: {
77
+ requestContext: RequestContext;
78
+ resource: string;
79
+ queryAuthorId?: string;
80
+ queryVisibility?: 'public';
81
+ }): AuthorFilter;
82
+ /**
83
+ * Returns `true` if the record is visible to the caller given the resolved
84
+ * filter. See `resolveAuthorFilter` for the filter semantics.
85
+ *
86
+ * Legacy rows with `authorId == null` are treated as public (visible to all).
87
+ */
88
+ export declare function matchesAuthorFilter(record: OwnedRecord, filter: AuthorFilter): boolean;
89
+ /**
90
+ * Asserts the caller has read access to the record. Throws 404 if not.
91
+ *
92
+ * Read access is granted when:
93
+ * - The record has no owner (legacy/public), OR
94
+ * - The record is marked `visibility: 'public'`, OR
95
+ * - The caller owns the record, OR
96
+ * - The caller has admin bypass (`*`, `<resource>:*`, `<resource>:admin`), OR
97
+ * - The caller holds `<resource>:read` or `<resource>:read:<resourceId>`.
98
+ */
99
+ export declare function assertReadAccess(args: {
100
+ requestContext: RequestContext;
101
+ resource: string;
102
+ resourceId?: string;
103
+ record: OwnedRecord;
104
+ }): void;
105
+ /**
106
+ * Asserts the caller has execute access to the record. Throws 404 if not.
107
+ *
108
+ * Execute access is granted when:
109
+ * - The record has no owner (legacy/public), OR
110
+ * - The record is marked `visibility: 'public'`, OR
111
+ * - The caller owns the record, OR
112
+ * - The caller has admin bypass (`*`, `<resource>:*`, `<resource>:admin`), OR
113
+ * - The caller holds `<resource>:execute` / `<resource>:execute:<resourceId>`, OR
114
+ * - The caller holds `<resource>:read` / `<resource>:read:<resourceId>`
115
+ * (read implies the ability to consume/chat with the resource).
116
+ */
117
+ export declare function assertExecuteAccess(args: {
118
+ requestContext: RequestContext;
119
+ resource: string;
120
+ resourceId?: string;
121
+ record: OwnedRecord;
122
+ }): void;
123
+ /**
124
+ * Asserts the caller has write access (edit or delete) to the record.
125
+ * Throws 404 if not.
126
+ *
127
+ * Write access is granted when:
128
+ * - The record has no owner (legacy), OR
129
+ * - The caller owns the record, OR
130
+ * - The caller has admin bypass, OR
131
+ * - The caller holds `<resource>:<action>` or `<resource>:<action>:<resourceId>`.
132
+ *
133
+ * `visibility: 'public'` alone does NOT grant write access.
134
+ */
135
+ export declare function assertWriteAccess(args: {
136
+ requestContext: RequestContext;
137
+ resource: string;
138
+ resourceId?: string;
139
+ action: 'edit' | 'delete' | 'write';
140
+ record: OwnedRecord;
141
+ }): void;
142
+ /**
143
+ * Asserts the caller has share access to the record. Throws 404 if not.
144
+ *
145
+ * Share access controls who can change a record's audience/visibility
146
+ * (e.g. flipping `private` ↔ `public`). It is intentionally separate from
147
+ * `write`: a caller with only `<resource>:write` MUST NOT be able to flip
148
+ * visibility — that would let any editor expose private records.
149
+ *
150
+ * Share access is granted when:
151
+ * - The record has no owner (legacy), OR
152
+ * - The caller owns the record (creators can share their own records), OR
153
+ * - The caller has admin bypass (`*`, `<resource>:*`, `<resource>:admin`), OR
154
+ * - The caller holds `<resource>:share` / `<resource>:share:<resourceId>`
155
+ * (or any pattern that matches it, e.g. `*:share`).
156
+ *
157
+ * `visibility: 'public'` does NOT grant share access — being readable doesn't
158
+ * imply the right to change who else can read.
159
+ */
160
+ export declare function assertShareAccess(args: {
161
+ requestContext: RequestContext;
162
+ resource: string;
163
+ resourceId?: string;
164
+ record: OwnedRecord;
165
+ }): void;
166
+ /**
167
+ * Alias for `assertWriteAccess` with `action: 'edit'`. Prefer `assertWriteAccess`
168
+ * in new code so the action is explicit.
169
+ */
170
+ export declare function assertOwnership(args: {
171
+ requestContext: RequestContext;
172
+ resource: string;
173
+ resourceId?: string;
174
+ record: OwnedRecord;
175
+ }): void;
176
+ //# sourceMappingURL=authorship.d.ts.map