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

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 (476) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/dist/{api-schema-manifest-EMKHNXSD.cjs → api-schema-manifest-CF2WPQBA.cjs} +6 -6
  3. package/dist/{api-schema-manifest-EMKHNXSD.cjs.map → api-schema-manifest-CF2WPQBA.cjs.map} +1 -1
  4. package/dist/{api-schema-manifest-EJXNYOFH.js → api-schema-manifest-YS3FEIFG.js} +4 -4
  5. package/dist/{api-schema-manifest-EJXNYOFH.js.map → api-schema-manifest-YS3FEIFG.js.map} +1 -1
  6. package/dist/{chunk-YARY4I5U.js → chunk-23S37FLK.js} +9 -3
  7. package/dist/chunk-23S37FLK.js.map +1 -0
  8. package/dist/{chunk-NG62OLVA.js → chunk-2JXX4IPC.js} +3 -3
  9. package/dist/{chunk-NG62OLVA.js.map → chunk-2JXX4IPC.js.map} +1 -1
  10. package/dist/{chunk-6IUJAAQ2.js → chunk-2SMGXJZJ.js} +42 -8
  11. package/dist/chunk-2SMGXJZJ.js.map +1 -0
  12. package/dist/{chunk-PQDYNK4J.cjs → chunk-3AKG5KEE.cjs} +45 -37
  13. package/dist/chunk-3AKG5KEE.cjs.map +1 -0
  14. package/dist/{chunk-Y6CAJLYX.js → chunk-3FLL7GNJ.js} +6 -6
  15. package/dist/{chunk-Y6CAJLYX.js.map → chunk-3FLL7GNJ.js.map} +1 -1
  16. package/dist/chunk-3ZWALPHI.cjs +101 -0
  17. package/dist/chunk-3ZWALPHI.cjs.map +1 -0
  18. package/dist/{chunk-Y5LNMKEY.cjs → chunk-43KD3CRE.cjs} +21 -7
  19. package/dist/chunk-43KD3CRE.cjs.map +1 -0
  20. package/dist/{chunk-3NA22RQ5.cjs → chunk-4BLUIUHS.cjs} +5 -5
  21. package/dist/{chunk-3NA22RQ5.cjs.map → chunk-4BLUIUHS.cjs.map} +1 -1
  22. package/dist/{chunk-FRFWWBSS.js → chunk-4DUHTOLC.js} +4 -4
  23. package/dist/{chunk-FRFWWBSS.js.map → chunk-4DUHTOLC.js.map} +1 -1
  24. package/dist/chunk-4G7S52U3.cjs +356 -0
  25. package/dist/chunk-4G7S52U3.cjs.map +1 -0
  26. package/dist/{chunk-XHA6OBT3.cjs → chunk-4UFLVROK.cjs} +13 -13
  27. package/dist/{chunk-XHA6OBT3.cjs.map → chunk-4UFLVROK.cjs.map} +1 -1
  28. package/dist/{chunk-YHRGDSTK.js → chunk-4XSWMZTL.js} +40 -3
  29. package/dist/chunk-4XSWMZTL.js.map +1 -0
  30. package/dist/{chunk-MHQFFRA2.cjs → chunk-4Z24UGLY.cjs} +26 -26
  31. package/dist/{chunk-MHQFFRA2.cjs.map → chunk-4Z24UGLY.cjs.map} +1 -1
  32. package/dist/{chunk-GPLCXP3B.cjs → chunk-5GI232FP.cjs} +8 -8
  33. package/dist/{chunk-GPLCXP3B.cjs.map → chunk-5GI232FP.cjs.map} +1 -1
  34. package/dist/{chunk-5XW4MKE6.cjs → chunk-65T6KVYX.cjs} +11 -2
  35. package/dist/chunk-65T6KVYX.cjs.map +1 -0
  36. package/dist/{chunk-W32BPAIP.js → chunk-664F5XOW.js} +7 -7
  37. package/dist/{chunk-W32BPAIP.js.map → chunk-664F5XOW.js.map} +1 -1
  38. package/dist/{chunk-N44OOOAL.js → chunk-6GMGCV74.js} +5 -5
  39. package/dist/{chunk-N44OOOAL.js.map → chunk-6GMGCV74.js.map} +1 -1
  40. package/dist/chunk-6JCLSYOU.js +351 -0
  41. package/dist/chunk-6JCLSYOU.js.map +1 -0
  42. package/dist/{chunk-HT4KV7V5.js → chunk-6NIQROP2.js} +23 -13
  43. package/dist/chunk-6NIQROP2.js.map +1 -0
  44. package/dist/chunk-753JFAF2.js +134 -0
  45. package/dist/chunk-753JFAF2.js.map +1 -0
  46. package/dist/{chunk-7BM2AIKU.js → chunk-7BZ2N56X.js} +5 -5
  47. package/dist/{chunk-7BM2AIKU.js.map → chunk-7BZ2N56X.js.map} +1 -1
  48. package/dist/{chunk-LQRPDQCE.js → chunk-7EDTSUCY.js} +4 -4
  49. package/dist/{chunk-LQRPDQCE.js.map → chunk-7EDTSUCY.js.map} +1 -1
  50. package/dist/chunk-7U7OWTR2.js +149 -0
  51. package/dist/chunk-7U7OWTR2.js.map +1 -0
  52. package/dist/{chunk-SR6QNILC.cjs → chunk-A4FTF4A7.cjs} +55 -55
  53. package/dist/{chunk-SR6QNILC.cjs.map → chunk-A4FTF4A7.cjs.map} +1 -1
  54. package/dist/{chunk-7YV7MYOP.js → chunk-AAZDGIDJ.js} +22 -12
  55. package/dist/chunk-AAZDGIDJ.js.map +1 -0
  56. package/dist/chunk-AR7VSXHH.cjs +143 -0
  57. package/dist/chunk-AR7VSXHH.cjs.map +1 -0
  58. package/dist/{chunk-JRFHBWKQ.cjs → chunk-AY3ZP465.cjs} +36 -26
  59. package/dist/chunk-AY3ZP465.cjs.map +1 -0
  60. package/dist/{chunk-YLJ5EVO3.js → chunk-BWNJBSXL.js} +3 -3
  61. package/dist/{chunk-YLJ5EVO3.js.map → chunk-BWNJBSXL.js.map} +1 -1
  62. package/dist/{chunk-JBAQMT4Y.cjs → chunk-CBHBMWZ2.cjs} +12 -12
  63. package/dist/{chunk-JBAQMT4Y.cjs.map → chunk-CBHBMWZ2.cjs.map} +1 -1
  64. package/dist/{chunk-JW4P6OFG.js → chunk-CCL4C2ZO.js} +4 -4
  65. package/dist/{chunk-JW4P6OFG.js.map → chunk-CCL4C2ZO.js.map} +1 -1
  66. package/dist/{chunk-7LBBDT4S.js → chunk-CGB327L6.js} +3 -3
  67. package/dist/{chunk-7LBBDT4S.js.map → chunk-CGB327L6.js.map} +1 -1
  68. package/dist/{chunk-WP67ASKV.js → chunk-CKCZVUUB.js} +7 -7
  69. package/dist/{chunk-WP67ASKV.js.map → chunk-CKCZVUUB.js.map} +1 -1
  70. package/dist/chunk-CM2C2H2Y.cjs +101 -0
  71. package/dist/chunk-CM2C2H2Y.cjs.map +1 -0
  72. package/dist/{chunk-RGUKCKGB.cjs → chunk-CODPCBGN.cjs} +22 -22
  73. package/dist/{chunk-RGUKCKGB.cjs.map → chunk-CODPCBGN.cjs.map} +1 -1
  74. package/dist/chunk-CRTDKNOZ.cjs +654 -0
  75. package/dist/chunk-CRTDKNOZ.cjs.map +1 -0
  76. package/dist/{chunk-OS2636MU.js → chunk-D4HVKF56.js} +5 -5
  77. package/dist/{chunk-OS2636MU.js.map → chunk-D4HVKF56.js.map} +1 -1
  78. package/dist/{chunk-73MISLDN.cjs → chunk-D774EZRN.cjs} +16 -16
  79. package/dist/{chunk-73MISLDN.cjs.map → chunk-D774EZRN.cjs.map} +1 -1
  80. package/dist/{chunk-L3WM4IWR.cjs → chunk-DYXX34YU.cjs} +56 -21
  81. package/dist/chunk-DYXX34YU.cjs.map +1 -0
  82. package/dist/{chunk-DZWFQD53.cjs → chunk-EAPGRYRG.cjs} +6 -6
  83. package/dist/{chunk-DZWFQD53.cjs.map → chunk-EAPGRYRG.cjs.map} +1 -1
  84. package/dist/{chunk-R4IYXUNR.cjs → chunk-ESZN7NKS.cjs} +34 -26
  85. package/dist/chunk-ESZN7NKS.cjs.map +1 -0
  86. package/dist/{chunk-XZT7USLH.js → chunk-EX3XD2F5.js} +79 -40
  87. package/dist/chunk-EX3XD2F5.js.map +1 -0
  88. package/dist/{chunk-E53AJNZB.js → chunk-F2FAL5CZ.js} +2 -2
  89. package/dist/{chunk-E53AJNZB.js.map → chunk-F2FAL5CZ.js.map} +1 -1
  90. package/dist/chunk-G5LQCOFZ.js +292 -0
  91. package/dist/chunk-G5LQCOFZ.js.map +1 -0
  92. package/dist/chunk-GA4BG5JK.js +46 -0
  93. package/dist/chunk-GA4BG5JK.js.map +1 -0
  94. package/dist/{chunk-YPXOTWND.js → chunk-GAGC4WDU.js} +3 -3
  95. package/dist/{chunk-YPXOTWND.js.map → chunk-GAGC4WDU.js.map} +1 -1
  96. package/dist/{chunk-T6QQYYPA.cjs → chunk-GAL7C4Y5.cjs} +36 -26
  97. package/dist/chunk-GAL7C4Y5.cjs.map +1 -0
  98. package/dist/{chunk-GTYVB2TS.js → chunk-GFZR6THV.js} +3 -3
  99. package/dist/{chunk-GTYVB2TS.js.map → chunk-GFZR6THV.js.map} +1 -1
  100. package/dist/{chunk-Q7LA2XMK.js → chunk-GW6T4HLN.js} +9 -9
  101. package/dist/{chunk-Q7LA2XMK.js.map → chunk-GW6T4HLN.js.map} +1 -1
  102. package/dist/{chunk-OOEYTKTC.js → chunk-HGRG2WVX.js} +35 -18
  103. package/dist/chunk-HGRG2WVX.js.map +1 -0
  104. package/dist/chunk-HMJL3C3H.js +36 -0
  105. package/dist/chunk-HMJL3C3H.js.map +1 -0
  106. package/dist/{chunk-X7ZNZFHV.js → chunk-HNGYUI5N.js} +23 -15
  107. package/dist/chunk-HNGYUI5N.js.map +1 -0
  108. package/dist/{chunk-7R7WT24X.cjs → chunk-HWT5YD7H.cjs} +17 -17
  109. package/dist/{chunk-7R7WT24X.cjs.map → chunk-HWT5YD7H.cjs.map} +1 -1
  110. package/dist/{chunk-PM6YRFZW.cjs → chunk-HXEMVATM.cjs} +8 -8
  111. package/dist/{chunk-PM6YRFZW.cjs.map → chunk-HXEMVATM.cjs.map} +1 -1
  112. package/dist/{chunk-R3R6VJRM.cjs → chunk-HZNJ4B7D.cjs} +32 -32
  113. package/dist/{chunk-R3R6VJRM.cjs.map → chunk-HZNJ4B7D.cjs.map} +1 -1
  114. package/dist/{chunk-XGNMFTYF.js → chunk-I3RWQGD7.js} +9 -9
  115. package/dist/{chunk-XGNMFTYF.js.map → chunk-I3RWQGD7.js.map} +1 -1
  116. package/dist/{chunk-UQ2H32RT.cjs → chunk-I6WBJDRP.cjs} +10 -10
  117. package/dist/{chunk-UQ2H32RT.cjs.map → chunk-I6WBJDRP.cjs.map} +1 -1
  118. package/dist/{chunk-T3PECMPO.js → chunk-IRJQQYII.js} +7 -7
  119. package/dist/{chunk-T3PECMPO.js.map → chunk-IRJQQYII.js.map} +1 -1
  120. package/dist/{chunk-4YSEVAAS.cjs → chunk-J6IRCLC6.cjs} +31 -31
  121. package/dist/{chunk-4YSEVAAS.cjs.map → chunk-J6IRCLC6.cjs.map} +1 -1
  122. package/dist/chunk-JUYUBEMU.js +28 -0
  123. package/dist/chunk-JUYUBEMU.js.map +1 -0
  124. package/dist/chunk-K6AEVBZQ.js +98 -0
  125. package/dist/chunk-K6AEVBZQ.js.map +1 -0
  126. package/dist/{chunk-B3UPXBHD.js → chunk-K74VFJKF.js} +227 -41
  127. package/dist/chunk-K74VFJKF.js.map +1 -0
  128. package/dist/{chunk-MEYWNCUV.cjs → chunk-KE4V4LJE.cjs} +7 -7
  129. package/dist/{chunk-MEYWNCUV.cjs.map → chunk-KE4V4LJE.cjs.map} +1 -1
  130. package/dist/{chunk-DYN7KSCZ.js → chunk-KTOJ2F6V.js} +5 -5
  131. package/dist/{chunk-DYN7KSCZ.js.map → chunk-KTOJ2F6V.js.map} +1 -1
  132. package/dist/{chunk-ES23WZRF.cjs → chunk-LEIV627E.cjs} +15 -15
  133. package/dist/{chunk-ES23WZRF.cjs.map → chunk-LEIV627E.cjs.map} +1 -1
  134. package/dist/chunk-LG57RYYL.cjs +551 -0
  135. package/dist/chunk-LG57RYYL.cjs.map +1 -0
  136. package/dist/{chunk-AIRSK4QU.js → chunk-LH5Y7AJF.js} +46 -7
  137. package/dist/chunk-LH5Y7AJF.js.map +1 -0
  138. package/dist/{chunk-5TTCUSSA.js → chunk-LPFE6YTG.js} +3 -3
  139. package/dist/{chunk-5TTCUSSA.js.map → chunk-LPFE6YTG.js.map} +1 -1
  140. package/dist/{chunk-WYLVJSGR.cjs → chunk-LTRLD33R.cjs} +47 -8
  141. package/dist/chunk-LTRLD33R.cjs.map +1 -0
  142. package/dist/{chunk-UH3MHVDF.cjs → chunk-M4B42JGO.cjs} +6 -3
  143. package/dist/chunk-M4B42JGO.cjs.map +1 -0
  144. package/dist/{chunk-QWPEAC7I.cjs → chunk-MERLF4UP.cjs} +94 -94
  145. package/dist/{chunk-QWPEAC7I.cjs.map → chunk-MERLF4UP.cjs.map} +1 -1
  146. package/dist/chunk-MXMOHULN.js +497 -0
  147. package/dist/chunk-MXMOHULN.js.map +1 -0
  148. package/dist/{chunk-CIPZ4VOZ.cjs → chunk-N6RQC4Z3.cjs} +4 -4
  149. package/dist/{chunk-CIPZ4VOZ.cjs.map → chunk-N6RQC4Z3.cjs.map} +1 -1
  150. package/dist/{chunk-DM6UW5RD.js → chunk-N7CG7MFQ.js} +8 -8
  151. package/dist/{chunk-DM6UW5RD.js.map → chunk-N7CG7MFQ.js.map} +1 -1
  152. package/dist/chunk-NRRAME2S.js +98 -0
  153. package/dist/chunk-NRRAME2S.js.map +1 -0
  154. package/dist/chunk-O4O2EJF7.cjs +13 -0
  155. package/dist/chunk-O4O2EJF7.cjs.map +1 -0
  156. package/dist/{chunk-H3RUJBEL.cjs → chunk-O7B3P2AT.cjs} +57 -40
  157. package/dist/chunk-O7B3P2AT.cjs.map +1 -0
  158. package/dist/{chunk-L2RZNUOW.js → chunk-OGYYXNGI.js} +4 -4
  159. package/dist/{chunk-L2RZNUOW.js.map → chunk-OGYYXNGI.js.map} +1 -1
  160. package/dist/{chunk-M7DF3D2M.js → chunk-OJNVSXOF.js} +19 -5
  161. package/dist/chunk-OJNVSXOF.js.map +1 -0
  162. package/dist/{chunk-KGK2LCZ4.js → chunk-OKKJPM5N.js} +21 -14
  163. package/dist/chunk-OKKJPM5N.js.map +1 -0
  164. package/dist/{chunk-Z6C7SDXA.js → chunk-ONCDLJUQ.js} +6 -3
  165. package/dist/chunk-ONCDLJUQ.js.map +1 -0
  166. package/dist/{chunk-M7CTMLXS.js → chunk-OSN3DL34.js} +4 -4
  167. package/dist/{chunk-M7CTMLXS.js.map → chunk-OSN3DL34.js.map} +1 -1
  168. package/dist/chunk-OXSAN74Y.cjs +504 -0
  169. package/dist/chunk-OXSAN74Y.cjs.map +1 -0
  170. package/dist/{chunk-ZIR2AE52.js → chunk-P5ZWPVC2.js} +4 -4
  171. package/dist/{chunk-ZIR2AE52.js.map → chunk-P5ZWPVC2.js.map} +1 -1
  172. package/dist/{chunk-BBD7VAAR.js → chunk-PQ37PNAE.js} +22 -12
  173. package/dist/chunk-PQ37PNAE.js.map +1 -0
  174. package/dist/{chunk-DRNCUSSM.cjs → chunk-PWGPLCL4.cjs} +5 -5
  175. package/dist/{chunk-DRNCUSSM.cjs.map → chunk-PWGPLCL4.cjs.map} +1 -1
  176. package/dist/{chunk-NPMJ6FRL.cjs → chunk-QGPIJ3KB.cjs} +67 -67
  177. package/dist/{chunk-NPMJ6FRL.cjs.map → chunk-QGPIJ3KB.cjs.map} +1 -1
  178. package/dist/chunk-QJU62KP2.cjs +298 -0
  179. package/dist/chunk-QJU62KP2.cjs.map +1 -0
  180. package/dist/{chunk-AY5TY4EN.js → chunk-QKAIQUSC.js} +4 -4
  181. package/dist/{chunk-AY5TY4EN.js.map → chunk-QKAIQUSC.js.map} +1 -1
  182. package/dist/{chunk-NDMG7SUN.js → chunk-QLX34MAR.js} +8 -8
  183. package/dist/{chunk-NDMG7SUN.js.map → chunk-QLX34MAR.js.map} +1 -1
  184. package/dist/{chunk-LTYRUL3Q.cjs → chunk-QZ6UFQ7V.cjs} +42 -2
  185. package/dist/chunk-QZ6UFQ7V.cjs.map +1 -0
  186. package/dist/{chunk-IVFIYTLD.cjs → chunk-RJF75FEP.cjs} +26 -26
  187. package/dist/{chunk-IVFIYTLD.cjs.map → chunk-RJF75FEP.cjs.map} +1 -1
  188. package/dist/{chunk-M4MNMBQF.cjs → chunk-RYPLQO4Z.cjs} +32 -25
  189. package/dist/chunk-RYPLQO4Z.cjs.map +1 -0
  190. package/dist/chunk-SFPN7SHZ.js +11 -0
  191. package/dist/chunk-SFPN7SHZ.js.map +1 -0
  192. package/dist/{chunk-BBB4NKZZ.cjs → chunk-SKLREO5Z.cjs} +82 -82
  193. package/dist/{chunk-BBB4NKZZ.cjs.map → chunk-SKLREO5Z.cjs.map} +1 -1
  194. package/dist/{chunk-LBEQ4EE4.js → chunk-SPGVPADY.js} +3 -3
  195. package/dist/{chunk-LBEQ4EE4.js.map → chunk-SPGVPADY.js.map} +1 -1
  196. package/dist/{chunk-Q2B7W7GA.cjs → chunk-T3C54LPX.cjs} +57 -5
  197. package/dist/chunk-T3C54LPX.cjs.map +1 -0
  198. package/dist/{chunk-DGJSHUP4.cjs → chunk-U6QDJKSZ.cjs} +105 -105
  199. package/dist/{chunk-DGJSHUP4.cjs.map → chunk-U6QDJKSZ.cjs.map} +1 -1
  200. package/dist/{chunk-DZXHO72E.cjs → chunk-UBYGPC2S.cjs} +12 -12
  201. package/dist/{chunk-DZXHO72E.cjs.map → chunk-UBYGPC2S.cjs.map} +1 -1
  202. package/dist/{chunk-IDUFQ5HG.js → chunk-UCKK7LPQ.js} +3 -3
  203. package/dist/{chunk-IDUFQ5HG.js.map → chunk-UCKK7LPQ.js.map} +1 -1
  204. package/dist/{chunk-JX4UGU4A.cjs → chunk-UGJBURIS.cjs} +12 -12
  205. package/dist/{chunk-JX4UGU4A.cjs.map → chunk-UGJBURIS.cjs.map} +1 -1
  206. package/dist/{chunk-PDHGJ7GP.js → chunk-UIRQU4GW.js} +54 -6
  207. package/dist/chunk-UIRQU4GW.js.map +1 -0
  208. package/dist/chunk-V4ATNZXG.cjs +31 -0
  209. package/dist/chunk-V4ATNZXG.cjs.map +1 -0
  210. package/dist/chunk-VX3MJR4P.cjs +161 -0
  211. package/dist/chunk-VX3MJR4P.cjs.map +1 -0
  212. package/dist/{chunk-YE3LMHL3.js → chunk-WD2L3ZU3.js} +5 -5
  213. package/dist/{chunk-YE3LMHL3.js.map → chunk-WD2L3ZU3.js.map} +1 -1
  214. package/dist/{chunk-QTPAVOG2.cjs → chunk-WLGC3IWY.cjs} +49 -39
  215. package/dist/chunk-WLGC3IWY.cjs.map +1 -0
  216. package/dist/{chunk-MXGCIYNM.js → chunk-XI3XH4G7.js} +22 -12
  217. package/dist/chunk-XI3XH4G7.js.map +1 -0
  218. package/dist/{chunk-PYZAUXQX.cjs → chunk-XNR667MS.cjs} +27 -27
  219. package/dist/{chunk-PYZAUXQX.cjs.map → chunk-XNR667MS.cjs.map} +1 -1
  220. package/dist/{chunk-Y6MWNLAA.cjs → chunk-XR3CGVKU.cjs} +8 -8
  221. package/dist/{chunk-Y6MWNLAA.cjs.map → chunk-XR3CGVKU.cjs.map} +1 -1
  222. package/dist/{chunk-AZORAK4H.cjs → chunk-XTFWFQZ7.cjs} +2 -2
  223. package/dist/{chunk-AZORAK4H.cjs.map → chunk-XTFWFQZ7.cjs.map} +1 -1
  224. package/dist/{chunk-ELWN7ZXR.js → chunk-Y3KIKJW6.js} +6 -6
  225. package/dist/{chunk-ELWN7ZXR.js.map → chunk-Y3KIKJW6.js.map} +1 -1
  226. package/dist/{chunk-3BL73LS3.cjs → chunk-YETIPEQM.cjs} +40 -40
  227. package/dist/{chunk-3BL73LS3.cjs.map → chunk-YETIPEQM.cjs.map} +1 -1
  228. package/dist/{chunk-B34S64RC.cjs → chunk-YNSUYESL.cjs} +23 -3
  229. package/dist/chunk-YNSUYESL.cjs.map +1 -0
  230. package/dist/{chunk-3PQSHLG7.cjs → chunk-YQYYIRDS.cjs} +164 -164
  231. package/dist/{chunk-3PQSHLG7.cjs.map → chunk-YQYYIRDS.cjs.map} +1 -1
  232. package/dist/{chunk-JRZZN55Y.cjs → chunk-Z772ZUYH.cjs} +53 -43
  233. package/dist/chunk-Z772ZUYH.cjs.map +1 -0
  234. package/dist/chunk-ZCX2J552.cjs +38 -0
  235. package/dist/chunk-ZCX2J552.cjs.map +1 -0
  236. package/dist/{chunk-OULCMO5R.js → chunk-ZHS2QDGO.js} +23 -15
  237. package/dist/chunk-ZHS2QDGO.js.map +1 -0
  238. package/dist/docs/SKILL.md +1 -1
  239. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  240. package/dist/server/auth/helpers.d.ts +3 -0
  241. package/dist/server/auth/helpers.d.ts.map +1 -1
  242. package/dist/server/auth/index.cjs +28 -15
  243. package/dist/server/auth/index.js +2 -1
  244. package/dist/server/browser-stream/types.d.ts +9 -0
  245. package/dist/server/browser-stream/types.d.ts.map +1 -1
  246. package/dist/server/constants.d.ts +3 -0
  247. package/dist/server/constants.d.ts.map +1 -1
  248. package/dist/server/handlers/a2a.cjs +14 -14
  249. package/dist/server/handlers/a2a.js +1 -1
  250. package/dist/server/handlers/agent-builder.cjs +16 -16
  251. package/dist/server/handlers/agent-builder.js +1 -1
  252. package/dist/server/handlers/agent-versions.cjs +8 -8
  253. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  254. package/dist/server/handlers/agent-versions.js +1 -1
  255. package/dist/server/handlers/agents.cjs +41 -41
  256. package/dist/server/handlers/agents.d.ts +185 -0
  257. package/dist/server/handlers/agents.d.ts.map +1 -1
  258. package/dist/server/handlers/agents.js +1 -1
  259. package/dist/server/handlers/auth.cjs +15 -11
  260. package/dist/server/handlers/auth.d.ts +168 -146
  261. package/dist/server/handlers/auth.d.ts.map +1 -1
  262. package/dist/server/handlers/auth.js +1 -1
  263. package/dist/server/handlers/authorship.cjs +52 -0
  264. package/dist/server/handlers/authorship.cjs.map +1 -0
  265. package/dist/server/handlers/authorship.d.ts +176 -0
  266. package/dist/server/handlers/authorship.d.ts.map +1 -0
  267. package/dist/server/handlers/authorship.js +3 -0
  268. package/dist/server/handlers/authorship.js.map +1 -0
  269. package/dist/server/handlers/background-tasks.cjs +4 -4
  270. package/dist/server/handlers/background-tasks.js +1 -1
  271. package/dist/server/handlers/builder-registry.cjs +28 -0
  272. package/dist/server/handlers/builder-registry.cjs.map +1 -0
  273. package/dist/server/handlers/builder-registry.d.ts +170 -0
  274. package/dist/server/handlers/builder-registry.d.ts.map +1 -0
  275. package/dist/server/handlers/builder-registry.js +3 -0
  276. package/dist/server/handlers/builder-registry.js.map +1 -0
  277. package/dist/server/handlers/channels.cjs +5 -5
  278. package/dist/server/handlers/channels.js +1 -1
  279. package/dist/server/handlers/conversations.cjs +5 -5
  280. package/dist/server/handlers/conversations.js +1 -1
  281. package/dist/server/handlers/datasets.cjs +26 -26
  282. package/dist/server/handlers/datasets.js +1 -1
  283. package/dist/server/handlers/editor-builder.cjs +24 -0
  284. package/dist/server/handlers/editor-builder.cjs.map +1 -0
  285. package/dist/server/handlers/editor-builder.d.ts +259 -0
  286. package/dist/server/handlers/editor-builder.d.ts.map +1 -0
  287. package/dist/server/handlers/editor-builder.js +3 -0
  288. package/dist/server/handlers/editor-builder.js.map +1 -0
  289. package/dist/server/handlers/error.cjs +3 -3
  290. package/dist/server/handlers/error.d.ts.map +1 -1
  291. package/dist/server/handlers/error.js +1 -1
  292. package/dist/server/handlers/favorites-enrichment.cjs +16 -0
  293. package/dist/server/handlers/favorites-enrichment.cjs.map +1 -0
  294. package/dist/server/handlers/favorites-enrichment.d.ts +27 -0
  295. package/dist/server/handlers/favorites-enrichment.d.ts.map +1 -0
  296. package/dist/server/handlers/favorites-enrichment.js +3 -0
  297. package/dist/server/handlers/favorites-enrichment.js.map +1 -0
  298. package/dist/server/handlers/logs.cjs +4 -4
  299. package/dist/server/handlers/logs.js +1 -1
  300. package/dist/server/handlers/mcp-client-versions.cjs +8 -8
  301. package/dist/server/handlers/mcp-client-versions.d.ts.map +1 -1
  302. package/dist/server/handlers/mcp-client-versions.js +1 -1
  303. package/dist/server/handlers/mcp.cjs +11 -11
  304. package/dist/server/handlers/mcp.js +1 -1
  305. package/dist/server/handlers/memory.cjs +27 -27
  306. package/dist/server/handlers/memory.js +1 -1
  307. package/dist/server/handlers/observability-new-endpoints.cjs +28 -28
  308. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  309. package/dist/server/handlers/observability.cjs +39 -39
  310. package/dist/server/handlers/observability.js +2 -2
  311. package/dist/server/handlers/processor-providers.cjs +3 -3
  312. package/dist/server/handlers/processor-providers.js +1 -1
  313. package/dist/server/handlers/processors.cjs +4 -4
  314. package/dist/server/handlers/processors.js +1 -1
  315. package/dist/server/handlers/prompt-block-versions.cjs +8 -8
  316. package/dist/server/handlers/prompt-block-versions.d.ts.map +1 -1
  317. package/dist/server/handlers/prompt-block-versions.js +1 -1
  318. package/dist/server/handlers/responses.cjs +4 -4
  319. package/dist/server/handlers/responses.js +1 -1
  320. package/dist/server/handlers/responses.storage.cjs +8 -8
  321. package/dist/server/handlers/responses.storage.js +1 -1
  322. package/dist/server/handlers/schedules.cjs +6 -6
  323. package/dist/server/handlers/schedules.js +1 -1
  324. package/dist/server/handlers/scorer-versions.cjs +8 -8
  325. package/dist/server/handlers/scorer-versions.d.ts.map +1 -1
  326. package/dist/server/handlers/scorer-versions.js +1 -1
  327. package/dist/server/handlers/scores.cjs +7 -7
  328. package/dist/server/handlers/scores.js +1 -1
  329. package/dist/server/handlers/skills-sh-shared.cjs +40 -0
  330. package/dist/server/handlers/skills-sh-shared.cjs.map +1 -0
  331. package/dist/server/handlers/skills-sh-shared.d.ts +89 -0
  332. package/dist/server/handlers/skills-sh-shared.d.ts.map +1 -0
  333. package/dist/server/handlers/skills-sh-shared.js +3 -0
  334. package/dist/server/handlers/skills-sh-shared.js.map +1 -0
  335. package/dist/server/handlers/stored-agent-favorites.cjs +16 -0
  336. package/dist/server/handlers/stored-agent-favorites.cjs.map +1 -0
  337. package/dist/server/handlers/stored-agent-favorites.d.ts +29 -0
  338. package/dist/server/handlers/stored-agent-favorites.d.ts.map +1 -0
  339. package/dist/server/handlers/stored-agent-favorites.js +3 -0
  340. package/dist/server/handlers/stored-agent-favorites.js.map +1 -0
  341. package/dist/server/handlers/stored-agents.cjs +7 -7
  342. package/dist/server/handlers/stored-agents.d.ts +390 -0
  343. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  344. package/dist/server/handlers/stored-agents.js +1 -1
  345. package/dist/server/handlers/stored-mcp-clients.cjs +6 -6
  346. package/dist/server/handlers/stored-mcp-clients.d.ts.map +1 -1
  347. package/dist/server/handlers/stored-mcp-clients.js +1 -1
  348. package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
  349. package/dist/server/handlers/stored-prompt-blocks.d.ts.map +1 -1
  350. package/dist/server/handlers/stored-prompt-blocks.js +1 -1
  351. package/dist/server/handlers/stored-scorers.cjs +6 -6
  352. package/dist/server/handlers/stored-scorers.d.ts.map +1 -1
  353. package/dist/server/handlers/stored-scorers.js +1 -1
  354. package/dist/server/handlers/stored-skill-favorites.cjs +16 -0
  355. package/dist/server/handlers/stored-skill-favorites.cjs.map +1 -0
  356. package/dist/server/handlers/stored-skill-favorites.d.ts +29 -0
  357. package/dist/server/handlers/stored-skill-favorites.d.ts.map +1 -0
  358. package/dist/server/handlers/stored-skill-favorites.js +3 -0
  359. package/dist/server/handlers/stored-skill-favorites.js.map +1 -0
  360. package/dist/server/handlers/stored-skills.cjs +7 -7
  361. package/dist/server/handlers/stored-skills.d.ts +117 -0
  362. package/dist/server/handlers/stored-skills.d.ts.map +1 -1
  363. package/dist/server/handlers/stored-skills.js +1 -1
  364. package/dist/server/handlers/stored-workspaces.cjs +6 -6
  365. package/dist/server/handlers/stored-workspaces.d.ts +2 -0
  366. package/dist/server/handlers/stored-workspaces.d.ts.map +1 -1
  367. package/dist/server/handlers/stored-workspaces.js +1 -1
  368. package/dist/server/handlers/system.cjs +3 -3
  369. package/dist/server/handlers/system.js +1 -1
  370. package/dist/server/handlers/tool-providers.cjs +5 -5
  371. package/dist/server/handlers/tool-providers.js +1 -1
  372. package/dist/server/handlers/tools.cjs +6 -6
  373. package/dist/server/handlers/tools.js +1 -1
  374. package/dist/server/handlers/utils.cjs +10 -10
  375. package/dist/server/handlers/utils.d.ts +1 -1
  376. package/dist/server/handlers/utils.js +1 -1
  377. package/dist/server/handlers/validate-avatar.cjs +12 -0
  378. package/dist/server/handlers/validate-avatar.cjs.map +1 -0
  379. package/dist/server/handlers/validate-avatar.d.ts +7 -0
  380. package/dist/server/handlers/validate-avatar.d.ts.map +1 -0
  381. package/dist/server/handlers/validate-avatar.js +3 -0
  382. package/dist/server/handlers/validate-avatar.js.map +1 -0
  383. package/dist/server/handlers/vector.cjs +16 -16
  384. package/dist/server/handlers/vector.js +1 -1
  385. package/dist/server/handlers/voice.cjs +8 -8
  386. package/dist/server/handlers/voice.js +1 -1
  387. package/dist/server/handlers/workflows.cjs +26 -26
  388. package/dist/server/handlers/workflows.js +1 -1
  389. package/dist/server/handlers/workspace.cjs +26 -26
  390. package/dist/server/handlers/workspace.js +1 -1
  391. package/dist/server/handlers.cjs +38 -38
  392. package/dist/server/handlers.js +16 -16
  393. package/dist/server/schemas/builder-registry.d.ts +73 -0
  394. package/dist/server/schemas/builder-registry.d.ts.map +1 -0
  395. package/dist/server/schemas/editor-builder.d.ts +288 -0
  396. package/dist/server/schemas/editor-builder.d.ts.map +1 -0
  397. package/dist/server/schemas/favorites.d.ts +9 -0
  398. package/dist/server/schemas/favorites.d.ts.map +1 -0
  399. package/dist/server/schemas/index.cjs +400 -384
  400. package/dist/server/schemas/index.js +9 -9
  401. package/dist/server/schemas/stored-agents.d.ts +1066 -94
  402. package/dist/server/schemas/stored-agents.d.ts.map +1 -1
  403. package/dist/server/schemas/stored-skills.d.ts +111 -0
  404. package/dist/server/schemas/stored-skills.d.ts.map +1 -1
  405. package/dist/server/schemas/stored-workspaces.d.ts +1 -0
  406. package/dist/server/schemas/stored-workspaces.d.ts.map +1 -1
  407. package/dist/server/server-adapter/index.cjs +200 -124
  408. package/dist/server/server-adapter/index.cjs.map +1 -1
  409. package/dist/server/server-adapter/index.d.ts +9 -1
  410. package/dist/server/server-adapter/index.d.ts.map +1 -1
  411. package/dist/server/server-adapter/index.js +174 -98
  412. package/dist/server/server-adapter/index.js.map +1 -1
  413. package/dist/server/server-adapter/routes/editor-builder.d.ts +353 -0
  414. package/dist/server/server-adapter/routes/editor-builder.d.ts.map +1 -0
  415. package/dist/server/server-adapter/routes/fga-manifest.d.ts +4 -0
  416. package/dist/server/server-adapter/routes/fga-manifest.d.ts.map +1 -0
  417. package/dist/server/server-adapter/routes/index.d.ts +7 -1
  418. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  419. package/dist/server/server-adapter/routes/permissions.d.ts +8 -3
  420. package/dist/server/server-adapter/routes/permissions.d.ts.map +1 -1
  421. package/dist/server/server-adapter/routes/route-builder.d.ts +3 -1
  422. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -1
  423. package/dist/server/server-adapter/routes/stored-agents.d.ts +4 -1
  424. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -1
  425. package/dist/server/server-adapter/routes/stored-skills.d.ts +138 -1
  426. package/dist/server/server-adapter/routes/stored-skills.d.ts.map +1 -1
  427. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +2 -0
  428. package/dist/server/server-adapter/routes/stored-workspaces.d.ts.map +1 -1
  429. package/dist/server/utils/resolve-builder-model-policy.d.ts +17 -0
  430. package/dist/server/utils/resolve-builder-model-policy.d.ts.map +1 -0
  431. package/dist/server/utils.d.ts +11 -0
  432. package/dist/server/utils.d.ts.map +1 -1
  433. package/package.json +4 -4
  434. package/dist/chunk-5XW4MKE6.cjs.map +0 -1
  435. package/dist/chunk-6IUJAAQ2.js.map +0 -1
  436. package/dist/chunk-7YV7MYOP.js.map +0 -1
  437. package/dist/chunk-AIRSK4QU.js.map +0 -1
  438. package/dist/chunk-B34S64RC.cjs.map +0 -1
  439. package/dist/chunk-B3UPXBHD.js.map +0 -1
  440. package/dist/chunk-BBD7VAAR.js.map +0 -1
  441. package/dist/chunk-DRTUU5WC.cjs +0 -365
  442. package/dist/chunk-DRTUU5WC.cjs.map +0 -1
  443. package/dist/chunk-H3RUJBEL.cjs.map +0 -1
  444. package/dist/chunk-HT4KV7V5.js.map +0 -1
  445. package/dist/chunk-JRFHBWKQ.cjs.map +0 -1
  446. package/dist/chunk-JRZZN55Y.cjs.map +0 -1
  447. package/dist/chunk-KGK2LCZ4.js.map +0 -1
  448. package/dist/chunk-L3WM4IWR.cjs.map +0 -1
  449. package/dist/chunk-LTYRUL3Q.cjs.map +0 -1
  450. package/dist/chunk-M4MNMBQF.cjs.map +0 -1
  451. package/dist/chunk-M7DF3D2M.js.map +0 -1
  452. package/dist/chunk-MXGCIYNM.js.map +0 -1
  453. package/dist/chunk-OMLB6EMJ.cjs +0 -313
  454. package/dist/chunk-OMLB6EMJ.cjs.map +0 -1
  455. package/dist/chunk-OOEYTKTC.js.map +0 -1
  456. package/dist/chunk-OULCMO5R.js.map +0 -1
  457. package/dist/chunk-P23KBWKB.js +0 -26
  458. package/dist/chunk-P23KBWKB.js.map +0 -1
  459. package/dist/chunk-PDHGJ7GP.js.map +0 -1
  460. package/dist/chunk-PQDYNK4J.cjs.map +0 -1
  461. package/dist/chunk-Q2B7W7GA.cjs.map +0 -1
  462. package/dist/chunk-QTPAVOG2.cjs.map +0 -1
  463. package/dist/chunk-R4IYXUNR.cjs.map +0 -1
  464. package/dist/chunk-T6QQYYPA.cjs.map +0 -1
  465. package/dist/chunk-UH3MHVDF.cjs.map +0 -1
  466. package/dist/chunk-WNIL6DVE.cjs +0 -615
  467. package/dist/chunk-WNIL6DVE.cjs.map +0 -1
  468. package/dist/chunk-WYLVJSGR.cjs.map +0 -1
  469. package/dist/chunk-X7ZNZFHV.js.map +0 -1
  470. package/dist/chunk-XT5ZVU5J.js +0 -306
  471. package/dist/chunk-XT5ZVU5J.js.map +0 -1
  472. package/dist/chunk-XZT7USLH.js.map +0 -1
  473. package/dist/chunk-Y5LNMKEY.cjs.map +0 -1
  474. package/dist/chunk-YARY4I5U.js.map +0 -1
  475. package/dist/chunk-YHRGDSTK.js.map +0 -1
  476. 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