@jini-ai/core 0.7.3-next.2 → 0.7.4

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 (561) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +68 -0
  3. package/dist/admin-runtime/admin-http.d.ts +43 -0
  4. package/dist/admin-runtime/admin-http.js +11 -0
  5. package/dist/admin-runtime/index.d.ts +1 -0
  6. package/dist/batch-tool-inputs.d.ts +3 -3
  7. package/dist/batch-tool-inputs.js +18 -6
  8. package/dist/config/env-schema.d.ts +31 -0
  9. package/dist/config/env-schema.js +29 -0
  10. package/dist/contracts/agents/definition.d.ts +9 -1
  11. package/dist/contracts/agents/index.d.ts +1 -0
  12. package/dist/contracts/agents/inventory.d.ts +29 -0
  13. package/dist/contracts/agents/inventory.js +8 -0
  14. package/dist/contracts/agents/provider-ports.d.ts +117 -0
  15. package/dist/contracts/agents/provider-ports.js +2 -0
  16. package/dist/contracts/agents/proxy-provider-kit.d.ts +122 -0
  17. package/dist/contracts/agents/proxy-provider-kit.js +119 -0
  18. package/dist/contracts/agents/proxy-provider.d.ts +34 -0
  19. package/dist/contracts/agents/proxy-provider.js +2 -0
  20. package/dist/contracts/blob-gc.d.ts +69 -0
  21. package/dist/contracts/blob-gc.js +13 -0
  22. package/dist/contracts/credentials.d.ts +5 -19
  23. package/dist/contracts/desktop-zoom.d.ts +7 -0
  24. package/dist/contracts/desktop-zoom.js +6 -0
  25. package/dist/contracts/events/change-set.d.ts +12 -3
  26. package/dist/contracts/events/command.d.ts +11 -5
  27. package/dist/contracts/events/ports.d.ts +38 -0
  28. package/dist/contracts/events/ports.js +8 -1
  29. package/dist/contracts/events.d.ts +2 -1
  30. package/dist/contracts/events.js +1 -1
  31. package/dist/contracts/execution.d.ts +541 -0
  32. package/dist/contracts/execution.js +2 -0
  33. package/dist/contracts/find-in-page.d.ts +12 -0
  34. package/dist/contracts/find-in-page.js +7 -0
  35. package/dist/contracts/headless/chart-providers.d.ts +12 -0
  36. package/dist/contracts/headless/chart-providers.js +2 -0
  37. package/dist/contracts/headless/chat-attachment.d.ts +21 -0
  38. package/dist/contracts/headless/chat-attachment.js +9 -0
  39. package/dist/contracts/headless/contracts.d.ts +179 -0
  40. package/dist/contracts/headless/contracts.js +2 -0
  41. package/dist/contracts/headless/form-delivery-status.d.ts +35 -0
  42. package/dist/contracts/headless/form-delivery-status.js +2 -0
  43. package/dist/contracts/headless/member-login.d.ts +3 -0
  44. package/dist/contracts/headless/member-login.js +3 -0
  45. package/dist/contracts/headless/operator-locale.d.ts +17 -0
  46. package/dist/contracts/headless/operator-locale.js +2 -0
  47. package/dist/contracts/headless/plugin-export-catalog.d.ts +21 -0
  48. package/dist/contracts/headless/plugin-export-catalog.js +2 -0
  49. package/dist/contracts/headless/plugin-host.d.ts +128 -0
  50. package/dist/contracts/headless/plugin-host.js +2 -0
  51. package/dist/contracts/headless/plugin-install-source.d.ts +82 -0
  52. package/dist/contracts/headless/plugin-install-source.js +12 -0
  53. package/dist/contracts/headless/site-cookie-consent.d.ts +41 -0
  54. package/dist/contracts/headless/site-cookie-consent.js +2 -0
  55. package/dist/contracts/hosted-mcp/admissions.d.ts +125 -0
  56. package/dist/contracts/hosted-mcp/admissions.js +3 -0
  57. package/dist/contracts/hosted-mcp/record.d.ts +9 -3
  58. package/dist/contracts/hosted-mcp.d.ts +1 -0
  59. package/dist/contracts/mail.d.ts +28 -2
  60. package/dist/contracts/mail.js +3 -0
  61. package/dist/contracts/observability.d.ts +12 -0
  62. package/dist/contracts/run-attempt.d.ts +14 -0
  63. package/dist/contracts/run-attempt.js +7 -0
  64. package/dist/contracts/server/api-error.js +1 -0
  65. package/dist/contracts/server/client-facing-error.d.ts +25 -0
  66. package/dist/contracts/server/client-facing-error.js +21 -0
  67. package/dist/contracts/server/deferred-body.d.ts +65 -0
  68. package/dist/contracts/server/deferred-body.js +2 -0
  69. package/dist/contracts/server/failure-copy.d.ts +19 -0
  70. package/dist/contracts/server/failure-copy.js +26 -0
  71. package/dist/contracts/server/json-route.d.ts +52 -26
  72. package/dist/contracts/server/json-route.js +128 -32
  73. package/dist/contracts/server/request-body.d.ts +12 -0
  74. package/dist/contracts/server/request-body.js +8 -4
  75. package/dist/contracts/server/route-reply.d.ts +32 -0
  76. package/dist/contracts/server/route-reply.js +26 -0
  77. package/dist/contracts/server.d.ts +4 -0
  78. package/dist/contracts/server.js +4 -0
  79. package/dist/contracts/site/admin-sites.d.ts +134 -0
  80. package/dist/contracts/site/admin-sites.js +7 -0
  81. package/dist/contracts/site/admin-surfaces-connections.d.ts +128 -0
  82. package/dist/contracts/site/admin-surfaces-connections.js +2 -0
  83. package/dist/contracts/site/agent-plugins-admin-surfaces.d.ts +218 -0
  84. package/dist/contracts/site/agent-plugins-admin-surfaces.js +2 -0
  85. package/dist/contracts/site/agent-plugins-connect.d.ts +25 -0
  86. package/dist/contracts/site/agent-plugins-connect.js +2 -0
  87. package/dist/contracts/site/agent-plugins-lifecycle.d.ts +151 -0
  88. package/dist/contracts/site/agent-plugins-lifecycle.js +2 -0
  89. package/dist/contracts/site/agent-plugins-manifest.d.ts +41 -0
  90. package/dist/contracts/site/agent-plugins-manifest.js +11 -0
  91. package/dist/contracts/site/agent-runtime.d.ts +110 -0
  92. package/dist/contracts/site/agent-runtime.js +2 -0
  93. package/dist/contracts/site/agentic-core.d.ts +44 -0
  94. package/dist/contracts/site/agentic-core.js +9 -0
  95. package/dist/contracts/site/agentic-dom.d.ts +27 -0
  96. package/dist/contracts/site/agentic-dom.js +2 -0
  97. package/dist/contracts/site/agentic.d.ts +37 -0
  98. package/dist/contracts/site/agentic.js +8 -0
  99. package/dist/contracts/site/analytics.d.ts +81 -0
  100. package/dist/contracts/site/analytics.js +2 -0
  101. package/dist/contracts/site/api-ai-assistant-api-types.d.ts +182 -0
  102. package/dist/contracts/site/api-ai-assistant-api-types.js +2 -0
  103. package/dist/contracts/site/api-connections-hosted-mcp.d.ts +176 -0
  104. package/dist/contracts/site/api-connections-hosted-mcp.js +2 -0
  105. package/dist/contracts/site/api-security-api-types.d.ts +177 -0
  106. package/dist/contracts/site/api-security-api-types.js +2 -0
  107. package/dist/contracts/site/approval-i18n.d.ts +32 -0
  108. package/dist/contracts/site/approval-i18n.js +156 -0
  109. package/dist/contracts/site/asset-transfer-tool-ports.d.ts +54 -0
  110. package/dist/contracts/site/asset-transfer-tool-ports.js +2 -0
  111. package/dist/contracts/site/assistant-host-ports.d.ts +23 -0
  112. package/dist/contracts/site/assistant-host-ports.js +2 -0
  113. package/dist/contracts/site/assistant-mcp-services.d.ts +26 -0
  114. package/dist/contracts/site/assistant-mcp-services.js +8 -0
  115. package/dist/contracts/site/assistant-tool-contributions.d.ts +45 -0
  116. package/dist/contracts/site/assistant-tool-contributions.js +2 -0
  117. package/dist/contracts/site/chat-core.d.ts +93 -0
  118. package/dist/contracts/site/chat-core.js +13 -0
  119. package/dist/contracts/site/client-directives.d.ts +21 -0
  120. package/dist/contracts/site/client-directives.js +8 -0
  121. package/dist/contracts/site/cms-admin-media.d.ts +61 -0
  122. package/dist/contracts/site/cms-admin-media.js +7 -0
  123. package/dist/contracts/site/cms-agent-plugins.d.ts +114 -0
  124. package/dist/contracts/site/cms-agent-plugins.js +17 -0
  125. package/dist/contracts/site/cms-assistant.d.ts +74 -0
  126. package/dist/contracts/site/cms-assistant.js +17 -0
  127. package/dist/contracts/site/cms-core.d.ts +17 -0
  128. package/dist/contracts/site/cms-core.js +12 -0
  129. package/dist/contracts/site/cms-external-mcp.d.ts +206 -0
  130. package/dist/contracts/site/cms-external-mcp.js +13 -0
  131. package/dist/contracts/site/cms-forms.d.ts +192 -0
  132. package/dist/contracts/site/cms-forms.js +15 -0
  133. package/dist/contracts/site/cms-integrations.d.ts +47 -0
  134. package/dist/contracts/site/cms-integrations.js +8 -0
  135. package/dist/contracts/site/cms-mail.d.ts +39 -0
  136. package/dist/contracts/site/cms-mail.js +12 -0
  137. package/dist/contracts/site/cms-media.d.ts +464 -0
  138. package/dist/contracts/site/cms-media.js +3 -0
  139. package/dist/contracts/site/cms-menus.d.ts +109 -0
  140. package/dist/contracts/site/cms-menus.js +13 -0
  141. package/dist/contracts/site/cms-plugins.d.ts +81 -0
  142. package/dist/contracts/site/cms-plugins.js +13 -0
  143. package/dist/contracts/site/cms-publish-content.d.ts +129 -0
  144. package/dist/contracts/site/cms-publish-content.js +13 -0
  145. package/dist/contracts/site/cms-recovery.d.ts +37 -0
  146. package/dist/contracts/site/cms-recovery.js +13 -0
  147. package/dist/contracts/site/cms-seo.d.ts +124 -0
  148. package/dist/contracts/site/cms-seo.js +17 -0
  149. package/dist/contracts/site/cms-settings.d.ts +47 -0
  150. package/dist/contracts/site/cms-settings.js +15 -0
  151. package/dist/contracts/site/cms-sites.d.ts +24 -0
  152. package/dist/contracts/site/cms-sites.js +12 -0
  153. package/dist/contracts/site/cms-system-deploy.d.ts +37 -0
  154. package/dist/contracts/site/cms-system-deploy.js +9 -0
  155. package/dist/contracts/site/cms-trash.d.ts +235 -0
  156. package/dist/contracts/site/cms-trash.js +10 -0
  157. package/dist/contracts/site/cms-workspace.d.ts +14 -0
  158. package/dist/contracts/site/cms-workspace.js +7 -0
  159. package/dist/contracts/site/comments-providers.d.ts +187 -0
  160. package/dist/contracts/site/comments-providers.js +2 -0
  161. package/dist/contracts/site/commerce.d.ts +35 -0
  162. package/dist/contracts/site/commerce.js +12 -0
  163. package/dist/contracts/site/composition-provider-config-source.d.ts +46 -0
  164. package/dist/contracts/site/composition-provider-config-source.js +2 -0
  165. package/dist/contracts/site/content-editor-ports.d.ts +239 -0
  166. package/dist/contracts/site/content-editor-ports.js +2 -0
  167. package/dist/contracts/site/contracts-resources.d.ts +21 -0
  168. package/dist/contracts/site/contracts-resources.js +7 -0
  169. package/dist/contracts/site/cookie-consent-react.d.ts +44 -0
  170. package/dist/contracts/site/cookie-consent-react.js +8 -0
  171. package/dist/contracts/site/cookie-consent.d.ts +100 -0
  172. package/dist/contracts/site/cookie-consent.js +9 -0
  173. package/dist/contracts/site/core-commands.d.ts +66 -0
  174. package/dist/contracts/site/core-commands.js +15 -0
  175. package/dist/contracts/site/core-consent-refusal.d.ts +7 -0
  176. package/dist/contracts/site/core-consent-refusal.js +2 -0
  177. package/dist/contracts/site/core-custom-credential-categories.d.ts +14 -0
  178. package/dist/contracts/site/core-custom-credential-categories.js +7 -0
  179. package/dist/contracts/site/core-public-page-security-headers.d.ts +13 -0
  180. package/dist/contracts/site/core-public-page-security-headers.js +3 -0
  181. package/dist/contracts/site/core-run-events.d.ts +49 -0
  182. package/dist/contracts/site/core-run-events.js +11 -0
  183. package/dist/contracts/site/core-runtime-mode.d.ts +9 -0
  184. package/dist/contracts/site/core-runtime-mode.js +2 -0
  185. package/dist/contracts/site/core-theme-slots.d.ts +31 -0
  186. package/dist/contracts/site/core-theme-slots.js +3 -0
  187. package/dist/contracts/site/credential-project-half.d.ts +18 -0
  188. package/dist/contracts/site/credential-project-half.js +2 -0
  189. package/dist/contracts/site/custom-credential-publish-compatibility.d.ts +11 -0
  190. package/dist/contracts/site/custom-credential-publish-compatibility.js +2 -0
  191. package/dist/contracts/site/daemon-core-rpc.d.ts +114 -0
  192. package/dist/contracts/site/daemon-core-rpc.js +2 -0
  193. package/dist/contracts/site/daemon-http.d.ts +197 -0
  194. package/dist/contracts/site/daemon-http.js +11 -0
  195. package/dist/contracts/site/daemon-surface-exchanges.d.ts +46 -0
  196. package/dist/contracts/site/daemon-surface-exchanges.js +2 -0
  197. package/dist/contracts/site/daemon-tool-audit.d.ts +43 -0
  198. package/dist/contracts/site/daemon-tool-audit.js +9 -0
  199. package/dist/contracts/site/daemon-tool-recovery.d.ts +36 -0
  200. package/dist/contracts/site/daemon-tool-recovery.js +9 -0
  201. package/dist/contracts/site/daemon.d.ts +45 -0
  202. package/dist/contracts/site/daemon.js +2 -0
  203. package/dist/contracts/site/database-introspection.d.ts +46 -0
  204. package/dist/contracts/site/database-introspection.js +2 -0
  205. package/dist/contracts/site/db-data-modules.d.ts +61 -0
  206. package/dist/contracts/site/db-data-modules.js +6 -0
  207. package/dist/contracts/site/deployment-admin.d.ts +74 -0
  208. package/dist/contracts/site/deployment-admin.js +2 -0
  209. package/dist/contracts/site/dev-supervisor-dev-restart.d.ts +26 -0
  210. package/dist/contracts/site/dev-supervisor-dev-restart.js +10 -0
  211. package/dist/contracts/site/devops-deploy.d.ts +77 -0
  212. package/dist/contracts/site/devops-deploy.js +9 -0
  213. package/dist/contracts/site/diagnostics-domain-dns.d.ts +10 -0
  214. package/dist/contracts/site/diagnostics-domain-dns.js +7 -0
  215. package/dist/contracts/site/diagnostics-observability.d.ts +66 -0
  216. package/dist/contracts/site/diagnostics-observability.js +2 -0
  217. package/dist/contracts/site/events-outbox.d.ts +56 -0
  218. package/dist/contracts/site/events-outbox.js +10 -0
  219. package/dist/contracts/site/export-run.d.ts +54 -0
  220. package/dist/contracts/site/export-run.js +9 -0
  221. package/dist/contracts/site/external-mcp-tool-ports.d.ts +30 -0
  222. package/dist/contracts/site/external-mcp-tool-ports.js +2 -0
  223. package/dist/contracts/site/fs-durable-json.d.ts +22 -0
  224. package/dist/contracts/site/fs-durable-json.js +7 -0
  225. package/dist/contracts/site/gated-mutations/watermark.d.ts +44 -0
  226. package/dist/contracts/site/gated-mutations/watermark.js +37 -0
  227. package/dist/contracts/site/gated-mutations-ports.d.ts +45 -0
  228. package/dist/contracts/site/gated-mutations-ports.js +6 -0
  229. package/dist/contracts/site/gated-results.d.ts +17 -0
  230. package/dist/contracts/site/gated-results.js +8 -0
  231. package/dist/contracts/site/headless-assistant-permanent-deletes-policy.d.ts +16 -0
  232. package/dist/contracts/site/headless-assistant-permanent-deletes-policy.js +8 -0
  233. package/dist/contracts/site/hooks-sites-port-hooks.d.ts +151 -0
  234. package/dist/contracts/site/hooks-sites-port-hooks.js +7 -0
  235. package/dist/contracts/site/host-node.d.ts +213 -0
  236. package/dist/contracts/site/host-node.js +2 -0
  237. package/dist/contracts/site/html-region-ports.d.ts +103 -0
  238. package/dist/contracts/site/html-region-ports.js +2 -0
  239. package/dist/contracts/site/http-kit-rate-limit.d.ts +21 -0
  240. package/dist/contracts/site/http-kit-rate-limit.js +8 -0
  241. package/dist/contracts/site/http-kit-settings.d.ts +12 -0
  242. package/dist/contracts/site/http-kit-settings.js +8 -0
  243. package/dist/contracts/site/human-confirm.d.ts +42 -0
  244. package/dist/contracts/site/human-confirm.js +2 -0
  245. package/dist/contracts/site/installed-skill.d.ts +16 -0
  246. package/dist/contracts/site/installed-skill.js +2 -0
  247. package/dist/contracts/site/integrations-api-connections.d.ts +19 -0
  248. package/dist/contracts/site/integrations-api-connections.js +7 -0
  249. package/dist/contracts/site/integrations-credentialed-http.d.ts +16 -0
  250. package/dist/contracts/site/integrations-credentialed-http.js +8 -0
  251. package/dist/contracts/site/legacy-owner-store.d.ts +15 -0
  252. package/dist/contracts/site/legacy-owner-store.js +5 -0
  253. package/dist/contracts/site/lifecycle-boot-lifecycle.d.ts +27 -0
  254. package/dist/contracts/site/lifecycle-boot-lifecycle.js +10 -0
  255. package/dist/contracts/site/lifecycle-host-tools.d.ts +64 -0
  256. package/dist/contracts/site/lifecycle-host-tools.js +2 -0
  257. package/dist/contracts/site/media-provider-contribution.d.ts +118 -0
  258. package/dist/contracts/site/media-provider-contribution.js +3 -0
  259. package/dist/contracts/site/media-providers-catalog.d.ts +42 -0
  260. package/dist/contracts/site/media-providers-catalog.js +7 -0
  261. package/dist/contracts/site/media-tool-ports.d.ts +170 -0
  262. package/dist/contracts/site/media-tool-ports.js +2 -0
  263. package/dist/contracts/site/media-upload-limits.d.ts +6 -0
  264. package/dist/contracts/site/media-upload-limits.js +7 -0
  265. package/dist/contracts/site/nav.d.ts +46 -0
  266. package/dist/contracts/site/nav.js +10 -0
  267. package/dist/contracts/site/oauth-callback-page.d.ts +47 -0
  268. package/dist/contracts/site/oauth-callback-page.js +31 -0
  269. package/dist/contracts/site/packaging-electron.d.ts +20 -0
  270. package/dist/contracts/site/packaging-electron.js +7 -0
  271. package/dist/contracts/site/page-html-store.d.ts +138 -0
  272. package/dist/contracts/site/page-html-store.js +2 -0
  273. package/dist/contracts/site/platform-mail.d.ts +221 -0
  274. package/dist/contracts/site/platform-mail.js +2 -0
  275. package/dist/contracts/site/platform-process.d.ts +23 -0
  276. package/dist/contracts/site/platform-process.js +7 -0
  277. package/dist/contracts/site/platform-server-logs.d.ts +51 -0
  278. package/dist/contracts/site/platform-server-logs.js +15 -0
  279. package/dist/contracts/site/platform-site-dir.d.ts +58 -0
  280. package/dist/contracts/site/platform-site-dir.js +7 -0
  281. package/dist/contracts/site/plugin-directory.d.ts +29 -0
  282. package/dist/contracts/site/plugin-directory.js +2 -0
  283. package/dist/contracts/site/plugins-host.d.ts +92 -0
  284. package/dist/contracts/site/plugins-host.js +2 -0
  285. package/dist/contracts/site/post-author.d.ts +8 -0
  286. package/dist/contracts/site/post-author.js +5 -0
  287. package/dist/contracts/site/post-kind.d.ts +10 -0
  288. package/dist/contracts/site/post-kind.js +2 -0
  289. package/dist/contracts/site/post-revision-lock.d.ts +17 -0
  290. package/dist/contracts/site/post-revision-lock.js +16 -0
  291. package/dist/contracts/site/project-key-attachments.d.ts +78 -0
  292. package/dist/contracts/site/project-key-attachments.js +2 -0
  293. package/dist/contracts/site/protocol-mcp-ui.d.ts +37 -0
  294. package/dist/contracts/site/protocol-mcp-ui.js +12 -0
  295. package/dist/contracts/site/public-origin.d.ts +9 -0
  296. package/dist/contracts/site/public-origin.js +22 -0
  297. package/dist/contracts/site/publish-ports.d.ts +42 -0
  298. package/dist/contracts/site/publish-ports.js +31 -0
  299. package/dist/contracts/site/recovery-operation-lock.d.ts +27 -0
  300. package/dist/contracts/site/recovery-operation-lock.js +11 -0
  301. package/dist/contracts/site/recovery-reconcile-interrupted-migration.d.ts +16 -0
  302. package/dist/contracts/site/recovery-reconcile-interrupted-migration.js +12 -0
  303. package/dist/contracts/site/request-facts.d.ts +28 -0
  304. package/dist/contracts/site/request-facts.js +28 -0
  305. package/dist/contracts/site/routines.d.ts +64 -0
  306. package/dist/contracts/site/routines.js +2 -0
  307. package/dist/contracts/site/sandbox-node-worker.d.ts +15 -0
  308. package/dist/contracts/site/sandbox-node-worker.js +9 -0
  309. package/dist/contracts/site/search.d.ts +181 -0
  310. package/dist/contracts/site/search.js +2 -0
  311. package/dist/contracts/site/secrets-credential-sets.d.ts +117 -0
  312. package/dist/contracts/site/secrets-credential-sets.js +2 -0
  313. package/dist/contracts/site/secrets-credential-token.d.ts +11 -0
  314. package/dist/contracts/site/secrets-credential-token.js +7 -0
  315. package/dist/contracts/site/seo-content-analysis.d.ts +18 -0
  316. package/dist/contracts/site/seo-content-analysis.js +7 -0
  317. package/dist/contracts/site/site-assistant-visitor-tools-management.d.ts +85 -0
  318. package/dist/contracts/site/site-assistant-visitor-tools-management.js +8 -0
  319. package/dist/contracts/site/site-import-history.d.ts +67 -0
  320. package/dist/contracts/site/site-import-history.js +2 -0
  321. package/dist/contracts/site/site-key.d.ts +133 -0
  322. package/dist/contracts/site/site-key.js +9 -0
  323. package/dist/contracts/site/site-serving-gate.d.ts +13 -0
  324. package/dist/contracts/site/site-serving-gate.js +22 -0
  325. package/dist/contracts/site/skill-install.d.ts +17 -0
  326. package/dist/contracts/site/skill-install.js +2 -0
  327. package/dist/contracts/site/skills-install.d.ts +21 -0
  328. package/dist/contracts/site/skills-install.js +7 -0
  329. package/dist/contracts/site/soft-delete.d.ts +13 -0
  330. package/dist/contracts/site/soft-delete.js +13 -0
  331. package/dist/contracts/site/source-control-credentials.d.ts +197 -0
  332. package/dist/contracts/site/source-control-credentials.js +2 -0
  333. package/dist/contracts/site/strict-base64.d.ts +30 -0
  334. package/dist/contracts/site/strict-base64.js +33 -0
  335. package/dist/contracts/site/tool-metadata-approval-policy.d.ts +13 -0
  336. package/dist/contracts/site/tool-metadata-approval-policy.js +2 -0
  337. package/dist/contracts/site/ui-sections.d.ts +27 -0
  338. package/dist/contracts/site/ui-sections.js +13 -0
  339. package/dist/contracts/site/user-management-react.d.ts +276 -0
  340. package/dist/contracts/site/user-management-react.js +9 -0
  341. package/dist/contracts/site/user-management-server.d.ts +104 -0
  342. package/dist/contracts/site/user-management-server.js +2 -0
  343. package/dist/contracts/site/user-management.d.ts +379 -0
  344. package/dist/contracts/site/user-management.js +2 -0
  345. package/dist/contracts/site/vault-context.d.ts +15 -0
  346. package/dist/contracts/site/vault-context.js +6 -0
  347. package/dist/contracts/site/vendor-credentials.d.ts +37 -0
  348. package/dist/contracts/site/vendor-credentials.js +2 -0
  349. package/dist/contracts/site/web-evidence-capture-budget.d.ts +16 -0
  350. package/dist/contracts/site/web-evidence-capture-budget.js +7 -0
  351. package/dist/contracts/site/web-evidence-playwright.d.ts +38 -0
  352. package/dist/contracts/site/web-evidence-playwright.js +9 -0
  353. package/dist/contracts/site/web-screenshot.d.ts +58 -0
  354. package/dist/contracts/site/web-screenshot.js +7 -0
  355. package/dist/contracts/site/widgets-html.d.ts +40 -0
  356. package/dist/contracts/site/widgets-html.js +7 -0
  357. package/dist/contracts/speech-transcription.d.ts +27 -0
  358. package/dist/contracts/speech-transcription.js +8 -0
  359. package/dist/contracts/standing-draft.d.ts +38 -0
  360. package/dist/contracts/standing-draft.js +2 -0
  361. package/dist/contracts/storage/cleanup-preview.d.ts +23 -0
  362. package/dist/contracts/storage/cleanup-preview.js +2 -0
  363. package/dist/contracts/storage/rows.d.ts +6 -2
  364. package/dist/contracts/storage/rows.js +3 -3
  365. package/dist/contracts/storage/sqlite-compaction.d.ts +108 -0
  366. package/dist/contracts/storage/sqlite-compaction.js +7 -0
  367. package/dist/contracts/storage.d.ts +2 -0
  368. package/dist/contracts/tool-result-block.d.ts +21 -0
  369. package/dist/contracts/tool-result-block.js +8 -0
  370. package/dist/contracts/vault/vendor-credential-sets.d.ts +12 -0
  371. package/dist/errors/catalog.js +3 -3
  372. package/dist/errors/reporter.d.ts +81 -13
  373. package/dist/errors/reporter.js +220 -32
  374. package/dist/errors/route-refusal.d.ts +29 -0
  375. package/dist/errors/route-refusal.js +25 -0
  376. package/dist/errors/testing.d.ts +6 -7
  377. package/dist/errors/testing.js +7 -4
  378. package/dist/extension-capability-vocabulary.d.ts +29 -0
  379. package/dist/extension-capability-vocabulary.js +31 -0
  380. package/dist/index.d.ts +2 -1
  381. package/dist/index.js +1 -0
  382. package/dist/keyset-cursor.d.ts +25 -0
  383. package/dist/keyset-cursor.js +20 -0
  384. package/dist/native-approval-memory.d.ts +22 -0
  385. package/dist/native-approval-memory.js +32 -0
  386. package/dist/net/public-dns-vocabulary.d.ts +17 -0
  387. package/dist/net/public-dns-vocabulary.js +14 -0
  388. package/dist/object-store.d.ts +7 -0
  389. package/dist/object-store.js +1 -0
  390. package/dist/operator-locale.d.ts +29 -0
  391. package/dist/operator-locale.js +27 -0
  392. package/dist/optimistic-concurrency.d.ts +23 -0
  393. package/dist/origin-validation.d.ts +7 -0
  394. package/dist/origin-validation.js +8 -1
  395. package/dist/primitives/creator-kind.d.ts +27 -0
  396. package/dist/primitives/creator-kind.js +20 -0
  397. package/dist/primitives/index.d.ts +2 -0
  398. package/dist/primitives/index.js +2 -0
  399. package/dist/primitives/lazy-proxy.d.ts +5 -0
  400. package/dist/primitives/lazy-proxy.js +17 -0
  401. package/dist/records.d.ts +1 -1
  402. package/dist/records.js +1 -1
  403. package/dist/redaction-collectors.js +84 -40
  404. package/dist/redaction-exact-secrets.js +4 -4
  405. package/dist/redaction-labels.d.ts +3 -1
  406. package/dist/redaction-labels.js +3 -3
  407. package/dist/redaction-patterns.d.ts +5 -2
  408. package/dist/redaction-patterns.js +19 -10
  409. package/dist/redaction-spans.d.ts +5 -1
  410. package/dist/redaction-spans.js +2 -2
  411. package/dist/redaction.d.ts +5 -0
  412. package/dist/redaction.js +5 -0
  413. package/dist/registration-kit.d.ts +12 -0
  414. package/dist/registration-kit.js +21 -4
  415. package/dist/scheduled-publish.d.ts +57 -0
  416. package/dist/scheduled-publish.js +33 -0
  417. package/dist/settings/ensure-definitions.d.ts +8 -0
  418. package/dist/settings/guarded-reads.d.ts +58 -0
  419. package/dist/settings/guarded-reads.js +48 -0
  420. package/dist/settings/index.d.ts +3 -2
  421. package/dist/settings/index.js +1 -0
  422. package/dist/settings/settings.d.ts +8 -0
  423. package/dist/settings/write-definition-rename.js +2 -2
  424. package/dist/settings/write-definition-retype.js +4 -4
  425. package/dist/settings/write-definition-status.js +4 -4
  426. package/dist/settings/write-service.d.ts +14 -6
  427. package/dist/settings/write-service.js +2 -2
  428. package/dist/surface-exchanges.d.ts +32 -1
  429. package/dist/text/descriptor-i18n.d.ts +4 -1
  430. package/dist/text/descriptor-i18n.js +4 -1
  431. package/dist/text/format-timestamp.js +3 -2
  432. package/dist/text/index.d.ts +3 -0
  433. package/dist/text/index.js +2 -0
  434. package/dist/text/merge-locale-overlays.d.ts +25 -0
  435. package/dist/text/merge-locale-overlays.js +23 -0
  436. package/dist/text/upload-limit-message.d.ts +19 -0
  437. package/dist/text/upload-limit-message.js +29 -0
  438. package/dist/tool-access-change.d.ts +12 -0
  439. package/dist/tool-access-change.js +6 -0
  440. package/dist/tool-metadata/agent-pause.d.ts +21 -0
  441. package/dist/tool-metadata/agent-pause.js +9 -0
  442. package/dist/tool-metadata/agent-plugins.d.ts +72 -0
  443. package/dist/tool-metadata/agent-plugins.js +54 -0
  444. package/dist/tool-metadata/analytics.d.ts +14 -0
  445. package/dist/tool-metadata/analytics.js +17 -0
  446. package/dist/tool-metadata/change-sets.d.ts +24 -0
  447. package/dist/tool-metadata/change-sets.js +19 -0
  448. package/dist/tool-metadata/comments.d.ts +105 -0
  449. package/dist/tool-metadata/comments.js +106 -0
  450. package/dist/tool-metadata/commerce.d.ts +30 -0
  451. package/dist/tool-metadata/commerce.js +11 -0
  452. package/dist/tool-metadata/consent.d.ts +57 -0
  453. package/dist/tool-metadata/consent.js +16 -0
  454. package/dist/tool-metadata/content-duplication.d.ts +13 -0
  455. package/dist/tool-metadata/content-duplication.js +14 -0
  456. package/dist/tool-metadata/content-types.d.ts +74 -0
  457. package/dist/tool-metadata/content-types.js +96 -0
  458. package/dist/tool-metadata/custom-credentials.d.ts +117 -0
  459. package/dist/tool-metadata/custom-credentials.js +105 -0
  460. package/dist/tool-metadata/database-transfer.d.ts +48 -0
  461. package/dist/tool-metadata/database-transfer.js +32 -0
  462. package/dist/tool-metadata/database.d.ts +90 -0
  463. package/dist/tool-metadata/database.js +111 -0
  464. package/dist/tool-metadata/deploy-ops.d.ts +99 -0
  465. package/dist/tool-metadata/deploy-ops.js +96 -0
  466. package/dist/tool-metadata/deployments.d.ts +101 -0
  467. package/dist/tool-metadata/deployments.js +81 -0
  468. package/dist/tool-metadata/domain-dns.d.ts +84 -0
  469. package/dist/tool-metadata/domain-dns.js +99 -0
  470. package/dist/tool-metadata/email-templates.d.ts +54 -0
  471. package/dist/tool-metadata/email-templates.js +41 -0
  472. package/dist/tool-metadata/entries.d.ts +54 -0
  473. package/dist/tool-metadata/entries.js +70 -0
  474. package/dist/tool-metadata/external-mcp.d.ts +86 -0
  475. package/dist/tool-metadata/external-mcp.js +80 -0
  476. package/dist/tool-metadata/files-copy.d.ts +14 -0
  477. package/dist/tool-metadata/files-copy.js +18 -0
  478. package/dist/tool-metadata/forms.d.ts +94 -0
  479. package/dist/tool-metadata/forms.js +117 -0
  480. package/dist/tool-metadata/frontend-control.d.ts +118 -0
  481. package/dist/tool-metadata/frontend-control.js +78 -0
  482. package/dist/tool-metadata/fs-files.d.ts +36 -0
  483. package/dist/tool-metadata/fs-files.js +46 -0
  484. package/dist/tool-metadata/identity.d.ts +184 -0
  485. package/dist/tool-metadata/identity.js +226 -0
  486. package/dist/tool-metadata/image-transform.d.ts +14 -0
  487. package/dist/tool-metadata/image-transform.js +18 -0
  488. package/dist/tool-metadata/mail-status.d.ts +132 -0
  489. package/dist/tool-metadata/mail-status.js +104 -0
  490. package/dist/tool-metadata/media-generation.d.ts +25 -0
  491. package/dist/tool-metadata/media-generation.js +30 -0
  492. package/dist/tool-metadata/media-import.d.ts +34 -0
  493. package/dist/tool-metadata/media-import.js +40 -0
  494. package/dist/tool-metadata/media-video-conversion.d.ts +19 -0
  495. package/dist/tool-metadata/media-video-conversion.js +20 -0
  496. package/dist/tool-metadata/media.d.ts +106 -0
  497. package/dist/tool-metadata/media.js +103 -0
  498. package/dist/tool-metadata/members.d.ts +71 -0
  499. package/dist/tool-metadata/members.js +69 -0
  500. package/dist/tool-metadata/navigation.d.ts +54 -0
  501. package/dist/tool-metadata/navigation.js +71 -0
  502. package/dist/tool-metadata/newsletter.d.ts +190 -0
  503. package/dist/tool-metadata/newsletter.js +246 -0
  504. package/dist/tool-metadata/observability.d.ts +13 -0
  505. package/dist/tool-metadata/observability.js +8 -0
  506. package/dist/tool-metadata/pages.d.ts +47 -0
  507. package/dist/tool-metadata/pages.js +67 -0
  508. package/dist/tool-metadata/permanent-delete.d.ts +139 -0
  509. package/dist/tool-metadata/permanent-delete.js +121 -0
  510. package/dist/tool-metadata/plugin-runtime.d.ts +144 -0
  511. package/dist/tool-metadata/plugin-runtime.js +88 -0
  512. package/dist/tool-metadata/post.d.ts +87 -0
  513. package/dist/tool-metadata/post.js +117 -0
  514. package/dist/tool-metadata/recovery.d.ts +65 -0
  515. package/dist/tool-metadata/recovery.js +78 -0
  516. package/dist/tool-metadata/redirects.d.ts +73 -0
  517. package/dist/tool-metadata/redirects.js +93 -0
  518. package/dist/tool-metadata/routines.d.ts +61 -0
  519. package/dist/tool-metadata/routines.js +40 -0
  520. package/dist/tool-metadata/search.d.ts +49 -0
  521. package/dist/tool-metadata/search.js +33 -0
  522. package/dist/tool-metadata/seo.d.ts +64 -0
  523. package/dist/tool-metadata/seo.js +83 -0
  524. package/dist/tool-metadata/server-logs.d.ts +14 -0
  525. package/dist/tool-metadata/server-logs.js +11 -0
  526. package/dist/tool-metadata/settings.d.ts +90 -0
  527. package/dist/tool-metadata/settings.js +117 -0
  528. package/dist/tool-metadata/site-backup.d.ts +84 -0
  529. package/dist/tool-metadata/site-backup.js +30 -0
  530. package/dist/tool-metadata/site-evidence.d.ts +13 -0
  531. package/dist/tool-metadata/site-evidence.js +10 -0
  532. package/dist/tool-metadata/site-guide.d.ts +18 -0
  533. package/dist/tool-metadata/site-guide.js +15 -0
  534. package/dist/tool-metadata/site-inspection.d.ts +44 -0
  535. package/dist/tool-metadata/site-inspection.js +53 -0
  536. package/dist/tool-metadata/site-update.d.ts +30 -0
  537. package/dist/tool-metadata/site-update.js +22 -0
  538. package/dist/tool-metadata/sites.d.ts +52 -0
  539. package/dist/tool-metadata/sites.js +55 -0
  540. package/dist/tool-metadata/skills.d.ts +13 -0
  541. package/dist/tool-metadata/skills.js +10 -0
  542. package/dist/tool-metadata/source-control.d.ts +26 -0
  543. package/dist/tool-metadata/source-control.js +23 -0
  544. package/dist/tool-metadata/trash.d.ts +32 -0
  545. package/dist/tool-metadata/trash.js +27 -0
  546. package/dist/tool-metadata/visitor-tools.d.ts +49 -0
  547. package/dist/tool-metadata/visitor-tools.js +12 -0
  548. package/dist/tool-metadata/web-screenshot.d.ts +14 -0
  549. package/dist/tool-metadata/web-screenshot.js +23 -0
  550. package/dist/tool-metadata/web.d.ts +14 -0
  551. package/dist/tool-metadata/web.js +21 -0
  552. package/dist/tool-metadata/webhooks.d.ts +65 -0
  553. package/dist/tool-metadata/webhooks.js +77 -0
  554. package/dist/tool-metadata/widgets.d.ts +124 -0
  555. package/dist/tool-metadata/widgets.js +161 -0
  556. package/dist/tool-metadata/workspace.d.ts +43 -0
  557. package/dist/tool-metadata/workspace.js +49 -0
  558. package/dist/tool-read-cards.d.ts +88 -0
  559. package/dist/tool-read-cards.js +158 -0
  560. package/dist/tool-registry.d.ts +25 -0
  561. package/package.json +1430 -5
@@ -0,0 +1,239 @@
1
+ import type { AdminMedia } from "./cms-admin-media.js";
2
+ import type { HeadlessThemeTier } from "../headless/contracts.js";
3
+ export interface EditorDraftPort<Draft, Snapshot> {
4
+ /** Captured before expiry so late failures cannot borrow the next operator's identity. */
5
+ getBackupPrincipalId?: (requiredArgs: Record<string, never>, optionalArgs?: Record<string, never>) => string | null;
6
+ putAutosave(required: {
7
+ id: string;
8
+ draft: Draft;
9
+ }, options?: {
10
+ keepalive?: boolean;
11
+ }): Promise<{
12
+ applied: boolean;
13
+ }>;
14
+ getAutosave(required: {
15
+ id: string;
16
+ }, optional?: Record<string, never>): Promise<{
17
+ autosave: Snapshot | null;
18
+ }>;
19
+ discardAutosave(required: {
20
+ id: string;
21
+ }, optional?: Record<string, never>): Promise<{
22
+ ok: boolean;
23
+ }>;
24
+ }
25
+ /**
26
+ * @file What `usePageEditor` needs from the outside world, as an interface rather than a direct
27
+ * `lib/api` import.
28
+ *
29
+ * Follows the `useX(dependencies)` / `useWiredX()` pair documented on `assistant-chats-port.hooks.ts`
30
+ * (the canonical reference in this workspace) and already applied to `features/redirects`: this file
31
+ * declares, `page-editor-dependencies.hooks.ts` binds the real `api` client, and nothing else under
32
+ * `features/pages/hooks` imports `lib/api` for these six routes.
33
+ *
34
+ * `getPresentation`'s return type is narrowed to the four fields this hook actually reads off it
35
+ * (see `usePageEditor`'s load effect). `features/posts`' `usePostEditor` reads more fields off the
36
+ * same route through its own `PostEditorPort` (`post-editor-port.hooks.ts`) — narrowing here is not a
37
+ * shared contract, it is this hook's own consumption. The narrowing also moves two derivations off
38
+ * the hook: the active theme's `apiVersion` and `tier` both live on `availableThemes`, keyed by id,
39
+ * and `page-editor-dependencies.hooks.ts` resolves them rather than handing the whole array through.
40
+ * `activeThemeTier` (2026-09-24, "View Template" parity with `features/posts`) feeds
41
+ * `TemplateSourceModal`'s (`components/TemplateSource/TemplateSourceModal.tsx`) tier gate the same
42
+ * way `usePostEditor`'s own `activeThemeTier` does.
43
+ */
44
+ /**
45
+ * Standing-draft autosave (2026-09-06 dispatch) — `putAutosave`/`getAutosave`/`discardAutosave` are
46
+ * pulled in from the shared, feature-agnostic hook rather than redeclared here, so this port and
47
+ * `PostEditorPort`'s identical extension stay structurally IDENTICAL by construction (one type,
48
+ * not two hand-copied signatures that could quietly drift). See `use-standing-draft-autosave.hooks.ts`'s
49
+ * own header for why the hook itself stays ignorant of both features either way.
50
+ */
51
+ export interface PageEditorPort<Row, Embed, Draft, Snapshot> extends EditorDraftPort<Draft, Snapshot> {
52
+ updatePost(required: {
53
+ target: {
54
+ id: string;
55
+ };
56
+ patch: {
57
+ title?: string;
58
+ slug?: string;
59
+ bodyJson?: Record<string, unknown>;
60
+ status?: "draft" | "published";
61
+ templateChoice?: string | null;
62
+ overridesThemePage?: boolean;
63
+ expectedVersion?: number;
64
+ };
65
+ }): Promise<{
66
+ post: Row;
67
+ }>;
68
+ deletePage(required: {
69
+ id: string;
70
+ }): Promise<{
71
+ post: Row;
72
+ }>;
73
+ getPage(required: {
74
+ routeSlug: string;
75
+ }): Promise<{
76
+ post: Row;
77
+ pluginEmbeds?: readonly Embed[];
78
+ }>;
79
+ getPresentation(): Promise<{
80
+ activeThemeTemplates: string[];
81
+ /** `PresentationSettings.activeThemeId` — feeds the Interactive tab's canvas stylesheet and
82
+ * token fetches (`use-theme-canvas-styling.hooks.ts`), and `TemplateSourceModal`'s fetch URL. */
83
+ activeThemeId: string;
84
+ /** The active theme's manifest `apiVersion` (`2`, or `undefined` for v1), looked up on
85
+ * `availableThemes` by `activeThemeId`. `undefined` also covers "the active theme is absent
86
+ * from `availableThemes`", which `@jini-ai/cms/themes/layout`'s `resolveThemeLayout` treats as v1 — the same conflation
87
+ * `usePostEditor`'s own `activeThemeApiVersion` documents. */
88
+ activeThemeApiVersion: 2 | undefined;
89
+ /** The active theme's capability tier, looked up on `availableThemes` the same way as
90
+ * `activeThemeApiVersion` just above. `null` when the id has not loaded yet OR when
91
+ * `activeThemeId` is absent from `availableThemes` — same conflation `usePostEditor`'s own
92
+ * `activeThemeTier` documents. Gates whether `TemplateSourceModal` attempts a fetch at all. */
93
+ activeThemeTier: HeadlessThemeTier | null;
94
+ }>;
95
+ updatePageHtml(required: {
96
+ id: string;
97
+ html: string;
98
+ expectedVersion: number;
99
+ }): Promise<{
100
+ post: Row;
101
+ }>;
102
+ /**
103
+ * Synchronous URL builder for the admin-only template-preview iframe — NOT a network call itself;
104
+ * the browser navigates to the returned URL when the iframe's `src` is set. Belongs on the port
105
+ * (not a plain `lib/api` import in `PageEditor.tsx`) for the same reason every other route here
106
+ * does: `page-editor-dependencies.hooks.ts` becomes the only file that reaches `lib/api` for it,
107
+ * and a test can assert the resolved URL came from the injected port. `templateChoice: null` omits
108
+ * the query param (server renders the page's own saved template); `""` sends an explicit empty
109
+ * value ("no template"); a real filename requests that template — see `lib/api.ts`'s own
110
+ * `templatePreviewUrl` for the exact query-string contract this mirrors.
111
+ */
112
+ templatePreviewUrl(required: {
113
+ id: string;
114
+ templateChoice: string | null;
115
+ }): string;
116
+ }
117
+ /**
118
+ * @file What `use-post-editor.hooks.ts` needs from the outside world, as an interface rather than a
119
+ * direct `lib/api` import.
120
+ *
121
+ * Follows the `useX(dependencies)` / `useWiredX()` pair documented on `assistant-chats-port.hooks.ts`
122
+ * (the canonical reference in this workspace) and copied from `Jini redirects/SOURCE-RATIONALE.md`'s own split: this file declares, `post-editor-dependencies.hooks.ts` binds
123
+ * the real `api` client, and nothing else under this hook imports `lib/api` for these four routes.
124
+ *
125
+ * `navigate` (`lib/router`) is injected alongside this port on `usePostEditor`'s own second
126
+ * parameter, not folded into it — it is host navigation, not this feature's own I/O, matching how
127
+ * the off-limits conversion plan for `use-page-editor.hooks.ts` (`ADS-memory/reports/implementation/
128
+ * 2026-08-11-wired-hooks-audit.md`) shapes its own `PageEditorDependencies`.
129
+ *
130
+ * `withTitleNode`/`titleNodeText` (`../rules.ts`) and TipTap's own `useEditor` are deliberately NOT
131
+ * part of this port — the former are pure, I/O-free rules (per the pattern, a hook imports rules
132
+ * directly rather than having them injected, same reasoning `assistant-chats-port.hooks.ts` gives for
133
+ * `persistableMessages`), and the latter is editor/local-state infrastructure, not a host service.
134
+ */
135
+ /**
136
+ * Standing-draft autosave (2026-09-06 dispatch) — `putAutosave`/`getAutosave`/`discardAutosave` are
137
+ * pulled in from the shared, feature-agnostic hook rather than redeclared here, so this port and
138
+ * `PageEditorPort`'s identical extension stay structurally IDENTICAL by construction. See
139
+ * `use-standing-draft-autosave.hooks.ts`'s own header for why the hook itself stays ignorant of
140
+ * both features either way.
141
+ */
142
+ export interface PostEditorPort<Row extends {
143
+ title: string;
144
+ slug: string;
145
+ bodyJson: Record<string, unknown>;
146
+ status: "draft" | "published";
147
+ templateChoice?: string | null;
148
+ overridesThemePage?: boolean | null;
149
+ publishAt?: string | null;
150
+ featuredMediaId?: string | null;
151
+ author?: string | null;
152
+ showAuthor?: boolean;
153
+ }, CreateInput, Presentation extends {
154
+ settings: unknown;
155
+ availableThemes: unknown;
156
+ activeThemeTemplates: string[];
157
+ activeThemeStaticPageIds: string[];
158
+ }, Draft, Snapshot> extends EditorDraftPort<Draft, Snapshot> {
159
+ /** Creates only on first Save, with every edited field in one request. */
160
+ createPost(input: CreateInput, options?: Record<string, never>): Promise<{
161
+ post: Row;
162
+ }>;
163
+ getPost(required: {
164
+ id: string;
165
+ }, optional?: Record<string, never>): Promise<{
166
+ post: Row;
167
+ }>;
168
+ getPresentation(): Promise<Presentation>;
169
+ /**
170
+ * `expectedVersion` (2026-09-06) is the optimistic-concurrency basis, NOT a field of the post:
171
+ * the {@link AdminPost.version} this editor loaded, sent so the server can reject a save whose
172
+ * basis another operator's save has already superseded. Typed as its own member rather than
173
+ * folded into the `Partial<Pick<AdminPost, …>>` bag precisely because it is not writable content
174
+ * — nothing about it is stored, it is only compared.
175
+ *
176
+ * Optional here because the server treats it as optional (omit it and the save is last-write-wins,
177
+ * exactly as before this feature). `usePostEditor` always sends it once a post has loaded; a
178
+ * caller that omits it gets the old, unguarded behavior.
179
+ *
180
+ * Rejects with an `ApiError` carrying `code: "VERSION_CONFLICT"` (`rules.ts`'s
181
+ * `POST_VERSION_CONFLICT_CODE`) when the basis is stale — distinct from the slug-uniqueness 409
182
+ * this same route can also return, which carries no code at all.
183
+ */
184
+ updatePost(required: {
185
+ target: {
186
+ id: string;
187
+ };
188
+ patch: Partial<Pick<Row, "title" | "slug" | "bodyJson" | "status" | "templateChoice" | "overridesThemePage" | "publishAt" | "featuredMediaId" | "author" | "showAuthor">> & {
189
+ expectedVersion?: number | undefined;
190
+ hideCoverImageInBody?: boolean;
191
+ slugFromTitle?: boolean;
192
+ };
193
+ }, optional?: Record<string, never>): Promise<{
194
+ post: Row;
195
+ }>;
196
+ deletePost(required: {
197
+ id: string;
198
+ }, optional?: Record<string, never>): Promise<{
199
+ post: Row;
200
+ }>;
201
+ /** Mention feature (2026-08-11, coordinator MSG #1 licensing sweep) — the picker list for
202
+ * "mention another post"; same wrapped-entry response shape `api.listPosts()` actually returns
203
+ * (confirmed against `use-posts.hooks.ts`'s own `r.posts.map((entry) => entry.post)`, not the
204
+ * type declaration alone). */
205
+ listPosts(): Promise<{
206
+ posts: Array<{
207
+ post: Row;
208
+ }>;
209
+ }>;
210
+ /** File-handler feature (2026-08-12) — uploads one dropped/pasted `File` through the SAME
211
+ * media-upload path `MediaPickerDialog`'s own upload flow already calls (`api.uploadMedia`), so
212
+ * a file dropped/pasted into the editor becomes a real media-library asset (`{assetId,
213
+ * transformName}` ref) rather than an inlined `data:` URL. `PostEditorPort` (not a direct `api`
214
+ * import) for the same reason every other route on this interface is injected — see this file's
215
+ * header — even though media itself is a different feature's domain; the editor is the only
216
+ * caller that needs it for THIS purpose (uploading whatever was just dropped, not browsing the
217
+ * library), so it belongs on this port rather than pulling in `features/media`'s own port. */
218
+ uploadMedia(input: {
219
+ filename: string;
220
+ contentType: string;
221
+ dataBase64: string;
222
+ }, optional?: Record<string, never>): Promise<{
223
+ media: AdminMedia;
224
+ }>;
225
+ /**
226
+ * Synchronous URL builder for the admin-only template-preview iframe/form target (2026-08-14, moved
227
+ * out of `PostEditor.tsx`/`PostPreview` — see the host's `INFO.md`'s Hooks section) — NOT a network
228
+ * call itself; the browser navigates to the returned URL when the iframe's `src` is set or the
229
+ * hidden form submits. `templateChoice: null` omits the query param (server renders the post's own
230
+ * saved template); `""` sends an explicit empty value ("no template"); a real filename requests
231
+ * that template. Mirrors `features/pages/hooks/page-editor-port.hooks.ts`'s identical member —
232
+ * see `lib/api.ts`'s own `templatePreviewUrl` for the exact query-string contract both share.
233
+ */
234
+ templatePreviewUrl(required: {
235
+ id: string;
236
+ templateChoice: string | null;
237
+ }, optional?: Record<string, never>): string;
238
+ }
239
+ //# sourceMappingURL=content-editor-ports.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=content-editor-ports.js.map
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @file Display-only desktop resource shapes: which memory metric a sample carries, and one process
3
+ * row. No command lines, credentials or stop-by-pid API. Types only: the host keeps the IPC channel,
4
+ * the sampler and the grouping.
5
+ */
6
+ /** Source of the bytes carried by the historical rssBytes wire field. */
7
+ export type MemoryMetric = 'physical-footprint' | 'private-working-set' | 'committed' | 'rss' | 'mixed-rss' | 'mixed';
8
+ /** Executable basename and tree position only; never OS command arguments. */
9
+ export interface ResourceProcess {
10
+ pid: number;
11
+ ppid: number;
12
+ name: string;
13
+ role: 'site-server' | 'daemon' | 'app' | 'process';
14
+ rssBytes: number;
15
+ memoryMetric?: MemoryMetric;
16
+ /** Current OS RSS for safety limits and stable telemetry, independent of display sampling. */
17
+ rawRssBytes?: number;
18
+ cpuPercent: number | null;
19
+ cpuWarning: boolean;
20
+ }
21
+ //# sourceMappingURL=contracts-resources.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Display-only desktop resource shapes: which memory metric a sample carries, and one process
3
+ * row. No command lines, credentials or stop-by-pid API. Types only: the host keeps the IPC channel,
4
+ * the sampler and the grouping.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=contracts-resources.js.map
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @file Consent settings view contracts. Additive copy of the type declarations in
3
+ * `@jini-ai/cookie-consent/react` (`ConsentSettingsPanel.tsx`); that module keeps its identical
4
+ * declarations, its React components and its exports until the paired cutover. None of these
5
+ * shapes reference React.
6
+ */
7
+ /** Bounded appearance tokens, as the engine accepts them: opaque hex colors and `Npx` lengths. */
8
+ export interface ConsentAppearanceView {
9
+ backgroundColor?: string;
10
+ textColor?: string;
11
+ borderColor?: string;
12
+ borderRadius?: string;
13
+ padding?: string;
14
+ fontSize?: string;
15
+ maxWidth?: string;
16
+ }
17
+ /** The host's consent configuration. The look fields are optional so older hosts stay valid. */
18
+ export interface ConsentSettingsView {
19
+ enabled: boolean;
20
+ /** @deprecated Retained for saved-settings compatibility; declared-script consent does not use it. */
21
+ allowUnsafeEval?: boolean;
22
+ /** Optional for older hosts; omitted uses the Jini banner when consent is enabled. */
23
+ bannerMode?: 'jini' | 'headless' | 'off';
24
+ regionMode: 'auto' | 'opt-in' | 'opt-out';
25
+ policyVersion: string;
26
+ privacyPolicyUrl: string;
27
+ title: string;
28
+ message: string;
29
+ acceptLabel: string;
30
+ rejectLabel: string;
31
+ preferencesLabel: string;
32
+ placement?: string;
33
+ secondaryLinkLabel?: string;
34
+ secondaryLinkUrl?: string;
35
+ appearance?: ConsentAppearanceView;
36
+ customCss?: string;
37
+ }
38
+ /** One validation result. `field` names the setting it belongs to; field-less problems are the host's to show. */
39
+ export interface ConsentFieldProblem {
40
+ message: string;
41
+ field?: string;
42
+ code?: string;
43
+ }
44
+ //# sourceMappingURL=cookie-consent-react.d.ts.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @file Consent settings view contracts. Additive copy of the type declarations in
3
+ * `@jini-ai/cookie-consent/react` (`ConsentSettingsPanel.tsx`); that module keeps its identical
4
+ * declarations, its React components and its exports until the paired cutover. None of these
5
+ * shapes reference React.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=cookie-consent-react.js.map
@@ -0,0 +1,100 @@
1
+ /**
2
+ * @file Cookie-consent contract types shared with hosts and plugins: the consent state, the saved
3
+ * host policy, plugin contributions, the server region resolver and declared scripts. Moved from
4
+ * `@jini-ai/cookie-consent` (`contract.ts`, `render/css.ts`), which re-exports them and keeps the
5
+ * runtime constants (`OPTIONAL`, `CATEGORIES`, `ACTIONS`, `BANNER_MODES`, `REGION_KIND`), each
6
+ * checked against the unions below with `satisfies`. Types only (XP4).
7
+ */
8
+ /** Bounded appearance tokens; colors are opaque hex and must meet 4.5:1 contrast. */
9
+ export interface ConsentAppearanceTokens {
10
+ backgroundColor?: string;
11
+ textColor?: string;
12
+ borderColor?: string;
13
+ borderRadius?: string;
14
+ padding?: string;
15
+ fontSize?: string;
16
+ maxWidth?: string;
17
+ fontFamily?: string;
18
+ }
19
+ /** The optional categories; `OPTIONAL` in @jini-ai/cookie-consent lists them at runtime. */
20
+ export type Optional = 'functional' | 'analytics' | 'marketing';
21
+ /** `CATEGORIES` in @jini-ai/cookie-consent lists them at runtime. */
22
+ export type Category = 'necessary' | Optional;
23
+ export type Flags = Record<Optional, boolean>;
24
+ export type Choices = Readonly<{
25
+ necessary: true;
26
+ } & Flags>;
27
+ /** `ACTIONS` in @jini-ai/cookie-consent lists them at runtime. */
28
+ export type ConsentAction = 'accept' | 'reject' | 'save' | 'do-not-sell' | 'withdraw';
29
+ export type RegionMode = 'opt-in' | 'opt-out';
30
+ /** A resolver's definite answer. Resolvers return null for "unknown: ask the next one". */
31
+ export type RegionHint = 'us' | 'strict';
32
+ /** jini = the built-in banner; headless = "My own" banner; off = anonymous analytics only, no UI. */
33
+ export type BannerMode = 'jini' | 'headless' | 'off';
34
+ /** 'stored' = server receipt; 'pending' = sent, unconfirmed; 'local' = browser-only, labelled as such. */
35
+ export type ReceiptStatus = 'none' | 'local' | 'pending' | 'stored';
36
+ export interface ConsentState {
37
+ contract: 1;
38
+ policy: string;
39
+ status: 'pending' | 'set';
40
+ region: RegionMode;
41
+ /** Effective privacy opt-out: GPC or DNT. The historical field name is retained on receipts. */
42
+ gpc: boolean;
43
+ /** Analytics adapters/collectors must enforce this level, not just allowed.analytics. */
44
+ analyticsLevel: 'none' | 'anonymous' | 'full';
45
+ /** What the banner shows: the choice (or region default), GPC-clamped. */
46
+ choices: Choices;
47
+ /** Full category permissions; durable grants await their receipt. Never read `choices` as permission.
48
+ * Anonymous analytics keeps allowed.analytics false; adapters/collectors use analyticsLevel. */
49
+ allowed: Choices;
50
+ action: ConsentAction | null;
51
+ at: number | null;
52
+ receipt: ReceiptStatus;
53
+ }
54
+ /** Saved host policy. Existing revisions keep their field names when execution moves to declarations. */
55
+ export interface ConsentConfig {
56
+ enabled: boolean;
57
+ /** @deprecated Retained for saved-setting compatibility; declared scripts do not evaluate this flag. */
58
+ allowUnsafeEval?: boolean;
59
+ regionMode: 'auto' | RegionMode;
60
+ policyVersion: string;
61
+ privacyPolicyUrl: string;
62
+ title: string;
63
+ message: string;
64
+ acceptLabel: string;
65
+ rejectLabel: string;
66
+ preferencesLabel: string;
67
+ placement?: 'bottom-bar' | 'bottom-left' | 'bottom-right' | 'top-bar';
68
+ reopen?: 'corner' | 'link';
69
+ secondaryLinkLabel?: string;
70
+ secondaryLinkUrl?: string;
71
+ appearance?: ConsentAppearanceTokens;
72
+ customCss?: string;
73
+ bannerMode?: BannerMode;
74
+ }
75
+ /** Internal delivery evidence; never an analytics property or visitor identity. */
76
+ export interface ConsentAnalyticsProof {
77
+ receiptId: string;
78
+ policyVersion: string;
79
+ }
80
+ export interface Contribution<K extends string = string> {
81
+ readonly id: string;
82
+ readonly kind: K;
83
+ }
84
+ export type RawContribution = Contribution & Record<string, unknown>;
85
+ export interface RegionRequest {
86
+ header(name: string): string | null;
87
+ ip: string | null;
88
+ }
89
+ export interface RegionResolver extends Contribution<'region-resolver'> {
90
+ resolve(required: {
91
+ request: RegionRequest;
92
+ }, optional?: {
93
+ signal?: AbortSignal;
94
+ }): RegionHint | null | Promise<RegionHint | null>;
95
+ }
96
+ export interface DeclaredScript {
97
+ src: string;
98
+ consent?: readonly Category[];
99
+ }
100
+ //# sourceMappingURL=cookie-consent.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @file Cookie-consent contract types shared with hosts and plugins: the consent state, the saved
3
+ * host policy, plugin contributions, the server region resolver and declared scripts. Moved from
4
+ * `@jini-ai/cookie-consent` (`contract.ts`, `render/css.ts`), which re-exports them and keeps the
5
+ * runtime constants (`OPTIONAL`, `CATEGORIES`, `ACTIONS`, `BANNER_MODES`, `REGION_KIND`), each
6
+ * checked against the unions below with `satisfies`. Types only (XP4).
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=cookie-consent.js.map
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @file Inverse-applier registry contract.
3
+ *
4
+ * Purpose:
5
+ * The type-only half of `@jini-ai/cms/core/commands`'s `appliers.ts` (which re-exports it): a
6
+ * generic `(entityType, operation)` -> `EntityReverter` registry that `revert.ts`'s
7
+ * `revertChangeSet` consumes to (a) read an entity's current version for the revert guard and (b)
8
+ * restore it from a change-set item's inverse payload. The registry factory stays in cms.
9
+ *
10
+ * Core holds only the generic registry contract, never feature-specific reverters.
11
+ * Concrete reverters live with their domains; composition roots construct and register them at
12
+ * boot. They close over the root's shared adapters rather than importing feature or DB code here.
13
+ */
14
+ import type { UUID } from "../../primitives/index.js";
15
+ import type { ChangeSetItemRecord } from "../events/change-set.js";
16
+ /** Restore + version-read behavior for one `(entityType, operation)`. */
17
+ export interface EntityReverter {
18
+ /**
19
+ * Optional per-item authorization for undoing this kind. A grant to revert an ordinary audited
20
+ * change must not confer a stricter write authority this kind's inverse needs, so when set, the
21
+ * revert executor asks the caller's item authorizer for `permission` on each item (as
22
+ * `authorizationEntityType ?? item.entityType`) before reading any version or writing any
23
+ * inverse, and fails closed when no authorizer is supplied. `allowForce: false` refuses an
24
+ * operator force past a newer version. The policy comes from this registration only, never from
25
+ * client input or the stored inverse. Omitted: the kind keeps its existing behavior.
26
+ */
27
+ policy?: {
28
+ permission: string;
29
+ authorizationEntityType?: string;
30
+ allowForce?: boolean;
31
+ };
32
+ /** Current entity version, or null when the entity no longer exists. */
33
+ currentVersion(required: {
34
+ workspaceId: UUID;
35
+ entityId: UUID;
36
+ }): Promise<number | null>;
37
+ /**
38
+ * Optional: the raw principal id that produced the entity's CURRENT (still-live) write — used
39
+ * only to enrich `revert.ts`'s version-conflict message with "who changed this" so a human can
40
+ * judge whether to force past it. Optional: a missing or null result means "unknown".
41
+ * Returns the raw id (never a
42
+ * resolved display name), matching `gated-mutations/composition.ts`'s own disclosed
43
+ * `resolveActorClassIdentity` precedent — resolving a friendlier name belongs at the route layer,
44
+ * which already has `deps.principalRepo`, not here.
45
+ */
46
+ currentActor?(required: {
47
+ workspaceId: UUID;
48
+ entityId: UUID;
49
+ }): Promise<string | null>;
50
+ /**
51
+ * Apply the item's inverse as a new write (bumps the entity version). `actorId` is the principal
52
+ * performing the revert now, never the item's original writer.
53
+ */
54
+ applyInverse(required: {
55
+ workspaceId: UUID;
56
+ item: ChangeSetItemRecord;
57
+ }, optional?: {
58
+ actorId?: UUID;
59
+ }): Promise<void>;
60
+ }
61
+ /** A mutable registry of entity reverters keyed by `(entityType, operation)`. */
62
+ export interface RevertRegistry {
63
+ register(entityType: string, operation: string, reverter: EntityReverter): void;
64
+ resolve(entityType: string, operation: string): EntityReverter | undefined;
65
+ }
66
+ //# sourceMappingURL=core-commands.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @file Inverse-applier registry contract.
3
+ *
4
+ * Purpose:
5
+ * The type-only half of `@jini-ai/cms/core/commands`'s `appliers.ts` (which re-exports it): a
6
+ * generic `(entityType, operation)` -> `EntityReverter` registry that `revert.ts`'s
7
+ * `revertChangeSet` consumes to (a) read an entity's current version for the revert guard and (b)
8
+ * restore it from a change-set item's inverse payload. The registry factory stays in cms.
9
+ *
10
+ * Core holds only the generic registry contract, never feature-specific reverters.
11
+ * Concrete reverters live with their domains; composition roots construct and register them at
12
+ * boot. They close over the root's shared adapters rather than importing feature or DB code here.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=core-commands.js.map
@@ -0,0 +1,7 @@
1
+ /** @file The consent refusal a publish returns: consent builds it when its checks fail, publish paths return it as is. */
2
+ export type ConsentProblem = {
3
+ code: string;
4
+ message: string;
5
+ field?: string;
6
+ };
7
+ //# sourceMappingURL=core-consent-refusal.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=core-consent-refusal.js.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @file Custom-credential category vocabulary. Types only; this module owns the declaration a host's
3
+ * custom-credential category list used to declare. The host imports it from here and keeps its
4
+ * runtime category list.
5
+ */
6
+ /** The access-token page's own category-filter ids, minus `"all"` — mirrors the admin UI's
7
+ * access-token row category id exactly (that UI file is the source of truth for the UI's own copy;
8
+ * this is the server-side validation twin, since a category must be readable/filterable without
9
+ * ever decrypting a row — see the host's custom-credential-set `category` column doc). Kept as a
10
+ * plain literal union rather than importing from the admin app (server code never depends on the
11
+ * admin app). */
12
+ export type CustomCredentialCategoryId = "source-control" | "hosting" | "media" | "ai" | "ops" | "general";
13
+ export declare const CUSTOM_CREDENTIAL_CATEGORIES: readonly CustomCredentialCategoryId[];
14
+ //# sourceMappingURL=core-custom-credential-categories.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Custom-credential category vocabulary. Types only; this module owns the declaration a host's
3
+ * custom-credential category list used to declare. The host imports it from here and keeps its
4
+ * runtime category list.
5
+ */
6
+ export const CUSTOM_CREDENTIAL_CATEGORIES = ["source-control", "hosting", "media", "ai", "ops", "general"];
7
+ //# sourceMappingURL=core-custom-credential-categories.js.map
@@ -0,0 +1,13 @@
1
+ /** @file The shipped theme resource origins the public-page security headers are built from. */
2
+ /** Shipped theme resource data, shared by live headers and static exports. */
3
+ export interface PublicThemeResources {
4
+ readonly scripts: readonly string[];
5
+ readonly styles: readonly string[];
6
+ readonly fonts: readonly string[];
7
+ readonly fontPreconnects: Readonly<Record<string, readonly {
8
+ readonly url: string;
9
+ readonly crossorigin?: boolean;
10
+ }[]>>;
11
+ readonly legacyFontStylesheetTemplate?: string;
12
+ }
13
+ //# sourceMappingURL=core-public-page-security-headers.d.ts.map
@@ -0,0 +1,3 @@
1
+ /** @file The shipped theme resource origins the public-page security headers are built from. */
2
+ export {};
3
+ //# sourceMappingURL=core-public-page-security-headers.js.map
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @file Daemon run-stream frame contracts shared by live and saved chat turns.
3
+ *
4
+ * The type-only half of `@jini-ai/chat/core/run-events` (which re-exports these names): the wire
5
+ * frame a daemon run streams, the per-frame translation outcome, the terminal classification read
6
+ * off an `end` frame, and the per-connection carry. The translation itself (`translateRunFrame`,
7
+ * notices, SSE reading) stays in the chat package; only the shapes live here so a host or another
8
+ * engine package can name them without importing chat.
9
+ */
10
+ import type { AgentEvent } from "./chat-core.js";
11
+ export interface RunAgentPayload {
12
+ readonly type: string;
13
+ readonly [key: string]: unknown;
14
+ }
15
+ export interface RunProtocolEventWire {
16
+ readonly runId: string;
17
+ readonly kind: "start" | "agent" | "stdout" | "stderr" | "error" | "end";
18
+ readonly payload: unknown;
19
+ }
20
+ /** A daemon `end` frame's non-successful terminal classification, as the daemon itself recorded it
21
+ * in `@jini-ai/protocol`'s `RunEndPayload`. */
22
+ export interface TerminalOutcome {
23
+ readonly status: "failed" | "canceled";
24
+ readonly code: string;
25
+ readonly signal: string;
26
+ readonly resumable: string;
27
+ }
28
+ /** What one daemon stream frame means for the turn: events to append, a failure, and whether it ended. */
29
+ export interface RunFrameOutcome {
30
+ readonly events: AgentEvent[];
31
+ /** Set when the frame reports a failure. Once any frame has, the turn is `failed` (the browser's
32
+ * `useRunStream` keeps an `'error'` status through a later `onDone`). */
33
+ readonly error?: Error;
34
+ /** Set only on the `end` frame: the daemon's own terminal classification. These are exactly the
35
+ * terminal members of `@jini-ai/chat/core`'s `ChatRunStatus` (declared there from a runtime
36
+ * `as const` tuple, so it cannot live in this type-only module); the chat package's
37
+ * `run-events/entry.ts` pins the two together at compile time. */
38
+ readonly terminal?: "succeeded" | "failed" | "canceled";
39
+ }
40
+ /**
41
+ * Per-connection memory for `translateRunFrame`: which channels are mid-way through an echo
42
+ * line. Only a line's first chunk carries the `ECHO_LINE` prefix, so without it the rest of a
43
+ * split `user` echo stays as `raw` — tool-result prose that durable recovery then reads as executor
44
+ * diagnostics. Pass one fresh `{}` per daemon connection (each connection replays from event 0).
45
+ */
46
+ export interface RunFrameCarry {
47
+ openEchoChannels?: Set<string>;
48
+ }
49
+ //# sourceMappingURL=core-run-events.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @file Daemon run-stream frame contracts shared by live and saved chat turns.
3
+ *
4
+ * The type-only half of `@jini-ai/chat/core/run-events` (which re-exports these names): the wire
5
+ * frame a daemon run streams, the per-frame translation outcome, the terminal classification read
6
+ * off an `end` frame, and the per-connection carry. The translation itself (`translateRunFrame`,
7
+ * notices, SSE reading) stays in the chat package; only the shapes live here so a host or another
8
+ * engine package can name them without importing chat.
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=core-run-events.js.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The host's runtime-mode policy signal. The host reads it from its own dedicated setting and never
3
+ * from `NODE_ENV`; any missing or unrecognized value resolves to `local`, never `production`: the
4
+ * only default that is safe in both directions, since it activates no containment the operator
5
+ * didn't explicitly opt into. Dependency-free so mail and assistant consumers need no host server
6
+ * transport module to name it.
7
+ */
8
+ export type RuntimeMode = "production" | "local";
9
+ //# sourceMappingURL=core-runtime-mode.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=core-runtime-mode.js.map