@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
package/dist/client.d.cts DELETED
@@ -1,1266 +0,0 @@
1
- /**
2
- * Serializable condition for conditional field visibility.
3
- * Unlike function conditions, these survive JSON serialization
4
- * and can be used in admin configs that are built at compile time.
5
- */
6
- type DeclarativeCondition = {
7
- /** The field name to evaluate (resolved from root form data, supports dot-notation) */
8
- field: string;
9
- /** Show the field when the target field equals this value */
10
- equals?: string | number | boolean;
11
- /** Show the field when the target field does NOT equal this value */
12
- notEquals?: string | number | boolean;
13
- /** Show the field when the target field's value is one of these */
14
- in?: (string | number | boolean)[];
15
- /** Show the field when the target field's value is greater than this */
16
- greaterThan?: number;
17
- } | {
18
- and: DeclarativeCondition[];
19
- } | {
20
- or: DeclarativeCondition[];
21
- };
22
- interface FieldAdmin {
23
- description?: string;
24
- placeholder?: string;
25
- readOnly?: boolean | ((data: Record<string, unknown>, siblingData: Record<string, unknown>) => boolean);
26
- hidden?: boolean | ((data: Record<string, unknown>, siblingData: Record<string, unknown>) => boolean);
27
- width?: string;
28
- position?: "sidebar" | "main";
29
- autoGenerate?: string;
30
- action?: string;
31
- method?: string;
32
- inline?: boolean;
33
- compact?: boolean;
34
- display?: "pills" | "default";
35
- collapsible?: boolean;
36
- initCollapsed?: boolean;
37
- pickerMode?: "drawer" | "dropdown";
38
- condition?: ((data: Record<string, unknown>, siblingData: Record<string, unknown>) => boolean) | DeclarativeCondition;
39
- }
40
- interface FieldAccess {
41
- read?: (args: {
42
- user: any;
43
- req?: Request;
44
- doc?: any;
45
- data?: any;
46
- siblingData?: any;
47
- }) => boolean | Promise<boolean>;
48
- update?: (args: {
49
- user: any;
50
- req?: Request;
51
- doc?: any;
52
- data?: any;
53
- siblingData?: any;
54
- }) => boolean | Promise<boolean>;
55
- create?: (args: {
56
- user: any;
57
- req?: Request;
58
- doc?: any;
59
- data?: any;
60
- siblingData?: any;
61
- }) => boolean | Promise<boolean>;
62
- }
63
- interface BaseField {
64
- name: string;
65
- label?: string;
66
- required?: boolean;
67
- unique?: boolean;
68
- indexed?: boolean;
69
- defaultValue?: any;
70
- admin?: FieldAdmin;
71
- access?: FieldAccess;
72
- validate?: (value: any, options: ValidateOptions) => string | true | Promise<string | true>;
73
- hooks?: {
74
- beforeValidate?: Hook$1[];
75
- beforeChange?: Hook$1[];
76
- afterChange?: Hook$1[];
77
- afterRead?: Hook$1[];
78
- };
79
- }
80
- interface ValidateOptions {
81
- data?: Record<string, any>;
82
- siblingData?: Record<string, any>;
83
- user?: unknown;
84
- operation?: string;
85
- required?: boolean;
86
- }
87
- type Hook$1 = (args: any) => Promise<any> | any;
88
- type TextFieldVariant = "text" | "email" | "password" | "url" | "id";
89
- interface TextField extends BaseField {
90
- type: "text";
91
- variant?: TextFieldVariant;
92
- minLength?: number;
93
- maxLength?: number;
94
- pattern?: string;
95
- hasMany?: boolean;
96
- localized?: boolean;
97
- }
98
- interface NumberField extends BaseField {
99
- type: "number";
100
- min?: number;
101
- max?: number;
102
- step?: number;
103
- integer?: boolean;
104
- hasMany?: boolean;
105
- }
106
- interface CheckboxField extends BaseField {
107
- type: "checkbox";
108
- }
109
- interface DateField extends BaseField {
110
- type: "date";
111
- minDate?: string;
112
- maxDate?: string;
113
- time?: boolean;
114
- }
115
- interface EmailField extends BaseField {
116
- type: "email";
117
- }
118
- interface PasswordField extends BaseField {
119
- type: "password";
120
- }
121
- interface TextareaField extends BaseField {
122
- type: "textarea";
123
- minLength?: number;
124
- maxLength?: number;
125
- rows?: number;
126
- localized?: boolean;
127
- }
128
- interface SelectField extends BaseField {
129
- type: "select";
130
- options?: Array<{
131
- label: string;
132
- value: string;
133
- }> | ((args: {
134
- data: any;
135
- siblingData: any;
136
- }) => Array<{
137
- label: string;
138
- value: string;
139
- }>);
140
- dynamicOptions?: string;
141
- hasMany?: boolean;
142
- defaultValue?: string | string[];
143
- }
144
- interface RadioField extends BaseField {
145
- type: "radio";
146
- options: Array<{
147
- label: string;
148
- value: string;
149
- }> | ((args: {
150
- data: any;
151
- siblingData: any;
152
- }) => Array<{
153
- label: string;
154
- value: string;
155
- }>);
156
- defaultValue?: string;
157
- }
158
- interface ColorField extends BaseField {
159
- type: "color";
160
- format?: "hex" | "rgb" | "hsl";
161
- defaultValue?: string;
162
- }
163
- interface ImageField extends BaseField {
164
- type: "image";
165
- minCount?: number;
166
- maxCount?: number;
167
- allowedTypes?: string[];
168
- maxSize?: number;
169
- }
170
- type RichTextBlock = Record<string, any>;
171
- interface RichTextField extends BaseField {
172
- type: "richtext";
173
- defaultValue?: Record<string, any>;
174
- localized?: boolean;
175
- }
176
- interface JSONField extends BaseField {
177
- type: "json";
178
- defaultValue?: Record<string, any>;
179
- }
180
- interface CodeField extends BaseField {
181
- type: "code";
182
- language?: string;
183
- defaultValue?: string;
184
- }
185
- interface UploadField extends BaseField {
186
- type: "upload";
187
- relationTo: string;
188
- hasMany?: boolean;
189
- maxDepth?: number;
190
- defaultValue?: string;
191
- }
192
- interface MarkdownField extends BaseField {
193
- type: "markdown";
194
- localized?: boolean;
195
- defaultValue?: string;
196
- }
197
- interface RelationshipField extends BaseField {
198
- type: "relationship";
199
- /**
200
- * The collection slug(s) to relate to.
201
- * Use "*" to allow relating to ANY registered collection.
202
- */
203
- relationTo: string | string[];
204
- hasMany?: boolean;
205
- maxDepth?: number;
206
- filterOptions?: (args: {
207
- data: any;
208
- user: any;
209
- }) => Record<string, any>;
210
- defaultValue?: string | string[];
211
- }
212
- interface ArrayField extends BaseField {
213
- type: "array";
214
- fields: Field[];
215
- minRows?: number;
216
- maxRows?: number;
217
- labels?: {
218
- singular?: string;
219
- plural?: string;
220
- };
221
- defaultValue?: Record<string, any>[];
222
- }
223
- interface ListField extends BaseField {
224
- type: "list";
225
- defaultValue?: string[];
226
- }
227
- interface GroupField extends BaseField {
228
- type: "group";
229
- fields: Field[];
230
- defaultValue?: Record<string, any>;
231
- }
232
- interface BlockImage {
233
- url: string;
234
- alt?: string;
235
- }
236
- interface BlockAdmin {
237
- group?: string;
238
- description?: string;
239
- images?: {
240
- icon?: BlockImage | string;
241
- thumbnail?: BlockImage | string;
242
- };
243
- }
244
- interface Block {
245
- slug: string;
246
- label: string;
247
- fields: Field[];
248
- imageURL?: string;
249
- admin?: BlockAdmin;
250
- }
251
- interface BlocksField extends BaseField {
252
- type: "blocks";
253
- blocks?: Block[];
254
- minRows?: number;
255
- maxRows?: number;
256
- defaultValue?: Array<{
257
- blockType: string;
258
- [key: string]: any;
259
- }>;
260
- }
261
- interface RowField extends Omit<BaseField, "name"> {
262
- type: "row";
263
- fields: Field[];
264
- name?: string;
265
- }
266
- interface CollapsibleField extends Omit<BaseField, "name"> {
267
- type: "collapsible";
268
- fields: Field[];
269
- label: string;
270
- name?: string;
271
- }
272
- interface TabsField extends Omit<BaseField, "name"> {
273
- type: "tabs";
274
- tabs: Array<{
275
- label: string;
276
- fields: Field[];
277
- name?: string;
278
- }>;
279
- name?: string;
280
- }
281
- interface ButtonField extends BaseField {
282
- type: "button";
283
- label: string;
284
- action?: string;
285
- method?: string;
286
- inline?: boolean;
287
- }
288
- interface ActionField extends BaseField {
289
- type: "action";
290
- label: string;
291
- action?: string;
292
- method?: string;
293
- inline?: boolean;
294
- }
295
- interface SecretField extends BaseField {
296
- type: "secret";
297
- }
298
- interface IconField extends BaseField {
299
- type: "icon";
300
- }
301
- interface EmbeddingField extends BaseField {
302
- type: "embedding";
303
- sourceField: string;
304
- provider?: "openai" | "cohere" | "groq" | "local-fastembed";
305
- model?: string;
306
- dimensions?: number;
307
- }
308
- type Field = TextField | NumberField | CheckboxField | DateField | EmailField | PasswordField | TextareaField | SelectField | RadioField | ColorField | ImageField | RichTextField | JSONField | CodeField | UploadField | MarkdownField | RelationshipField | ArrayField | ListField | GroupField | BlocksField | RowField | CollapsibleField | TabsField | ButtonField | ActionField | SecretField | IconField | EmbeddingField;
309
- type FieldType = Field["type"];
310
- declare const ALL_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "email", "password", "textarea", "select", "radio", "color", "icon", "richtext", "json", "code", "upload", "image", "markdown", "embedding", "relationship", "array", "group", "blocks", "row", "collapsible", "tabs"];
311
-
312
- interface Request$1 {
313
- body?: any;
314
- headers: Record<string, string>;
315
- method?: string;
316
- url?: string;
317
- cookies?: Record<string, string>;
318
- query?: Record<string, any>;
319
- }
320
- interface User {
321
- id: string;
322
- email: string;
323
- role: string;
324
- tenantId?: string;
325
- [key: string]: any;
326
- }
327
- interface HookArgs<T = any> {
328
- collection?: string;
329
- global?: string;
330
- data?: T;
331
- originalDoc?: T;
332
- doc?: T;
333
- req: Request$1;
334
- user?: User;
335
- operation: 'create' | 'read' | 'update' | 'delete';
336
- tenantId?: string;
337
- field?: string;
338
- siblingData?: Record<string, any>;
339
- value?: any;
340
- previousValue?: any;
341
- context?: Record<string, any>;
342
- }
343
- type Hook<T = any> = (args: HookArgs<T>) => Promise<T | void> | T | void;
344
- interface CollectionHooks {
345
- beforeValidate?: Hook[];
346
- beforeChange?: Hook[];
347
- afterChange?: Hook[];
348
- beforeRead?: Hook[];
349
- afterRead?: Hook[];
350
- beforeDelete?: Hook[];
351
- afterDelete?: Hook[];
352
- beforeLogin?: Hook[];
353
- afterLogin?: Hook[];
354
- afterLogout?: Hook[];
355
- afterRefresh?: Hook[];
356
- afterForgotPassword?: Hook[];
357
- }
358
- interface GlobalHooks {
359
- beforeValidate?: Hook[];
360
- beforeChange?: Hook[];
361
- afterChange?: Hook[];
362
- beforeRead?: Hook[];
363
- afterRead?: Hook[];
364
- }
365
-
366
- interface PluginHooks {
367
- beforeInit?: Hook[];
368
- afterInit?: Hook[];
369
- beforeRegisterCollections?: Hook[];
370
- afterRegisterCollections?: Hook[];
371
- beforeRegisterGlobals?: Hook[];
372
- afterRegisterGlobals?: Hook[];
373
- beforeServerStart?: Hook[];
374
- afterServerStart?: Hook[];
375
- beforeServerStop?: Hook[];
376
- afterServerStop?: Hook[];
377
- }
378
- interface PluginCollectionExtension {
379
- slug: string;
380
- config: Partial<CollectionConfig>;
381
- }
382
- interface PluginGlobalExtension {
383
- slug: string;
384
- config: Partial<GlobalConfig>;
385
- }
386
- interface PluginFieldExtension {
387
- collectionSlug: string;
388
- field: Field;
389
- }
390
- interface PluginAPI {
391
- registry: {
392
- getCollection: (slug: string) => CollectionConfig | undefined;
393
- getCollections: () => CollectionConfig[];
394
- getGlobal: (slug: string) => GlobalConfig | undefined;
395
- addCollection: (config: CollectionConfig) => void;
396
- addGlobal: (config: GlobalConfig) => void;
397
- extendCollection: (slug: string, extension: Partial<CollectionConfig>) => void;
398
- extendGlobal: (slug: string, extension: Partial<GlobalConfig>) => void;
399
- addField: (collectionSlug: string, field: Field, position?: number) => void;
400
- };
401
- hooks: {
402
- register: (event: string, handler: Hook) => void;
403
- unregister: (event: string, handler: Hook) => void;
404
- };
405
- config: {
406
- get: (key: string) => any;
407
- set: (key: string, value: any) => void;
408
- };
409
- db: any;
410
- }
411
- declare abstract class KyroPlugin {
412
- name: string;
413
- displayName?: string;
414
- adminEntry?: string;
415
- version?: string;
416
- description?: string;
417
- hooks: PluginHooks;
418
- collections: Partial<CollectionConfig>[];
419
- globals: Partial<GlobalConfig>[];
420
- fields: PluginFieldExtension[];
421
- extensions: {
422
- collections: PluginCollectionExtension[];
423
- globals: PluginGlobalExtension[];
424
- };
425
- adminComponents: Record<string, any>;
426
- adminStyles: string[];
427
- serverMiddleware?: (app: any) => void;
428
- clientMiddleware?: (req: any) => any;
429
- constructor(name: string);
430
- init?(api: PluginAPI): Promise<void>;
431
- beforeInit?(api: PluginAPI): Promise<void>;
432
- afterInit?(api: PluginAPI): Promise<void>;
433
- getCollections?(): Partial<CollectionConfig>[];
434
- getGlobals?(): Partial<GlobalConfig>[];
435
- getHooks?(): PluginHooks;
436
- }
437
-
438
- interface WhereClause {
439
- [field: string]: any;
440
- }
441
- interface AccessArgs {
442
- req: Request$1;
443
- user?: User;
444
- data?: unknown;
445
- doc?: unknown;
446
- id?: string;
447
- tenantId?: string;
448
- context?: Record<string, unknown>;
449
- }
450
- type AccessControl = boolean | ((args: AccessArgs) => Promise<boolean | WhereClause> | boolean | WhereClause);
451
- interface CollectionAccess {
452
- create?: AccessControl;
453
- read?: AccessControl;
454
- update?: AccessControl;
455
- delete?: AccessControl;
456
- admin?: AccessControl;
457
- unlock?: AccessControl;
458
- readVersions?: AccessControl;
459
- }
460
- interface GlobalAccess {
461
- read?: AccessControl;
462
- update?: AccessControl;
463
- }
464
-
465
- type AuditAction = "login" | "logout" | "login_failed" | "register" | "verify_email" | "password_change" | "password_reset" | "password_reset_request" | "role_change" | "permission_change" | "document_create" | "document_update" | "document_delete" | "settings_change" | "user_lockout" | "user_unlock" | "user_create" | "user_update" | "user_delete" | "api_request" | "api_key_create" | "api_key_update" | "api_key_rotate" | "api_key_delete" | "tenant_create" | "tenant_delete";
466
- interface AuditLog {
467
- id: string;
468
- timestamp: Date;
469
- action: AuditAction;
470
- userId?: string;
471
- userEmail?: string;
472
- role?: string;
473
- resource: string;
474
- resourceId?: string;
475
- changes?: {
476
- field: string;
477
- old: any;
478
- new: any;
479
- }[];
480
- ipAddress?: string;
481
- userAgent?: string;
482
- success: boolean;
483
- error?: string;
484
- metadata?: Record<string, any>;
485
- }
486
- interface AuditLogFilter {
487
- userId?: string;
488
- action?: AuditAction | AuditAction[];
489
- resource?: string;
490
- resourceId?: string;
491
- success?: boolean;
492
- startDate?: Date;
493
- endDate?: Date;
494
- limit?: number;
495
- offset?: number;
496
- }
497
-
498
- interface AuthUser {
499
- id: string;
500
- name?: string;
501
- email: string;
502
- passwordHash?: string;
503
- role: UserRole;
504
- avatar?: string;
505
- tenantId?: string;
506
- metadata?: Record<string, unknown>;
507
- emailVerified?: boolean;
508
- locked?: boolean;
509
- lastLogin?: string;
510
- failedLoginAttempts?: number;
511
- createdAt: string;
512
- updatedAt: string;
513
- }
514
- type UserRole = "super_admin" | "admin" | "editor" | "author" | "customer" | "guest";
515
- interface Session {
516
- id: string;
517
- userId: string;
518
- token: string;
519
- refreshToken?: string;
520
- expiresAt: string;
521
- createdAt: string;
522
- ipAddress?: string;
523
- userAgent?: string;
524
- }
525
- interface JWTPayload {
526
- sub: string;
527
- email: string;
528
- role: UserRole;
529
- tenantId?: string;
530
- iat?: number;
531
- exp?: number;
532
- sid?: string;
533
- }
534
- interface AuthTokenConfig {
535
- secret: string;
536
- expiresIn?: string | number;
537
- refreshExpiresIn?: string | number;
538
- issuer?: string;
539
- audience?: string[];
540
- saltRounds?: number;
541
- }
542
- interface LoginCredentials {
543
- email: string;
544
- password: string;
545
- }
546
- interface RegisterData {
547
- email: string;
548
- password: string;
549
- role?: UserRole;
550
- tenantId?: string;
551
- }
552
- interface AuthResult {
553
- success: boolean;
554
- user?: AuthUser;
555
- session?: Session;
556
- token?: string;
557
- error?: string;
558
- }
559
- interface AuthAdapter {
560
- createUser(data: {
561
- email: string;
562
- password: string;
563
- name?: string;
564
- role?: UserRole;
565
- avatar?: string;
566
- tenantId?: string;
567
- }): Promise<AuthUser>;
568
- findUserByEmail(email: string): Promise<AuthUser | null>;
569
- findUserById(id: string): Promise<AuthUser | null>;
570
- updateUser(id: string, data: Partial<AuthUser> & {
571
- password?: string;
572
- }): Promise<AuthUser | null>;
573
- deleteUser(id: string): Promise<boolean>;
574
- verifyPassword(email: string, password: string): Promise<AuthUser | null>;
575
- hashPassword(password: string): Promise<string>;
576
- createSession(userId: string, data?: {
577
- ipAddress?: string;
578
- userAgent?: string;
579
- }): Promise<Session>;
580
- findSessionByToken(token: string): Promise<Session | null>;
581
- findSessionByRefreshToken(refreshToken: string): Promise<Session | null>;
582
- deleteSession(sessionId: string): Promise<boolean>;
583
- deleteUserSessions(userId: string): Promise<number>;
584
- createEmailVerificationToken(userId: string): Promise<{
585
- token: string;
586
- expiresAt: Date;
587
- }>;
588
- verifyEmailToken(token: string): Promise<{
589
- success: boolean;
590
- userId?: string;
591
- error?: string;
592
- }>;
593
- createPasswordResetToken(email: string): Promise<{
594
- token: string;
595
- expiresAt: Date;
596
- error?: string;
597
- }>;
598
- resetPasswordWithToken(token: string, newPassword: string): Promise<{
599
- success: boolean;
600
- error?: string;
601
- }>;
602
- hasAnyUsers?(): Promise<boolean>;
603
- connect?(): Promise<void>;
604
- disconnect?(): Promise<void>;
605
- addPasswordToHistory?(userId: string, passwordHash: string): Promise<void>;
606
- getPasswordHistory?(userId: string, count?: number): Promise<string[]>;
607
- isPasswordInHistory?(password: string, userId: string, historyCount?: number): Promise<boolean>;
608
- findAuditLogs(filter: AuditLogFilter): Promise<{
609
- logs: AuditLog[];
610
- total: number;
611
- }>;
612
- createAuditLog(data: Omit<AuditLog, "id" | "timestamp">): Promise<AuditLog>;
613
- }
614
-
615
- interface TenantContext {
616
- tenantId: string;
617
- userId: string;
618
- role?: string;
619
- roles?: string[];
620
- permissions?: string[];
621
- isSuperAdmin?: boolean;
622
- }
623
-
624
- interface UploadOptions {
625
- folder?: string;
626
- filename?: string;
627
- mimeType?: string;
628
- metadata?: Record<string, unknown>;
629
- }
630
- interface UploadedFile {
631
- id: string;
632
- filename: string;
633
- originalName: string;
634
- mimeType: string;
635
- size: number;
636
- url: string;
637
- thumbnailUrl?: string;
638
- width?: number;
639
- height?: number;
640
- folder?: string;
641
- provider: string;
642
- metadata?: Record<string, unknown>;
643
- createdAt: string;
644
- }
645
- interface ImageTransforms {
646
- width?: number;
647
- height?: number;
648
- fit?: "clip" | "crop" | "fill" | "fillmax" | "scale" | "max" | "min";
649
- format?: "webp" | "avif" | "jpeg" | "jpg" | "png" | "gif";
650
- quality?: number;
651
- blur?: number;
652
- sharpen?: number;
653
- /** Crop region as percentages (0-100) of the original image */
654
- cropX?: number;
655
- cropY?: number;
656
- cropWidth?: number;
657
- cropHeight?: number;
658
- }
659
- interface StorageProvider {
660
- name: string;
661
- displayName: string;
662
- supportsDynamicResize: boolean;
663
- upload(file: File, options?: UploadOptions): Promise<UploadedFile>;
664
- uploadFromUrl(url: string, options?: UploadOptions): Promise<UploadedFile>;
665
- delete(url: string): Promise<void>;
666
- rename(oldUrl: string, newKey: string): Promise<string>;
667
- getImageUrl(url: string, transforms?: ImageTransforms): string;
668
- generateThumbnail(file: UploadedFile, size: {
669
- width: number;
670
- height: number;
671
- }): Promise<string>;
672
- list(prefix?: string): Promise<UploadedFile[]>;
673
- exists(url: string): Promise<boolean>;
674
- createFolder?(folder: string): Promise<void>;
675
- deleteFolder?(folder: string): Promise<void>;
676
- }
677
-
678
- interface AdminConfig {
679
- /** Field to display as the title/name of the document in list and relation dropdowns (e.g. "title", "name", "orderNumber") */
680
- useAsTitle?: string;
681
- /** Array of field names to display as default table columns in the collection list view */
682
- defaultColumns?: string[];
683
- /** Hide this collection completely from the sidebar navigation */
684
- hidden?: boolean;
685
- /** Subtitle or description shown under the collection header in the admin UI */
686
- description?: string;
687
- /** Hide the quick API endpoint URL badge from the admin collection view */
688
- hideAPIURL?: boolean;
689
- /** Sidebar navigation category section name (e.g. "Commerce", "Restaurant Menu", "Content") */
690
- group?: string;
691
- /** Alias for `group`. Organizes collection under a specific sidebar group/folder */
692
- folder?: string;
693
- /** Sub-folder for nested navigation grouping */
694
- parentFolder?: string;
695
- /** Enable tree hierarchy view for nested hierarchical collections (e.g. parent/child pages) */
696
- treeHierarchy?: boolean;
697
- /** Icon name from Lucide (e.g. "lucide:Utensils", "Utensils") or Heroicons (e.g. "hero:Sparkles", "hero-solid:Fire") */
698
- icon?: string;
699
- /** Sort order index within its sidebar navigation group (lower numbers appear first) */
700
- order?: number;
701
- /** Function returning live frontend preview URL with draft tokens */
702
- preview?: (doc: Record<string, unknown>, options: {
703
- req: unknown;
704
- token?: string;
705
- }) => string | Promise<string>;
706
- /** Disable the duplicate document button */
707
- disableDuplicate?: boolean;
708
- /** Disable the live preview split panel */
709
- disablePreview?: boolean;
710
- /** Pagination settings for list view */
711
- pagination?: {
712
- defaultLimit?: number;
713
- limits?: number[];
714
- };
715
- /** Form layout mode: "split" (with sidebar fields) or "single" column */
716
- layout?: "split" | "single";
717
- /** Custom smart view filters configured for this collection */
718
- smartViews?: SmartViewConfig[];
719
- }
720
- interface HierarchyConfig {
721
- parentField?: string;
722
- maxDepth?: number;
723
- slugPrefix?: boolean;
724
- }
725
- interface ProjectConfig {
726
- id: string;
727
- name: string;
728
- slug: string;
729
- description?: string;
730
- environment?: 'development' | 'staging' | 'production' | string;
731
- collections?: string[];
732
- globals?: string[];
733
- settings?: Record<string, unknown>;
734
- }
735
- interface SmartViewConfig {
736
- id: string;
737
- name: string;
738
- icon?: string;
739
- color?: string;
740
- filter: Record<string, any>;
741
- collections?: string[];
742
- description?: string;
743
- }
744
- interface OrganizationConfig {
745
- id: string;
746
- name: string;
747
- slug: string;
748
- billingEmail?: string;
749
- projects?: ProjectConfig[];
750
- roles?: Array<{
751
- name: string;
752
- description?: string;
753
- permissions?: string[];
754
- }>;
755
- }
756
- interface FieldOverrides {
757
- [fieldPath: string]: any;
758
- }
759
- interface CollectionOverrideConfig extends Partial<AdminConfig> {
760
- label?: string;
761
- singularLabel?: string;
762
- labelPlural?: string;
763
- labels?: {
764
- singular?: string;
765
- plural?: string;
766
- };
767
- hidden?: boolean;
768
- timestamps?: boolean;
769
- versions?: {
770
- drafts?: boolean;
771
- maxPerDoc?: number;
772
- autosave?: boolean;
773
- };
774
- seo?: boolean | Record<string, any>;
775
- access?: CollectionAccess;
776
- hooks?: CollectionHooks;
777
- fields?: FieldOverrides;
778
- blocks?: Record<string, any> | any[];
779
- tabs?: Record<string, any> | any[];
780
- [key: string]: any;
781
- }
782
- interface GlobalOverrideConfig extends Partial<AdminConfig> {
783
- label?: string;
784
- hidden?: boolean;
785
- access?: GlobalAccess;
786
- hooks?: GlobalHooks;
787
- fields?: FieldOverrides;
788
- blocks?: Record<string, any> | any[];
789
- tabs?: Record<string, any> | any[];
790
- [key: string]: any;
791
- }
792
- interface UploadConfig {
793
- staticDir?: string;
794
- staticURL?: string;
795
- mimeTypes?: string[];
796
- fileSize?: number;
797
- imageSizes?: ImageSize[];
798
- crop?: boolean;
799
- focalPoint?: boolean;
800
- formatOptions?: {
801
- format: "webp" | "png" | "jpg" | "avif";
802
- options?: Record<string, unknown>;
803
- };
804
- resizeOptions?: Record<string, any>;
805
- adminThumbnail?: string;
806
- }
807
- interface ImageSize {
808
- name: string;
809
- width?: number;
810
- height?: number;
811
- crop?: string;
812
- position?: string;
813
- formatOptions?: {
814
- format: "webp" | "png" | "jpg" | "avif";
815
- };
816
- generateImageName?: (doc: any) => string;
817
- }
818
- interface VersionConfig {
819
- maxPerDoc?: number;
820
- drafts?: boolean;
821
- retainDeleted?: boolean;
822
- }
823
- type DocumentStatus = 'draft' | 'published' | 'archived';
824
- interface AuthConfig {
825
- tokenExpiration?: number;
826
- verify?: boolean | {
827
- generateEmailHTML?: (args: any) => string;
828
- };
829
- maxLoginAttempts?: number;
830
- lockTime?: number;
831
- cookies?: {
832
- secure?: boolean;
833
- sameSite?: "strict" | "lax" | "none";
834
- domain?: string;
835
- };
836
- forgotPassword?: {
837
- generateEmailHTML?: (args: any) => string;
838
- generateEmailSubject?: (args: any) => string;
839
- };
840
- strategies?: Array<{
841
- name: string;
842
- authenticate: (args: any) => Promise<any>;
843
- }>;
844
- }
845
- interface CollectionConfig {
846
- slug: string;
847
- label?: string;
848
- labelPlural?: string;
849
- singularLabel?: string;
850
- admin?: AdminConfig;
851
- fields: Field[];
852
- access?: CollectionAccess;
853
- hooks?: CollectionHooks;
854
- timestamps?: boolean;
855
- tenantScoped?: boolean;
856
- tenantField?: string;
857
- upload?: UploadConfig;
858
- versions?: VersionConfig;
859
- folder?: string;
860
- hierarchy?: HierarchyConfig;
861
- auth?: boolean | AuthConfig;
862
- graphQL?: {
863
- singularName?: string;
864
- pluralName?: string;
865
- };
866
- indexes?: Array<{
867
- fields: Record<string, number | "text">;
868
- options?: Record<string, any>;
869
- }>;
870
- seo?: boolean | Record<string, any>;
871
- custom?: Record<string, any>;
872
- tabs?: Array<{
873
- label: string;
874
- fields: Field[];
875
- name?: string;
876
- }>;
877
- }
878
- interface GlobalConfig {
879
- slug: string;
880
- label?: string;
881
- folder?: string;
882
- admin?: AdminConfig;
883
- fields: Field[];
884
- access?: GlobalAccess;
885
- hooks?: GlobalHooks;
886
- versions?: VersionConfig;
887
- graphQL?: {
888
- name?: string;
889
- };
890
- typescript?: {
891
- interface?: string;
892
- };
893
- custom?: Record<string, any>;
894
- tabs?: Array<{
895
- label: string;
896
- fields: Field[];
897
- name?: string;
898
- }>;
899
- }
900
- interface FindArgs {
901
- collection: string;
902
- where?: Record<string, any>;
903
- sort?: string;
904
- limit?: number;
905
- page?: number;
906
- depth?: number;
907
- tenantId?: string;
908
- select?: string[];
909
- user?: any;
910
- context?: Record<string, any>;
911
- overrideAccess?: boolean;
912
- /** If true, returns draft docs (admin view). If false/omitted, only published docs are returned (public API). */
913
- draft?: boolean;
914
- }
915
- interface FindOneArgs {
916
- collection: string;
917
- where: Record<string, any>;
918
- tenantId?: string;
919
- draft?: boolean;
920
- depth?: number;
921
- select?: string[];
922
- }
923
- interface FindByIDArgs {
924
- collection: string;
925
- id: string;
926
- depth?: number;
927
- tenantId?: string;
928
- select?: string[];
929
- user?: any;
930
- context?: Record<string, any>;
931
- overrideAccess?: boolean;
932
- /** If true, returns document regardless of status (admin view). */
933
- draft?: boolean;
934
- }
935
- interface CreateArgs {
936
- collection: string;
937
- data: Record<string, any>;
938
- depth?: number;
939
- tenantId?: string;
940
- select?: string[];
941
- user?: any;
942
- context?: Record<string, any>;
943
- overrideAccess?: boolean;
944
- }
945
- interface UpdateArgs {
946
- collection: string;
947
- id: string;
948
- data: Record<string, any>;
949
- depth?: number;
950
- tenantId?: string;
951
- select?: string[];
952
- user?: any;
953
- context?: Record<string, any>;
954
- overrideAccess?: boolean;
955
- }
956
- interface DeleteArgs {
957
- collection: string;
958
- id: string;
959
- tenantId?: string;
960
- user?: any;
961
- context?: Record<string, any>;
962
- overrideAccess?: boolean;
963
- }
964
- interface FindResult<T = any> {
965
- docs: T[];
966
- totalDocs: number;
967
- limit: number;
968
- totalPages: number;
969
- page: number;
970
- pagingCounter: number;
971
- hasPrevPage: boolean;
972
- hasNextPage: boolean;
973
- prevPage: number | null;
974
- nextPage: number | null;
975
- }
976
- interface VersionRecord<T = Record<string, any>> {
977
- id: string;
978
- collection: string;
979
- documentId: string;
980
- version: number;
981
- status: DocumentStatus;
982
- data: T;
983
- createdBy?: string;
984
- createdAt: string;
985
- updatedAt: string;
986
- publishedAt?: string | null;
987
- changeDescription?: string;
988
- autosave?: boolean;
989
- }
990
- interface CreateVersionArgs<T = Record<string, any>> {
991
- collection: string;
992
- documentId: string;
993
- data: T;
994
- status: DocumentStatus;
995
- createdBy?: string;
996
- changeDescription?: string;
997
- tenantId?: string;
998
- /** When true, reuses a single version slot (find existing + update) */
999
- autosave?: boolean;
1000
- }
1001
- interface FindVersionsArgs {
1002
- collection: string;
1003
- documentId: string;
1004
- tenantId?: string;
1005
- limit?: number;
1006
- page?: number;
1007
- sort?: string;
1008
- }
1009
- interface BaseAdapter {
1010
- init(collections: CollectionConfig[], globals: GlobalConfig[]): Promise<void>;
1011
- find<T = Record<string, any>>(args: FindArgs): Promise<FindResult<T>>;
1012
- findByID<T = Record<string, any>>(args: FindByIDArgs): Promise<T | null>;
1013
- create<T = Record<string, any>>(args: CreateArgs): Promise<T>;
1014
- update<T = Record<string, any>>(args: UpdateArgs): Promise<T>;
1015
- delete<T = Record<string, any>>(args: DeleteArgs): Promise<T>;
1016
- count(args: {
1017
- collection: string;
1018
- where?: Record<string, any>;
1019
- tenantId?: string;
1020
- }): Promise<number>;
1021
- findOne(args: FindOneArgs): Promise<any>;
1022
- findVersions(args: FindVersionsArgs): Promise<FindResult<VersionRecord>>;
1023
- findVersionByID(args: {
1024
- collection: string;
1025
- versionId: string;
1026
- tenantId?: string;
1027
- }): Promise<VersionRecord | null>;
1028
- createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
1029
- deleteVersions(args: {
1030
- collection: string;
1031
- documentId: string;
1032
- keepLatest?: number;
1033
- tenantId?: string;
1034
- }): Promise<void>;
1035
- updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
1036
- migrate?(): Promise<void>;
1037
- rollback?(): Promise<void>;
1038
- connect(): Promise<void>;
1039
- disconnect(): Promise<void>;
1040
- transaction?<T>(fn: (tx: any) => Promise<T>): Promise<T>;
1041
- setTenantContext(context: TenantContext | undefined): void;
1042
- getTenantContext(): TenantContext | undefined;
1043
- }
1044
- interface KyroConfig {
1045
- collections?: CollectionConfig[];
1046
- globals?: GlobalConfig[];
1047
- projects?: ProjectConfig[];
1048
- organizations?: OrganizationConfig[];
1049
- adapter: BaseAdapter;
1050
- storage?: StorageProvider;
1051
- plugins?: KyroPlugin[];
1052
- auth?: boolean | {
1053
- secret?: string;
1054
- tokenExpiration?: number;
1055
- cookie?: {
1056
- secure?: boolean;
1057
- sameSite?: "strict" | "lax" | "none";
1058
- domain?: string;
1059
- };
1060
- checkSession?: boolean;
1061
- };
1062
- authAdapter?: any;
1063
- cors?: {
1064
- origins?: string[];
1065
- credentials?: boolean;
1066
- };
1067
- admin?: {
1068
- meta?: {
1069
- title?: string;
1070
- description?: string;
1071
- ogImage?: string;
1072
- };
1073
- dateFormat?: string;
1074
- avatar?: "default" | "gravatar";
1075
- disable?: boolean;
1076
- indexRoute?: string;
1077
- components?: Record<string, any>;
1078
- collectionOverrides?: Record<string, CollectionOverrideConfig>;
1079
- globalOverrides?: Record<string, GlobalOverrideConfig>;
1080
- smartViews?: SmartViewConfig[];
1081
- };
1082
- upload?: {
1083
- limits?: {
1084
- fileSize?: number;
1085
- };
1086
- };
1087
- graphQL?: {
1088
- maxComplexity?: number;
1089
- disablePlayground?: boolean;
1090
- };
1091
- typescript?: {
1092
- outputFile?: string;
1093
- };
1094
- localization?: {
1095
- locales: string[];
1096
- defaultLocale: string;
1097
- };
1098
- rateLimit?: {
1099
- window?: number;
1100
- max?: number;
1101
- };
1102
- debug?: boolean;
1103
- }
1104
-
1105
- declare const richTextStyles: string;
1106
- declare function renderRichText(value: unknown): string;
1107
-
1108
- type StylingMode = 'css' | 'tailwind' | 'css-in-js' | 'styled-components' | 'vanilla-extract';
1109
- interface StylingConfig {
1110
- mode: StylingMode;
1111
- theme?: ThemeConfig;
1112
- customProperties?: Record<string, string>;
1113
- }
1114
- interface ThemeConfig {
1115
- colors?: ThemeColors;
1116
- fonts?: ThemeFonts;
1117
- spacing?: ThemeSpacing;
1118
- borderRadius?: ThemeBorderRadius;
1119
- shadows?: ThemeShadows;
1120
- breakpoints?: Record<string, string>;
1121
- }
1122
- interface ThemeColors {
1123
- primary?: string;
1124
- secondary?: string;
1125
- accent?: string;
1126
- background?: string;
1127
- surface?: string;
1128
- text?: string;
1129
- textMuted?: string;
1130
- border?: string;
1131
- error?: string;
1132
- warning?: string;
1133
- success?: string;
1134
- info?: string;
1135
- }
1136
- interface ThemeFonts {
1137
- sans?: string;
1138
- serif?: string;
1139
- mono?: string;
1140
- }
1141
- interface ThemeSpacing {
1142
- xs?: string;
1143
- sm?: string;
1144
- md?: string;
1145
- lg?: string;
1146
- xl?: string;
1147
- '2xl'?: string;
1148
- '3xl'?: string;
1149
- '4xl'?: string;
1150
- }
1151
- interface ThemeBorderRadius {
1152
- sm?: string;
1153
- md?: string;
1154
- lg?: string;
1155
- xl?: string;
1156
- full?: string;
1157
- }
1158
- interface ThemeShadows {
1159
- sm?: string;
1160
- md?: string;
1161
- lg?: string;
1162
- xl?: string;
1163
- }
1164
- declare class CSSGenerator {
1165
- private config;
1166
- private css;
1167
- constructor(config: StylingConfig);
1168
- addRule(selector: string, properties: Record<string, string>): this;
1169
- addMediaQuery(breakpoint: string, rules: string[]): this;
1170
- generate(): string;
1171
- }
1172
- declare function generateTailwindConfig(theme: ThemeConfig): Record<string, any>;
1173
- declare const defaultLightTheme: ThemeConfig;
1174
- declare const defaultDarkTheme: ThemeConfig;
1175
- declare const ecommerce2026Theme: ThemeConfig;
1176
- declare function generateCSSVariables(theme: ThemeConfig): string;
1177
- interface AdminStylingConfig {
1178
- mode: StylingMode;
1179
- theme?: ThemeConfig;
1180
- customStyles?: string;
1181
- componentOverrides?: Record<string, Record<string, string>>;
1182
- }
1183
- declare function createAdminStyling(config: AdminStylingConfig): string;
1184
- interface FieldStyling {
1185
- wrapper?: Record<string, string>;
1186
- label?: Record<string, string>;
1187
- input?: Record<string, string>;
1188
- error?: Record<string, string>;
1189
- description?: Record<string, string>;
1190
- }
1191
- declare const defaultFieldStyling: Record<string, FieldStyling>;
1192
-
1193
- declare function createAuditContext(req: Request): {
1194
- ipAddress: string;
1195
- userAgent: string;
1196
- };
1197
-
1198
- declare const FIELD_DEFINITION_KEYS: Set<string>;
1199
- declare function isFieldOverrideDefinition(obj: any): boolean;
1200
- declare function flattenFieldOverrides(overrides: Record<string, any>, prefix?: string): Record<string, any>;
1201
- declare function updateFieldByPath(fields: any[], path: string, updates: Record<string, any>, allowAppend?: boolean): boolean;
1202
- declare function applyBlocksOverrides(fields: any[], rawBlocks: any): void;
1203
- declare function applyTabsOverrides(fields: any[], rawTabs: any): void;
1204
- declare function applyCollectionOverrides(collections: CollectionConfig[], overrides?: Record<string, any>): void;
1205
- declare function applyGlobalOverrides(globals: GlobalConfig[], overrides?: Record<string, any>): void;
1206
-
1207
- interface HierarchyNode<T = Record<string, any>> {
1208
- doc: T;
1209
- id: string | number;
1210
- slug?: string;
1211
- depth: number;
1212
- path: string;
1213
- fullPath: string;
1214
- children: HierarchyNode<T>[];
1215
- }
1216
- interface BuildTreeOptions {
1217
- idField?: string;
1218
- parentField?: string;
1219
- slugField?: string;
1220
- slugPrefix?: boolean;
1221
- basePath?: string;
1222
- maxDepth?: number;
1223
- }
1224
- interface BreadcrumbItem {
1225
- id: string | number;
1226
- label: string;
1227
- slug?: string;
1228
- path?: string;
1229
- }
1230
- /**
1231
- * Builds a nested hierarchical tree from a flat list of collection documents.
1232
- */
1233
- declare function buildDocumentTree<T extends Record<string, any>>(docs: T[], options?: BuildTreeOptions): HierarchyNode<T>[];
1234
- /**
1235
- * Returns breadcrumb trail for a given document within a collection.
1236
- * Supports both getBreadcrumbs(docs, docId, options) and getBreadcrumbs(docId, docs, options).
1237
- */
1238
- declare function getBreadcrumbs<T extends Record<string, any>>(arg1: T[] | string | number, arg2: T[] | string | number, options?: {
1239
- idField?: string;
1240
- parentField?: string;
1241
- labelField?: string;
1242
- slugField?: string;
1243
- basePath?: string;
1244
- }): BreadcrumbItem[];
1245
- /**
1246
- * Resolves the full URL path for a document in a hierarchical collection.
1247
- */
1248
- declare function getNestedPath<T extends Record<string, any>>(docId: string | number, docs: T[], options?: {
1249
- idField?: string;
1250
- parentField?: string;
1251
- slugField?: string;
1252
- basePath?: string;
1253
- }): string;
1254
- /**
1255
- * Flattens a document hierarchy tree with depth indicators (useful for admin select dropdowns and indented lists).
1256
- */
1257
- declare function flattenDocumentTree<T extends Record<string, any>>(nodes: HierarchyNode<T>[]): Array<{
1258
- doc: T;
1259
- id: string | number;
1260
- depth: number;
1261
- path: string;
1262
- fullPath: string;
1263
- hasChildren: boolean;
1264
- }>;
1265
-
1266
- export { ALL_FIELD_TYPES, type AdminConfig, type AdminStylingConfig, type ArrayField, type AuthAdapter, type AuthConfig, type AuthResult, type Session as AuthSession, type AuthTokenConfig, type AuthUser, type BaseField, type Block, type BlockAdmin, type BlockImage, type BlocksField, type BuildTreeOptions, CSSGenerator, type CheckboxField, type CodeField, type CollapsibleField, type CollectionConfig, type ColorField, type DateField, type DeclarativeCondition, type EmailField, FIELD_DEFINITION_KEYS, type Field, type FieldAdmin, type FieldStyling, type FieldType, type GlobalConfig, type GroupField, type HierarchyNode, type IconField, type ImageField, type ImageSize, type JSONField, type JWTPayload, type KyroConfig, type LoginCredentials, type MarkdownField, type NumberField, type PasswordField, type RadioField, type RegisterData, type RelationshipField, type RichTextBlock, type RichTextField, type RowField, type SecretField, type SelectField, type Session, type StylingConfig, type StylingMode, type TabsField, type TextField, type TextareaField, type ThemeBorderRadius, type ThemeColors, type ThemeConfig, type ThemeFonts, type ThemeShadows, type ThemeSpacing, type UploadConfig, type UploadField, type UserRole, type VersionConfig, applyBlocksOverrides, applyCollectionOverrides, applyGlobalOverrides, applyTabsOverrides, buildDocumentTree, createAdminStyling, createAuditContext, defaultDarkTheme, defaultFieldStyling, defaultLightTheme, ecommerce2026Theme, flattenDocumentTree, flattenFieldOverrides, generateCSSVariables, generateTailwindConfig, getBreadcrumbs, getNestedPath, isFieldOverrideDefinition, renderRichText, richTextStyles, updateFieldByPath };