@kyro-cms/core 0.13.3 → 0.13.6

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 (563) hide show
  1. package/dist/{WebhookService-BOJMgjBm.d.cts → WebhookService-BJTCP3cU.d.cts} +1 -1
  2. package/dist/{WebhookService-BLi5Rz2m.d.ts → WebhookService-Bqr_66lK.d.ts} +1 -1
  3. package/dist/api-handler-graphql.cjs +1 -1
  4. package/dist/api-handler-graphql.js +2 -2
  5. package/dist/api-handler-trpc.cjs +1 -1
  6. package/dist/api-handler-trpc.js +2 -2
  7. package/dist/api-handler.cjs +1 -1
  8. package/dist/api-handler.js +1 -1
  9. package/dist/auth-session-4WJUKESW.js +1 -0
  10. package/dist/auth-session-VHUHDBCL.cjs +1 -0
  11. package/dist/{base-A9AJPCG5.d.ts → base-C2DOe8wD.d.ts} +2 -2
  12. package/dist/{base-C6wyX2nC.d.cts → base-DIpT2Vuz.d.cts} +2 -2
  13. package/dist/bootstrap-JYAUQ52D.cjs +1 -0
  14. package/dist/bootstrap-TTMLNQM3.js +1 -0
  15. package/dist/chunk-23RSKVJP.cjs +1 -0
  16. package/dist/chunk-24W5I6SJ.cjs +2 -0
  17. package/dist/{chunk-CH4TZZI5.js → chunk-2I2AXTKY.cjs} +38 -39
  18. package/dist/chunk-34LCWI5X.cjs +1 -0
  19. package/dist/chunk-3A5UO6OQ.cjs +114 -0
  20. package/dist/chunk-3N34WXBS.js +2 -0
  21. package/dist/chunk-5BUAWCU6.js +91 -0
  22. package/dist/{chunk-7NKNSRCB.cjs → chunk-5I3BM5TV.js} +33 -32
  23. package/dist/chunk-5RBGM5N5.js +3 -0
  24. package/dist/chunk-7EY3GXRA.js +2 -0
  25. package/dist/chunk-7KTPBTH5.cjs +1 -0
  26. package/dist/chunk-A4XM33WO.js +109 -0
  27. package/dist/chunk-A7763NCF.cjs +19 -0
  28. package/dist/chunk-AQWTJGML.cjs +1 -0
  29. package/dist/chunk-CIWLQXB2.js +2 -0
  30. package/dist/chunk-DCFOVCJX.cjs +1 -0
  31. package/dist/chunk-DCKJT247.cjs +1 -0
  32. package/dist/chunk-EG4SRTYS.cjs +2 -0
  33. package/dist/chunk-FAG2645P.js +2 -0
  34. package/dist/chunk-FIVTKI25.cjs +3 -0
  35. package/dist/chunk-FU76HURF.cjs +1 -0
  36. package/dist/chunk-GDLMPZKD.cjs +2 -0
  37. package/dist/chunk-GS4CMYKS.cjs +1 -0
  38. package/dist/chunk-GTAKGVUY.js +2 -0
  39. package/dist/chunk-GWUHIIPO.cjs +132 -0
  40. package/dist/chunk-H2IJDTA2.cjs +1 -0
  41. package/dist/chunk-HACW42ZZ.cjs +108 -0
  42. package/dist/chunk-HCM2G674.cjs +20 -0
  43. package/dist/chunk-I22MSXGL.js +2 -0
  44. package/dist/chunk-IIPSXKNV.js +115 -0
  45. package/dist/{chunk-WNU76M2C.js → chunk-IIVBEZC2.js} +6 -6
  46. package/dist/chunk-JHFD3IAU.cjs +1 -0
  47. package/dist/chunk-JJY2F6NL.cjs +3 -0
  48. package/dist/chunk-JQ4V2MGJ.cjs +2 -0
  49. package/dist/chunk-JXJTFBHG.js +3 -0
  50. package/dist/chunk-KOSR7235.cjs +1 -0
  51. package/dist/chunk-KUY4QDAL.js +2 -0
  52. package/dist/chunk-LGUHXOEW.js +3 -0
  53. package/dist/chunk-LXTVMP5F.cjs +6 -0
  54. package/dist/chunk-N25DOGLQ.js +5 -0
  55. package/dist/chunk-N2BMGZIX.cjs +90 -0
  56. package/dist/chunk-N7CDHWQH.cjs +2 -0
  57. package/dist/chunk-NBBAMC2X.cjs +1 -0
  58. package/dist/chunk-NGNXOXI5.js +2 -0
  59. package/dist/chunk-O4PPZOVI.cjs +1 -0
  60. package/dist/chunk-O4RKZQYQ.js +2 -0
  61. package/dist/chunk-OJBL4CXK.cjs +2 -0
  62. package/dist/chunk-OPKZYQV7.js +3 -0
  63. package/dist/chunk-OXEJCIOA.cjs +1 -0
  64. package/dist/chunk-OXH6CANN.js +2 -0
  65. package/dist/{chunk-EQN3HDES.cjs → chunk-PW6Y5MQL.cjs} +5 -5
  66. package/dist/chunk-RLW6AQF2.js +2 -0
  67. package/dist/chunk-SBFVITY2.js +7 -0
  68. package/dist/chunk-SEJ7LMYY.js +4 -0
  69. package/dist/chunk-SZY25KAE.js +21 -0
  70. package/dist/chunk-TG5YQ4PB.cjs +4 -0
  71. package/dist/chunk-TJ6N5ZPZ.js +133 -0
  72. package/dist/chunk-V2RMDMWN.js +2 -0
  73. package/dist/chunk-V4SR7DU5.js +3 -0
  74. package/dist/chunk-VLFM66BZ.js +4 -0
  75. package/dist/chunk-VPBGZW4P.cjs +1 -0
  76. package/dist/chunk-VQWOCGJ2.cjs +1 -0
  77. package/dist/chunk-VWXHW74B.js +3 -0
  78. package/dist/chunk-W5GDZG64.js +2 -0
  79. package/dist/chunk-WLSVS3NC.js +2 -0
  80. package/dist/chunk-YLP3EKTQ.js +2 -0
  81. package/dist/chunk-YNSKDTFG.js +2 -0
  82. package/dist/chunk-YOJOVQIH.cjs +1 -0
  83. package/dist/chunk-ZE2X3FBU.js +20 -0
  84. package/dist/chunk-ZMH35QYG.js +2 -0
  85. package/dist/cli/index.cjs +53 -182
  86. package/dist/cli/index.js +54 -183
  87. package/dist/drizzle/index.cjs +1 -1
  88. package/dist/drizzle/index.d.cts +3 -3
  89. package/dist/drizzle/index.d.ts +3 -3
  90. package/dist/drizzle/index.js +1 -1
  91. package/dist/fields/index.cjs +1 -1
  92. package/dist/fields/index.d.cts +2 -2
  93. package/dist/fields/index.d.ts +2 -2
  94. package/dist/fields/index.js +1 -1
  95. package/dist/graphql/index.cjs +1 -1
  96. package/dist/graphql/index.d.cts +3 -3
  97. package/dist/graphql/index.d.ts +3 -3
  98. package/dist/graphql/index.js +1 -1
  99. package/dist/{index-BttsFZDa.d.ts → index-C9uBoJtm.d.ts} +2 -2
  100. package/dist/{index-BMcYFpTv.d.cts → index-Ci7aUrmN.d.cts} +2 -2
  101. package/dist/index.cjs +30 -30
  102. package/dist/index.d.cts +10 -10
  103. package/dist/index.d.ts +10 -10
  104. package/dist/index.js +31 -31
  105. package/dist/integration.cjs +1 -1
  106. package/dist/integration.js +1 -1
  107. package/dist/local-DKP43BWQ.cjs +1 -0
  108. package/dist/local-TF5ZMHWW.js +1 -0
  109. package/dist/media-M3EIZ4QS.cjs +1 -0
  110. package/dist/media-WYEILC6K.js +1 -0
  111. package/dist/mongo-auth-adapter-33M5ENM7.cjs +1 -0
  112. package/dist/mongo-auth-adapter-4ITULS2P.js +1 -0
  113. package/dist/mongodb/index.cjs +1 -1
  114. package/dist/mongodb/index.d.cts +3 -3
  115. package/dist/mongodb/index.d.ts +3 -3
  116. package/dist/mongodb/index.js +1 -1
  117. package/dist/nodemailer-transport-7F3VLLBW.js +1 -0
  118. package/dist/nodemailer-transport-WAPZD3SJ.cjs +1 -0
  119. package/dist/postgres-auth-adapter-7BCPXNBO.js +1 -0
  120. package/dist/postgres-auth-adapter-HMXFUM5W.cjs +1 -0
  121. package/dist/redis-adapter-2E5AWMMA.cjs +1 -0
  122. package/dist/redis-adapter-GFH74CF4.js +1 -0
  123. package/dist/rest/index.cjs +1 -1
  124. package/dist/rest/index.d.cts +4 -4
  125. package/dist/rest/index.d.ts +4 -4
  126. package/dist/rest/index.js +1 -1
  127. package/dist/schema-FNIDQKIJ.cjs +1 -0
  128. package/dist/schema-KD736QFN.js +1 -0
  129. package/dist/sqlite-adapter-HL53RLSN.cjs +1 -0
  130. package/dist/sqlite-adapter-TT6ZASDG.js +1 -0
  131. package/dist/templates/index.cjs +1 -1
  132. package/dist/templates/index.d.cts +2 -2
  133. package/dist/templates/index.d.ts +2 -2
  134. package/dist/templates/index.js +1 -1
  135. package/dist/trpc/index.cjs +1 -1
  136. package/dist/trpc/index.d.cts +3 -3
  137. package/dist/trpc/index.d.ts +3 -3
  138. package/dist/trpc/index.js +1 -1
  139. package/dist/{types-DxaK39ix.d.cts → types-C3QFX0l6.d.cts} +4 -0
  140. package/dist/{types-DxaK39ix.d.ts → types-C3QFX0l6.d.ts} +4 -0
  141. package/dist/{types-6ShQp2EM.d.cts → types-CKWnrUAh.d.ts} +23 -2
  142. package/dist/{types-BCOhfwHC.d.ts → types-CdwfDpyW.d.cts} +23 -2
  143. package/dist/ws/index.cjs +1 -1
  144. package/dist/ws/index.js +1 -1
  145. package/package.json +3 -11
  146. package/dist/WebhookService-BcuD8tnn.d.cts +0 -143
  147. package/dist/WebhookService-CFe6Zd0_.d.cts +0 -143
  148. package/dist/WebhookService-CGxHtw7E.d.cts +0 -143
  149. package/dist/WebhookService-CNC1lYz7.d.ts +0 -143
  150. package/dist/WebhookService-CVXmjbtQ.d.cts +0 -143
  151. package/dist/WebhookService-D5PSI5t6.d.cts +0 -143
  152. package/dist/WebhookService-DPCCn_12.d.ts +0 -143
  153. package/dist/WebhookService-Dk1lzSrG.d.cts +0 -143
  154. package/dist/WebhookService-Dncnbgm9.d.cts +0 -143
  155. package/dist/WebhookService-I6hdue2Y.d.ts +0 -143
  156. package/dist/WebhookService-KnQ2UDlW.d.ts +0 -143
  157. package/dist/WebhookService-UY5p89Bj.d.ts +0 -143
  158. package/dist/WebhookService-YZXBCRXA.d.ts +0 -143
  159. package/dist/WebhookService-fk0FGRlk.d.ts +0 -143
  160. package/dist/WebhookService-vsFnWrOh.d.ts +0 -143
  161. package/dist/WebhookService-zrDmAx7L.d.cts +0 -143
  162. package/dist/auth-session-DHVGXHOH.cjs +0 -1
  163. package/dist/auth-session-O7IIH7EP.js +0 -1
  164. package/dist/base-B--L0lCn.d.cts +0 -218
  165. package/dist/base-B-i-tjm1.d.ts +0 -218
  166. package/dist/base-B-siit_y.d.cts +0 -218
  167. package/dist/base-B8SyZI4D.d.ts +0 -218
  168. package/dist/base-BCgFt3Yx.d.ts +0 -218
  169. package/dist/base-BHRGJ40F.d.cts +0 -218
  170. package/dist/base-BVoDPNjJ.d.cts +0 -218
  171. package/dist/base-BaOJ5uWd.d.cts +0 -218
  172. package/dist/base-BfPaVEAE.d.cts +0 -218
  173. package/dist/base-BxrX5EPU.d.cts +0 -218
  174. package/dist/base-CAb9EYQs.d.ts +0 -218
  175. package/dist/base-CcZIEll-.d.ts +0 -218
  176. package/dist/base-CyG7aF1e.d.cts +0 -218
  177. package/dist/base-DOImeJ-F.d.ts +0 -218
  178. package/dist/base-DbnwE42-.d.cts +0 -218
  179. package/dist/base-NyiSsD-n.d.ts +0 -218
  180. package/dist/base-OYfoYPYP.d.ts +0 -218
  181. package/dist/base-xflndGDO.d.ts +0 -218
  182. package/dist/bcryptjs-WIQSWJGK.cjs +0 -1
  183. package/dist/bcryptjs-ZEEHSMAG.js +0 -2
  184. package/dist/better-sqlite3-5IISPX34.cjs +0 -1
  185. package/dist/better-sqlite3-B34RIU4C.js +0 -2
  186. package/dist/bootstrap-E24SGUJP.cjs +0 -1
  187. package/dist/bootstrap-PG2LGDLB.js +0 -1
  188. package/dist/bootstrap-QQ6D3OYG.js +0 -1
  189. package/dist/bootstrap-QVKSKXJF.cjs +0 -1
  190. package/dist/bootstrap-RILR44UM.cjs +0 -1
  191. package/dist/bootstrap-YD3GLTWX.cjs +0 -1
  192. package/dist/bootstrap-YFVE7MRG.js +0 -1
  193. package/dist/bootstrap-ZRRUPRUR.js +0 -1
  194. package/dist/bowser-SB3ZUPO4.js +0 -11
  195. package/dist/bowser-VX6B6ZSE.cjs +0 -10
  196. package/dist/chokidar-5RVQZVHP.cjs +0 -5
  197. package/dist/chokidar-BOYGRT4Q.js +0 -6
  198. package/dist/chunk-22RXJ442.js +0 -57
  199. package/dist/chunk-262YP5XA.cjs +0 -1
  200. package/dist/chunk-2FSOHXOU.cjs +0 -56
  201. package/dist/chunk-2HA6EKXX.js +0 -24
  202. package/dist/chunk-2OS5Y4LE.cjs +0 -1
  203. package/dist/chunk-2PXXQKN3.cjs +0 -3
  204. package/dist/chunk-2SPWRQ5O.js +0 -122
  205. package/dist/chunk-32QY56XF.js +0 -122
  206. package/dist/chunk-355R4LS5.cjs +0 -56
  207. package/dist/chunk-35IVNLMA.js +0 -122
  208. package/dist/chunk-35PGCW3S.cjs +0 -1
  209. package/dist/chunk-3GXLOYM3.js +0 -2
  210. package/dist/chunk-3KZXF4US.js +0 -2
  211. package/dist/chunk-3LAWUINR.cjs +0 -1
  212. package/dist/chunk-3NSZZCOJ.js +0 -2
  213. package/dist/chunk-3O3AVMWM.cjs +0 -1
  214. package/dist/chunk-3TAUNYEM.js +0 -8
  215. package/dist/chunk-3U6MKWET.cjs +0 -120
  216. package/dist/chunk-3VXEK5ZW.cjs +0 -1
  217. package/dist/chunk-47CXBWMA.js +0 -2
  218. package/dist/chunk-4BMWWGJN.js +0 -384
  219. package/dist/chunk-4NTIK6DF.cjs +0 -2
  220. package/dist/chunk-4YCI3HBD.js +0 -3
  221. package/dist/chunk-4ZWLNGLS.js +0 -2
  222. package/dist/chunk-5A7E7N4B.cjs +0 -431
  223. package/dist/chunk-5ZEYOFAK.js +0 -2
  224. package/dist/chunk-6DD4J7LI.js +0 -2
  225. package/dist/chunk-6E44MQQ5.js +0 -115
  226. package/dist/chunk-6GGPY7U2.js +0 -4
  227. package/dist/chunk-6LWF5MPL.js +0 -20
  228. package/dist/chunk-6MNLRAKM.cjs +0 -121
  229. package/dist/chunk-6NBZDW53.js +0 -133
  230. package/dist/chunk-6TPICJ2L.js +0 -7
  231. package/dist/chunk-73D2PNHD.cjs +0 -7
  232. package/dist/chunk-73Y63IPP.js +0 -57
  233. package/dist/chunk-7ACHOBWY.cjs +0 -13
  234. package/dist/chunk-7DUKWHRN.cjs +0 -1
  235. package/dist/chunk-7GGZA5YU.cjs +0 -2
  236. package/dist/chunk-7JWQ2PZP.cjs +0 -1
  237. package/dist/chunk-7K6ZUNJM.js +0 -4
  238. package/dist/chunk-7KLEANTO.cjs +0 -1
  239. package/dist/chunk-7LLCXY5O.cjs +0 -19
  240. package/dist/chunk-7MNDQU6K.js +0 -8
  241. package/dist/chunk-7NH7H3WA.js +0 -10
  242. package/dist/chunk-7WMMKGEO.cjs +0 -1
  243. package/dist/chunk-A35ZP72D.cjs +0 -132
  244. package/dist/chunk-A3IOQOV6.js +0 -2
  245. package/dist/chunk-A3XVL6ED.cjs +0 -3
  246. package/dist/chunk-A7LZ6T42.cjs +0 -1
  247. package/dist/chunk-APDQ6ZTG.cjs +0 -120
  248. package/dist/chunk-ATI2UZ7U.js +0 -2
  249. package/dist/chunk-AWQGDMOE.js +0 -3
  250. package/dist/chunk-B3BSVEFC.cjs +0 -3
  251. package/dist/chunk-B4AC23SG.js +0 -122
  252. package/dist/chunk-BAVN7VDR.cjs +0 -1
  253. package/dist/chunk-BCEE4NBZ.cjs +0 -2
  254. package/dist/chunk-BD6XHMMM.cjs +0 -2
  255. package/dist/chunk-BUNLC3II.cjs +0 -1
  256. package/dist/chunk-C7QCZX7X.js +0 -2
  257. package/dist/chunk-CHYVUWZ3.js +0 -2
  258. package/dist/chunk-CIVA6SKW.js +0 -2
  259. package/dist/chunk-CNHUCCQJ.js +0 -121
  260. package/dist/chunk-CRP6PSCE.js +0 -2
  261. package/dist/chunk-D6SDGHY6.js +0 -2
  262. package/dist/chunk-DI6TCZSE.js +0 -122
  263. package/dist/chunk-DORUYZQV.cjs +0 -1
  264. package/dist/chunk-DSHKQL3R.cjs +0 -121
  265. package/dist/chunk-DVWYO3KK.cjs +0 -1
  266. package/dist/chunk-E4H3ZZ7U.js +0 -4
  267. package/dist/chunk-EFKEVWAD.js +0 -4
  268. package/dist/chunk-EHWUALGH.cjs +0 -1
  269. package/dist/chunk-EI7FRSNY.js +0 -57
  270. package/dist/chunk-ELFQKQLL.js +0 -2
  271. package/dist/chunk-EML5FDUU.js +0 -2
  272. package/dist/chunk-EN65ZEK2.cjs +0 -2
  273. package/dist/chunk-EON4XLKQ.cjs +0 -1
  274. package/dist/chunk-EUQAOYEO.cjs +0 -121
  275. package/dist/chunk-EVAUBT7H.js +0 -57
  276. package/dist/chunk-EW424IBO.cjs +0 -1
  277. package/dist/chunk-EYHD7HZE.cjs +0 -1
  278. package/dist/chunk-EYYIPA5N.js +0 -432
  279. package/dist/chunk-EZIDQBXI.cjs +0 -1
  280. package/dist/chunk-F2O4QO5N.cjs +0 -383
  281. package/dist/chunk-F4ITQ6XQ.cjs +0 -3
  282. package/dist/chunk-FBWLSWZ4.js +0 -122
  283. package/dist/chunk-FDKU7HJX.js +0 -2
  284. package/dist/chunk-FG3IFGJP.cjs +0 -1
  285. package/dist/chunk-FGN6IMPY.cjs +0 -3
  286. package/dist/chunk-FK2BG4HU.js +0 -3
  287. package/dist/chunk-FLMUMPDE.js +0 -2
  288. package/dist/chunk-FLS2FJM6.cjs +0 -431
  289. package/dist/chunk-FP5UK272.cjs +0 -1
  290. package/dist/chunk-FSL3NLRT.cjs +0 -2
  291. package/dist/chunk-FUFS65Q5.js +0 -133
  292. package/dist/chunk-GIS6X43A.cjs +0 -3
  293. package/dist/chunk-GNEVCEJU.cjs +0 -3
  294. package/dist/chunk-GNOSG3PK.cjs +0 -1
  295. package/dist/chunk-GQGFNTDZ.js +0 -2
  296. package/dist/chunk-GTR7JAKP.cjs +0 -3
  297. package/dist/chunk-GV2IB4WQ.cjs +0 -56
  298. package/dist/chunk-GWIZT2P5.js +0 -57
  299. package/dist/chunk-H3FJ54KB.cjs +0 -121
  300. package/dist/chunk-HPIJI7TM.js +0 -3
  301. package/dist/chunk-HPYH7GTS.cjs +0 -1
  302. package/dist/chunk-HRAY65XH.js +0 -3
  303. package/dist/chunk-HTYVI2HK.cjs +0 -9
  304. package/dist/chunk-HY3EAWB2.js +0 -4
  305. package/dist/chunk-I6UJVO2P.js +0 -57
  306. package/dist/chunk-IKGVPXMK.js +0 -3
  307. package/dist/chunk-IQSF6XRV.js +0 -57
  308. package/dist/chunk-IXGDTAES.js +0 -4
  309. package/dist/chunk-J6V573PE.cjs +0 -1
  310. package/dist/chunk-JA44K75G.js +0 -2
  311. package/dist/chunk-JB4WG2YJ.cjs +0 -121
  312. package/dist/chunk-JCEJ4VTN.js +0 -20
  313. package/dist/chunk-JRUQ5ABB.js +0 -4
  314. package/dist/chunk-JV4HJBXW.js +0 -14
  315. package/dist/chunk-JZ7Z6WC2.cjs +0 -3
  316. package/dist/chunk-K5XGP57D.cjs +0 -19
  317. package/dist/chunk-K73HOMQY.cjs +0 -56
  318. package/dist/chunk-KEITOXIP.js +0 -2
  319. package/dist/chunk-KMFLHGD5.cjs +0 -1
  320. package/dist/chunk-KZHXYXSH.cjs +0 -10
  321. package/dist/chunk-L3Q64RUX.js +0 -3
  322. package/dist/chunk-LBLFU6KI.js +0 -57
  323. package/dist/chunk-LEBM6ZSZ.cjs +0 -10
  324. package/dist/chunk-LP3HRZGK.js +0 -57
  325. package/dist/chunk-LPFRMQFQ.js +0 -121
  326. package/dist/chunk-LQ3YZTPU.cjs +0 -15
  327. package/dist/chunk-LVBHOZZF.js +0 -4
  328. package/dist/chunk-LWM4WABU.js +0 -3
  329. package/dist/chunk-LY7N3UHH.cjs +0 -23
  330. package/dist/chunk-LYU44UNN.cjs +0 -56
  331. package/dist/chunk-M75VGFCI.js +0 -3
  332. package/dist/chunk-MCIZG4A3.cjs +0 -1
  333. package/dist/chunk-MDLJTZLV.cjs +0 -1
  334. package/dist/chunk-MFNN5DYG.cjs +0 -1
  335. package/dist/chunk-MJAODEFC.cjs +0 -121
  336. package/dist/chunk-MLCBSEBU.js +0 -2
  337. package/dist/chunk-MSC4G2HF.cjs +0 -2
  338. package/dist/chunk-MYHNTJLR.cjs +0 -56
  339. package/dist/chunk-N2YHO2WI.cjs +0 -3
  340. package/dist/chunk-N4FXLQE3.cjs +0 -132
  341. package/dist/chunk-N5POANYV.js +0 -2
  342. package/dist/chunk-N6MNQIQU.js +0 -123
  343. package/dist/chunk-NGNJSUGL.cjs +0 -1
  344. package/dist/chunk-NPBXLPOP.js +0 -3
  345. package/dist/chunk-NRE6VKL6.cjs +0 -121
  346. package/dist/chunk-O4YE57OS.cjs +0 -6
  347. package/dist/chunk-O7CBGP4N.cjs +0 -1
  348. package/dist/chunk-OBYAIJVU.js +0 -11
  349. package/dist/chunk-OJ3H4AQ2.cjs +0 -56
  350. package/dist/chunk-OLRCZ6E3.js +0 -2
  351. package/dist/chunk-ON5XJEPO.cjs +0 -3
  352. package/dist/chunk-OOVNTOZC.cjs +0 -56
  353. package/dist/chunk-OPTVCCQQ.cjs +0 -122
  354. package/dist/chunk-OT2Z4XBD.cjs +0 -1
  355. package/dist/chunk-P6JITOFF.js +0 -4
  356. package/dist/chunk-PFKVHUOT.js +0 -432
  357. package/dist/chunk-PFTBTWSC.cjs +0 -1
  358. package/dist/chunk-PITMDQYN.cjs +0 -18
  359. package/dist/chunk-PTPVFLET.js +0 -20
  360. package/dist/chunk-PYUWSKKP.js +0 -57
  361. package/dist/chunk-PZDLPRJF.js +0 -4
  362. package/dist/chunk-Q5TFO66G.cjs +0 -1
  363. package/dist/chunk-QC4YXUBT.cjs +0 -383
  364. package/dist/chunk-QO5ZWQA3.cjs +0 -74
  365. package/dist/chunk-QUTYCUST.js +0 -4
  366. package/dist/chunk-QYN6C3FZ.cjs +0 -114
  367. package/dist/chunk-REKKBAQX.cjs +0 -56
  368. package/dist/chunk-REQ622YC.js +0 -3
  369. package/dist/chunk-RPRGGGIW.js +0 -11
  370. package/dist/chunk-RTNQP6BV.js +0 -2
  371. package/dist/chunk-RUJW47ZJ.js +0 -2
  372. package/dist/chunk-RVBSJ4UQ.cjs +0 -7
  373. package/dist/chunk-RXYCFZJC.cjs +0 -121
  374. package/dist/chunk-RYHOWZLK.js +0 -2
  375. package/dist/chunk-RYXLEFS5.js +0 -2
  376. package/dist/chunk-S2MZNEBQ.cjs +0 -1
  377. package/dist/chunk-S5HTTLN7.cjs +0 -2
  378. package/dist/chunk-S73YERS2.js +0 -57
  379. package/dist/chunk-SBNMXQNO.cjs +0 -2
  380. package/dist/chunk-SLMIYECU.js +0 -2
  381. package/dist/chunk-SMQ6736Y.js +0 -57
  382. package/dist/chunk-SRIXRJHL.js +0 -4
  383. package/dist/chunk-T3DJ3UTP.cjs +0 -121
  384. package/dist/chunk-TBHNE4VV.js +0 -2
  385. package/dist/chunk-TCFL3UWT.cjs +0 -2
  386. package/dist/chunk-TEY5LZ26.cjs +0 -56
  387. package/dist/chunk-TJZO7ZSX.cjs +0 -3
  388. package/dist/chunk-TKUNRCRH.js +0 -4
  389. package/dist/chunk-TQLCOMKC.js +0 -4
  390. package/dist/chunk-TRXYDWGE.cjs +0 -1
  391. package/dist/chunk-TS55CUNJ.js +0 -57
  392. package/dist/chunk-TYQYKKWJ.js +0 -16
  393. package/dist/chunk-U6KFONKM.js +0 -2
  394. package/dist/chunk-UFBJ3WOZ.js +0 -2
  395. package/dist/chunk-UNYXWPLZ.cjs +0 -2
  396. package/dist/chunk-UQRVQUVR.js +0 -2
  397. package/dist/chunk-UW5W35NP.js +0 -122
  398. package/dist/chunk-UWHWSWDE.js +0 -2
  399. package/dist/chunk-UWVBFRCW.js +0 -2
  400. package/dist/chunk-UZWYFEUN.js +0 -122
  401. package/dist/chunk-V4FAL7AG.js +0 -2
  402. package/dist/chunk-VI7WCO2J.cjs +0 -3
  403. package/dist/chunk-VOYPKTID.cjs +0 -1
  404. package/dist/chunk-VQ53TFYA.cjs +0 -1
  405. package/dist/chunk-VRZC4TTF.cjs +0 -1
  406. package/dist/chunk-VTOL3URF.js +0 -4
  407. package/dist/chunk-VVVCCB6R.js +0 -2
  408. package/dist/chunk-W2GPP6RB.js +0 -122
  409. package/dist/chunk-W45TLOOT.js +0 -2
  410. package/dist/chunk-WAVGRSE6.js +0 -2
  411. package/dist/chunk-WHOA7YJU.cjs +0 -1
  412. package/dist/chunk-WNRUPL26.js +0 -2
  413. package/dist/chunk-WPM6LFCY.js +0 -2
  414. package/dist/chunk-WXT2XW7T.js +0 -13
  415. package/dist/chunk-X473JI7Z.js +0 -75
  416. package/dist/chunk-X6HUA6EF.cjs +0 -20
  417. package/dist/chunk-XBQ6HV3T.cjs +0 -114
  418. package/dist/chunk-XDPLVJRO.js +0 -21
  419. package/dist/chunk-XDQVYCIR.cjs +0 -1
  420. package/dist/chunk-XFYSADHV.cjs +0 -2
  421. package/dist/chunk-XIAJQLGS.js +0 -2
  422. package/dist/chunk-XK6UB77Q.js +0 -4
  423. package/dist/chunk-XOR64WUQ.cjs +0 -19
  424. package/dist/chunk-XP7BXFXT.cjs +0 -121
  425. package/dist/chunk-Y2VHO66Q.cjs +0 -3
  426. package/dist/chunk-Y2YAKDEQ.js +0 -2
  427. package/dist/chunk-Y5O2OD7J.cjs +0 -3
  428. package/dist/chunk-YARB43JG.cjs +0 -56
  429. package/dist/chunk-YENNL5HG.js +0 -2
  430. package/dist/chunk-YGI5W4RS.js +0 -2
  431. package/dist/chunk-YLCEMVYY.cjs +0 -56
  432. package/dist/chunk-YSOM57GK.cjs +0 -3
  433. package/dist/chunk-YUUXFD73.js +0 -19
  434. package/dist/chunk-Z2SN2MYP.js +0 -122
  435. package/dist/chunk-Z3UVDGYS.cjs +0 -56
  436. package/dist/chunk-ZAKYTBEN.js +0 -3
  437. package/dist/chunk-ZHA446FA.cjs +0 -1
  438. package/dist/chunk-ZO3YB5DK.cjs +0 -1
  439. package/dist/chunk-ZOVH6QT5.cjs +0 -1
  440. package/dist/chunk-ZRIBWDYJ.js +0 -384
  441. package/dist/chunk-ZTLGK6R4.cjs +0 -12
  442. package/dist/chunk-ZUBJ6RLQ.cjs +0 -1
  443. package/dist/chunk-ZWDBPEXL.js +0 -115
  444. package/dist/client.d.cts +0 -1266
  445. package/dist/client.d.ts +0 -1266
  446. package/dist/d1-5ZQJOFDX.cjs +0 -1
  447. package/dist/d1-HPB6B253.js +0 -2
  448. package/dist/dist-es-3SSNUZST.cjs +0 -1
  449. package/dist/dist-es-64F22JL2.js +0 -2
  450. package/dist/dist-es-A5OF2STN.cjs +0 -2
  451. package/dist/dist-es-BOW5V247.cjs +0 -6
  452. package/dist/dist-es-CRIMATLL.cjs +0 -2
  453. package/dist/dist-es-DL3VLVP6.cjs +0 -1
  454. package/dist/dist-es-F2ZR55UK.js +0 -4
  455. package/dist/dist-es-IPSSZNFP.js +0 -1
  456. package/dist/dist-es-M2F7M27Y.js +0 -2
  457. package/dist/dist-es-M66JKZF5.js +0 -7
  458. package/dist/dist-es-OKLLRYI3.js +0 -2
  459. package/dist/dist-es-P25IKLBI.cjs +0 -1
  460. package/dist/dist-es-SRPWSAF4.cjs +0 -1
  461. package/dist/dist-es-SVHZDVUF.js +0 -3
  462. package/dist/dist-es-T2H2W5BX.cjs +0 -3
  463. package/dist/dist-es-WFI55HKT.js +0 -3
  464. package/dist/drizzle-orm-47ELDEM6.cjs +0 -1
  465. package/dist/drizzle-orm-XRTSOQJS.js +0 -1
  466. package/dist/event-streams-7NAWZW2I.js +0 -1
  467. package/dist/event-streams-JBMWCI2O.cjs +0 -1
  468. package/dist/fs-KWBRQ6T6.js +0 -1
  469. package/dist/fs-ZQYOJOIO.cjs +0 -1
  470. package/dist/index-8Ino7vKq.d.ts +0 -105
  471. package/dist/index-B9BFNOHd.d.cts +0 -105
  472. package/dist/index-ByOM1Y5x.d.ts +0 -105
  473. package/dist/index-C6xmtRio.d.cts +0 -105
  474. package/dist/index-CTI3K_uq.d.cts +0 -105
  475. package/dist/index-CTL4zv_u.d.ts +0 -105
  476. package/dist/index-CaDbioSg.d.ts +0 -105
  477. package/dist/index-CxA9uOv0.d.ts +0 -105
  478. package/dist/index-D6AXbuPI.d.ts +0 -105
  479. package/dist/index-DF0KDBaM.d.cts +0 -105
  480. package/dist/index-DG4Xu7gA.d.cts +0 -105
  481. package/dist/index-DS3DpJli.d.cts +0 -105
  482. package/dist/index-NGnJpSgf.d.ts +0 -105
  483. package/dist/index-Zrg3sZ6R.d.cts +0 -105
  484. package/dist/index-eHex8Iwj.d.ts +0 -105
  485. package/dist/index-rm7uyOK1.d.cts +0 -105
  486. package/dist/jsonwebtoken-DFB6ZBZA.cjs +0 -8
  487. package/dist/jsonwebtoken-OD67R5JS.js +0 -9
  488. package/dist/lib-5QYYN6ML.cjs +0 -12
  489. package/dist/lib-A2D63VXD.cjs +0 -1
  490. package/dist/lib-JQD2JAOO.js +0 -2
  491. package/dist/lib-XXYYUPMW.js +0 -13
  492. package/dist/loadSso-JY4WDQPS.cjs +0 -2
  493. package/dist/loadSso-UQR6545M.js +0 -3
  494. package/dist/local-6UUGBZ4M.js +0 -1
  495. package/dist/local-DPLKZQA3.js +0 -1
  496. package/dist/local-KR3AIGVA.cjs +0 -1
  497. package/dist/local-S5VA7IXE.cjs +0 -1
  498. package/dist/local-T7GISZBL.js +0 -1
  499. package/dist/local-ZYHV3J2K.cjs +0 -1
  500. package/dist/media-3Z6YW5J4.cjs +0 -1
  501. package/dist/media-E762GEHL.js +0 -1
  502. package/dist/mongo-auth-adapter-2H2AXDRH.cjs +0 -1
  503. package/dist/mongo-auth-adapter-EUHAYWJ6.cjs +0 -1
  504. package/dist/mongo-auth-adapter-FW7ATYQ6.js +0 -1
  505. package/dist/mongo-auth-adapter-GR2CFFEA.js +0 -1
  506. package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +0 -1
  507. package/dist/mongo-auth-adapter-YWMEOC42.js +0 -1
  508. package/dist/nodemailer-IDML4L6W.cjs +0 -53
  509. package/dist/nodemailer-NITB45SS.js +0 -54
  510. package/dist/nodemailer-transport-3VWVUBM5.cjs +0 -1
  511. package/dist/nodemailer-transport-7RHATUKL.js +0 -1
  512. package/dist/nodemailer-transport-CHO2WKIY.js +0 -1
  513. package/dist/nodemailer-transport-ED2IXNGW.cjs +0 -1
  514. package/dist/postgres-auth-adapter-QKBNXVPT.js +0 -1
  515. package/dist/postgres-auth-adapter-SK3N3OSS.js +0 -1
  516. package/dist/postgres-auth-adapter-WMLM4UUC.cjs +0 -1
  517. package/dist/postgres-auth-adapter-ZO6HK5AK.cjs +0 -1
  518. package/dist/postgres-js-7YBZKGXG.cjs +0 -1
  519. package/dist/postgres-js-JLFIWOBH.js +0 -1
  520. package/dist/redis-adapter-EGMUN65D.cjs +0 -1
  521. package/dist/redis-adapter-EVK2SMKH.cjs +0 -1
  522. package/dist/redis-adapter-LY2NBSAG.js +0 -1
  523. package/dist/redis-adapter-QPCTMF55.js +0 -1
  524. package/dist/schema-RT6WSUYC.cjs +0 -1
  525. package/dist/schema-YFMSJK2P.js +0 -2
  526. package/dist/signin-N3T2KF5Q.js +0 -3
  527. package/dist/signin-VFBLX7EL.cjs +0 -2
  528. package/dist/sqlite-adapter-52PL52VU.js +0 -1
  529. package/dist/sqlite-adapter-KPSISY6E.cjs +0 -1
  530. package/dist/sqlite-adapter-MNNZZXGX.cjs +0 -1
  531. package/dist/sqlite-adapter-PI6SIY7O.js +0 -1
  532. package/dist/src-6LAUXXDM.cjs +0 -1
  533. package/dist/src-QBADSZV4.js +0 -1
  534. package/dist/sso-oidc-54BIRYR6.cjs +0 -2
  535. package/dist/sso-oidc-UB7G4END.js +0 -3
  536. package/dist/sts-WAA6I22C.js +0 -3
  537. package/dist/sts-YLXXIB3X.cjs +0 -2
  538. package/dist/types-B5Qz1svz.d.cts +0 -822
  539. package/dist/types-B9oXBEKI.d.cts +0 -330
  540. package/dist/types-B9oXBEKI.d.ts +0 -330
  541. package/dist/types-BRDBNacn.d.ts +0 -839
  542. package/dist/types-Bii0bhUV.d.cts +0 -329
  543. package/dist/types-Bii0bhUV.d.ts +0 -329
  544. package/dist/types-Bt2_ycUO.d.ts +0 -811
  545. package/dist/types-C4wXHImf.d.ts +0 -822
  546. package/dist/types-C8yIAV6K.d.cts +0 -839
  547. package/dist/types-CORUQhY-.d.ts +0 -839
  548. package/dist/types-Cdssrcbz.d.cts +0 -839
  549. package/dist/types-CjGqxBd3.d.cts +0 -330
  550. package/dist/types-CjGqxBd3.d.ts +0 -330
  551. package/dist/types-DBGR-eQl.d.cts +0 -839
  552. package/dist/types-DCWgPFmi.d.cts +0 -822
  553. package/dist/types-DROqAsr0.d.cts +0 -330
  554. package/dist/types-DROqAsr0.d.ts +0 -330
  555. package/dist/types-DlGSbh7I.d.cts +0 -297
  556. package/dist/types-DlGSbh7I.d.ts +0 -297
  557. package/dist/types-DsF64Wrc.d.cts +0 -811
  558. package/dist/types-IeKFn7Ky.d.ts +0 -839
  559. package/dist/types-QglJ7PwT.d.cts +0 -839
  560. package/dist/types-ZrjEVWfi.d.ts +0 -811
  561. package/dist/types-dEy5JxvN.d.ts +0 -822
  562. package/dist/types-tVJc9YbX.d.cts +0 -811
  563. package/dist/types-zt5qIvje.d.ts +0 -839
@@ -1,822 +0,0 @@
1
- import { F as Field } from './types-DROqAsr0.js';
2
-
3
- interface Request {
4
- body?: any;
5
- headers: Record<string, string>;
6
- method?: string;
7
- url?: string;
8
- cookies?: Record<string, string>;
9
- query?: Record<string, any>;
10
- }
11
- interface User {
12
- id: string;
13
- email: string;
14
- role: string;
15
- tenantId?: string;
16
- [key: string]: any;
17
- }
18
- interface HookArgs<T = any> {
19
- collection?: string;
20
- global?: string;
21
- data?: T;
22
- originalDoc?: T;
23
- doc?: T;
24
- req: Request;
25
- user?: User;
26
- operation: 'create' | 'read' | 'update' | 'delete';
27
- tenantId?: string;
28
- field?: string;
29
- siblingData?: Record<string, any>;
30
- value?: any;
31
- previousValue?: any;
32
- context?: Record<string, any>;
33
- }
34
- type Hook<T = any> = (args: HookArgs<T>) => Promise<T | void> | T | void;
35
- interface CollectionHooks {
36
- beforeValidate?: Hook[];
37
- beforeChange?: Hook[];
38
- afterChange?: Hook[];
39
- beforeRead?: Hook[];
40
- afterRead?: Hook[];
41
- beforeDelete?: Hook[];
42
- afterDelete?: Hook[];
43
- beforeLogin?: Hook[];
44
- afterLogin?: Hook[];
45
- afterLogout?: Hook[];
46
- afterRefresh?: Hook[];
47
- afterForgotPassword?: Hook[];
48
- }
49
- interface FieldHooks {
50
- beforeValidate?: Hook[];
51
- beforeChange?: Hook[];
52
- afterChange?: Hook[];
53
- afterRead?: Hook[];
54
- }
55
- interface GlobalHooks {
56
- beforeValidate?: Hook[];
57
- beforeChange?: Hook[];
58
- afterChange?: Hook[];
59
- beforeRead?: Hook[];
60
- afterRead?: Hook[];
61
- }
62
- declare function runHooks(hooks: Hook[], args: HookArgs): Promise<any>;
63
- declare function runFieldHooks(hooks: Hook[], args: HookArgs): Promise<any>;
64
-
65
- interface PluginHooks {
66
- beforeInit?: Hook[];
67
- afterInit?: Hook[];
68
- beforeRegisterCollections?: Hook[];
69
- afterRegisterCollections?: Hook[];
70
- beforeRegisterGlobals?: Hook[];
71
- afterRegisterGlobals?: Hook[];
72
- beforeServerStart?: Hook[];
73
- afterServerStart?: Hook[];
74
- beforeServerStop?: Hook[];
75
- afterServerStop?: Hook[];
76
- }
77
- interface PluginCollectionExtension {
78
- slug: string;
79
- config: Partial<CollectionConfig>;
80
- }
81
- interface PluginGlobalExtension {
82
- slug: string;
83
- config: Partial<GlobalConfig>;
84
- }
85
- interface PluginFieldExtension {
86
- collectionSlug: string;
87
- field: Field;
88
- }
89
- interface PluginAPI {
90
- registry: {
91
- getCollection: (slug: string) => CollectionConfig | undefined;
92
- getCollections: () => CollectionConfig[];
93
- getGlobal: (slug: string) => GlobalConfig | undefined;
94
- addCollection: (config: CollectionConfig) => void;
95
- addGlobal: (config: GlobalConfig) => void;
96
- extendCollection: (slug: string, extension: Partial<CollectionConfig>) => void;
97
- extendGlobal: (slug: string, extension: Partial<GlobalConfig>) => void;
98
- addField: (collectionSlug: string, field: Field, position?: number) => void;
99
- };
100
- hooks: {
101
- register: (event: string, handler: Hook) => void;
102
- unregister: (event: string, handler: Hook) => void;
103
- };
104
- config: {
105
- get: (key: string) => any;
106
- set: (key: string, value: any) => void;
107
- };
108
- db: any;
109
- }
110
- declare abstract class KyroPlugin {
111
- name: string;
112
- displayName?: string;
113
- adminEntry?: string;
114
- version?: string;
115
- description?: string;
116
- hooks: PluginHooks;
117
- collections: Partial<CollectionConfig>[];
118
- globals: Partial<GlobalConfig>[];
119
- fields: PluginFieldExtension[];
120
- extensions: {
121
- collections: PluginCollectionExtension[];
122
- globals: PluginGlobalExtension[];
123
- };
124
- adminComponents: Record<string, any>;
125
- adminStyles: string[];
126
- serverMiddleware?: (app: any) => void;
127
- clientMiddleware?: (req: any) => any;
128
- constructor(name: string);
129
- init?(api: PluginAPI): Promise<void>;
130
- beforeInit?(api: PluginAPI): Promise<void>;
131
- afterInit?(api: PluginAPI): Promise<void>;
132
- getCollections?(): Partial<CollectionConfig>[];
133
- getGlobals?(): Partial<GlobalConfig>[];
134
- getHooks?(): PluginHooks;
135
- }
136
- declare class PluginManager {
137
- private plugins;
138
- private hooks;
139
- register(plugin: KyroPlugin): void;
140
- unregister(name: string): void;
141
- get(name: string): KyroPlugin | undefined;
142
- getAll(): KyroPlugin[];
143
- has(name: string): boolean;
144
- registerHook(event: string, handler: Hook): void;
145
- unregisterHook(event: string, handler: Hook): void;
146
- executeHook(event: string, args?: any): Promise<any>;
147
- getAllCollections(): Partial<CollectionConfig>[];
148
- getAllGlobals(): Partial<GlobalConfig>[];
149
- getAllFields(): PluginFieldExtension[];
150
- getAdminComponents(): Record<string, any>;
151
- getAdminStyles(): string[];
152
- }
153
- declare class SEOPlugin extends KyroPlugin {
154
- constructor();
155
- }
156
- declare class AnalyticsPlugin extends KyroPlugin {
157
- constructor();
158
- }
159
- declare class CommentsPlugin extends KyroPlugin {
160
- constructor();
161
- }
162
- declare class ReviewsPlugin extends KyroPlugin {
163
- constructor();
164
- }
165
- declare class WishlistPlugin extends KyroPlugin {
166
- constructor();
167
- }
168
- declare const presetPlugins: {
169
- SEO: typeof SEOPlugin;
170
- Analytics: typeof AnalyticsPlugin;
171
- Comments: typeof CommentsPlugin;
172
- Reviews: typeof ReviewsPlugin;
173
- Wishlist: typeof WishlistPlugin;
174
- };
175
-
176
- interface WhereClause {
177
- [field: string]: any;
178
- }
179
- interface AccessArgs {
180
- req: Request;
181
- user?: User;
182
- data?: unknown;
183
- doc?: unknown;
184
- id?: string;
185
- tenantId?: string;
186
- context?: Record<string, unknown>;
187
- }
188
- type AccessControl = boolean | ((args: AccessArgs) => Promise<boolean | WhereClause> | boolean | WhereClause);
189
- interface CollectionAccess {
190
- create?: AccessControl;
191
- read?: AccessControl;
192
- update?: AccessControl;
193
- delete?: AccessControl;
194
- admin?: AccessControl;
195
- unlock?: AccessControl;
196
- readVersions?: AccessControl;
197
- }
198
- interface GlobalAccess {
199
- read?: AccessControl;
200
- update?: AccessControl;
201
- }
202
- interface FieldAccess {
203
- create?: AccessControl;
204
- read?: AccessControl;
205
- update?: AccessControl;
206
- }
207
- declare function evaluateAccess(access: AccessControl, args: AccessArgs): Promise<boolean | WhereClause>;
208
- declare function mergeWhereClauses(...whereClauses: (WhereClause | boolean | undefined)[]): WhereClause;
209
- declare function getWhereClause(access: AccessControl, args: AccessArgs): Promise<WhereClause | undefined>;
210
-
211
- interface TenantContext {
212
- tenantId: string;
213
- userId: string;
214
- role?: string;
215
- roles?: string[];
216
- permissions?: string[];
217
- isSuperAdmin?: boolean;
218
- }
219
-
220
- interface S3CompatibleConfig {
221
- bucket?: string;
222
- region?: string;
223
- accessKeyId?: string;
224
- secretAccessKey?: string;
225
- endpoint?: string;
226
- cdnUrl?: string;
227
- prefix?: string;
228
- }
229
- interface R2Config {
230
- accountId?: string;
231
- accessKeyId?: string;
232
- secretAccessKey?: string;
233
- bucket?: string;
234
- cdnUrl?: string;
235
- prefix?: string;
236
- publicDevUrl?: string;
237
- }
238
- interface GCSConfig {
239
- bucket?: string;
240
- projectId?: string;
241
- clientEmail?: string;
242
- privateKey?: string;
243
- cdnUrl?: string;
244
- prefix?: string;
245
- }
246
- interface BackblazeConfig {
247
- bucket?: string;
248
- accountId?: string;
249
- applicationKeyId?: string;
250
- applicationKey?: string;
251
- cdnUrl?: string;
252
- prefix?: string;
253
- }
254
- interface BunnyConfig {
255
- storageZone?: string;
256
- apiKey?: string;
257
- cdnUrl?: string;
258
- prefix?: string;
259
- }
260
- interface FTPConfig {
261
- host?: string;
262
- port?: number;
263
- user?: string;
264
- password?: string;
265
- secure?: boolean;
266
- baseUrl?: string;
267
- prefix?: string;
268
- }
269
- interface StorageConfig {
270
- type: string;
271
- s3: S3CompatibleConfig;
272
- r2: R2Config;
273
- gcs: GCSConfig;
274
- digitalocean: S3CompatibleConfig;
275
- backblaze: BackblazeConfig;
276
- wasabi: S3CompatibleConfig;
277
- bunny: BunnyConfig;
278
- ftp: FTPConfig;
279
- cloudinary: {
280
- cloudName?: string;
281
- apiKey?: string;
282
- apiSecret?: string;
283
- folder?: string;
284
- };
285
- imgix: {
286
- domain?: string;
287
- signKey?: string;
288
- };
289
- local: {
290
- uploadDir?: string;
291
- baseUrl?: string;
292
- };
293
- }
294
- interface EmailConfig {
295
- provider?: string;
296
- host?: string;
297
- port?: number;
298
- secure?: boolean;
299
- user?: string;
300
- pass?: string;
301
- from?: string;
302
- fromName?: string;
303
- replyTo?: string;
304
- }
305
- declare class ConfigService {
306
- private db;
307
- private cache;
308
- private loaded;
309
- private static readonly SENSITIVE_KEYS;
310
- constructor(db: any);
311
- /**
312
- * Initialize the service by loading all settings from the database
313
- */
314
- load(): Promise<void>;
315
- private ensureSettingsTable;
316
- /**
317
- * Load settings from the _globals_storage-settings table (SQLite fallback)
318
- * Maps nested global structure to flat key-value cache
319
- */
320
- private loadFromGlobals;
321
- /**
322
- * Get a settings value with environment fallback
323
- */
324
- get(key: string, envKey?: string, defaultValue?: string): string | undefined;
325
- /**
326
- * Get storage configuration
327
- */
328
- getStorageConfig(): StorageConfig;
329
- /**
330
- * Get email configuration
331
- */
332
- getEmailConfig(): EmailConfig;
333
- /**
334
- * Mask sensitive values for display
335
- */
336
- maskSensitive(key: string, value: string | undefined): string | undefined;
337
- /**
338
- * Update a setting in the database
339
- */
340
- set(key: string, value: string, description?: string): Promise<void>;
341
- }
342
-
343
- interface UploadOptions {
344
- folder?: string;
345
- filename?: string;
346
- mimeType?: string;
347
- metadata?: Record<string, unknown>;
348
- }
349
- interface UploadedFile {
350
- id: string;
351
- filename: string;
352
- originalName: string;
353
- mimeType: string;
354
- size: number;
355
- url: string;
356
- thumbnailUrl?: string;
357
- width?: number;
358
- height?: number;
359
- folder?: string;
360
- provider: string;
361
- metadata?: Record<string, unknown>;
362
- createdAt: string;
363
- }
364
- interface ImageTransforms {
365
- width?: number;
366
- height?: number;
367
- fit?: "clip" | "crop" | "fill" | "fillmax" | "scale" | "max" | "min";
368
- format?: "webp" | "avif" | "jpeg" | "jpg" | "png" | "gif";
369
- quality?: number;
370
- blur?: number;
371
- sharpen?: number;
372
- /** Crop region as percentages (0-100) of the original image */
373
- cropX?: number;
374
- cropY?: number;
375
- cropWidth?: number;
376
- cropHeight?: number;
377
- }
378
- interface StorageProvider {
379
- name: string;
380
- displayName: string;
381
- supportsDynamicResize: boolean;
382
- upload(file: File, options?: UploadOptions): Promise<UploadedFile>;
383
- uploadFromUrl(url: string, options?: UploadOptions): Promise<UploadedFile>;
384
- delete(url: string): Promise<void>;
385
- rename(oldUrl: string, newKey: string): Promise<string>;
386
- getImageUrl(url: string, transforms?: ImageTransforms): string;
387
- generateThumbnail(file: UploadedFile, size: {
388
- width: number;
389
- height: number;
390
- }): Promise<string>;
391
- list(prefix?: string): Promise<UploadedFile[]>;
392
- exists(url: string): Promise<boolean>;
393
- createFolder?(folder: string): Promise<void>;
394
- deleteFolder?(folder: string): Promise<void>;
395
- }
396
-
397
- declare function resolveProvider(configService: ConfigService): Promise<StorageProvider>;
398
-
399
- interface AdminConfig {
400
- useAsTitle?: string;
401
- defaultColumns?: string[];
402
- hidden?: boolean;
403
- description?: string;
404
- hideAPIURL?: boolean;
405
- group?: string;
406
- folder?: string;
407
- parentFolder?: string;
408
- treeHierarchy?: boolean;
409
- icon?: string;
410
- order?: number;
411
- preview?: (doc: Record<string, unknown>, options: {
412
- req: unknown;
413
- token?: string;
414
- }) => string | Promise<string>;
415
- disableDuplicate?: boolean;
416
- disablePreview?: boolean;
417
- pagination?: {
418
- defaultLimit?: number;
419
- limits?: number[];
420
- };
421
- layout?: "split" | "single";
422
- smartViews?: SmartViewConfig[];
423
- }
424
- interface HierarchyConfig {
425
- parentField?: string;
426
- maxDepth?: number;
427
- slugPrefix?: boolean;
428
- }
429
- interface ProjectConfig {
430
- id: string;
431
- name: string;
432
- slug: string;
433
- description?: string;
434
- environment?: 'development' | 'staging' | 'production' | string;
435
- collections?: string[];
436
- globals?: string[];
437
- settings?: Record<string, unknown>;
438
- }
439
- interface SmartViewConfig {
440
- id: string;
441
- name: string;
442
- icon?: string;
443
- color?: string;
444
- filter: Record<string, any>;
445
- collections?: string[];
446
- description?: string;
447
- }
448
- interface OrganizationConfig {
449
- id: string;
450
- name: string;
451
- slug: string;
452
- billingEmail?: string;
453
- projects?: ProjectConfig[];
454
- roles?: Array<{
455
- name: string;
456
- description?: string;
457
- permissions?: string[];
458
- }>;
459
- }
460
- interface FieldOverrides {
461
- [fieldPath: string]: any;
462
- }
463
- interface CollectionOverrideConfig extends Partial<AdminConfig> {
464
- label?: string;
465
- singularLabel?: string;
466
- labelPlural?: string;
467
- labels?: {
468
- singular?: string;
469
- plural?: string;
470
- };
471
- hidden?: boolean;
472
- timestamps?: boolean;
473
- versions?: {
474
- drafts?: boolean;
475
- maxPerDoc?: number;
476
- autosave?: boolean;
477
- };
478
- seo?: boolean | Record<string, any>;
479
- access?: CollectionAccess;
480
- hooks?: CollectionHooks;
481
- fields?: FieldOverrides;
482
- blocks?: Record<string, any> | any[];
483
- tabs?: Record<string, any> | any[];
484
- [key: string]: any;
485
- }
486
- interface GlobalOverrideConfig extends Partial<AdminConfig> {
487
- label?: string;
488
- hidden?: boolean;
489
- access?: GlobalAccess;
490
- hooks?: GlobalHooks;
491
- fields?: FieldOverrides;
492
- blocks?: Record<string, any> | any[];
493
- tabs?: Record<string, any> | any[];
494
- [key: string]: any;
495
- }
496
- interface UploadConfig {
497
- staticDir?: string;
498
- staticURL?: string;
499
- mimeTypes?: string[];
500
- fileSize?: number;
501
- imageSizes?: ImageSize[];
502
- crop?: boolean;
503
- focalPoint?: boolean;
504
- formatOptions?: {
505
- format: "webp" | "png" | "jpg" | "avif";
506
- options?: Record<string, unknown>;
507
- };
508
- resizeOptions?: Record<string, any>;
509
- adminThumbnail?: string;
510
- }
511
- interface ImageSize {
512
- name: string;
513
- width?: number;
514
- height?: number;
515
- crop?: string;
516
- position?: string;
517
- formatOptions?: {
518
- format: "webp" | "png" | "jpg" | "avif";
519
- };
520
- generateImageName?: (doc: any) => string;
521
- }
522
- interface VersionConfig {
523
- maxPerDoc?: number;
524
- drafts?: boolean;
525
- retainDeleted?: boolean;
526
- }
527
- type DocumentStatus = 'draft' | 'published' | 'archived';
528
- interface AuthConfig {
529
- tokenExpiration?: number;
530
- verify?: boolean | {
531
- generateEmailHTML?: (args: any) => string;
532
- };
533
- maxLoginAttempts?: number;
534
- lockTime?: number;
535
- cookies?: {
536
- secure?: boolean;
537
- sameSite?: "strict" | "lax" | "none";
538
- domain?: string;
539
- };
540
- forgotPassword?: {
541
- generateEmailHTML?: (args: any) => string;
542
- generateEmailSubject?: (args: any) => string;
543
- };
544
- strategies?: Array<{
545
- name: string;
546
- authenticate: (args: any) => Promise<any>;
547
- }>;
548
- }
549
- interface CollectionConfig {
550
- slug: string;
551
- label?: string;
552
- labelPlural?: string;
553
- singularLabel?: string;
554
- admin?: AdminConfig;
555
- fields: Field[];
556
- access?: CollectionAccess;
557
- hooks?: CollectionHooks;
558
- timestamps?: boolean;
559
- tenantScoped?: boolean;
560
- tenantField?: string;
561
- upload?: UploadConfig;
562
- versions?: VersionConfig;
563
- folder?: string;
564
- hierarchy?: HierarchyConfig;
565
- auth?: boolean | AuthConfig;
566
- graphQL?: {
567
- singularName?: string;
568
- pluralName?: string;
569
- };
570
- indexes?: Array<{
571
- fields: Record<string, number | "text">;
572
- options?: Record<string, any>;
573
- }>;
574
- seo?: boolean | Record<string, any>;
575
- custom?: Record<string, any>;
576
- tabs?: Array<{
577
- label: string;
578
- fields: Field[];
579
- name?: string;
580
- }>;
581
- }
582
- interface GlobalConfig {
583
- slug: string;
584
- label?: string;
585
- folder?: string;
586
- admin?: AdminConfig;
587
- fields: Field[];
588
- access?: GlobalAccess;
589
- hooks?: GlobalHooks;
590
- versions?: VersionConfig;
591
- graphQL?: {
592
- name?: string;
593
- };
594
- typescript?: {
595
- interface?: string;
596
- };
597
- custom?: Record<string, any>;
598
- tabs?: Array<{
599
- label: string;
600
- fields: Field[];
601
- name?: string;
602
- }>;
603
- }
604
- interface FindArgs {
605
- collection: string;
606
- where?: Record<string, any>;
607
- sort?: string;
608
- limit?: number;
609
- page?: number;
610
- depth?: number;
611
- tenantId?: string;
612
- select?: string[];
613
- user?: any;
614
- context?: Record<string, any>;
615
- overrideAccess?: boolean;
616
- /** If true, returns draft docs (admin view). If false/omitted, only published docs are returned (public API). */
617
- draft?: boolean;
618
- }
619
- interface FindOneArgs {
620
- collection: string;
621
- where: Record<string, any>;
622
- tenantId?: string;
623
- draft?: boolean;
624
- depth?: number;
625
- select?: string[];
626
- }
627
- interface FindByIDArgs {
628
- collection: string;
629
- id: string;
630
- depth?: number;
631
- tenantId?: string;
632
- select?: string[];
633
- user?: any;
634
- context?: Record<string, any>;
635
- overrideAccess?: boolean;
636
- /** If true, returns document regardless of status (admin view). */
637
- draft?: boolean;
638
- }
639
- interface CreateArgs {
640
- collection: string;
641
- data: Record<string, any>;
642
- depth?: number;
643
- tenantId?: string;
644
- select?: string[];
645
- user?: any;
646
- context?: Record<string, any>;
647
- overrideAccess?: boolean;
648
- }
649
- interface UpdateArgs {
650
- collection: string;
651
- id: string;
652
- data: Record<string, any>;
653
- depth?: number;
654
- tenantId?: string;
655
- select?: string[];
656
- user?: any;
657
- context?: Record<string, any>;
658
- overrideAccess?: boolean;
659
- }
660
- interface DeleteArgs {
661
- collection: string;
662
- id: string;
663
- tenantId?: string;
664
- user?: any;
665
- context?: Record<string, any>;
666
- overrideAccess?: boolean;
667
- }
668
- interface FindResult<T = any> {
669
- docs: T[];
670
- totalDocs: number;
671
- limit: number;
672
- totalPages: number;
673
- page: number;
674
- pagingCounter: number;
675
- hasPrevPage: boolean;
676
- hasNextPage: boolean;
677
- prevPage: number | null;
678
- nextPage: number | null;
679
- }
680
- interface CreateResult<T = any> {
681
- doc: T;
682
- errors?: Array<{
683
- field: string;
684
- message: string;
685
- }>;
686
- }
687
- interface VersionRecord<T = Record<string, any>> {
688
- id: string;
689
- collection: string;
690
- documentId: string;
691
- version: number;
692
- status: DocumentStatus;
693
- data: T;
694
- createdBy?: string;
695
- createdAt: string;
696
- updatedAt: string;
697
- publishedAt?: string | null;
698
- changeDescription?: string;
699
- autosave?: boolean;
700
- }
701
- interface CreateVersionArgs<T = Record<string, any>> {
702
- collection: string;
703
- documentId: string;
704
- data: T;
705
- status: DocumentStatus;
706
- createdBy?: string;
707
- changeDescription?: string;
708
- tenantId?: string;
709
- /** When true, reuses a single version slot (find existing + update) */
710
- autosave?: boolean;
711
- }
712
- interface FindVersionsArgs {
713
- collection: string;
714
- documentId: string;
715
- tenantId?: string;
716
- limit?: number;
717
- page?: number;
718
- sort?: string;
719
- }
720
- interface BaseAdapter {
721
- init(collections: CollectionConfig[], globals: GlobalConfig[]): Promise<void>;
722
- find<T = Record<string, any>>(args: FindArgs): Promise<FindResult<T>>;
723
- findByID<T = Record<string, any>>(args: FindByIDArgs): Promise<T | null>;
724
- create<T = Record<string, any>>(args: CreateArgs): Promise<T>;
725
- update<T = Record<string, any>>(args: UpdateArgs): Promise<T>;
726
- delete<T = Record<string, any>>(args: DeleteArgs): Promise<T>;
727
- count(args: {
728
- collection: string;
729
- where?: Record<string, any>;
730
- tenantId?: string;
731
- }): Promise<number>;
732
- findOne(args: FindOneArgs): Promise<any>;
733
- findVersions(args: FindVersionsArgs): Promise<FindResult<VersionRecord>>;
734
- findVersionByID(args: {
735
- collection: string;
736
- versionId: string;
737
- tenantId?: string;
738
- }): Promise<VersionRecord | null>;
739
- createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
740
- deleteVersions(args: {
741
- collection: string;
742
- documentId: string;
743
- keepLatest?: number;
744
- tenantId?: string;
745
- }): Promise<void>;
746
- updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
747
- migrate?(): Promise<void>;
748
- rollback?(): Promise<void>;
749
- connect(): Promise<void>;
750
- disconnect(): Promise<void>;
751
- transaction?<T>(fn: (tx: any) => Promise<T>): Promise<T>;
752
- setTenantContext(context: TenantContext | undefined): void;
753
- getTenantContext(): TenantContext | undefined;
754
- }
755
- interface AdapterConfig {
756
- type: "drizzle" | "mongodb";
757
- client: any;
758
- schema?: any;
759
- connectionOptions?: Record<string, any>;
760
- }
761
- interface KyroConfig {
762
- collections?: CollectionConfig[];
763
- globals?: GlobalConfig[];
764
- projects?: ProjectConfig[];
765
- organizations?: OrganizationConfig[];
766
- adapter: BaseAdapter;
767
- storage?: StorageProvider;
768
- plugins?: KyroPlugin[];
769
- auth?: boolean | {
770
- secret?: string;
771
- tokenExpiration?: number;
772
- cookie?: {
773
- secure?: boolean;
774
- sameSite?: "strict" | "lax" | "none";
775
- domain?: string;
776
- };
777
- checkSession?: boolean;
778
- };
779
- authAdapter?: any;
780
- cors?: {
781
- origins?: string[];
782
- credentials?: boolean;
783
- };
784
- admin?: {
785
- meta?: {
786
- title?: string;
787
- description?: string;
788
- ogImage?: string;
789
- };
790
- dateFormat?: string;
791
- avatar?: "default" | "gravatar";
792
- disable?: boolean;
793
- indexRoute?: string;
794
- components?: Record<string, any>;
795
- collectionOverrides?: Record<string, CollectionOverrideConfig>;
796
- globalOverrides?: Record<string, GlobalOverrideConfig>;
797
- smartViews?: SmartViewConfig[];
798
- };
799
- upload?: {
800
- limits?: {
801
- fileSize?: number;
802
- };
803
- };
804
- graphQL?: {
805
- maxComplexity?: number;
806
- disablePlayground?: boolean;
807
- };
808
- typescript?: {
809
- outputFile?: string;
810
- };
811
- localization?: {
812
- locales: string[];
813
- defaultLocale: string;
814
- };
815
- rateLimit?: {
816
- window?: number;
817
- max?: number;
818
- };
819
- debug?: boolean;
820
- }
821
-
822
- export { getWhereClause as $, type AccessArgs as A, type BaseAdapter as B, type CollectionConfig as C, type DeleteArgs as D, type EmailConfig as E, type FindArgs as F, type GlobalConfig as G, type HierarchyConfig as H, type ImageSize as I, type PluginHooks as J, KyroPlugin as K, type ProjectConfig as L, ReviewsPlugin as M, SEOPlugin as N, type OrganizationConfig as O, PluginManager as P, type SmartViewConfig as Q, type Request as R, type StorageConfig as S, type TenantContext as T, type UpdateArgs as U, type VersionRecord as V, type UploadConfig as W, type VersionConfig as X, type WhereClause as Y, WishlistPlugin as Z, evaluateAccess as _, type StorageProvider as a, mergeWhereClauses as a0, presetPlugins as a1, resolveProvider as a2, runFieldHooks as a3, runHooks as a4, type FindResult as b, type FindByIDArgs as c, type CreateArgs as d, type FindOneArgs as e, type FindVersionsArgs as f, type CreateVersionArgs as g, type KyroConfig as h, type User as i, type AccessControl as j, type AdapterConfig as k, type AdminConfig as l, AnalyticsPlugin as m, type AuthConfig as n, type CollectionAccess as o, type CollectionHooks as p, CommentsPlugin as q, ConfigService as r, type CreateResult as s, type FieldAccess as t, type FieldHooks as u, type GlobalAccess as v, type GlobalHooks as w, type Hook as x, type HookArgs as y, type PluginAPI as z };