@kyro-cms/core 0.12.70 → 0.13.0

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 (232) hide show
  1. package/README.md +6 -0
  2. package/dist/{WebhookService-CGNSlclW.d.ts → WebhookService-BLi5Rz2m.d.ts} +1 -1
  3. package/dist/{WebhookService-CIQPD1We.d.cts → WebhookService-BcuD8tnn.d.cts} +1 -1
  4. package/dist/WebhookService-D5PSI5t6.d.cts +143 -0
  5. package/dist/WebhookService-DPCCn_12.d.ts +143 -0
  6. package/dist/WebhookService-Dncnbgm9.d.cts +143 -0
  7. package/dist/WebhookService-UY5p89Bj.d.ts +143 -0
  8. package/dist/WebhookService-YZXBCRXA.d.ts +143 -0
  9. package/dist/WebhookService-zrDmAx7L.d.cts +143 -0
  10. package/dist/api-handler-graphql.cjs +1 -1
  11. package/dist/api-handler-graphql.js +1 -1
  12. package/dist/api-handler-trpc.cjs +1 -1
  13. package/dist/api-handler-trpc.js +1 -1
  14. package/dist/api-handler.cjs +1 -1
  15. package/dist/api-handler.js +1 -1
  16. package/dist/base-B--L0lCn.d.cts +218 -0
  17. package/dist/base-BVoDPNjJ.d.cts +218 -0
  18. package/dist/{types-CpjuXbe7.d.cts → base-CAb9EYQs.d.ts} +69 -1
  19. package/dist/base-CyG7aF1e.d.cts +218 -0
  20. package/dist/{types-CpjuXbe7.d.ts → base-DOImeJ-F.d.ts} +69 -1
  21. package/dist/base-DbnwE42-.d.cts +218 -0
  22. package/dist/base-NyiSsD-n.d.ts +218 -0
  23. package/dist/base-xflndGDO.d.ts +218 -0
  24. package/dist/bootstrap-E24SGUJP.cjs +1 -0
  25. package/dist/bootstrap-QQ6D3OYG.js +1 -0
  26. package/dist/bootstrap-QVKSKXJF.cjs +1 -0
  27. package/dist/bootstrap-RILR44UM.cjs +1 -0
  28. package/dist/{bootstrap-WB6FDH2T.js → bootstrap-YFVE7MRG.js} +1 -1
  29. package/dist/bootstrap-ZRRUPRUR.js +1 -0
  30. package/dist/chunk-262YP5XA.cjs +1 -0
  31. package/dist/chunk-2FSOHXOU.cjs +56 -0
  32. package/dist/chunk-2OS5Y4LE.cjs +1 -0
  33. package/dist/chunk-2PXXQKN3.cjs +3 -0
  34. package/dist/chunk-355R4LS5.cjs +56 -0
  35. package/dist/chunk-35IVNLMA.js +122 -0
  36. package/dist/{chunk-XVPTVTQC.js → chunk-3GXLOYM3.js} +2 -2
  37. package/dist/chunk-3KZXF4US.js +2 -0
  38. package/dist/{chunk-Z552BTXA.cjs → chunk-3LAWUINR.cjs} +1 -1
  39. package/dist/chunk-3O3AVMWM.cjs +1 -0
  40. package/dist/{chunk-637PTUHF.js → chunk-3TAUNYEM.js} +1 -1
  41. package/dist/chunk-3U6MKWET.cjs +120 -0
  42. package/dist/chunk-4BMWWGJN.js +384 -0
  43. package/dist/chunk-5A7E7N4B.cjs +431 -0
  44. package/dist/chunk-6DD4J7LI.js +2 -0
  45. package/dist/chunk-6GGPY7U2.js +4 -0
  46. package/dist/chunk-6MNLRAKM.cjs +121 -0
  47. package/dist/chunk-6NBZDW53.js +133 -0
  48. package/dist/chunk-73Y63IPP.js +57 -0
  49. package/dist/chunk-7K6ZUNJM.js +4 -0
  50. package/dist/chunk-7NKNSRCB.cjs +448 -0
  51. package/dist/{chunk-IL2TMAHB.cjs → chunk-A35ZP72D.cjs} +3 -3
  52. package/dist/chunk-A3IOQOV6.js +2 -0
  53. package/dist/chunk-A3XVL6ED.cjs +3 -0
  54. package/dist/{chunk-OBH6EEAO.cjs → chunk-APDQ6ZTG.cjs} +5 -5
  55. package/dist/chunk-ATI2UZ7U.js +2 -0
  56. package/dist/chunk-B4AC23SG.js +122 -0
  57. package/dist/chunk-BD6XHMMM.cjs +2 -0
  58. package/dist/chunk-CH4TZZI5.js +449 -0
  59. package/dist/{chunk-TBTQXIHP.js → chunk-CHYVUWZ3.js} +1 -1
  60. package/dist/{chunk-6USPOWA4.js → chunk-CNHUCCQJ.js} +10 -10
  61. package/dist/chunk-CRP6PSCE.js +2 -0
  62. package/dist/chunk-DI6TCZSE.js +122 -0
  63. package/dist/chunk-DORUYZQV.cjs +1 -0
  64. package/dist/chunk-EFKEVWAD.js +4 -0
  65. package/dist/chunk-EI7FRSNY.js +57 -0
  66. package/dist/chunk-EON4XLKQ.cjs +1 -0
  67. package/dist/chunk-EUQAOYEO.cjs +121 -0
  68. package/dist/chunk-EVAUBT7H.js +57 -0
  69. package/dist/chunk-EYHD7HZE.cjs +1 -0
  70. package/dist/chunk-EYYIPA5N.js +432 -0
  71. package/dist/chunk-F2O4QO5N.cjs +383 -0
  72. package/dist/chunk-FBWLSWZ4.js +122 -0
  73. package/dist/{chunk-3XLXKGEU.cjs → chunk-FG3IFGJP.cjs} +1 -1
  74. package/dist/chunk-FGN6IMPY.cjs +3 -0
  75. package/dist/chunk-FK2BG4HU.js +3 -0
  76. package/dist/{chunk-MVZSSTCV.js → chunk-FUFS65Q5.js} +2 -2
  77. package/dist/chunk-GWIZT2P5.js +57 -0
  78. package/dist/chunk-H3FJ54KB.cjs +121 -0
  79. package/dist/chunk-HY3EAWB2.js +4 -0
  80. package/dist/chunk-I6UJVO2P.js +57 -0
  81. package/dist/chunk-IQSF6XRV.js +57 -0
  82. package/dist/chunk-IXGDTAES.js +4 -0
  83. package/dist/chunk-JA44K75G.js +2 -0
  84. package/dist/chunk-K5XGP57D.cjs +19 -0
  85. package/dist/chunk-KEITOXIP.js +2 -0
  86. package/dist/chunk-LPFRMQFQ.js +121 -0
  87. package/dist/chunk-LYU44UNN.cjs +56 -0
  88. package/dist/chunk-MDLJTZLV.cjs +1 -0
  89. package/dist/chunk-MJAODEFC.cjs +121 -0
  90. package/dist/chunk-MYHNTJLR.cjs +56 -0
  91. package/dist/chunk-N2YHO2WI.cjs +3 -0
  92. package/dist/chunk-N4FXLQE3.cjs +132 -0
  93. package/dist/chunk-NPBXLPOP.js +3 -0
  94. package/dist/chunk-ON5XJEPO.cjs +3 -0
  95. package/dist/chunk-OT2Z4XBD.cjs +1 -0
  96. package/dist/chunk-PFTBTWSC.cjs +1 -0
  97. package/dist/chunk-PTPVFLET.js +20 -0
  98. package/dist/chunk-PZDLPRJF.js +4 -0
  99. package/dist/chunk-Q5TFO66G.cjs +1 -0
  100. package/dist/chunk-QUTYCUST.js +4 -0
  101. package/dist/chunk-REKKBAQX.cjs +56 -0
  102. package/dist/chunk-REQ622YC.js +3 -0
  103. package/dist/chunk-RTNQP6BV.js +2 -0
  104. package/dist/chunk-RUJW47ZJ.js +2 -0
  105. package/dist/{chunk-SOCBJPYB.cjs → chunk-RVBSJ4UQ.cjs} +1 -1
  106. package/dist/chunk-RXYCFZJC.cjs +121 -0
  107. package/dist/chunk-RYHOWZLK.js +2 -0
  108. package/dist/chunk-S2MZNEBQ.cjs +1 -0
  109. package/dist/chunk-S73YERS2.js +57 -0
  110. package/dist/chunk-SBNMXQNO.cjs +2 -0
  111. package/dist/chunk-T3DJ3UTP.cjs +121 -0
  112. package/dist/{chunk-ZQETJ4T4.cjs → chunk-TCFL3UWT.cjs} +1 -1
  113. package/dist/chunk-TJZO7ZSX.cjs +3 -0
  114. package/dist/chunk-TKUNRCRH.js +4 -0
  115. package/dist/chunk-TQLCOMKC.js +4 -0
  116. package/dist/chunk-TRXYDWGE.cjs +1 -0
  117. package/dist/chunk-TS55CUNJ.js +57 -0
  118. package/dist/chunk-UFBJ3WOZ.js +2 -0
  119. package/dist/chunk-UQRVQUVR.js +2 -0
  120. package/dist/chunk-UW5W35NP.js +122 -0
  121. package/dist/chunk-VI7WCO2J.cjs +3 -0
  122. package/dist/chunk-W2GPP6RB.js +122 -0
  123. package/dist/chunk-WHOA7YJU.cjs +1 -0
  124. package/dist/chunk-WNRUPL26.js +2 -0
  125. package/dist/chunk-WXT2XW7T.js +13 -0
  126. package/dist/chunk-XFYSADHV.cjs +2 -0
  127. package/dist/chunk-XIAJQLGS.js +2 -0
  128. package/dist/chunk-XK6UB77Q.js +4 -0
  129. package/dist/chunk-Y2VHO66Q.cjs +3 -0
  130. package/dist/chunk-Y5O2OD7J.cjs +3 -0
  131. package/dist/chunk-YARB43JG.cjs +56 -0
  132. package/dist/chunk-YLCEMVYY.cjs +56 -0
  133. package/dist/chunk-YSOM57GK.cjs +3 -0
  134. package/dist/chunk-Z3UVDGYS.cjs +56 -0
  135. package/dist/{chunk-4OMQURN7.js → chunk-ZAKYTBEN.js} +1 -1
  136. package/dist/chunk-ZTLGK6R4.cjs +12 -0
  137. package/dist/chunk-ZUBJ6RLQ.cjs +1 -0
  138. package/dist/cli/index.cjs +1 -1
  139. package/dist/cli/index.js +1 -1
  140. package/dist/client.cjs +109 -1
  141. package/dist/client.d.cts +1242 -6
  142. package/dist/client.d.ts +1242 -6
  143. package/dist/client.js +109 -2
  144. package/dist/drizzle/index.cjs +1 -1
  145. package/dist/drizzle/index.d.cts +3 -4
  146. package/dist/drizzle/index.d.ts +3 -4
  147. package/dist/drizzle/index.js +1 -1
  148. package/dist/fields/index.cjs +1 -1
  149. package/dist/fields/index.d.cts +2 -2
  150. package/dist/fields/index.d.ts +2 -2
  151. package/dist/fields/index.js +1 -1
  152. package/dist/graphql/index.d.cts +3 -3
  153. package/dist/graphql/index.d.ts +3 -3
  154. package/dist/{index-BHYGO3yF.d.cts → index-B9BFNOHd.d.cts} +2 -2
  155. package/dist/index-BMcYFpTv.d.cts +105 -0
  156. package/dist/{index-DTy4k1oU.d.ts → index-BttsFZDa.d.ts} +2 -2
  157. package/dist/index-CxA9uOv0.d.ts +105 -0
  158. package/dist/index-D6AXbuPI.d.ts +105 -0
  159. package/dist/index-DF0KDBaM.d.cts +105 -0
  160. package/dist/index-DG4Xu7gA.d.cts +105 -0
  161. package/dist/index-eHex8Iwj.d.ts +105 -0
  162. package/dist/index.cjs +43 -24
  163. package/dist/index.d.cts +167 -13
  164. package/dist/index.d.ts +167 -13
  165. package/dist/index.js +44 -25
  166. package/dist/lib-A2D63VXD.cjs +1 -0
  167. package/dist/lib-JQD2JAOO.js +2 -0
  168. package/dist/local-KR3AIGVA.cjs +1 -0
  169. package/dist/local-T7GISZBL.js +1 -0
  170. package/dist/mongo-auth-adapter-GR2CFFEA.js +1 -0
  171. package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +1 -0
  172. package/dist/mongodb/index.cjs +1 -1
  173. package/dist/mongodb/index.d.cts +4 -4
  174. package/dist/mongodb/index.d.ts +4 -4
  175. package/dist/mongodb/index.js +1 -1
  176. package/dist/nodemailer-transport-3VWVUBM5.cjs +1 -0
  177. package/dist/nodemailer-transport-7RHATUKL.js +1 -0
  178. package/dist/nodemailer-transport-CHO2WKIY.js +1 -0
  179. package/dist/nodemailer-transport-ED2IXNGW.cjs +1 -0
  180. package/dist/postgres-auth-adapter-SK3N3OSS.js +1 -1
  181. package/dist/postgres-auth-adapter-ZO6HK5AK.cjs +1 -1
  182. package/dist/postgres-js-7YBZKGXG.cjs +1 -0
  183. package/dist/{postgres-js-WE3NBRFO.js → postgres-js-JLFIWOBH.js} +1 -1
  184. package/dist/rest/index.cjs +1 -1
  185. package/dist/rest/index.d.cts +4 -4
  186. package/dist/rest/index.d.ts +4 -4
  187. package/dist/rest/index.js +1 -1
  188. package/dist/templates/index.cjs +1 -1
  189. package/dist/templates/index.d.cts +2 -2
  190. package/dist/templates/index.d.ts +2 -2
  191. package/dist/templates/index.js +1 -1
  192. package/dist/trpc/index.cjs +1 -1
  193. package/dist/trpc/index.d.cts +3 -3
  194. package/dist/trpc/index.d.ts +3 -3
  195. package/dist/trpc/index.js +1 -1
  196. package/dist/types-B5Qz1svz.d.cts +822 -0
  197. package/dist/types-Bii0bhUV.d.cts +329 -0
  198. package/dist/types-Bii0bhUV.d.ts +329 -0
  199. package/dist/{types-CeAQSR87.d.cts → types-Bt2_ycUO.d.ts} +37 -2
  200. package/dist/types-C4wXHImf.d.ts +822 -0
  201. package/dist/types-DCWgPFmi.d.cts +822 -0
  202. package/dist/types-DROqAsr0.d.cts +330 -0
  203. package/dist/types-DROqAsr0.d.ts +330 -0
  204. package/dist/{types-BKPEavuy.d.cts → types-DlGSbh7I.d.cts} +1 -1
  205. package/dist/{types-BKPEavuy.d.ts → types-DlGSbh7I.d.ts} +1 -1
  206. package/dist/types-DsF64Wrc.d.cts +811 -0
  207. package/dist/{types-BWJx6zzm.d.ts → types-ZrjEVWfi.d.ts} +37 -2
  208. package/dist/types-dEy5JxvN.d.ts +822 -0
  209. package/dist/types-tVJc9YbX.d.cts +811 -0
  210. package/dist/ws/index.cjs +1 -1
  211. package/dist/ws/index.d.cts +121 -1
  212. package/dist/ws/index.d.ts +121 -1
  213. package/dist/ws/index.js +1 -1
  214. package/package.json +2 -2
  215. package/dist/base-Ds06wMo9.d.cts +0 -69
  216. package/dist/base-DxDXLyWe.d.ts +0 -69
  217. package/dist/bootstrap-XDT4MRML.cjs +0 -1
  218. package/dist/chunk-5M3FKE2V.js +0 -2
  219. package/dist/chunk-7FXEXHK6.js +0 -21
  220. package/dist/chunk-JSTDCK3Z.js +0 -2
  221. package/dist/chunk-JT36FTHY.cjs +0 -20
  222. package/dist/chunk-L2QXP26Q.js +0 -2
  223. package/dist/chunk-MRR7OTRX.js +0 -57
  224. package/dist/chunk-MVX2PYJJ.cjs +0 -1
  225. package/dist/chunk-MYGHZQMO.cjs +0 -1
  226. package/dist/chunk-OUAR4ZCU.cjs +0 -56
  227. package/dist/chunk-WCFHS7EZ.cjs +0 -1
  228. package/dist/index-D7kt5jT_.d.ts +0 -97
  229. package/dist/index-DPtCjn94.d.cts +0 -97
  230. package/dist/postgres-js-GXZX3AGZ.cjs +0 -1
  231. /package/dist/{chunk-XTTGHN3D.cjs → chunk-FLS2FJM6.cjs} +0 -0
  232. /package/dist/{chunk-KWGB3YNI.js → chunk-PFKVHUOT.js} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,28 +1,26 @@
1
1
  import * as hono from 'hono';
2
2
  import * as hono_types from 'hono/types';
3
- import { R as Registry } from './index-BHYGO3yF.cjs';
4
- export { c as createRegistry, g as getRegistry, r as resetRegistry } from './index-BHYGO3yF.cjs';
5
- import { j as StorageProvider, B as BaseAdapter, P as PluginManager, K as KyroConfig, l as User, R as Request$1, C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, f as FindOneArgs, g as FindVersionsArgs, h as VersionRecord, i as CreateVersionArgs } from './types-CeAQSR87.cjs';
6
- export { m as AccessArgs, n as AccessControl, o as AdapterConfig, A as AdminConfig, p as AnalyticsPlugin, a as AuthConfig, q as CollectionAccess, r as CollectionHooks, s as CommentsPlugin, t as ConfigService, u as CreateResult, E as EmailConfig, v as FieldAccess, w as FieldHooks, x as GlobalAccess, y as GlobalHooks, H as Hook, z as HookArgs, I as ImageSize, k as KyroPlugin, J as PluginAPI, L as PluginHooks, M as ReviewsPlugin, N as SEOPlugin, S as StorageConfig, U as UploadConfig, V as VersionConfig, W as WhereClause, O as WishlistPlugin, Q as evaluateAccess, X as getWhereClause, Y as mergeWhereClauses, Z as presetPlugins, _ as resolveProvider, $ as runFieldHooks, a0 as runHooks } from './types-CeAQSR87.cjs';
3
+ import { R as Registry } from './index-BMcYFpTv.cjs';
4
+ export { c as createRegistry, g as getRegistry, r as resetRegistry } from './index-BMcYFpTv.cjs';
5
+ import { a as StorageProvider, C as CollectionConfig, G as GlobalConfig, B as BaseAdapter, P as PluginManager, h as KyroConfig, i as User, R as Request$1, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, U as UpdateArgs, D as DeleteArgs, e as FindOneArgs, f as FindVersionsArgs, V as VersionRecord, g as CreateVersionArgs } from './types-B5Qz1svz.cjs';
6
+ export { A as AccessArgs, j as AccessControl, k as AdapterConfig, l as AdminConfig, m as AnalyticsPlugin, n as AuthConfig, o as CollectionAccess, p as CollectionHooks, q as CommentsPlugin, r as ConfigService, s as CreateResult, E as EmailConfig, t as FieldAccess, u as FieldHooks, v as GlobalAccess, w as GlobalHooks, H as HierarchyConfig, x as Hook, y as HookArgs, I as ImageSize, K as KyroPlugin, O as OrganizationConfig, z as PluginAPI, J as PluginHooks, L as ProjectConfig, M as ReviewsPlugin, N as SEOPlugin, Q as SmartViewConfig, S as StorageConfig, W as UploadConfig, X as VersionConfig, Y as WhereClause, Z as WishlistPlugin, _ as evaluateAccess, $ as getWhereClause, a0 as mergeWhereClauses, a1 as presetPlugins, a2 as resolveProvider, a3 as runFieldHooks, a4 as runHooks } from './types-B5Qz1svz.cjs';
7
7
  import { KyroPubSub, KyroWSServer } from './ws/index.cjs';
8
8
  export { PubSub, createWSServer } from './ws/index.cjs';
9
- import { W as WebhookPayload, D as DeliveryResult, a as WebhookDelivery, b as WebhookConfig, c as DeliveryOptions, d as WebhookService } from './WebhookService-CIQPD1We.cjs';
10
- export { A as ALL_WEBHOOK_EVENTS, C as CreateWebhookData, U as UpdateWebhookData, e as WEBHOOK_COLLECTION, f as WEBHOOK_DELIVERY_COLLECTION, g as WEBHOOK_EVENTS, h as WebhookEvent, i as WebhookTriggerResult, j as createWebhookService } from './WebhookService-CIQPD1We.cjs';
11
- import { F as Field } from './types-BKPEavuy.cjs';
12
- export { A as ALL_FIELD_TYPES, a as ArrayField, B as BaseField, b as Block, e as BlocksField, v as COMPLEX_FIELD_TYPES, C as CheckboxField, f as CodeField, g as CollapsibleField, h as ColorField, D as DateField, E as EmailField, j as FieldAdmin, k as FieldType, G as GroupField, l as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, M as MarkdownField, N as NumberField, x as PRIMITIVE_FIELD_TYPES, P as PasswordField, y as RELATIONAL_FIELD_TYPES, R as RadioField, m as RelationshipField, n as RichTextBlock, o as RichTextField, p as RowField, q as SelectField, T as TabsField, r as TextField, s as TextareaField, U as UploadField, V as ValidateOptions, O as isArrayField, Q as isBlocksField, W as isGroupField, Y as isImageField, Z as isLayoutField, _ as isNumberField, $ as isRelationshipField, a0 as isRichTextField, a1 as isSelectField, a2 as isTextField, a3 as isUploadField } from './types-BKPEavuy.cjs';
9
+ import { W as WebhookPayload, D as DeliveryResult, a as WebhookDelivery, b as WebhookConfig, c as DeliveryOptions, d as WebhookService } from './WebhookService-D5PSI5t6.cjs';
10
+ export { A as ALL_WEBHOOK_EVENTS, C as CreateWebhookData, U as UpdateWebhookData, e as WEBHOOK_COLLECTION, f as WEBHOOK_DELIVERY_COLLECTION, g as WEBHOOK_EVENTS, h as WebhookEvent, i as WebhookTriggerResult, j as createWebhookService } from './WebhookService-D5PSI5t6.cjs';
11
+ import { F as Field } from './types-DROqAsr0.cjs';
12
+ export { A as ALL_FIELD_TYPES, b as ArrayField, B as BaseField, c as Block, f as BlocksField, C as COMPLEX_FIELD_TYPES, h as CheckboxField, i as CodeField, j as CollapsibleField, k as ColorField, D as DateField, E as EmailField, o as FieldAdmin, p as FieldType, G as GroupField, q as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, M as MarkdownField, N as NumberField, P as PRIMITIVE_FIELD_TYPES, s as PasswordField, R as RELATIONAL_FIELD_TYPES, t as RadioField, u as RelationshipField, v as RichTextBlock, w as RichTextField, x as RowField, y as SelectField, T as TabsField, z as TextField, O as TextareaField, U as UploadField, V as ValidateOptions, W as isArrayField, X as isBlocksField, Z as isGroupField, $ as isImageField, a0 as isLayoutField, a1 as isNumberField, a2 as isRelationshipField, a3 as isRichTextField, a4 as isSelectField, a5 as isTextField, a6 as isUploadField } from './types-DROqAsr0.cjs';
13
13
  import { ZodTypeAny, z } from 'zod';
14
14
  export { z } from 'zod';
15
15
  export { n as normalizeRichTextValue, r as renderRichText, a as richTextStyles } from './richtext-DrhORshE.cjs';
16
- import { A as AbstractBaseAdapter } from './base-Ds06wMo9.cjs';
16
+ import { A as AuditLog, a as AuditLogFilter, b as AbstractBaseAdapter, c as AuthAdapter, U as UserRole, d as AuthUser, S as Session, e as AuthTokenConfig, R as RegisterData, f as AuthResult, L as LoginCredentials, J as JWTPayload } from './base-CyG7aF1e.cjs';
17
+ export { g as AuditAction } from './base-CyG7aF1e.cjs';
17
18
  import { Dialect } from './drizzle/index.cjs';
18
19
  export { DrizzleAdapter, PostgresAuthAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './drizzle/index.cjs';
19
20
  export { MongoDBAdapter, MongoDBAuthAdapter, createMongoDBAdapter } from './mongodb/index.cjs';
20
21
  export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from './trpc/index.cjs';
21
22
  export { buildGraphQLSchema, createGraphQLSchema } from './graphql/index.cjs';
22
23
  export { createKyroApp, createRESTAPI } from './rest/index.cjs';
23
- export { A as AdminStylingConfig, C as CSSGenerator, F as FIELD_DEFINITION_KEYS, a as FieldStyling, S as StylingConfig, b as StylingMode, T as ThemeBorderRadius, c as ThemeColors, d as ThemeConfig, e as ThemeFonts, f as ThemeShadows, g as ThemeSpacing, h as applyBlocksOverrides, i as applyCollectionOverrides, j as applyGlobalOverrides, k as applyTabsOverrides, l as createAdminStyling, m as defaultDarkTheme, n as defaultFieldStyling, o as defaultLightTheme, p as ecommerce2026Theme, q as flattenFieldOverrides, r as generateCSSVariables, s as generateTailwindConfig, t as isFieldOverrideDefinition, u as updateFieldByPath } from './index-DPtCjn94.cjs';
24
- import { d as AuditLog, e as AuditLogFilter, A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, b as AuthTokenConfig, R as RegisterData, a as AuthResult, L as LoginCredentials, J as JWTPayload } from './types-CpjuXbe7.cjs';
25
- export { f as AuditAction } from './types-CpjuXbe7.cjs';
26
24
  export { TemplateConfig, allGlobalSettings, blogCollections, coreGlobalSettings, createTemplateConfig, ecommerceCollections, ecommerceGlobals, kitchenSinkCollections, mediaCollections, minimalCollections, templateCollections } from './templates/index.cjs';
27
25
  export { default as kyro } from './integration.cjs';
28
26
  import { Loader } from 'astro/loaders';
@@ -44,6 +42,15 @@ declare function deliverWithRetry(webhook: WebhookConfig, payload: WebhookPayloa
44
42
  declare function buildDeliveryRecord(deliveryId: string, webhookId: string, event: string, payload: WebhookPayload, attempt: number, result: DeliveryResult): WebhookDelivery;
45
43
  declare function createTestPayload(): WebhookPayload;
46
44
 
45
+ declare const FIELD_DEFINITION_KEYS: Set<string>;
46
+ declare function isFieldOverrideDefinition(obj: any): boolean;
47
+ declare function flattenFieldOverrides(overrides: Record<string, any>, prefix?: string): Record<string, any>;
48
+ declare function updateFieldByPath(fields: any[], path: string, updates: Record<string, any>, allowAppend?: boolean): boolean;
49
+ declare function applyBlocksOverrides(fields: any[], rawBlocks: any): void;
50
+ declare function applyTabsOverrides(fields: any[], rawTabs: any): void;
51
+ declare function applyCollectionOverrides(collections: CollectionConfig[], overrides?: Record<string, any>): void;
52
+ declare function applyGlobalOverrides(globals: GlobalConfig[], overrides?: Record<string, any>): void;
53
+
47
54
  type Redis$2 = any;
48
55
 
49
56
  declare class AuditLogger {
@@ -128,10 +135,13 @@ interface BrandConfig$1 {
128
135
  logoUrl?: string;
129
136
  logoDarkUrl?: string;
130
137
  appUrl?: string;
138
+ primaryColor?: string;
139
+ address?: string;
131
140
  }
132
141
  interface BaseEmailOptions {
133
142
  brand?: BrandConfig$1;
134
143
  title: string;
144
+ badge?: string;
135
145
  previewText?: string;
136
146
  bodyHtml: string;
137
147
  ctaText?: string;
@@ -480,6 +490,91 @@ declare class TursoAdapter extends AbstractBaseAdapter {
480
490
  }
481
491
  declare function createTursoAdapter(options: TursoAdapterOptions): TursoAdapter;
482
492
 
493
+ type StylingMode = 'css' | 'tailwind' | 'css-in-js' | 'styled-components' | 'vanilla-extract';
494
+ interface StylingConfig {
495
+ mode: StylingMode;
496
+ theme?: ThemeConfig;
497
+ customProperties?: Record<string, string>;
498
+ }
499
+ interface ThemeConfig {
500
+ colors?: ThemeColors;
501
+ fonts?: ThemeFonts;
502
+ spacing?: ThemeSpacing;
503
+ borderRadius?: ThemeBorderRadius;
504
+ shadows?: ThemeShadows;
505
+ breakpoints?: Record<string, string>;
506
+ }
507
+ interface ThemeColors {
508
+ primary?: string;
509
+ secondary?: string;
510
+ accent?: string;
511
+ background?: string;
512
+ surface?: string;
513
+ text?: string;
514
+ textMuted?: string;
515
+ border?: string;
516
+ error?: string;
517
+ warning?: string;
518
+ success?: string;
519
+ info?: string;
520
+ }
521
+ interface ThemeFonts {
522
+ sans?: string;
523
+ serif?: string;
524
+ mono?: string;
525
+ }
526
+ interface ThemeSpacing {
527
+ xs?: string;
528
+ sm?: string;
529
+ md?: string;
530
+ lg?: string;
531
+ xl?: string;
532
+ '2xl'?: string;
533
+ '3xl'?: string;
534
+ '4xl'?: string;
535
+ }
536
+ interface ThemeBorderRadius {
537
+ sm?: string;
538
+ md?: string;
539
+ lg?: string;
540
+ xl?: string;
541
+ full?: string;
542
+ }
543
+ interface ThemeShadows {
544
+ sm?: string;
545
+ md?: string;
546
+ lg?: string;
547
+ xl?: string;
548
+ }
549
+ declare class CSSGenerator {
550
+ private config;
551
+ private css;
552
+ constructor(config: StylingConfig);
553
+ addRule(selector: string, properties: Record<string, string>): this;
554
+ addMediaQuery(breakpoint: string, rules: string[]): this;
555
+ generate(): string;
556
+ }
557
+ declare function generateTailwindConfig(theme: ThemeConfig): Record<string, any>;
558
+ declare const defaultLightTheme: ThemeConfig;
559
+ declare const defaultDarkTheme: ThemeConfig;
560
+ declare const ecommerce2026Theme: ThemeConfig;
561
+ declare function generateCSSVariables(theme: ThemeConfig): string;
562
+ interface AdminStylingConfig {
563
+ mode: StylingMode;
564
+ theme?: ThemeConfig;
565
+ customStyles?: string;
566
+ componentOverrides?: Record<string, Record<string, string>>;
567
+ }
568
+ declare function createAdminStyling(config: AdminStylingConfig): string;
569
+ interface FieldStyling {
570
+ wrapper?: Record<string, string>;
571
+ label?: Record<string, string>;
572
+ input?: Record<string, string>;
573
+ error?: Record<string, string>;
574
+ description?: Record<string, string>;
575
+ }
576
+ declare const defaultFieldStyling: Record<string, FieldStyling>;
577
+
483
578
  interface RedisAuthAdapterOptions {
484
579
  url?: string;
485
580
  host?: string;
@@ -1651,4 +1746,63 @@ declare class Logger {
1651
1746
  }
1652
1747
  declare const logger: Logger;
1653
1748
 
1654
- export { AbstractBaseAdapter, AccountLockout, type AdapterOptions, AuditLog, AuditLogFilter, AuditLogger, Auth, AuthAdapter, AuthResult, Session as AuthSession, AuthTokenConfig, AuthUser, BaseAdapter, type BaseEmailOptions, type BrandConfig$1 as BrandConfig, CollectionConfig, type CompareVersionsOptions, ConfigValidationError, CreateArgs, type CreateStorageResult, type CreateVersionOptions, type DatabaseConnectionOptions, type DatabaseType, type DatabaseType$1 as DbAdapterType, DeleteArgs, DeliveryOptions, DeliveryResult, Dialect, type DraftPublishConfig, type DrizzleAdapterOptions, EmailTransport, type EncryptionConfig, type Environment, Field, FindArgs, FindByIDArgs, FindResult, GlobalConfig, InMemoryAccountLockout, InMemoryAuditLogger, InMemoryAuthAdapter, InMemoryRateLimiter, JWTPayload, Kyro, type KyroActionOptions, type KyroAuthConfig, type KyroAuthMiddlewareOptions, KyroConfig, type KyroEnvSchemaOptions, type KyroLoaderOptions, KyroPubSub, KyroWSServer, LocalAdapter, type LogLevel, Logger, LoginCredentials, MediaService, type MongoDBAdapterOptions, NeonAdapter, type NeonAdapterOptions, PasswordPolicy, type PaymentConfig, PluginManager, type PublishVersionOptions, RateLimiter, RedisAuthAdapter, RegisterData, Registry, Request$1 as Request, SQLiteAuthAdapter, type SeoTagsOptions, Session, type SocialLink, type StorageAdapter, type StorageOptions, type StoreConfig, TursoAdapter, type TursoAdapterOptions, UpdateArgs, User, UserRole, type Version, type VersionAdapter, type VersionDiff, type VersionHistoryOptions, VersionManager, type VersionPublishSchedule, type VersionStatus, WebhookConfig, WebhookDelivery, WebhookPayload, WebhookService, authConfig, autoBootstrap, bootstrapAdmin, bootstrapWithRetry, buildDeliveryRecord, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createAuditContext, createAuth, createAuthConfig, createAuthStorage, createKyro, createKyroHandler, createLocalAdapter, createLocalStorage, createNeonAdapter, createStorage, createTestPayload, createTursoAdapter, createVersionManager, defineConfig, defineKyroConfig, deliverWebhook, deliverWithRetry, fieldToZod, generateAnalyticsTags, generateKyroAstroTypes, generateSeoTags, generateWebhookSecret, getAppSecret, getBootstrapFromEnv, getDefaultDraftPublishConfig, getEmailTemplates, getEncryptionKey, getPaymentConfig, getPaymentConfigFromSettings, getSessionConfig, getSocialLinks, getSocialLinksFromSettings, getStoreConfig, getStoreConfigFromSettings, globalToZod, isArchived, isDraft, isEdgeRuntime, isPublished, kyroAction, kyroAuthMiddleware, kyroEnvSchema, kyroLoader, loadSecrets, logger, renderAbandonedCart, renderAccountLocked, renderBaseLayout, renderMagicLink, renderNewLogin, renderOrderConfirmation, renderOrderDelivered, renderOrderRefunded, renderOrderShipped, renderPasswordChanged, renderResetPassword, renderUserInvite, renderVerifyEmail, renderWelcome, setDbAdapter, signPayload, validateCollection, validateConfig, validateFields, validateGlobal };
1749
+ interface HierarchyNode<T = Record<string, any>> {
1750
+ doc: T;
1751
+ id: string | number;
1752
+ slug?: string;
1753
+ depth: number;
1754
+ path: string;
1755
+ fullPath: string;
1756
+ children: HierarchyNode<T>[];
1757
+ }
1758
+ interface BuildTreeOptions {
1759
+ idField?: string;
1760
+ parentField?: string;
1761
+ slugField?: string;
1762
+ slugPrefix?: boolean;
1763
+ basePath?: string;
1764
+ maxDepth?: number;
1765
+ }
1766
+ interface BreadcrumbItem {
1767
+ id: string | number;
1768
+ label: string;
1769
+ slug?: string;
1770
+ path?: string;
1771
+ }
1772
+ /**
1773
+ * Builds a nested hierarchical tree from a flat list of collection documents.
1774
+ */
1775
+ declare function buildDocumentTree<T extends Record<string, any>>(docs: T[], options?: BuildTreeOptions): HierarchyNode<T>[];
1776
+ /**
1777
+ * Returns breadcrumb trail for a given document within a collection.
1778
+ * Supports both getBreadcrumbs(docs, docId, options) and getBreadcrumbs(docId, docs, options).
1779
+ */
1780
+ declare function getBreadcrumbs<T extends Record<string, any>>(arg1: T[] | string | number, arg2: T[] | string | number, options?: {
1781
+ idField?: string;
1782
+ parentField?: string;
1783
+ labelField?: string;
1784
+ slugField?: string;
1785
+ basePath?: string;
1786
+ }): BreadcrumbItem[];
1787
+ /**
1788
+ * Resolves the full URL path for a document in a hierarchical collection.
1789
+ */
1790
+ declare function getNestedPath<T extends Record<string, any>>(docId: string | number, docs: T[], options?: {
1791
+ idField?: string;
1792
+ parentField?: string;
1793
+ slugField?: string;
1794
+ basePath?: string;
1795
+ }): string;
1796
+ /**
1797
+ * Flattens a document hierarchy tree with depth indicators (useful for admin select dropdowns and indented lists).
1798
+ */
1799
+ declare function flattenDocumentTree<T extends Record<string, any>>(nodes: HierarchyNode<T>[]): Array<{
1800
+ doc: T;
1801
+ id: string | number;
1802
+ depth: number;
1803
+ path: string;
1804
+ fullPath: string;
1805
+ hasChildren: boolean;
1806
+ }>;
1807
+
1808
+ export { AbstractBaseAdapter, AccountLockout, type AdapterOptions, type AdminStylingConfig, AuditLog, AuditLogFilter, AuditLogger, Auth, AuthAdapter, AuthResult, Session as AuthSession, AuthTokenConfig, AuthUser, BaseAdapter, type BaseEmailOptions, type BrandConfig$1 as BrandConfig, type BuildTreeOptions, CSSGenerator, CollectionConfig, type CompareVersionsOptions, ConfigValidationError, CreateArgs, type CreateStorageResult, type CreateVersionOptions, type DatabaseConnectionOptions, type DatabaseType, type DatabaseType$1 as DbAdapterType, DeleteArgs, DeliveryOptions, DeliveryResult, Dialect, type DraftPublishConfig, type DrizzleAdapterOptions, EmailTransport, type EncryptionConfig, type Environment, FIELD_DEFINITION_KEYS, Field, type FieldStyling, FindArgs, FindByIDArgs, FindResult, GlobalConfig, type HierarchyNode, InMemoryAccountLockout, InMemoryAuditLogger, InMemoryAuthAdapter, InMemoryRateLimiter, JWTPayload, Kyro, type KyroActionOptions, type KyroAuthConfig, type KyroAuthMiddlewareOptions, KyroConfig, type KyroEnvSchemaOptions, type KyroLoaderOptions, KyroPubSub, KyroWSServer, LocalAdapter, type LogLevel, Logger, LoginCredentials, MediaService, type MongoDBAdapterOptions, NeonAdapter, type NeonAdapterOptions, PasswordPolicy, type PaymentConfig, PluginManager, type PublishVersionOptions, RateLimiter, RedisAuthAdapter, RegisterData, Registry, Request$1 as Request, SQLiteAuthAdapter, type SeoTagsOptions, Session, type SocialLink, type StorageAdapter, type StorageOptions, type StoreConfig, type StylingConfig, type StylingMode, type ThemeBorderRadius, type ThemeColors, type ThemeConfig, type ThemeFonts, type ThemeShadows, type ThemeSpacing, TursoAdapter, type TursoAdapterOptions, UpdateArgs, User, UserRole, type Version, type VersionAdapter, type VersionDiff, type VersionHistoryOptions, VersionManager, type VersionPublishSchedule, type VersionStatus, WebhookConfig, WebhookDelivery, WebhookPayload, WebhookService, applyBlocksOverrides, applyCollectionOverrides, applyGlobalOverrides, applyTabsOverrides, authConfig, autoBootstrap, bootstrapAdmin, bootstrapWithRetry, buildDeliveryRecord, buildDocumentTree, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createAdminStyling, createAuditContext, createAuth, createAuthConfig, createAuthStorage, createKyro, createKyroHandler, createLocalAdapter, createLocalStorage, createNeonAdapter, createStorage, createTestPayload, createTursoAdapter, createVersionManager, defaultDarkTheme, defaultFieldStyling, defaultLightTheme, defineConfig, defineKyroConfig, deliverWebhook, deliverWithRetry, ecommerce2026Theme, fieldToZod, flattenDocumentTree, flattenFieldOverrides, generateAnalyticsTags, generateCSSVariables, generateKyroAstroTypes, generateSeoTags, generateTailwindConfig, generateWebhookSecret, getAppSecret, getBootstrapFromEnv, getBreadcrumbs, getDefaultDraftPublishConfig, getEmailTemplates, getEncryptionKey, getNestedPath, getPaymentConfig, getPaymentConfigFromSettings, getSessionConfig, getSocialLinks, getSocialLinksFromSettings, getStoreConfig, getStoreConfigFromSettings, globalToZod, isArchived, isDraft, isEdgeRuntime, isFieldOverrideDefinition, isPublished, kyroAction, kyroAuthMiddleware, kyroEnvSchema, kyroLoader, loadSecrets, logger, renderAbandonedCart, renderAccountLocked, renderBaseLayout, renderMagicLink, renderNewLogin, renderOrderConfirmation, renderOrderDelivered, renderOrderRefunded, renderOrderShipped, renderPasswordChanged, renderResetPassword, renderUserInvite, renderVerifyEmail, renderWelcome, setDbAdapter, signPayload, updateFieldByPath, validateCollection, validateConfig, validateFields, validateGlobal };
package/dist/index.d.ts CHANGED
@@ -1,28 +1,26 @@
1
1
  import * as hono from 'hono';
2
2
  import * as hono_types from 'hono/types';
3
- import { R as Registry } from './index-DTy4k1oU.js';
4
- export { c as createRegistry, g as getRegistry, r as resetRegistry } from './index-DTy4k1oU.js';
5
- import { j as StorageProvider, B as BaseAdapter, P as PluginManager, K as KyroConfig, l as User, R as Request$1, C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, f as FindOneArgs, g as FindVersionsArgs, h as VersionRecord, i as CreateVersionArgs } from './types-BWJx6zzm.js';
6
- export { m as AccessArgs, n as AccessControl, o as AdapterConfig, A as AdminConfig, p as AnalyticsPlugin, a as AuthConfig, q as CollectionAccess, r as CollectionHooks, s as CommentsPlugin, t as ConfigService, u as CreateResult, E as EmailConfig, v as FieldAccess, w as FieldHooks, x as GlobalAccess, y as GlobalHooks, H as Hook, z as HookArgs, I as ImageSize, k as KyroPlugin, J as PluginAPI, L as PluginHooks, M as ReviewsPlugin, N as SEOPlugin, S as StorageConfig, U as UploadConfig, V as VersionConfig, W as WhereClause, O as WishlistPlugin, Q as evaluateAccess, X as getWhereClause, Y as mergeWhereClauses, Z as presetPlugins, _ as resolveProvider, $ as runFieldHooks, a0 as runHooks } from './types-BWJx6zzm.js';
3
+ import { R as Registry } from './index-CxA9uOv0.js';
4
+ export { c as createRegistry, g as getRegistry, r as resetRegistry } from './index-CxA9uOv0.js';
5
+ import { a as StorageProvider, C as CollectionConfig, G as GlobalConfig, B as BaseAdapter, P as PluginManager, h as KyroConfig, i as User, R as Request$1, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, U as UpdateArgs, D as DeleteArgs, e as FindOneArgs, f as FindVersionsArgs, V as VersionRecord, g as CreateVersionArgs } from './types-C4wXHImf.js';
6
+ export { A as AccessArgs, j as AccessControl, k as AdapterConfig, l as AdminConfig, m as AnalyticsPlugin, n as AuthConfig, o as CollectionAccess, p as CollectionHooks, q as CommentsPlugin, r as ConfigService, s as CreateResult, E as EmailConfig, t as FieldAccess, u as FieldHooks, v as GlobalAccess, w as GlobalHooks, H as HierarchyConfig, x as Hook, y as HookArgs, I as ImageSize, K as KyroPlugin, O as OrganizationConfig, z as PluginAPI, J as PluginHooks, L as ProjectConfig, M as ReviewsPlugin, N as SEOPlugin, Q as SmartViewConfig, S as StorageConfig, W as UploadConfig, X as VersionConfig, Y as WhereClause, Z as WishlistPlugin, _ as evaluateAccess, $ as getWhereClause, a0 as mergeWhereClauses, a1 as presetPlugins, a2 as resolveProvider, a3 as runFieldHooks, a4 as runHooks } from './types-C4wXHImf.js';
7
7
  import { KyroPubSub, KyroWSServer } from './ws/index.js';
8
8
  export { PubSub, createWSServer } from './ws/index.js';
9
- import { W as WebhookPayload, D as DeliveryResult, a as WebhookDelivery, b as WebhookConfig, c as DeliveryOptions, d as WebhookService } from './WebhookService-CGNSlclW.js';
10
- export { A as ALL_WEBHOOK_EVENTS, C as CreateWebhookData, U as UpdateWebhookData, e as WEBHOOK_COLLECTION, f as WEBHOOK_DELIVERY_COLLECTION, g as WEBHOOK_EVENTS, h as WebhookEvent, i as WebhookTriggerResult, j as createWebhookService } from './WebhookService-CGNSlclW.js';
11
- import { F as Field } from './types-BKPEavuy.js';
12
- export { A as ALL_FIELD_TYPES, a as ArrayField, B as BaseField, b as Block, e as BlocksField, v as COMPLEX_FIELD_TYPES, C as CheckboxField, f as CodeField, g as CollapsibleField, h as ColorField, D as DateField, E as EmailField, j as FieldAdmin, k as FieldType, G as GroupField, l as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, M as MarkdownField, N as NumberField, x as PRIMITIVE_FIELD_TYPES, P as PasswordField, y as RELATIONAL_FIELD_TYPES, R as RadioField, m as RelationshipField, n as RichTextBlock, o as RichTextField, p as RowField, q as SelectField, T as TabsField, r as TextField, s as TextareaField, U as UploadField, V as ValidateOptions, O as isArrayField, Q as isBlocksField, W as isGroupField, Y as isImageField, Z as isLayoutField, _ as isNumberField, $ as isRelationshipField, a0 as isRichTextField, a1 as isSelectField, a2 as isTextField, a3 as isUploadField } from './types-BKPEavuy.js';
9
+ import { W as WebhookPayload, D as DeliveryResult, a as WebhookDelivery, b as WebhookConfig, c as DeliveryOptions, d as WebhookService } from './WebhookService-DPCCn_12.js';
10
+ export { A as ALL_WEBHOOK_EVENTS, C as CreateWebhookData, U as UpdateWebhookData, e as WEBHOOK_COLLECTION, f as WEBHOOK_DELIVERY_COLLECTION, g as WEBHOOK_EVENTS, h as WebhookEvent, i as WebhookTriggerResult, j as createWebhookService } from './WebhookService-DPCCn_12.js';
11
+ import { F as Field } from './types-DROqAsr0.js';
12
+ export { A as ALL_FIELD_TYPES, b as ArrayField, B as BaseField, c as Block, f as BlocksField, C as COMPLEX_FIELD_TYPES, h as CheckboxField, i as CodeField, j as CollapsibleField, k as ColorField, D as DateField, E as EmailField, o as FieldAdmin, p as FieldType, G as GroupField, q as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, M as MarkdownField, N as NumberField, P as PRIMITIVE_FIELD_TYPES, s as PasswordField, R as RELATIONAL_FIELD_TYPES, t as RadioField, u as RelationshipField, v as RichTextBlock, w as RichTextField, x as RowField, y as SelectField, T as TabsField, z as TextField, O as TextareaField, U as UploadField, V as ValidateOptions, W as isArrayField, X as isBlocksField, Z as isGroupField, $ as isImageField, a0 as isLayoutField, a1 as isNumberField, a2 as isRelationshipField, a3 as isRichTextField, a4 as isSelectField, a5 as isTextField, a6 as isUploadField } from './types-DROqAsr0.js';
13
13
  import { ZodTypeAny, z } from 'zod';
14
14
  export { z } from 'zod';
15
15
  export { n as normalizeRichTextValue, r as renderRichText, a as richTextStyles } from './richtext-DrhORshE.js';
16
- import { A as AbstractBaseAdapter } from './base-DxDXLyWe.js';
16
+ import { A as AuditLog, a as AuditLogFilter, b as AbstractBaseAdapter, c as AuthAdapter, U as UserRole, d as AuthUser, S as Session, e as AuthTokenConfig, R as RegisterData, f as AuthResult, L as LoginCredentials, J as JWTPayload } from './base-CAb9EYQs.js';
17
+ export { g as AuditAction } from './base-CAb9EYQs.js';
17
18
  import { Dialect } from './drizzle/index.js';
18
19
  export { DrizzleAdapter, PostgresAuthAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './drizzle/index.js';
19
20
  export { MongoDBAdapter, MongoDBAuthAdapter, createMongoDBAdapter } from './mongodb/index.js';
20
21
  export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from './trpc/index.js';
21
22
  export { buildGraphQLSchema, createGraphQLSchema } from './graphql/index.js';
22
23
  export { createKyroApp, createRESTAPI } from './rest/index.js';
23
- export { A as AdminStylingConfig, C as CSSGenerator, F as FIELD_DEFINITION_KEYS, a as FieldStyling, S as StylingConfig, b as StylingMode, T as ThemeBorderRadius, c as ThemeColors, d as ThemeConfig, e as ThemeFonts, f as ThemeShadows, g as ThemeSpacing, h as applyBlocksOverrides, i as applyCollectionOverrides, j as applyGlobalOverrides, k as applyTabsOverrides, l as createAdminStyling, m as defaultDarkTheme, n as defaultFieldStyling, o as defaultLightTheme, p as ecommerce2026Theme, q as flattenFieldOverrides, r as generateCSSVariables, s as generateTailwindConfig, t as isFieldOverrideDefinition, u as updateFieldByPath } from './index-D7kt5jT_.js';
24
- import { d as AuditLog, e as AuditLogFilter, A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, b as AuthTokenConfig, R as RegisterData, a as AuthResult, L as LoginCredentials, J as JWTPayload } from './types-CpjuXbe7.js';
25
- export { f as AuditAction } from './types-CpjuXbe7.js';
26
24
  export { TemplateConfig, allGlobalSettings, blogCollections, coreGlobalSettings, createTemplateConfig, ecommerceCollections, ecommerceGlobals, kitchenSinkCollections, mediaCollections, minimalCollections, templateCollections } from './templates/index.js';
27
25
  export { default as kyro } from './integration.js';
28
26
  import { Loader } from 'astro/loaders';
@@ -44,6 +42,15 @@ declare function deliverWithRetry(webhook: WebhookConfig, payload: WebhookPayloa
44
42
  declare function buildDeliveryRecord(deliveryId: string, webhookId: string, event: string, payload: WebhookPayload, attempt: number, result: DeliveryResult): WebhookDelivery;
45
43
  declare function createTestPayload(): WebhookPayload;
46
44
 
45
+ declare const FIELD_DEFINITION_KEYS: Set<string>;
46
+ declare function isFieldOverrideDefinition(obj: any): boolean;
47
+ declare function flattenFieldOverrides(overrides: Record<string, any>, prefix?: string): Record<string, any>;
48
+ declare function updateFieldByPath(fields: any[], path: string, updates: Record<string, any>, allowAppend?: boolean): boolean;
49
+ declare function applyBlocksOverrides(fields: any[], rawBlocks: any): void;
50
+ declare function applyTabsOverrides(fields: any[], rawTabs: any): void;
51
+ declare function applyCollectionOverrides(collections: CollectionConfig[], overrides?: Record<string, any>): void;
52
+ declare function applyGlobalOverrides(globals: GlobalConfig[], overrides?: Record<string, any>): void;
53
+
47
54
  type Redis$2 = any;
48
55
 
49
56
  declare class AuditLogger {
@@ -128,10 +135,13 @@ interface BrandConfig$1 {
128
135
  logoUrl?: string;
129
136
  logoDarkUrl?: string;
130
137
  appUrl?: string;
138
+ primaryColor?: string;
139
+ address?: string;
131
140
  }
132
141
  interface BaseEmailOptions {
133
142
  brand?: BrandConfig$1;
134
143
  title: string;
144
+ badge?: string;
135
145
  previewText?: string;
136
146
  bodyHtml: string;
137
147
  ctaText?: string;
@@ -480,6 +490,91 @@ declare class TursoAdapter extends AbstractBaseAdapter {
480
490
  }
481
491
  declare function createTursoAdapter(options: TursoAdapterOptions): TursoAdapter;
482
492
 
493
+ type StylingMode = 'css' | 'tailwind' | 'css-in-js' | 'styled-components' | 'vanilla-extract';
494
+ interface StylingConfig {
495
+ mode: StylingMode;
496
+ theme?: ThemeConfig;
497
+ customProperties?: Record<string, string>;
498
+ }
499
+ interface ThemeConfig {
500
+ colors?: ThemeColors;
501
+ fonts?: ThemeFonts;
502
+ spacing?: ThemeSpacing;
503
+ borderRadius?: ThemeBorderRadius;
504
+ shadows?: ThemeShadows;
505
+ breakpoints?: Record<string, string>;
506
+ }
507
+ interface ThemeColors {
508
+ primary?: string;
509
+ secondary?: string;
510
+ accent?: string;
511
+ background?: string;
512
+ surface?: string;
513
+ text?: string;
514
+ textMuted?: string;
515
+ border?: string;
516
+ error?: string;
517
+ warning?: string;
518
+ success?: string;
519
+ info?: string;
520
+ }
521
+ interface ThemeFonts {
522
+ sans?: string;
523
+ serif?: string;
524
+ mono?: string;
525
+ }
526
+ interface ThemeSpacing {
527
+ xs?: string;
528
+ sm?: string;
529
+ md?: string;
530
+ lg?: string;
531
+ xl?: string;
532
+ '2xl'?: string;
533
+ '3xl'?: string;
534
+ '4xl'?: string;
535
+ }
536
+ interface ThemeBorderRadius {
537
+ sm?: string;
538
+ md?: string;
539
+ lg?: string;
540
+ xl?: string;
541
+ full?: string;
542
+ }
543
+ interface ThemeShadows {
544
+ sm?: string;
545
+ md?: string;
546
+ lg?: string;
547
+ xl?: string;
548
+ }
549
+ declare class CSSGenerator {
550
+ private config;
551
+ private css;
552
+ constructor(config: StylingConfig);
553
+ addRule(selector: string, properties: Record<string, string>): this;
554
+ addMediaQuery(breakpoint: string, rules: string[]): this;
555
+ generate(): string;
556
+ }
557
+ declare function generateTailwindConfig(theme: ThemeConfig): Record<string, any>;
558
+ declare const defaultLightTheme: ThemeConfig;
559
+ declare const defaultDarkTheme: ThemeConfig;
560
+ declare const ecommerce2026Theme: ThemeConfig;
561
+ declare function generateCSSVariables(theme: ThemeConfig): string;
562
+ interface AdminStylingConfig {
563
+ mode: StylingMode;
564
+ theme?: ThemeConfig;
565
+ customStyles?: string;
566
+ componentOverrides?: Record<string, Record<string, string>>;
567
+ }
568
+ declare function createAdminStyling(config: AdminStylingConfig): string;
569
+ interface FieldStyling {
570
+ wrapper?: Record<string, string>;
571
+ label?: Record<string, string>;
572
+ input?: Record<string, string>;
573
+ error?: Record<string, string>;
574
+ description?: Record<string, string>;
575
+ }
576
+ declare const defaultFieldStyling: Record<string, FieldStyling>;
577
+
483
578
  interface RedisAuthAdapterOptions {
484
579
  url?: string;
485
580
  host?: string;
@@ -1651,4 +1746,63 @@ declare class Logger {
1651
1746
  }
1652
1747
  declare const logger: Logger;
1653
1748
 
1654
- export { AbstractBaseAdapter, AccountLockout, type AdapterOptions, AuditLog, AuditLogFilter, AuditLogger, Auth, AuthAdapter, AuthResult, Session as AuthSession, AuthTokenConfig, AuthUser, BaseAdapter, type BaseEmailOptions, type BrandConfig$1 as BrandConfig, CollectionConfig, type CompareVersionsOptions, ConfigValidationError, CreateArgs, type CreateStorageResult, type CreateVersionOptions, type DatabaseConnectionOptions, type DatabaseType, type DatabaseType$1 as DbAdapterType, DeleteArgs, DeliveryOptions, DeliveryResult, Dialect, type DraftPublishConfig, type DrizzleAdapterOptions, EmailTransport, type EncryptionConfig, type Environment, Field, FindArgs, FindByIDArgs, FindResult, GlobalConfig, InMemoryAccountLockout, InMemoryAuditLogger, InMemoryAuthAdapter, InMemoryRateLimiter, JWTPayload, Kyro, type KyroActionOptions, type KyroAuthConfig, type KyroAuthMiddlewareOptions, KyroConfig, type KyroEnvSchemaOptions, type KyroLoaderOptions, KyroPubSub, KyroWSServer, LocalAdapter, type LogLevel, Logger, LoginCredentials, MediaService, type MongoDBAdapterOptions, NeonAdapter, type NeonAdapterOptions, PasswordPolicy, type PaymentConfig, PluginManager, type PublishVersionOptions, RateLimiter, RedisAuthAdapter, RegisterData, Registry, Request$1 as Request, SQLiteAuthAdapter, type SeoTagsOptions, Session, type SocialLink, type StorageAdapter, type StorageOptions, type StoreConfig, TursoAdapter, type TursoAdapterOptions, UpdateArgs, User, UserRole, type Version, type VersionAdapter, type VersionDiff, type VersionHistoryOptions, VersionManager, type VersionPublishSchedule, type VersionStatus, WebhookConfig, WebhookDelivery, WebhookPayload, WebhookService, authConfig, autoBootstrap, bootstrapAdmin, bootstrapWithRetry, buildDeliveryRecord, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createAuditContext, createAuth, createAuthConfig, createAuthStorage, createKyro, createKyroHandler, createLocalAdapter, createLocalStorage, createNeonAdapter, createStorage, createTestPayload, createTursoAdapter, createVersionManager, defineConfig, defineKyroConfig, deliverWebhook, deliverWithRetry, fieldToZod, generateAnalyticsTags, generateKyroAstroTypes, generateSeoTags, generateWebhookSecret, getAppSecret, getBootstrapFromEnv, getDefaultDraftPublishConfig, getEmailTemplates, getEncryptionKey, getPaymentConfig, getPaymentConfigFromSettings, getSessionConfig, getSocialLinks, getSocialLinksFromSettings, getStoreConfig, getStoreConfigFromSettings, globalToZod, isArchived, isDraft, isEdgeRuntime, isPublished, kyroAction, kyroAuthMiddleware, kyroEnvSchema, kyroLoader, loadSecrets, logger, renderAbandonedCart, renderAccountLocked, renderBaseLayout, renderMagicLink, renderNewLogin, renderOrderConfirmation, renderOrderDelivered, renderOrderRefunded, renderOrderShipped, renderPasswordChanged, renderResetPassword, renderUserInvite, renderVerifyEmail, renderWelcome, setDbAdapter, signPayload, validateCollection, validateConfig, validateFields, validateGlobal };
1749
+ interface HierarchyNode<T = Record<string, any>> {
1750
+ doc: T;
1751
+ id: string | number;
1752
+ slug?: string;
1753
+ depth: number;
1754
+ path: string;
1755
+ fullPath: string;
1756
+ children: HierarchyNode<T>[];
1757
+ }
1758
+ interface BuildTreeOptions {
1759
+ idField?: string;
1760
+ parentField?: string;
1761
+ slugField?: string;
1762
+ slugPrefix?: boolean;
1763
+ basePath?: string;
1764
+ maxDepth?: number;
1765
+ }
1766
+ interface BreadcrumbItem {
1767
+ id: string | number;
1768
+ label: string;
1769
+ slug?: string;
1770
+ path?: string;
1771
+ }
1772
+ /**
1773
+ * Builds a nested hierarchical tree from a flat list of collection documents.
1774
+ */
1775
+ declare function buildDocumentTree<T extends Record<string, any>>(docs: T[], options?: BuildTreeOptions): HierarchyNode<T>[];
1776
+ /**
1777
+ * Returns breadcrumb trail for a given document within a collection.
1778
+ * Supports both getBreadcrumbs(docs, docId, options) and getBreadcrumbs(docId, docs, options).
1779
+ */
1780
+ declare function getBreadcrumbs<T extends Record<string, any>>(arg1: T[] | string | number, arg2: T[] | string | number, options?: {
1781
+ idField?: string;
1782
+ parentField?: string;
1783
+ labelField?: string;
1784
+ slugField?: string;
1785
+ basePath?: string;
1786
+ }): BreadcrumbItem[];
1787
+ /**
1788
+ * Resolves the full URL path for a document in a hierarchical collection.
1789
+ */
1790
+ declare function getNestedPath<T extends Record<string, any>>(docId: string | number, docs: T[], options?: {
1791
+ idField?: string;
1792
+ parentField?: string;
1793
+ slugField?: string;
1794
+ basePath?: string;
1795
+ }): string;
1796
+ /**
1797
+ * Flattens a document hierarchy tree with depth indicators (useful for admin select dropdowns and indented lists).
1798
+ */
1799
+ declare function flattenDocumentTree<T extends Record<string, any>>(nodes: HierarchyNode<T>[]): Array<{
1800
+ doc: T;
1801
+ id: string | number;
1802
+ depth: number;
1803
+ path: string;
1804
+ fullPath: string;
1805
+ hasChildren: boolean;
1806
+ }>;
1807
+
1808
+ export { AbstractBaseAdapter, AccountLockout, type AdapterOptions, type AdminStylingConfig, AuditLog, AuditLogFilter, AuditLogger, Auth, AuthAdapter, AuthResult, Session as AuthSession, AuthTokenConfig, AuthUser, BaseAdapter, type BaseEmailOptions, type BrandConfig$1 as BrandConfig, type BuildTreeOptions, CSSGenerator, CollectionConfig, type CompareVersionsOptions, ConfigValidationError, CreateArgs, type CreateStorageResult, type CreateVersionOptions, type DatabaseConnectionOptions, type DatabaseType, type DatabaseType$1 as DbAdapterType, DeleteArgs, DeliveryOptions, DeliveryResult, Dialect, type DraftPublishConfig, type DrizzleAdapterOptions, EmailTransport, type EncryptionConfig, type Environment, FIELD_DEFINITION_KEYS, Field, type FieldStyling, FindArgs, FindByIDArgs, FindResult, GlobalConfig, type HierarchyNode, InMemoryAccountLockout, InMemoryAuditLogger, InMemoryAuthAdapter, InMemoryRateLimiter, JWTPayload, Kyro, type KyroActionOptions, type KyroAuthConfig, type KyroAuthMiddlewareOptions, KyroConfig, type KyroEnvSchemaOptions, type KyroLoaderOptions, KyroPubSub, KyroWSServer, LocalAdapter, type LogLevel, Logger, LoginCredentials, MediaService, type MongoDBAdapterOptions, NeonAdapter, type NeonAdapterOptions, PasswordPolicy, type PaymentConfig, PluginManager, type PublishVersionOptions, RateLimiter, RedisAuthAdapter, RegisterData, Registry, Request$1 as Request, SQLiteAuthAdapter, type SeoTagsOptions, Session, type SocialLink, type StorageAdapter, type StorageOptions, type StoreConfig, type StylingConfig, type StylingMode, type ThemeBorderRadius, type ThemeColors, type ThemeConfig, type ThemeFonts, type ThemeShadows, type ThemeSpacing, TursoAdapter, type TursoAdapterOptions, UpdateArgs, User, UserRole, type Version, type VersionAdapter, type VersionDiff, type VersionHistoryOptions, VersionManager, type VersionPublishSchedule, type VersionStatus, WebhookConfig, WebhookDelivery, WebhookPayload, WebhookService, applyBlocksOverrides, applyCollectionOverrides, applyGlobalOverrides, applyTabsOverrides, authConfig, autoBootstrap, bootstrapAdmin, bootstrapWithRetry, buildDeliveryRecord, buildDocumentTree, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createAdminStyling, createAuditContext, createAuth, createAuthConfig, createAuthStorage, createKyro, createKyroHandler, createLocalAdapter, createLocalStorage, createNeonAdapter, createStorage, createTestPayload, createTursoAdapter, createVersionManager, defaultDarkTheme, defaultFieldStyling, defaultLightTheme, defineConfig, defineKyroConfig, deliverWebhook, deliverWithRetry, ecommerce2026Theme, fieldToZod, flattenDocumentTree, flattenFieldOverrides, generateAnalyticsTags, generateCSSVariables, generateKyroAstroTypes, generateSeoTags, generateTailwindConfig, generateWebhookSecret, getAppSecret, getBootstrapFromEnv, getBreadcrumbs, getDefaultDraftPublishConfig, getEmailTemplates, getEncryptionKey, getNestedPath, getPaymentConfig, getPaymentConfigFromSettings, getSessionConfig, getSocialLinks, getSocialLinksFromSettings, getStoreConfig, getStoreConfigFromSettings, globalToZod, isArchived, isDraft, isEdgeRuntime, isFieldOverrideDefinition, isPublished, kyroAction, kyroAuthMiddleware, kyroEnvSchema, kyroLoader, loadSecrets, logger, renderAbandonedCart, renderAccountLocked, renderBaseLayout, renderMagicLink, renderNewLogin, renderOrderConfirmation, renderOrderDelivered, renderOrderRefunded, renderOrderShipped, renderPasswordChanged, renderResetPassword, renderUserInvite, renderVerifyEmail, renderWelcome, setDbAdapter, signPayload, updateFieldByPath, validateCollection, validateConfig, validateFields, validateGlobal };