@intijs/core 0.0.0-stage → 0.1.1

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 (418) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +182 -3
  3. package/dist/actions/index.d.ts +438 -0
  4. package/dist/actions/index.d.ts.map +1 -0
  5. package/dist/actions/index.js +501 -0
  6. package/dist/adapt/index.d.ts +166 -0
  7. package/dist/adapt/index.d.ts.map +1 -0
  8. package/dist/adapt/index.js +407 -0
  9. package/dist/adapters/disk.d.ts +12 -0
  10. package/dist/adapters/disk.d.ts.map +1 -0
  11. package/dist/adapters/disk.js +19 -0
  12. package/dist/adapters/index.d.ts +241 -0
  13. package/dist/adapters/index.d.ts.map +1 -0
  14. package/dist/adapters/index.js +77 -0
  15. package/dist/adapters/introspection.d.ts +116 -0
  16. package/dist/adapters/introspection.d.ts.map +1 -0
  17. package/dist/adapters/introspection.js +268 -0
  18. package/dist/adapters/local.d.ts +91 -0
  19. package/dist/adapters/local.d.ts.map +1 -0
  20. package/dist/adapters/local.js +296 -0
  21. package/dist/adapters/paths.d.ts +13 -0
  22. package/dist/adapters/paths.d.ts.map +1 -0
  23. package/dist/adapters/paths.js +19 -0
  24. package/dist/api/generate.d.ts +11 -0
  25. package/dist/api/generate.d.ts.map +1 -0
  26. package/dist/api/generate.js +62 -0
  27. package/dist/api/preferences.d.ts +13 -0
  28. package/dist/api/preferences.d.ts.map +1 -0
  29. package/dist/api/preferences.js +54 -0
  30. package/dist/api/search.d.ts +12 -0
  31. package/dist/api/search.d.ts.map +1 -0
  32. package/dist/api/search.js +39 -0
  33. package/dist/api/sync.d.ts +4 -0
  34. package/dist/api/sync.d.ts.map +1 -0
  35. package/dist/api/sync.js +119 -0
  36. package/dist/astro/index.d.ts +4 -0
  37. package/dist/astro/index.d.ts.map +1 -0
  38. package/dist/astro/index.js +5 -0
  39. package/dist/blocks/index.d.ts +2 -0
  40. package/dist/blocks/index.d.ts.map +1 -0
  41. package/dist/blocks/index.js +1 -0
  42. package/dist/blocks/visibility.d.ts +42 -0
  43. package/dist/blocks/visibility.d.ts.map +1 -0
  44. package/dist/blocks/visibility.js +79 -0
  45. package/dist/cache/cache-manager.d.ts +106 -0
  46. package/dist/cache/cache-manager.d.ts.map +1 -0
  47. package/dist/cache/cache-manager.js +273 -0
  48. package/dist/cache/index.d.ts +10 -0
  49. package/dist/cache/index.d.ts.map +1 -0
  50. package/dist/cache/index.js +5 -0
  51. package/dist/cache/memory-provider.d.ts +47 -0
  52. package/dist/cache/memory-provider.d.ts.map +1 -0
  53. package/dist/cache/memory-provider.js +118 -0
  54. package/dist/cache/pages.d.ts +51 -0
  55. package/dist/cache/pages.d.ts.map +1 -0
  56. package/dist/cache/pages.js +64 -0
  57. package/dist/cache/types.d.ts +56 -0
  58. package/dist/cache/types.d.ts.map +1 -0
  59. package/dist/cache/types.js +7 -0
  60. package/dist/cache/valkey-provider.d.ts +35 -0
  61. package/dist/cache/valkey-provider.d.ts.map +1 -0
  62. package/dist/cache/valkey-provider.js +68 -0
  63. package/dist/cache/vercel-provider.d.ts +37 -0
  64. package/dist/cache/vercel-provider.d.ts.map +1 -0
  65. package/dist/cache/vercel-provider.js +58 -0
  66. package/dist/catalog/catalog.d.ts +89 -0
  67. package/dist/catalog/catalog.d.ts.map +1 -0
  68. package/dist/catalog/catalog.js +193 -0
  69. package/dist/catalog/entities.d.ts +72 -0
  70. package/dist/catalog/entities.d.ts.map +1 -0
  71. package/dist/catalog/entities.js +138 -0
  72. package/dist/catalog/index.d.ts +8 -0
  73. package/dist/catalog/index.d.ts.map +1 -0
  74. package/dist/catalog/index.js +3 -0
  75. package/dist/catalog/sitemap.d.ts +21 -0
  76. package/dist/catalog/sitemap.d.ts.map +1 -0
  77. package/dist/catalog/sitemap.js +54 -0
  78. package/dist/catalog/types.d.ts +147 -0
  79. package/dist/catalog/types.d.ts.map +1 -0
  80. package/dist/catalog/types.js +13 -0
  81. package/dist/config.d.ts +16 -0
  82. package/dist/config.d.ts.map +1 -0
  83. package/dist/config.js +16 -0
  84. package/dist/delivery/cdn-tags.d.ts +27 -0
  85. package/dist/delivery/cdn-tags.d.ts.map +1 -0
  86. package/dist/delivery/cdn-tags.js +47 -0
  87. package/dist/delivery/index.d.ts +142 -0
  88. package/dist/delivery/index.d.ts.map +1 -0
  89. package/dist/delivery/index.js +278 -0
  90. package/dist/delivery/signature.d.ts +13 -0
  91. package/dist/delivery/signature.d.ts.map +1 -0
  92. package/dist/delivery/signature.js +25 -0
  93. package/dist/errors/index.d.ts +89 -0
  94. package/dist/errors/index.d.ts.map +1 -0
  95. package/dist/errors/index.js +112 -0
  96. package/dist/forms/engine.d.ts +73 -0
  97. package/dist/forms/engine.d.ts.map +1 -0
  98. package/dist/forms/engine.js +395 -0
  99. package/dist/forms/index.d.ts +9 -0
  100. package/dist/forms/index.d.ts.map +1 -0
  101. package/dist/forms/index.js +23 -0
  102. package/dist/forms/types.d.ts +233 -0
  103. package/dist/forms/types.d.ts.map +1 -0
  104. package/dist/forms/types.js +10 -0
  105. package/dist/http/index.d.ts +84 -0
  106. package/dist/http/index.d.ts.map +1 -0
  107. package/dist/http/index.js +236 -0
  108. package/dist/image/index.d.ts +4 -0
  109. package/dist/image/index.d.ts.map +1 -0
  110. package/dist/image/index.js +2 -0
  111. package/dist/image/service.d.ts +37 -0
  112. package/dist/image/service.d.ts.map +1 -0
  113. package/dist/image/service.js +103 -0
  114. package/dist/index.d.ts +48 -0
  115. package/dist/index.d.ts.map +1 -0
  116. package/dist/index.js +52 -0
  117. package/dist/integration/index.d.ts +74 -0
  118. package/dist/integration/index.d.ts.map +1 -0
  119. package/dist/integration/index.js +0 -0
  120. package/dist/integrations/inti-styles.d.ts +26 -0
  121. package/dist/integrations/inti-styles.d.ts.map +1 -0
  122. package/dist/integrations/inti-styles.js +72 -0
  123. package/dist/plugins/index.d.ts +269 -0
  124. package/dist/plugins/index.d.ts.map +1 -0
  125. package/dist/plugins/index.js +234 -0
  126. package/dist/preview/astro.d.ts +28 -0
  127. package/dist/preview/astro.d.ts.map +1 -0
  128. package/dist/preview/astro.js +135 -0
  129. package/dist/preview/client.d.ts +48 -0
  130. package/dist/preview/client.d.ts.map +1 -0
  131. package/dist/preview/client.js +200 -0
  132. package/dist/preview/index.d.ts +6 -0
  133. package/dist/preview/index.d.ts.map +1 -0
  134. package/dist/preview/index.js +3 -0
  135. package/dist/preview/server.d.ts +57 -0
  136. package/dist/preview/server.d.ts.map +1 -0
  137. package/dist/preview/server.js +228 -0
  138. package/dist/preview/types.d.ts +51 -0
  139. package/dist/preview/types.d.ts.map +1 -0
  140. package/dist/preview/types.js +5 -0
  141. package/dist/realtime/client.d.ts +56 -0
  142. package/dist/realtime/client.d.ts.map +1 -0
  143. package/dist/realtime/client.js +349 -0
  144. package/dist/realtime/hub.d.ts +54 -0
  145. package/dist/realtime/hub.d.ts.map +1 -0
  146. package/dist/realtime/hub.js +133 -0
  147. package/dist/realtime/index.d.ts +19 -0
  148. package/dist/realtime/index.d.ts.map +1 -0
  149. package/dist/realtime/index.js +23 -0
  150. package/dist/realtime/sanitize.d.ts +20 -0
  151. package/dist/realtime/sanitize.d.ts.map +1 -0
  152. package/dist/realtime/sanitize.js +63 -0
  153. package/dist/realtime/types.d.ts +165 -0
  154. package/dist/realtime/types.d.ts.map +1 -0
  155. package/dist/realtime/types.js +10 -0
  156. package/dist/registry/index.d.ts +101 -0
  157. package/dist/registry/index.d.ts.map +1 -0
  158. package/dist/registry/index.js +93 -0
  159. package/dist/runtime/index.d.ts +15 -0
  160. package/dist/runtime/index.d.ts.map +1 -0
  161. package/dist/runtime/index.js +32 -0
  162. package/dist/seo/audit.d.ts +65 -0
  163. package/dist/seo/audit.d.ts.map +1 -0
  164. package/dist/seo/audit.js +195 -0
  165. package/dist/seo/extract.d.ts +62 -0
  166. package/dist/seo/extract.d.ts.map +1 -0
  167. package/dist/seo/extract.js +162 -0
  168. package/dist/seo/i18n.d.ts +28 -0
  169. package/dist/seo/i18n.d.ts.map +1 -0
  170. package/dist/seo/i18n.js +25 -0
  171. package/dist/seo/index.d.ts +17 -0
  172. package/dist/seo/index.d.ts.map +1 -0
  173. package/dist/seo/index.js +8 -0
  174. package/dist/seo/llms.d.ts +55 -0
  175. package/dist/seo/llms.d.ts.map +1 -0
  176. package/dist/seo/llms.js +95 -0
  177. package/dist/seo/meta.d.ts +62 -0
  178. package/dist/seo/meta.d.ts.map +1 -0
  179. package/dist/seo/meta.js +152 -0
  180. package/dist/seo/product.d.ts +88 -0
  181. package/dist/seo/product.d.ts.map +1 -0
  182. package/dist/seo/product.js +199 -0
  183. package/dist/seo/sitemap.d.ts +100 -0
  184. package/dist/seo/sitemap.d.ts.map +1 -0
  185. package/dist/seo/sitemap.js +181 -0
  186. package/dist/seo/structured-data.d.ts +90 -0
  187. package/dist/seo/structured-data.d.ts.map +1 -0
  188. package/dist/seo/structured-data.js +205 -0
  189. package/dist/server/access.d.ts +67 -0
  190. package/dist/server/access.d.ts.map +1 -0
  191. package/dist/server/access.js +140 -0
  192. package/dist/server/adapt-page.d.ts +44 -0
  193. package/dist/server/adapt-page.d.ts.map +1 -0
  194. package/dist/server/adapt-page.js +99 -0
  195. package/dist/server/batch-insert.d.ts +27 -0
  196. package/dist/server/batch-insert.d.ts.map +1 -0
  197. package/dist/server/batch-insert.js +46 -0
  198. package/dist/server/drafts.d.ts +21 -0
  199. package/dist/server/drafts.d.ts.map +1 -0
  200. package/dist/server/drafts.js +29 -0
  201. package/dist/server/editor-session.d.ts +52 -0
  202. package/dist/server/editor-session.d.ts.map +1 -0
  203. package/dist/server/editor-session.js +89 -0
  204. package/dist/server/index.d.ts +19 -0
  205. package/dist/server/index.d.ts.map +1 -0
  206. package/dist/server/index.js +13 -0
  207. package/dist/server/responses.d.ts +29 -0
  208. package/dist/server/responses.d.ts.map +1 -0
  209. package/dist/server/responses.js +51 -0
  210. package/dist/server/write-adapter.d.ts +26 -0
  211. package/dist/server/write-adapter.d.ts.map +1 -0
  212. package/dist/server/write-adapter.js +122 -0
  213. package/dist/team/index.d.ts +21 -0
  214. package/dist/team/index.d.ts.map +1 -0
  215. package/dist/team/index.js +19 -0
  216. package/dist/team/patterns.d.ts +39 -0
  217. package/dist/team/patterns.d.ts.map +1 -0
  218. package/dist/team/patterns.js +125 -0
  219. package/dist/team/valkey.d.ts +45 -0
  220. package/dist/team/valkey.d.ts.map +1 -0
  221. package/dist/team/valkey.js +61 -0
  222. package/dist/testing/index.d.ts +56 -0
  223. package/dist/testing/index.d.ts.map +1 -0
  224. package/dist/testing/index.js +146 -0
  225. package/dist/transformers/index.d.ts +6 -0
  226. package/dist/transformers/index.d.ts.map +1 -0
  227. package/dist/transformers/index.js +4 -0
  228. package/dist/transformers/markdown.d.ts +16 -0
  229. package/dist/transformers/markdown.d.ts.map +1 -0
  230. package/dist/transformers/markdown.js +106 -0
  231. package/dist/transformers/mdx.d.ts +18 -0
  232. package/dist/transformers/mdx.d.ts.map +1 -0
  233. package/dist/transformers/mdx.js +134 -0
  234. package/dist/transformers/pipeline.d.ts +17 -0
  235. package/dist/transformers/pipeline.d.ts.map +1 -0
  236. package/dist/transformers/pipeline.js +50 -0
  237. package/dist/transformers/rich-text.d.ts +32 -0
  238. package/dist/transformers/rich-text.d.ts.map +1 -0
  239. package/dist/transformers/rich-text.js +201 -0
  240. package/dist/transformers/types.d.ts +60 -0
  241. package/dist/transformers/types.d.ts.map +1 -0
  242. package/dist/transformers/types.js +5 -0
  243. package/dist/types/index.d.ts +168 -0
  244. package/dist/types/index.d.ts.map +1 -0
  245. package/dist/types/index.js +5 -0
  246. package/dist/types/media.d.ts +75 -0
  247. package/dist/types/media.d.ts.map +1 -0
  248. package/dist/types/media.js +19 -0
  249. package/dist/validation/engine.d.ts +44 -0
  250. package/dist/validation/engine.d.ts.map +1 -0
  251. package/dist/validation/engine.js +297 -0
  252. package/dist/validation/index.d.ts +21 -0
  253. package/dist/validation/index.d.ts.map +1 -0
  254. package/dist/validation/index.js +89 -0
  255. package/dist/validation/types.d.ts +223 -0
  256. package/dist/validation/types.d.ts.map +1 -0
  257. package/dist/validation/types.js +5 -0
  258. package/dist/visual-bridge/auto-detect.d.ts +41 -0
  259. package/dist/visual-bridge/auto-detect.d.ts.map +1 -0
  260. package/dist/visual-bridge/auto-detect.js +159 -0
  261. package/dist/visual-bridge/block-composer.d.ts +108 -0
  262. package/dist/visual-bridge/block-composer.d.ts.map +1 -0
  263. package/dist/visual-bridge/block-composer.js +872 -0
  264. package/dist/visual-bridge/block-reorder.d.ts +43 -0
  265. package/dist/visual-bridge/block-reorder.d.ts.map +1 -0
  266. package/dist/visual-bridge/block-reorder.js +202 -0
  267. package/dist/visual-bridge/cms-sync.d.ts +56 -0
  268. package/dist/visual-bridge/cms-sync.d.ts.map +1 -0
  269. package/dist/visual-bridge/cms-sync.js +207 -0
  270. package/dist/visual-bridge/draft-bar.d.ts +12 -0
  271. package/dist/visual-bridge/draft-bar.d.ts.map +1 -0
  272. package/dist/visual-bridge/draft-bar.js +93 -0
  273. package/dist/visual-bridge/drag-drop.d.ts +84 -0
  274. package/dist/visual-bridge/drag-drop.d.ts.map +1 -0
  275. package/dist/visual-bridge/drag-drop.js +492 -0
  276. package/dist/visual-bridge/edit-history.d.ts +35 -0
  277. package/dist/visual-bridge/edit-history.d.ts.map +1 -0
  278. package/dist/visual-bridge/edit-history.js +60 -0
  279. package/dist/visual-bridge/engine.d.ts +67 -0
  280. package/dist/visual-bridge/engine.d.ts.map +1 -0
  281. package/dist/visual-bridge/engine.js +569 -0
  282. package/dist/visual-bridge/escape.d.ts +10 -0
  283. package/dist/visual-bridge/escape.d.ts.map +1 -0
  284. package/dist/visual-bridge/escape.js +16 -0
  285. package/dist/visual-bridge/index.d.ts +18 -0
  286. package/dist/visual-bridge/index.d.ts.map +1 -0
  287. package/dist/visual-bridge/index.js +20 -0
  288. package/dist/visual-bridge/inline-editor.d.ts +89 -0
  289. package/dist/visual-bridge/inline-editor.d.ts.map +1 -0
  290. package/dist/visual-bridge/inline-editor.js +547 -0
  291. package/dist/visual-bridge/seo-overlay.d.ts +31 -0
  292. package/dist/visual-bridge/seo-overlay.d.ts.map +1 -0
  293. package/dist/visual-bridge/seo-overlay.js +125 -0
  294. package/dist/visual-bridge/types.d.ts +242 -0
  295. package/dist/visual-bridge/types.d.ts.map +1 -0
  296. package/dist/visual-bridge/types.js +14 -0
  297. package/dist/visual-bridge/view-as.d.ts +8 -0
  298. package/dist/visual-bridge/view-as.d.ts.map +1 -0
  299. package/dist/visual-bridge/view-as.js +50 -0
  300. package/integration.d.ts +22 -0
  301. package/integration.js +24 -0
  302. package/package.json +205 -6
  303. package/src/actions/index.ts +630 -0
  304. package/src/adapt/index.ts +553 -0
  305. package/src/adapters/disk.ts +23 -0
  306. package/src/adapters/index.ts +355 -0
  307. package/src/adapters/introspection.ts +382 -0
  308. package/src/adapters/local.ts +395 -0
  309. package/src/adapters/paths.ts +19 -0
  310. package/src/api/generate.ts +72 -0
  311. package/src/api/preferences.ts +63 -0
  312. package/src/api/preview.astro +36 -0
  313. package/src/api/search.ts +47 -0
  314. package/src/api/sync.ts +140 -0
  315. package/src/astro/AdaptiveZone.astro +32 -0
  316. package/src/astro/BlockRenderer.astro +221 -0
  317. package/src/astro/FallbackBlock.astro +167 -0
  318. package/src/astro/IntiSeo.astro +35 -0
  319. package/src/astro/IntiStructuredData.astro +30 -0
  320. package/src/astro/PreferencesForm.astro +48 -0
  321. package/src/astro/WhyThis.astro +35 -0
  322. package/src/astro/index.ts +5 -0
  323. package/src/blocks/index.ts +6 -0
  324. package/src/blocks/visibility.ts +87 -0
  325. package/src/cache/cache-manager.ts +315 -0
  326. package/src/cache/index.ts +16 -0
  327. package/src/cache/memory-provider.ts +140 -0
  328. package/src/cache/pages.ts +100 -0
  329. package/src/cache/types.ts +80 -0
  330. package/src/cache/valkey-provider.ts +96 -0
  331. package/src/cache/vercel-provider.ts +83 -0
  332. package/src/catalog/catalog.ts +285 -0
  333. package/src/catalog/entities.ts +158 -0
  334. package/src/catalog/index.ts +31 -0
  335. package/src/catalog/sitemap.ts +69 -0
  336. package/src/catalog/types.ts +157 -0
  337. package/src/config.ts +18 -0
  338. package/src/delivery/cdn-tags.ts +52 -0
  339. package/src/delivery/index.ts +403 -0
  340. package/src/delivery/signature.ts +28 -0
  341. package/src/errors/index.ts +122 -0
  342. package/src/forms/components/IntiForm.astro +828 -0
  343. package/src/forms/engine.ts +494 -0
  344. package/src/forms/index.ts +70 -0
  345. package/src/forms/types.ts +318 -0
  346. package/src/http/index.ts +329 -0
  347. package/src/image/IntiImage.astro +281 -0
  348. package/src/image/index.ts +10 -0
  349. package/src/image/service.ts +114 -0
  350. package/src/index.ts +210 -0
  351. package/src/integration/index.ts +0 -0
  352. package/src/integrations/inti-styles.ts +94 -0
  353. package/src/plugins/index.ts +461 -0
  354. package/src/preview/astro.ts +156 -0
  355. package/src/preview/client.ts +237 -0
  356. package/src/preview/index.ts +12 -0
  357. package/src/preview/server.ts +258 -0
  358. package/src/preview/types.ts +54 -0
  359. package/src/realtime/client.ts +416 -0
  360. package/src/realtime/components/LiveCursors.astro +238 -0
  361. package/src/realtime/components/PresenceIndicator.astro +321 -0
  362. package/src/realtime/hub.ts +149 -0
  363. package/src/realtime/index.ts +56 -0
  364. package/src/realtime/sanitize.ts +65 -0
  365. package/src/realtime/types.ts +247 -0
  366. package/src/registry/index.ts +171 -0
  367. package/src/runtime/index.ts +40 -0
  368. package/src/seo/audit.ts +254 -0
  369. package/src/seo/extract.ts +196 -0
  370. package/src/seo/i18n.ts +43 -0
  371. package/src/seo/index.ts +50 -0
  372. package/src/seo/llms.ts +133 -0
  373. package/src/seo/meta.ts +205 -0
  374. package/src/seo/product.ts +301 -0
  375. package/src/seo/sitemap.ts +250 -0
  376. package/src/seo/structured-data.ts +277 -0
  377. package/src/server/access.ts +167 -0
  378. package/src/server/adapt-page.ts +152 -0
  379. package/src/server/batch-insert.ts +88 -0
  380. package/src/server/drafts.ts +40 -0
  381. package/src/server/editor-session.ts +121 -0
  382. package/src/server/index.ts +25 -0
  383. package/src/server/responses.ts +70 -0
  384. package/src/server/write-adapter.ts +133 -0
  385. package/src/team/index.ts +27 -0
  386. package/src/team/patterns.ts +145 -0
  387. package/src/team/valkey.ts +99 -0
  388. package/src/testing/index.ts +184 -0
  389. package/src/transformers/index.ts +14 -0
  390. package/src/transformers/markdown.ts +127 -0
  391. package/src/transformers/mdx.ts +156 -0
  392. package/src/transformers/pipeline.ts +74 -0
  393. package/src/transformers/rich-text.ts +231 -0
  394. package/src/transformers/types.ts +55 -0
  395. package/src/types/index.ts +188 -0
  396. package/src/types/media.ts +89 -0
  397. package/src/validation/components/ValidatedBlock.astro +483 -0
  398. package/src/validation/components/ValidatedInput.astro +429 -0
  399. package/src/validation/engine.ts +381 -0
  400. package/src/validation/index.ts +179 -0
  401. package/src/validation/types.ts +335 -0
  402. package/src/visual-bridge/InlineEditor.astro +152 -0
  403. package/src/visual-bridge/VisualBridge.astro +327 -0
  404. package/src/visual-bridge/VisualBridgeAuto.astro +137 -0
  405. package/src/visual-bridge/auto-detect.ts +200 -0
  406. package/src/visual-bridge/block-composer.ts +986 -0
  407. package/src/visual-bridge/block-reorder.ts +231 -0
  408. package/src/visual-bridge/cms-sync.ts +286 -0
  409. package/src/visual-bridge/draft-bar.ts +103 -0
  410. package/src/visual-bridge/drag-drop.ts +591 -0
  411. package/src/visual-bridge/edit-history.ts +77 -0
  412. package/src/visual-bridge/engine.ts +682 -0
  413. package/src/visual-bridge/escape.ts +16 -0
  414. package/src/visual-bridge/index.ts +66 -0
  415. package/src/visual-bridge/inline-editor.ts +635 -0
  416. package/src/visual-bridge/seo-overlay.ts +156 -0
  417. package/src/visual-bridge/types.ts +308 -0
  418. package/src/visual-bridge/view-as.ts +56 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024–present Inti.js Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,182 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # @intijs/core
2
+
3
+ > **AI for any CMS, without changing the CMS** — for sites built with Astro. Inti is not a plugin you install inside your CMS: it renders your site with Astro and saves edits back to the CMS you already have.
4
+
5
+ [![Astro](https://img.shields.io/badge/Astro-5%20%7C%206%20%7C%207-BC52EE?logo=astro)](https://astro.build)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ The core package of [Inti](https://github.com/intijs/inti): the adapter contract, `BlockRenderer`, the on-page editor, the write actions and the plugin API. Content stays in your CMS; editors change it by double-clicking on the rendered page.
9
+
10
+ > **Beta.** Inti is at 0.1: it works and is ready to try, and its APIs may still change before 1.0.
11
+
12
+ > **Not on npm yet.** The `@intijs` packages will be published there. Until then `npm install @intijs/…` answers 404: install from git as described under [Installation](https://github.com/intijs/inti#-installation) in the repository README, or scaffold a whole project with its Quick start.
13
+
14
+ ---
15
+
16
+ ## Install
17
+
18
+ Once the packages are published:
19
+
20
+ ```bash
21
+ npm install @intijs/core @intijs/adapter-wordpress # or the adapter you use
22
+ npx astro add node # node | vercel | cloudflare | netlify
23
+ ```
24
+
25
+ The Astro adapter is required for editing: edits are saved through `astro:actions`, which only exist when Astro has an adapter.
26
+
27
+ ## Setup: no step is optional
28
+
29
+ ```js
30
+ // astro.config.mjs
31
+ import { defineConfig } from 'astro/config';
32
+ import node from '@astrojs/node';
33
+ import inti from '@intijs/core';
34
+
35
+ export default defineConfig({
36
+ output: 'server', // pages are read from the CMS per request
37
+ adapter: node({ mode: 'standalone' }), // required for editing
38
+ integrations: [inti()]
39
+ });
40
+ ```
41
+
42
+ ```ts
43
+ // src/actions/index.ts: the actions that receive the edits, on the server
44
+ import { intiActions } from '@intijs/core/actions';
45
+ export const server = { inti: intiActions };
46
+ ```
47
+
48
+ ```astro
49
+ ---
50
+ // src/pages/[...slug].astro
51
+ import { WordPressAdapter } from '@intijs/adapter-wordpress';
52
+ import { registerBlocks } from '@intijs/core/registry';
53
+ import BlockRenderer from '@intijs/core/astro/BlockRenderer.astro';
54
+ import VisualBridgeAuto from '@intijs/core/visual-bridge/VisualBridgeAuto.astro';
55
+ import { pageErrorResponse } from '@intijs/core/server';
56
+
57
+ // Each file in src/blocks is a block type: the file name is the type
58
+ registerBlocks(import.meta.glob('/src/blocks/*.astro'));
59
+
60
+ const adapter = new WordPressAdapter({ endpoint: import.meta.env.INTI_WP_ENDPOINT });
61
+ let page;
62
+ try {
63
+ page = await adapter.fetchPageBySlug(Astro.params.slug ?? 'home');
64
+ } catch (error) {
65
+ return pageErrorResponse(error); // 404 if the page does not exist, 503 if the CMS cannot answer
66
+ }
67
+ ---
68
+ <BlockRenderer blocks={page.blocks} />
69
+ <VisualBridgeAuto />
70
+ ```
71
+
72
+ ```astro
73
+ ---
74
+ // src/blocks/HeroBanner.astro: the CMS fields arrive as props
75
+ const { heading, subheading } = Astro.props;
76
+ ---
77
+ <section>
78
+ <h1 data-inti-field="heading">{heading}</h1>
79
+ <p data-inti-field="subheading">{subheading}</p>
80
+ </section>
81
+ ```
82
+
83
+ In development, hover a text, double-click, edit and press Enter: the change is written to the CMS. A block type with no component renders a labelled placeholder in development that names the file to add.
84
+
85
+ The canonical version of this setup, with every import path, is [`AGENTS.md`](https://github.com/intijs/inti/blob/main/AGENTS.md).
86
+
87
+ ## With no CMS
88
+
89
+ `LocalAdapter` stores pages in `.inti/content.json` and implements the same write contract as the CMS adapters. It is for trying out editing and for examples, not a CMS.
90
+
91
+ ```ts
92
+ import { LocalAdapter } from '@intijs/core/adapters/local';
93
+
94
+ const adapter = new LocalAdapter();
95
+ const page = await adapter.fetchPageBySlug('home');
96
+ ```
97
+
98
+ ## Who may edit
99
+
100
+ In development anyone can edit. In production Inti refuses every write, and does not show the editor, until a plugin decides who is editing. Register it in `src/middleware.ts` (not in `src/actions/index.ts`: Astro only loads that module with the first action):
101
+
102
+ ```ts
103
+ // src/middleware.ts
104
+ import { defineMiddleware } from 'astro:middleware';
105
+ import { registerIntiPlugin } from '@intijs/core/plugins';
106
+
107
+ registerIntiPlugin({
108
+ name: 'session',
109
+ // Who is asking: null = nobody identified
110
+ resolveActor: async (ctx) => (await mySession(ctx.request)) ?? null,
111
+ // Whether they may write
112
+ beforeWrite: (ctx) => ({ allowed: Boolean(ctx.actor) })
113
+ });
114
+
115
+ export const onRequest = defineMiddleware((_context, next) => next());
116
+ ```
117
+
118
+ `mySession` is yours: Inti has no user management. See [securing writes](https://github.com/intijs/inti/blob/main/apps/docs/src/content/docs/guides/securing-writes.md).
119
+
120
+ ## Interactive components
121
+
122
+ Astro already mixes React, Vue, Svelte and Solid on one page. Put the `client:*` directive inside the block, on a statically imported component:
123
+
124
+ ```astro
125
+ ---
126
+ // src/blocks/Carousel.astro
127
+ import Carousel from '../components/Carousel.svelte';
128
+ const { title, slides } = Astro.props;
129
+ ---
130
+ <h2 data-inti-field="title">{title}</h2>
131
+ <Carousel client:visible slides={slides} />
132
+ ```
133
+
134
+ ## Entry points
135
+
136
+ | Import | What it gives you |
137
+ |---|---|
138
+ | `@intijs/core` | The Astro integration (`inti()`, default export) and `defineConfig` for `inti.config.ts` |
139
+ | `@intijs/core/actions` | `intiActions`, the write actions |
140
+ | `@intijs/core/registry` | `registerBlocks` |
141
+ | `@intijs/core/astro/BlockRenderer.astro` | Renders a page's blocks with your components |
142
+ | `@intijs/core/astro/IntiSeo.astro`, `IntiStructuredData.astro` | Head tags and JSON-LD from `page.seo` |
143
+ | `@intijs/core/visual-bridge/VisualBridgeAuto.astro` | The on-page editor |
144
+ | `@intijs/core/adapters` | `IntiAdapter` and the `WritableAdapter` contract, to write an adapter |
145
+ | `@intijs/core/adapters/local` | `LocalAdapter` |
146
+ | `@intijs/core/server` | Server helpers such as `env` and `readDraftPage` |
147
+ | `@intijs/core/plugins` | `registerIntiPlugin` (`resolveActor`, `beforeWrite`, `afterWrite`) |
148
+ | `@intijs/core/types` | `IntiPage`, `IntiBlock` and the other shared types |
149
+ | `@intijs/core/errors` | `NotFoundError`, `UnavailableError` and the checks that tell them apart |
150
+ | `@intijs/core/http` | `createHttpClient`, the HTTP client adapters share |
151
+ | `@intijs/core/cache` | `cachePages`, `createCacheManager`, `createValkeyCacheProvider` |
152
+ | `@intijs/core/delivery` | `intiDelivery` (CDN headers, HTML cache, editor markup only for editors) and `purgeRoute` |
153
+ | `@intijs/core/catalog` | Products and other entities from an ERP or a shop, bound blocks, catalog sitemaps |
154
+ | `@intijs/core/testing` | `adapterConformance`, the checks every adapter passes |
155
+
156
+ ## Adapters
157
+
158
+ | CMS | Package | Write-back |
159
+ |---|---|---|
160
+ | WordPress | `@intijs/adapter-wordpress` | yes |
161
+ | Kitsuden | `@intijs/adapter-kitsuden` | yes |
162
+ | Strapi v4 and v5 | `@intijs/adapter-strapi` | yes |
163
+ | Keystatic | `@intijs/adapter-keystatic` | yes |
164
+ | Contentful | `@intijs/adapter-contentful` | read only |
165
+ | Sanity | `@intijs/adapter-sanity` | read only |
166
+
167
+ Any adapter that implements `WritableAdapter` gets inline editing.
168
+
169
+ ## Documentation
170
+
171
+ - [Getting started](https://github.com/intijs/inti/blob/main/apps/docs/src/content/docs/guides/quickstart.mdx)
172
+ - [Adapters](https://github.com/intijs/inti/blob/main/apps/docs/src/content/docs/adapters/contract.mdx)
173
+ - [Securing writes](https://github.com/intijs/inti/blob/main/apps/docs/src/content/docs/guides/securing-writes.md)
174
+ - [Deployment](https://github.com/intijs/inti/blob/main/apps/docs/src/content/docs/guides/deployment.md)
175
+
176
+ ## Contributing
177
+
178
+ See the [contributing guide](https://github.com/intijs/inti/blob/main/CONTRIBUTING.md).
179
+
180
+ ## License
181
+
182
+ MIT
@@ -0,0 +1,438 @@
1
+ import type { DraftResult, WriteResult, EntrySummary } from '../adapters/index.js';
2
+ import type { Pattern } from '../plugins/index.js';
3
+ export declare const intiActions: {
4
+ /**
5
+ * Inline-editing write-back: updates one field of a block
6
+ * in the source CMS (WordPress, Strapi, or the local store).
7
+ *
8
+ * The client (VisualBridge's inline editor) calls this action;
9
+ * the CMS credentials never leave the server.
10
+ */
11
+ updateBlockField: ((input: {
12
+ documentId: string;
13
+ blockIndex: number;
14
+ field: string;
15
+ value: any;
16
+ blockId?: string | undefined;
17
+ blockVersion?: string | undefined;
18
+ }) => Promise<import("astro:actions").SafeResult<{
19
+ documentId: string;
20
+ blockIndex: number;
21
+ field: string;
22
+ value: any;
23
+ blockId?: string | undefined;
24
+ blockVersion?: string | undefined;
25
+ }, WriteResult>>) & {
26
+ queryString: string;
27
+ orThrow: (input: {
28
+ documentId: string;
29
+ blockIndex: number;
30
+ field: string;
31
+ value: any;
32
+ blockId?: string | undefined;
33
+ blockVersion?: string | undefined;
34
+ }) => Promise<WriteResult>;
35
+ } & {
36
+ __internalInfer: import("astro:schema").ZodObject<{
37
+ documentId: import("astro:schema").ZodString;
38
+ blockIndex: import("astro:schema").ZodNumber;
39
+ blockId: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
40
+ blockVersion: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
41
+ field: import("astro:schema").ZodString;
42
+ value: import("astro:schema").ZodAny;
43
+ }, import("zod/v4/core").$strip>;
44
+ } & string;
45
+ /**
46
+ * Block drag & drop: moves a block to another position.
47
+ */
48
+ moveBlock: ((input: {
49
+ documentId: string;
50
+ fromIndex: number;
51
+ toIndex: number;
52
+ blockId?: string | undefined;
53
+ }) => Promise<import("astro:actions").SafeResult<{
54
+ documentId: string;
55
+ fromIndex: number;
56
+ toIndex: number;
57
+ blockId?: string | undefined;
58
+ }, WriteResult>>) & {
59
+ queryString: string;
60
+ orThrow: (input: {
61
+ documentId: string;
62
+ fromIndex: number;
63
+ toIndex: number;
64
+ blockId?: string | undefined;
65
+ }) => Promise<WriteResult>;
66
+ } & {
67
+ __internalInfer: import("astro:schema").ZodObject<{
68
+ documentId: import("astro:schema").ZodString;
69
+ fromIndex: import("astro:schema").ZodNumber;
70
+ toIndex: import("astro:schema").ZodNumber;
71
+ blockId: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
72
+ }, import("zod/v4/core").$strip>;
73
+ } & string;
74
+ /**
75
+ * Composition: inserts a new block at the given position.
76
+ * `nativeType` is the CMS identifier (acf_fc_layout, uid, type).
77
+ */
78
+ insertBlock: ((input: {
79
+ documentId: string;
80
+ index: number;
81
+ nativeType: string;
82
+ data?: Record<string, any> | undefined;
83
+ }) => Promise<import("astro:actions").SafeResult<{
84
+ documentId: string;
85
+ index: number;
86
+ nativeType: string;
87
+ data?: Record<string, any> | undefined;
88
+ }, WriteResult>>) & {
89
+ queryString: string;
90
+ orThrow: (input: {
91
+ documentId: string;
92
+ index: number;
93
+ nativeType: string;
94
+ data?: Record<string, any> | undefined;
95
+ }) => Promise<WriteResult>;
96
+ } & {
97
+ __internalInfer: import("astro:schema").ZodObject<{
98
+ documentId: import("astro:schema").ZodString;
99
+ index: import("astro:schema").ZodNumber;
100
+ nativeType: import("astro:schema").ZodString;
101
+ data: import("astro:schema").ZodOptional<import("astro:schema").ZodRecord<import("astro:schema").ZodString, import("astro:schema").ZodAny>>;
102
+ }, import("zod/v4/core").$strip>;
103
+ } & string;
104
+ /**
105
+ * Composition: inserts several consecutive blocks as one unit.
106
+ *
107
+ * Pattern insertion uses it. It is separate from `insertBlock`
108
+ * because a pattern must go in whole or not at all: with N separate
109
+ * calls, a failure halfway through leaves the page published with
110
+ * half a pattern.
111
+ */
112
+ insertBlocks: ((input: {
113
+ documentId: string;
114
+ index: number;
115
+ blocks: {
116
+ nativeType: string;
117
+ data?: Record<string, any> | undefined;
118
+ }[];
119
+ }) => Promise<import("astro:actions").SafeResult<{
120
+ documentId: string;
121
+ index: number;
122
+ blocks: {
123
+ nativeType: string;
124
+ data?: Record<string, any> | undefined;
125
+ }[];
126
+ }, WriteResult>>) & {
127
+ queryString: string;
128
+ orThrow: (input: {
129
+ documentId: string;
130
+ index: number;
131
+ blocks: {
132
+ nativeType: string;
133
+ data?: Record<string, any> | undefined;
134
+ }[];
135
+ }) => Promise<WriteResult>;
136
+ } & {
137
+ __internalInfer: import("astro:schema").ZodObject<{
138
+ documentId: import("astro:schema").ZodString;
139
+ index: import("astro:schema").ZodNumber;
140
+ blocks: import("astro:schema").ZodArray<import("astro:schema").ZodObject<{
141
+ nativeType: import("astro:schema").ZodString;
142
+ data: import("astro:schema").ZodOptional<import("astro:schema").ZodRecord<import("astro:schema").ZodString, import("astro:schema").ZodAny>>;
143
+ }, import("zod/v4/core").$strip>>;
144
+ }, import("zod/v4/core").$strip>;
145
+ } & string;
146
+ /**
147
+ * Drafts: working copy of a published page. Publishing and discarding
148
+ * go through the same guard as any write: `publishDraft` is the
149
+ * operation a plugin will want to reserve for certain roles.
150
+ */
151
+ createDraft: ((input: {
152
+ documentId: string;
153
+ }) => Promise<import("astro:actions").SafeResult<{
154
+ documentId: string;
155
+ }, DraftResult>>) & {
156
+ queryString: string;
157
+ orThrow: (input: {
158
+ documentId: string;
159
+ }) => Promise<DraftResult>;
160
+ } & {
161
+ __internalInfer: import("astro:schema").ZodObject<{
162
+ documentId: import("astro:schema").ZodString;
163
+ }, import("zod/v4/core").$strip>;
164
+ } & string;
165
+ publishDraft: ((input: {
166
+ documentId: string;
167
+ }) => Promise<import("astro:actions").SafeResult<{
168
+ documentId: string;
169
+ }, DraftResult>>) & {
170
+ queryString: string;
171
+ orThrow: (input: {
172
+ documentId: string;
173
+ }) => Promise<DraftResult>;
174
+ } & {
175
+ __internalInfer: import("astro:schema").ZodObject<{
176
+ documentId: import("astro:schema").ZodString;
177
+ }, import("zod/v4/core").$strip>;
178
+ } & string;
179
+ discardDraft: ((input: {
180
+ documentId: string;
181
+ }) => Promise<import("astro:actions").SafeResult<{
182
+ documentId: string;
183
+ }, DraftResult>>) & {
184
+ queryString: string;
185
+ orThrow: (input: {
186
+ documentId: string;
187
+ }) => Promise<DraftResult>;
188
+ } & {
189
+ __internalInfer: import("astro:schema").ZodObject<{
190
+ documentId: import("astro:schema").ZodString;
191
+ }, import("zod/v4/core").$strip>;
192
+ } & string;
193
+ /**
194
+ * Composition: removes the block at the given position.
195
+ */
196
+ removeBlock: ((input: {
197
+ documentId: string;
198
+ index: number;
199
+ blockId?: string | undefined;
200
+ }) => Promise<import("astro:actions").SafeResult<{
201
+ documentId: string;
202
+ index: number;
203
+ blockId?: string | undefined;
204
+ }, WriteResult>>) & {
205
+ queryString: string;
206
+ orThrow: (input: {
207
+ documentId: string;
208
+ index: number;
209
+ blockId?: string | undefined;
210
+ }) => Promise<WriteResult>;
211
+ } & {
212
+ __internalInfer: import("astro:schema").ZodObject<{
213
+ documentId: import("astro:schema").ZodString;
214
+ index: import("astro:schema").ZodNumber;
215
+ blockId: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
216
+ }, import("zod/v4/core").$strip>;
217
+ } & string;
218
+ /**
219
+ * Composition: duplicates the block at the given position.
220
+ */
221
+ duplicateBlock: ((input: {
222
+ documentId: string;
223
+ index: number;
224
+ blockId?: string | undefined;
225
+ }) => Promise<import("astro:actions").SafeResult<{
226
+ documentId: string;
227
+ index: number;
228
+ blockId?: string | undefined;
229
+ }, WriteResult>>) & {
230
+ queryString: string;
231
+ orThrow: (input: {
232
+ documentId: string;
233
+ index: number;
234
+ blockId?: string | undefined;
235
+ }) => Promise<WriteResult>;
236
+ } & {
237
+ __internalInfer: import("astro:schema").ZodObject<{
238
+ documentId: import("astro:schema").ZodString;
239
+ index: import("astro:schema").ZodNumber;
240
+ blockId: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
241
+ }, import("zod/v4/core").$strip>;
242
+ } & string;
243
+ /**
244
+ * Settings panel: replaces the whole data of a block.
245
+ */
246
+ updateBlock: ((input: {
247
+ documentId: string;
248
+ blockIndex: number;
249
+ data: Record<string, any>;
250
+ blockId?: string | undefined;
251
+ }) => Promise<import("astro:actions").SafeResult<{
252
+ documentId: string;
253
+ blockIndex: number;
254
+ data: Record<string, any>;
255
+ blockId?: string | undefined;
256
+ }, WriteResult>>) & {
257
+ queryString: string;
258
+ orThrow: (input: {
259
+ documentId: string;
260
+ blockIndex: number;
261
+ data: Record<string, any>;
262
+ blockId?: string | undefined;
263
+ }) => Promise<WriteResult>;
264
+ } & {
265
+ __internalInfer: import("astro:schema").ZodObject<{
266
+ documentId: import("astro:schema").ZodString;
267
+ blockIndex: import("astro:schema").ZodNumber;
268
+ blockId: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
269
+ data: import("astro:schema").ZodRecord<import("astro:schema").ZodString, import("astro:schema").ZodAny>;
270
+ }, import("zod/v4/core").$strip>;
271
+ } & string;
272
+ /**
273
+ * Lists the team's shared patterns.
274
+ *
275
+ * `shared: false` means no store is configured and the client must
276
+ * use its localStorage — that is the MIT core's behavior.
277
+ */
278
+ listPatterns: ((input?: any) => Promise<import("astro:actions").SafeResult<never, {
279
+ shared: boolean;
280
+ patterns: Pattern[];
281
+ }>>) & {
282
+ orThrow: (input?: any) => Promise<{
283
+ shared: boolean;
284
+ patterns: Pattern[];
285
+ }>;
286
+ } & string;
287
+ /** Saves a pattern to the shared store, if there is one */
288
+ savePattern: ((input: {
289
+ name: string;
290
+ blocks: {
291
+ nativeType: string;
292
+ data: Record<string, any>;
293
+ }[];
294
+ }) => Promise<import("astro:actions").SafeResult<{
295
+ name: string;
296
+ blocks: {
297
+ nativeType: string;
298
+ data: Record<string, any>;
299
+ }[];
300
+ }, {
301
+ shared: boolean;
302
+ }>>) & {
303
+ queryString: string;
304
+ orThrow: (input: {
305
+ name: string;
306
+ blocks: {
307
+ nativeType: string;
308
+ data: Record<string, any>;
309
+ }[];
310
+ }) => Promise<{
311
+ shared: boolean;
312
+ }>;
313
+ } & {
314
+ __internalInfer: import("astro:schema").ZodObject<{
315
+ name: import("astro:schema").ZodString;
316
+ blocks: import("astro:schema").ZodArray<import("astro:schema").ZodObject<{
317
+ nativeType: import("astro:schema").ZodString;
318
+ data: import("astro:schema").ZodRecord<import("astro:schema").ZodString, import("astro:schema").ZodAny>;
319
+ }, import("zod/v4/core").$strip>>;
320
+ }, import("zod/v4/core").$strip>;
321
+ } & string;
322
+ /** Deletes a pattern from the shared store, if there is one */
323
+ deletePattern: ((input: {
324
+ name: string;
325
+ }) => Promise<import("astro:actions").SafeResult<{
326
+ name: string;
327
+ }, {
328
+ shared: boolean;
329
+ }>>) & {
330
+ queryString: string;
331
+ orThrow: (input: {
332
+ name: string;
333
+ }) => Promise<{
334
+ shared: boolean;
335
+ }>;
336
+ } & {
337
+ __internalInfer: import("astro:schema").ZodObject<{
338
+ name: import("astro:schema").ZodString;
339
+ }, import("zod/v4/core").$strip>;
340
+ } & string;
341
+ /**
342
+ * Assisted composition: proposes blocks from an instruction.
343
+ *
344
+ * `available: false` means no generator is configured — the MIT
345
+ * core ships none; @intijs/genui provides one.
346
+ */
347
+ generateBlocks: ((input: {
348
+ prompt: string;
349
+ blockTypes: {
350
+ nativeType: string;
351
+ label?: string | undefined;
352
+ description?: string | undefined;
353
+ when?: string | undefined;
354
+ fields?: Record<string, any> | undefined;
355
+ variants?: Record<string, string[]> | undefined;
356
+ }[];
357
+ max?: number | undefined;
358
+ }) => Promise<import("astro:actions").SafeResult<{
359
+ prompt: string;
360
+ blockTypes: {
361
+ nativeType: string;
362
+ label?: string | undefined;
363
+ description?: string | undefined;
364
+ when?: string | undefined;
365
+ fields?: Record<string, any> | undefined;
366
+ variants?: Record<string, string[]> | undefined;
367
+ }[];
368
+ max?: number | undefined;
369
+ }, {
370
+ available: false;
371
+ blocks: never[];
372
+ warnings: never[];
373
+ } | {
374
+ blocks: import("../plugins/index.js").PatternBlock[];
375
+ rendered?: import("../plugins/index.js").PatternBlock[];
376
+ warnings: string[];
377
+ available: true;
378
+ }>>) & {
379
+ queryString: string;
380
+ orThrow: (input: {
381
+ prompt: string;
382
+ blockTypes: {
383
+ nativeType: string;
384
+ label?: string | undefined;
385
+ description?: string | undefined;
386
+ when?: string | undefined;
387
+ fields?: Record<string, any> | undefined;
388
+ variants?: Record<string, string[]> | undefined;
389
+ }[];
390
+ max?: number | undefined;
391
+ }) => Promise<{
392
+ available: false;
393
+ blocks: never[];
394
+ warnings: never[];
395
+ } | {
396
+ blocks: import("../plugins/index.js").PatternBlock[];
397
+ rendered?: import("../plugins/index.js").PatternBlock[];
398
+ warnings: string[];
399
+ available: true;
400
+ }>;
401
+ } & {
402
+ __internalInfer: import("astro:schema").ZodObject<{
403
+ prompt: import("astro:schema").ZodString;
404
+ blockTypes: import("astro:schema").ZodArray<import("astro:schema").ZodObject<{
405
+ nativeType: import("astro:schema").ZodString;
406
+ label: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
407
+ description: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
408
+ when: import("astro:schema").ZodOptional<import("astro:schema").ZodString>;
409
+ fields: import("astro:schema").ZodOptional<import("astro:schema").ZodRecord<import("astro:schema").ZodString, import("astro:schema").ZodAny>>;
410
+ variants: import("astro:schema").ZodOptional<import("astro:schema").ZodRecord<import("astro:schema").ZodString, import("astro:schema").ZodArray<import("astro:schema").ZodString>>>;
411
+ }, import("zod/v4/core").$strip>>;
412
+ max: import("astro:schema").ZodOptional<import("astro:schema").ZodNumber>;
413
+ }, import("zod/v4/core").$strip>;
414
+ } & string;
415
+ /**
416
+ * Entry search for the relation picker
417
+ * (inline-editing mini-panel for relation fields)
418
+ */
419
+ searchEntries: ((input: {
420
+ collection: string;
421
+ query: string;
422
+ }) => Promise<import("astro:actions").SafeResult<{
423
+ collection: string;
424
+ query: string;
425
+ }, EntrySummary[]>>) & {
426
+ queryString: string;
427
+ orThrow: (input: {
428
+ collection: string;
429
+ query: string;
430
+ }) => Promise<EntrySummary[]>;
431
+ } & {
432
+ __internalInfer: import("astro:schema").ZodObject<{
433
+ collection: import("astro:schema").ZodString;
434
+ query: import("astro:schema").ZodString;
435
+ }, import("zod/v4/core").$strip>;
436
+ } & string;
437
+ };
438
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAUnF,OAAO,KAAK,EAAuC,OAAO,EAAsB,MAAM,qBAAqB,CAAC;AA2N5G,eAAO,MAAM,WAAW;IACtB;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgCH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuCH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IA6BH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IA6BH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+BH;;;;;OAKG;;gBAEiF,OAAO;kBAAY,OAAO,EAAE;;;oBAA5B,OAAO;sBAAY,OAAO,EAAE;;;IAShH,2DAA2D;;;;;;;;;;;;;;gBAWc,OAAO;;;;;;;;;;oBAAP,OAAO;;;;;;;;;;;IAiBhF,+DAA+D;;;;;;gBAGU,OAAO;;;;;;oBAAP,OAAO;;;;;;;IAWhF;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCH;;;OAGG;;;;;;;;;;;;;;;;;;;CAoBJ,CAAC"}