@jini-ai/core 0.7.3-next.1 → 0.7.3-next.3

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 (558) hide show
  1. package/CHANGELOG.md +2 -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/config/env-schema.d.ts +31 -0
  7. package/dist/config/env-schema.js +29 -0
  8. package/dist/contracts/agents/definition.d.ts +9 -1
  9. package/dist/contracts/agents/index.d.ts +1 -0
  10. package/dist/contracts/agents/inventory.d.ts +29 -0
  11. package/dist/contracts/agents/inventory.js +8 -0
  12. package/dist/contracts/agents/provider-ports.d.ts +117 -0
  13. package/dist/contracts/agents/provider-ports.js +2 -0
  14. package/dist/contracts/agents/proxy-provider-kit.d.ts +122 -0
  15. package/dist/contracts/agents/proxy-provider-kit.js +119 -0
  16. package/dist/contracts/agents/proxy-provider.d.ts +34 -0
  17. package/dist/contracts/agents/proxy-provider.js +2 -0
  18. package/dist/contracts/blob-gc.d.ts +69 -0
  19. package/dist/contracts/blob-gc.js +13 -0
  20. package/dist/contracts/credentials.d.ts +5 -19
  21. package/dist/contracts/desktop-zoom.d.ts +7 -0
  22. package/dist/contracts/desktop-zoom.js +6 -0
  23. package/dist/contracts/events/change-set.d.ts +12 -3
  24. package/dist/contracts/events/command.d.ts +11 -5
  25. package/dist/contracts/events/ports.d.ts +38 -0
  26. package/dist/contracts/events/ports.js +8 -1
  27. package/dist/contracts/events.d.ts +2 -1
  28. package/dist/contracts/events.js +1 -1
  29. package/dist/contracts/execution.d.ts +541 -0
  30. package/dist/contracts/execution.js +2 -0
  31. package/dist/contracts/find-in-page.d.ts +12 -0
  32. package/dist/contracts/find-in-page.js +7 -0
  33. package/dist/contracts/headless/chart-providers.d.ts +12 -0
  34. package/dist/contracts/headless/chart-providers.js +2 -0
  35. package/dist/contracts/headless/chat-attachment.d.ts +21 -0
  36. package/dist/contracts/headless/chat-attachment.js +9 -0
  37. package/dist/contracts/headless/contracts.d.ts +179 -0
  38. package/dist/contracts/headless/contracts.js +2 -0
  39. package/dist/contracts/headless/form-delivery-status.d.ts +35 -0
  40. package/dist/contracts/headless/form-delivery-status.js +2 -0
  41. package/dist/contracts/headless/member-login.d.ts +3 -0
  42. package/dist/contracts/headless/member-login.js +3 -0
  43. package/dist/contracts/headless/operator-locale.d.ts +17 -0
  44. package/dist/contracts/headless/operator-locale.js +2 -0
  45. package/dist/contracts/headless/plugin-export-catalog.d.ts +21 -0
  46. package/dist/contracts/headless/plugin-export-catalog.js +2 -0
  47. package/dist/contracts/headless/plugin-host.d.ts +128 -0
  48. package/dist/contracts/headless/plugin-host.js +2 -0
  49. package/dist/contracts/headless/plugin-install-source.d.ts +82 -0
  50. package/dist/contracts/headless/plugin-install-source.js +12 -0
  51. package/dist/contracts/headless/site-cookie-consent.d.ts +41 -0
  52. package/dist/contracts/headless/site-cookie-consent.js +2 -0
  53. package/dist/contracts/hosted-mcp/admissions.d.ts +125 -0
  54. package/dist/contracts/hosted-mcp/admissions.js +3 -0
  55. package/dist/contracts/hosted-mcp/record.d.ts +7 -2
  56. package/dist/contracts/hosted-mcp.d.ts +1 -0
  57. package/dist/contracts/mail.d.ts +28 -2
  58. package/dist/contracts/mail.js +3 -0
  59. package/dist/contracts/observability.d.ts +15 -0
  60. package/dist/contracts/observability.js +1 -0
  61. package/dist/contracts/run-attempt.d.ts +14 -0
  62. package/dist/contracts/run-attempt.js +7 -0
  63. package/dist/contracts/server/api-error.js +1 -0
  64. package/dist/contracts/server/client-facing-error.d.ts +25 -0
  65. package/dist/contracts/server/client-facing-error.js +21 -0
  66. package/dist/contracts/server/deferred-body.d.ts +65 -0
  67. package/dist/contracts/server/deferred-body.js +2 -0
  68. package/dist/contracts/server/failure-copy.d.ts +19 -0
  69. package/dist/contracts/server/failure-copy.js +26 -0
  70. package/dist/contracts/server/json-route.d.ts +52 -26
  71. package/dist/contracts/server/json-route.js +128 -32
  72. package/dist/contracts/server/request-body.d.ts +12 -0
  73. package/dist/contracts/server/request-body.js +7 -3
  74. package/dist/contracts/server/route-reply.d.ts +32 -0
  75. package/dist/contracts/server/route-reply.js +26 -0
  76. package/dist/contracts/server.d.ts +4 -0
  77. package/dist/contracts/server.js +4 -0
  78. package/dist/contracts/site/admin-sites.d.ts +134 -0
  79. package/dist/contracts/site/admin-sites.js +7 -0
  80. package/dist/contracts/site/admin-surfaces-connections.d.ts +128 -0
  81. package/dist/contracts/site/admin-surfaces-connections.js +2 -0
  82. package/dist/contracts/site/agent-plugins-admin-surfaces.d.ts +218 -0
  83. package/dist/contracts/site/agent-plugins-admin-surfaces.js +2 -0
  84. package/dist/contracts/site/agent-plugins-connect.d.ts +25 -0
  85. package/dist/contracts/site/agent-plugins-connect.js +2 -0
  86. package/dist/contracts/site/agent-plugins-lifecycle.d.ts +151 -0
  87. package/dist/contracts/site/agent-plugins-lifecycle.js +2 -0
  88. package/dist/contracts/site/agent-plugins-manifest.d.ts +41 -0
  89. package/dist/contracts/site/agent-plugins-manifest.js +11 -0
  90. package/dist/contracts/site/agent-runtime.d.ts +110 -0
  91. package/dist/contracts/site/agent-runtime.js +2 -0
  92. package/dist/contracts/site/agentic-core.d.ts +44 -0
  93. package/dist/contracts/site/agentic-core.js +9 -0
  94. package/dist/contracts/site/agentic-dom.d.ts +27 -0
  95. package/dist/contracts/site/agentic-dom.js +2 -0
  96. package/dist/contracts/site/agentic.d.ts +37 -0
  97. package/dist/contracts/site/agentic.js +8 -0
  98. package/dist/contracts/site/analytics.d.ts +81 -0
  99. package/dist/contracts/site/analytics.js +2 -0
  100. package/dist/contracts/site/api-ai-assistant-api-types.d.ts +182 -0
  101. package/dist/contracts/site/api-ai-assistant-api-types.js +2 -0
  102. package/dist/contracts/site/api-connections-hosted-mcp.d.ts +176 -0
  103. package/dist/contracts/site/api-connections-hosted-mcp.js +2 -0
  104. package/dist/contracts/site/api-security-api-types.d.ts +177 -0
  105. package/dist/contracts/site/api-security-api-types.js +2 -0
  106. package/dist/contracts/site/approval-i18n.d.ts +32 -0
  107. package/dist/contracts/site/approval-i18n.js +156 -0
  108. package/dist/contracts/site/asset-transfer-tool-ports.d.ts +54 -0
  109. package/dist/contracts/site/asset-transfer-tool-ports.js +2 -0
  110. package/dist/contracts/site/assistant-host-ports.d.ts +23 -0
  111. package/dist/contracts/site/assistant-host-ports.js +2 -0
  112. package/dist/contracts/site/assistant-mcp-services.d.ts +26 -0
  113. package/dist/contracts/site/assistant-mcp-services.js +8 -0
  114. package/dist/contracts/site/assistant-tool-contributions.d.ts +45 -0
  115. package/dist/contracts/site/assistant-tool-contributions.js +2 -0
  116. package/dist/contracts/site/chat-core.d.ts +93 -0
  117. package/dist/contracts/site/chat-core.js +13 -0
  118. package/dist/contracts/site/client-directives.d.ts +21 -0
  119. package/dist/contracts/site/client-directives.js +8 -0
  120. package/dist/contracts/site/cms-admin-media.d.ts +61 -0
  121. package/dist/contracts/site/cms-admin-media.js +7 -0
  122. package/dist/contracts/site/cms-agent-plugins.d.ts +114 -0
  123. package/dist/contracts/site/cms-agent-plugins.js +17 -0
  124. package/dist/contracts/site/cms-assistant.d.ts +74 -0
  125. package/dist/contracts/site/cms-assistant.js +17 -0
  126. package/dist/contracts/site/cms-core.d.ts +17 -0
  127. package/dist/contracts/site/cms-core.js +12 -0
  128. package/dist/contracts/site/cms-external-mcp.d.ts +206 -0
  129. package/dist/contracts/site/cms-external-mcp.js +13 -0
  130. package/dist/contracts/site/cms-forms.d.ts +192 -0
  131. package/dist/contracts/site/cms-forms.js +15 -0
  132. package/dist/contracts/site/cms-integrations.d.ts +47 -0
  133. package/dist/contracts/site/cms-integrations.js +8 -0
  134. package/dist/contracts/site/cms-mail.d.ts +39 -0
  135. package/dist/contracts/site/cms-mail.js +12 -0
  136. package/dist/contracts/site/cms-media.d.ts +449 -0
  137. package/dist/contracts/site/cms-media.js +3 -0
  138. package/dist/contracts/site/cms-menus.d.ts +109 -0
  139. package/dist/contracts/site/cms-menus.js +13 -0
  140. package/dist/contracts/site/cms-plugins.d.ts +81 -0
  141. package/dist/contracts/site/cms-plugins.js +13 -0
  142. package/dist/contracts/site/cms-publish-content.d.ts +129 -0
  143. package/dist/contracts/site/cms-publish-content.js +13 -0
  144. package/dist/contracts/site/cms-recovery.d.ts +37 -0
  145. package/dist/contracts/site/cms-recovery.js +13 -0
  146. package/dist/contracts/site/cms-seo.d.ts +124 -0
  147. package/dist/contracts/site/cms-seo.js +17 -0
  148. package/dist/contracts/site/cms-settings.d.ts +47 -0
  149. package/dist/contracts/site/cms-settings.js +15 -0
  150. package/dist/contracts/site/cms-sites.d.ts +24 -0
  151. package/dist/contracts/site/cms-sites.js +12 -0
  152. package/dist/contracts/site/cms-system-deploy.d.ts +37 -0
  153. package/dist/contracts/site/cms-system-deploy.js +9 -0
  154. package/dist/contracts/site/cms-trash.d.ts +235 -0
  155. package/dist/contracts/site/cms-trash.js +10 -0
  156. package/dist/contracts/site/cms-workspace.d.ts +14 -0
  157. package/dist/contracts/site/cms-workspace.js +7 -0
  158. package/dist/contracts/site/comments-providers.d.ts +187 -0
  159. package/dist/contracts/site/comments-providers.js +2 -0
  160. package/dist/contracts/site/commerce.d.ts +35 -0
  161. package/dist/contracts/site/commerce.js +12 -0
  162. package/dist/contracts/site/composition-provider-config-source.d.ts +46 -0
  163. package/dist/contracts/site/composition-provider-config-source.js +2 -0
  164. package/dist/contracts/site/content-editor-ports.d.ts +239 -0
  165. package/dist/contracts/site/content-editor-ports.js +2 -0
  166. package/dist/contracts/site/contracts-resources.d.ts +21 -0
  167. package/dist/contracts/site/contracts-resources.js +7 -0
  168. package/dist/contracts/site/cookie-consent-react.d.ts +44 -0
  169. package/dist/contracts/site/cookie-consent-react.js +8 -0
  170. package/dist/contracts/site/cookie-consent.d.ts +100 -0
  171. package/dist/contracts/site/cookie-consent.js +9 -0
  172. package/dist/contracts/site/core-commands.d.ts +66 -0
  173. package/dist/contracts/site/core-commands.js +15 -0
  174. package/dist/contracts/site/core-consent-refusal.d.ts +7 -0
  175. package/dist/contracts/site/core-consent-refusal.js +2 -0
  176. package/dist/contracts/site/core-custom-credential-categories.d.ts +14 -0
  177. package/dist/contracts/site/core-custom-credential-categories.js +7 -0
  178. package/dist/contracts/site/core-public-page-security-headers.d.ts +13 -0
  179. package/dist/contracts/site/core-public-page-security-headers.js +3 -0
  180. package/dist/contracts/site/core-run-events.d.ts +49 -0
  181. package/dist/contracts/site/core-run-events.js +11 -0
  182. package/dist/contracts/site/core-runtime-mode.d.ts +9 -0
  183. package/dist/contracts/site/core-runtime-mode.js +2 -0
  184. package/dist/contracts/site/core-theme-slots.d.ts +31 -0
  185. package/dist/contracts/site/core-theme-slots.js +3 -0
  186. package/dist/contracts/site/credential-project-half.d.ts +18 -0
  187. package/dist/contracts/site/credential-project-half.js +2 -0
  188. package/dist/contracts/site/custom-credential-publish-compatibility.d.ts +11 -0
  189. package/dist/contracts/site/custom-credential-publish-compatibility.js +2 -0
  190. package/dist/contracts/site/daemon-core-rpc.d.ts +114 -0
  191. package/dist/contracts/site/daemon-core-rpc.js +2 -0
  192. package/dist/contracts/site/daemon-http.d.ts +197 -0
  193. package/dist/contracts/site/daemon-http.js +11 -0
  194. package/dist/contracts/site/daemon-surface-exchanges.d.ts +46 -0
  195. package/dist/contracts/site/daemon-surface-exchanges.js +2 -0
  196. package/dist/contracts/site/daemon-tool-audit.d.ts +43 -0
  197. package/dist/contracts/site/daemon-tool-audit.js +9 -0
  198. package/dist/contracts/site/daemon-tool-recovery.d.ts +36 -0
  199. package/dist/contracts/site/daemon-tool-recovery.js +9 -0
  200. package/dist/contracts/site/daemon.d.ts +45 -0
  201. package/dist/contracts/site/daemon.js +2 -0
  202. package/dist/contracts/site/database-introspection.d.ts +46 -0
  203. package/dist/contracts/site/database-introspection.js +2 -0
  204. package/dist/contracts/site/db-data-modules.d.ts +61 -0
  205. package/dist/contracts/site/db-data-modules.js +6 -0
  206. package/dist/contracts/site/deployment-admin.d.ts +74 -0
  207. package/dist/contracts/site/deployment-admin.js +2 -0
  208. package/dist/contracts/site/dev-supervisor-dev-restart.d.ts +26 -0
  209. package/dist/contracts/site/dev-supervisor-dev-restart.js +10 -0
  210. package/dist/contracts/site/devops-deploy.d.ts +77 -0
  211. package/dist/contracts/site/devops-deploy.js +9 -0
  212. package/dist/contracts/site/diagnostics-domain-dns.d.ts +10 -0
  213. package/dist/contracts/site/diagnostics-domain-dns.js +7 -0
  214. package/dist/contracts/site/diagnostics-observability.d.ts +66 -0
  215. package/dist/contracts/site/diagnostics-observability.js +2 -0
  216. package/dist/contracts/site/events-outbox.d.ts +56 -0
  217. package/dist/contracts/site/events-outbox.js +10 -0
  218. package/dist/contracts/site/export-run.d.ts +54 -0
  219. package/dist/contracts/site/export-run.js +9 -0
  220. package/dist/contracts/site/external-mcp-tool-ports.d.ts +28 -0
  221. package/dist/contracts/site/external-mcp-tool-ports.js +2 -0
  222. package/dist/contracts/site/fs-durable-json.d.ts +22 -0
  223. package/dist/contracts/site/fs-durable-json.js +7 -0
  224. package/dist/contracts/site/gated-mutations/watermark.d.ts +44 -0
  225. package/dist/contracts/site/gated-mutations/watermark.js +37 -0
  226. package/dist/contracts/site/gated-mutations-ports.d.ts +45 -0
  227. package/dist/contracts/site/gated-mutations-ports.js +6 -0
  228. package/dist/contracts/site/gated-results.d.ts +17 -0
  229. package/dist/contracts/site/gated-results.js +8 -0
  230. package/dist/contracts/site/headless-assistant-permanent-deletes-policy.d.ts +16 -0
  231. package/dist/contracts/site/headless-assistant-permanent-deletes-policy.js +8 -0
  232. package/dist/contracts/site/hooks-sites-port-hooks.d.ts +151 -0
  233. package/dist/contracts/site/hooks-sites-port-hooks.js +7 -0
  234. package/dist/contracts/site/host-node.d.ts +213 -0
  235. package/dist/contracts/site/host-node.js +2 -0
  236. package/dist/contracts/site/html-region-ports.d.ts +103 -0
  237. package/dist/contracts/site/html-region-ports.js +2 -0
  238. package/dist/contracts/site/http-kit-rate-limit.d.ts +21 -0
  239. package/dist/contracts/site/http-kit-rate-limit.js +8 -0
  240. package/dist/contracts/site/http-kit-settings.d.ts +12 -0
  241. package/dist/contracts/site/http-kit-settings.js +8 -0
  242. package/dist/contracts/site/human-confirm.d.ts +42 -0
  243. package/dist/contracts/site/human-confirm.js +2 -0
  244. package/dist/contracts/site/installed-skill.d.ts +16 -0
  245. package/dist/contracts/site/installed-skill.js +2 -0
  246. package/dist/contracts/site/integrations-api-connections.d.ts +19 -0
  247. package/dist/contracts/site/integrations-api-connections.js +7 -0
  248. package/dist/contracts/site/integrations-credentialed-http.d.ts +16 -0
  249. package/dist/contracts/site/integrations-credentialed-http.js +8 -0
  250. package/dist/contracts/site/legacy-owner-store.d.ts +15 -0
  251. package/dist/contracts/site/legacy-owner-store.js +5 -0
  252. package/dist/contracts/site/lifecycle-boot-lifecycle.d.ts +27 -0
  253. package/dist/contracts/site/lifecycle-boot-lifecycle.js +10 -0
  254. package/dist/contracts/site/lifecycle-host-tools.d.ts +64 -0
  255. package/dist/contracts/site/lifecycle-host-tools.js +2 -0
  256. package/dist/contracts/site/media-provider-contribution.d.ts +118 -0
  257. package/dist/contracts/site/media-provider-contribution.js +3 -0
  258. package/dist/contracts/site/media-providers-catalog.d.ts +42 -0
  259. package/dist/contracts/site/media-providers-catalog.js +7 -0
  260. package/dist/contracts/site/media-tool-ports.d.ts +166 -0
  261. package/dist/contracts/site/media-tool-ports.js +2 -0
  262. package/dist/contracts/site/media-upload-limits.d.ts +6 -0
  263. package/dist/contracts/site/media-upload-limits.js +7 -0
  264. package/dist/contracts/site/nav.d.ts +46 -0
  265. package/dist/contracts/site/nav.js +10 -0
  266. package/dist/contracts/site/oauth-callback-page.d.ts +47 -0
  267. package/dist/contracts/site/oauth-callback-page.js +31 -0
  268. package/dist/contracts/site/packaging-electron.d.ts +20 -0
  269. package/dist/contracts/site/packaging-electron.js +7 -0
  270. package/dist/contracts/site/page-html-store.d.ts +138 -0
  271. package/dist/contracts/site/page-html-store.js +2 -0
  272. package/dist/contracts/site/platform-mail.d.ts +221 -0
  273. package/dist/contracts/site/platform-mail.js +2 -0
  274. package/dist/contracts/site/platform-process.d.ts +23 -0
  275. package/dist/contracts/site/platform-process.js +7 -0
  276. package/dist/contracts/site/platform-server-logs.d.ts +51 -0
  277. package/dist/contracts/site/platform-server-logs.js +15 -0
  278. package/dist/contracts/site/platform-site-dir.d.ts +58 -0
  279. package/dist/contracts/site/platform-site-dir.js +7 -0
  280. package/dist/contracts/site/plugin-directory.d.ts +29 -0
  281. package/dist/contracts/site/plugin-directory.js +2 -0
  282. package/dist/contracts/site/plugins-host.d.ts +92 -0
  283. package/dist/contracts/site/plugins-host.js +2 -0
  284. package/dist/contracts/site/post-author.d.ts +8 -0
  285. package/dist/contracts/site/post-author.js +5 -0
  286. package/dist/contracts/site/post-kind.d.ts +10 -0
  287. package/dist/contracts/site/post-kind.js +2 -0
  288. package/dist/contracts/site/post-revision-lock.d.ts +17 -0
  289. package/dist/contracts/site/post-revision-lock.js +16 -0
  290. package/dist/contracts/site/project-key-attachments.d.ts +78 -0
  291. package/dist/contracts/site/project-key-attachments.js +2 -0
  292. package/dist/contracts/site/protocol-mcp-ui.d.ts +37 -0
  293. package/dist/contracts/site/protocol-mcp-ui.js +12 -0
  294. package/dist/contracts/site/public-origin.d.ts +9 -0
  295. package/dist/contracts/site/public-origin.js +22 -0
  296. package/dist/contracts/site/publish-ports.d.ts +42 -0
  297. package/dist/contracts/site/publish-ports.js +31 -0
  298. package/dist/contracts/site/recovery-operation-lock.d.ts +27 -0
  299. package/dist/contracts/site/recovery-operation-lock.js +11 -0
  300. package/dist/contracts/site/recovery-reconcile-interrupted-migration.d.ts +16 -0
  301. package/dist/contracts/site/recovery-reconcile-interrupted-migration.js +12 -0
  302. package/dist/contracts/site/request-facts.d.ts +28 -0
  303. package/dist/contracts/site/request-facts.js +28 -0
  304. package/dist/contracts/site/routines.d.ts +64 -0
  305. package/dist/contracts/site/routines.js +2 -0
  306. package/dist/contracts/site/sandbox-node-worker.d.ts +15 -0
  307. package/dist/contracts/site/sandbox-node-worker.js +9 -0
  308. package/dist/contracts/site/search.d.ts +181 -0
  309. package/dist/contracts/site/search.js +2 -0
  310. package/dist/contracts/site/secrets-credential-sets.d.ts +117 -0
  311. package/dist/contracts/site/secrets-credential-sets.js +2 -0
  312. package/dist/contracts/site/secrets-credential-token.d.ts +11 -0
  313. package/dist/contracts/site/secrets-credential-token.js +7 -0
  314. package/dist/contracts/site/seo-content-analysis.d.ts +18 -0
  315. package/dist/contracts/site/seo-content-analysis.js +7 -0
  316. package/dist/contracts/site/site-assistant-visitor-tools-management.d.ts +85 -0
  317. package/dist/contracts/site/site-assistant-visitor-tools-management.js +8 -0
  318. package/dist/contracts/site/site-import-history.d.ts +67 -0
  319. package/dist/contracts/site/site-import-history.js +2 -0
  320. package/dist/contracts/site/site-key.d.ts +133 -0
  321. package/dist/contracts/site/site-key.js +9 -0
  322. package/dist/contracts/site/site-serving-gate.d.ts +13 -0
  323. package/dist/contracts/site/site-serving-gate.js +22 -0
  324. package/dist/contracts/site/skill-install.d.ts +17 -0
  325. package/dist/contracts/site/skill-install.js +2 -0
  326. package/dist/contracts/site/skills-install.d.ts +21 -0
  327. package/dist/contracts/site/skills-install.js +7 -0
  328. package/dist/contracts/site/soft-delete.d.ts +13 -0
  329. package/dist/contracts/site/soft-delete.js +13 -0
  330. package/dist/contracts/site/source-control-credentials.d.ts +197 -0
  331. package/dist/contracts/site/source-control-credentials.js +2 -0
  332. package/dist/contracts/site/strict-base64.d.ts +30 -0
  333. package/dist/contracts/site/strict-base64.js +33 -0
  334. package/dist/contracts/site/tool-metadata-approval-policy.d.ts +13 -0
  335. package/dist/contracts/site/tool-metadata-approval-policy.js +2 -0
  336. package/dist/contracts/site/ui-sections.d.ts +27 -0
  337. package/dist/contracts/site/ui-sections.js +13 -0
  338. package/dist/contracts/site/user-management-react.d.ts +276 -0
  339. package/dist/contracts/site/user-management-react.js +9 -0
  340. package/dist/contracts/site/user-management-server.d.ts +104 -0
  341. package/dist/contracts/site/user-management-server.js +2 -0
  342. package/dist/contracts/site/user-management.d.ts +379 -0
  343. package/dist/contracts/site/user-management.js +2 -0
  344. package/dist/contracts/site/vault-context.d.ts +15 -0
  345. package/dist/contracts/site/vault-context.js +6 -0
  346. package/dist/contracts/site/vendor-credentials.d.ts +37 -0
  347. package/dist/contracts/site/vendor-credentials.js +2 -0
  348. package/dist/contracts/site/web-evidence-capture-budget.d.ts +16 -0
  349. package/dist/contracts/site/web-evidence-capture-budget.js +7 -0
  350. package/dist/contracts/site/web-evidence-playwright.d.ts +38 -0
  351. package/dist/contracts/site/web-evidence-playwright.js +9 -0
  352. package/dist/contracts/site/web-screenshot.d.ts +58 -0
  353. package/dist/contracts/site/web-screenshot.js +7 -0
  354. package/dist/contracts/site/widgets-html.d.ts +40 -0
  355. package/dist/contracts/site/widgets-html.js +7 -0
  356. package/dist/contracts/speech-transcription.d.ts +27 -0
  357. package/dist/contracts/speech-transcription.js +8 -0
  358. package/dist/contracts/standing-draft.d.ts +38 -0
  359. package/dist/contracts/standing-draft.js +2 -0
  360. package/dist/contracts/storage/cleanup-preview.d.ts +23 -0
  361. package/dist/contracts/storage/cleanup-preview.js +2 -0
  362. package/dist/contracts/storage/rows.d.ts +6 -2
  363. package/dist/contracts/storage/rows.js +3 -3
  364. package/dist/contracts/storage/sqlite-compaction.d.ts +108 -0
  365. package/dist/contracts/storage/sqlite-compaction.js +7 -0
  366. package/dist/contracts/storage.d.ts +2 -0
  367. package/dist/contracts/tool-result-block.d.ts +21 -0
  368. package/dist/contracts/tool-result-block.js +8 -0
  369. package/dist/errors/catalog.js +2 -2
  370. package/dist/errors/reporter.d.ts +81 -13
  371. package/dist/errors/reporter.js +220 -32
  372. package/dist/errors/route-refusal.d.ts +29 -0
  373. package/dist/errors/route-refusal.js +25 -0
  374. package/dist/errors/testing.d.ts +6 -7
  375. package/dist/errors/testing.js +7 -4
  376. package/dist/extension-capability-vocabulary.d.ts +29 -0
  377. package/dist/extension-capability-vocabulary.js +31 -0
  378. package/dist/gated-mutations/gateway.d.ts +2 -0
  379. package/dist/gated-mutations/gateway.js +4 -1
  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/redaction-collectors.js +60 -39
  402. package/dist/redaction-exact-secrets.js +4 -4
  403. package/dist/redaction-labels.d.ts +3 -1
  404. package/dist/redaction-labels.js +3 -3
  405. package/dist/redaction-patterns.d.ts +3 -1
  406. package/dist/redaction-patterns.js +1 -1
  407. package/dist/redaction-spans.d.ts +5 -1
  408. package/dist/redaction-spans.js +2 -2
  409. package/dist/registration-kit.d.ts +12 -0
  410. package/dist/registration-kit.js +14 -0
  411. package/dist/scheduled-publish.d.ts +57 -0
  412. package/dist/scheduled-publish.js +33 -0
  413. package/dist/settings/ensure-definitions.d.ts +8 -0
  414. package/dist/settings/guarded-reads.d.ts +58 -0
  415. package/dist/settings/guarded-reads.js +48 -0
  416. package/dist/settings/index.d.ts +3 -2
  417. package/dist/settings/index.js +1 -0
  418. package/dist/settings/settings.d.ts +8 -0
  419. package/dist/settings/write-definition-rename.js +2 -2
  420. package/dist/settings/write-definition-retype.js +4 -4
  421. package/dist/settings/write-definition-status.js +4 -4
  422. package/dist/settings/write-service.d.ts +14 -6
  423. package/dist/settings/write-service.js +2 -2
  424. package/dist/surface-exchanges.d.ts +32 -1
  425. package/dist/text/descriptor-i18n.d.ts +4 -1
  426. package/dist/text/descriptor-i18n.js +4 -1
  427. package/dist/text/index.d.ts +3 -0
  428. package/dist/text/index.js +2 -0
  429. package/dist/text/merge-locale-overlays.d.ts +25 -0
  430. package/dist/text/merge-locale-overlays.js +23 -0
  431. package/dist/text/upload-limit-message.d.ts +19 -0
  432. package/dist/text/upload-limit-message.js +29 -0
  433. package/dist/tool-access-change.d.ts +12 -0
  434. package/dist/tool-access-change.js +6 -0
  435. package/dist/tool-metadata/agent-pause.d.ts +21 -0
  436. package/dist/tool-metadata/agent-pause.js +9 -0
  437. package/dist/tool-metadata/agent-plugins.d.ts +72 -0
  438. package/dist/tool-metadata/agent-plugins.js +54 -0
  439. package/dist/tool-metadata/analytics.d.ts +14 -0
  440. package/dist/tool-metadata/analytics.js +17 -0
  441. package/dist/tool-metadata/change-sets.d.ts +24 -0
  442. package/dist/tool-metadata/change-sets.js +19 -0
  443. package/dist/tool-metadata/comments.d.ts +105 -0
  444. package/dist/tool-metadata/comments.js +106 -0
  445. package/dist/tool-metadata/commerce.d.ts +30 -0
  446. package/dist/tool-metadata/commerce.js +11 -0
  447. package/dist/tool-metadata/consent.d.ts +57 -0
  448. package/dist/tool-metadata/consent.js +16 -0
  449. package/dist/tool-metadata/content-duplication.d.ts +13 -0
  450. package/dist/tool-metadata/content-duplication.js +14 -0
  451. package/dist/tool-metadata/content-types.d.ts +74 -0
  452. package/dist/tool-metadata/content-types.js +96 -0
  453. package/dist/tool-metadata/custom-credentials.d.ts +117 -0
  454. package/dist/tool-metadata/custom-credentials.js +105 -0
  455. package/dist/tool-metadata/database-transfer.d.ts +48 -0
  456. package/dist/tool-metadata/database-transfer.js +32 -0
  457. package/dist/tool-metadata/database.d.ts +90 -0
  458. package/dist/tool-metadata/database.js +111 -0
  459. package/dist/tool-metadata/deploy-ops.d.ts +99 -0
  460. package/dist/tool-metadata/deploy-ops.js +96 -0
  461. package/dist/tool-metadata/deployments.d.ts +101 -0
  462. package/dist/tool-metadata/deployments.js +81 -0
  463. package/dist/tool-metadata/domain-dns.d.ts +84 -0
  464. package/dist/tool-metadata/domain-dns.js +99 -0
  465. package/dist/tool-metadata/email-templates.d.ts +54 -0
  466. package/dist/tool-metadata/email-templates.js +41 -0
  467. package/dist/tool-metadata/entries.d.ts +54 -0
  468. package/dist/tool-metadata/entries.js +70 -0
  469. package/dist/tool-metadata/external-mcp.d.ts +86 -0
  470. package/dist/tool-metadata/external-mcp.js +80 -0
  471. package/dist/tool-metadata/files-copy.d.ts +14 -0
  472. package/dist/tool-metadata/files-copy.js +18 -0
  473. package/dist/tool-metadata/forms.d.ts +94 -0
  474. package/dist/tool-metadata/forms.js +117 -0
  475. package/dist/tool-metadata/frontend-control.d.ts +118 -0
  476. package/dist/tool-metadata/frontend-control.js +78 -0
  477. package/dist/tool-metadata/fs-files.d.ts +36 -0
  478. package/dist/tool-metadata/fs-files.js +46 -0
  479. package/dist/tool-metadata/identity.d.ts +184 -0
  480. package/dist/tool-metadata/identity.js +226 -0
  481. package/dist/tool-metadata/image-transform.d.ts +14 -0
  482. package/dist/tool-metadata/image-transform.js +18 -0
  483. package/dist/tool-metadata/mail-status.d.ts +132 -0
  484. package/dist/tool-metadata/mail-status.js +104 -0
  485. package/dist/tool-metadata/media-generation.d.ts +24 -0
  486. package/dist/tool-metadata/media-generation.js +29 -0
  487. package/dist/tool-metadata/media-import.d.ts +34 -0
  488. package/dist/tool-metadata/media-import.js +40 -0
  489. package/dist/tool-metadata/media-video-conversion.d.ts +19 -0
  490. package/dist/tool-metadata/media-video-conversion.js +20 -0
  491. package/dist/tool-metadata/media.d.ts +106 -0
  492. package/dist/tool-metadata/media.js +103 -0
  493. package/dist/tool-metadata/members.d.ts +71 -0
  494. package/dist/tool-metadata/members.js +69 -0
  495. package/dist/tool-metadata/navigation.d.ts +54 -0
  496. package/dist/tool-metadata/navigation.js +71 -0
  497. package/dist/tool-metadata/newsletter.d.ts +190 -0
  498. package/dist/tool-metadata/newsletter.js +246 -0
  499. package/dist/tool-metadata/observability.d.ts +13 -0
  500. package/dist/tool-metadata/observability.js +8 -0
  501. package/dist/tool-metadata/pages.d.ts +47 -0
  502. package/dist/tool-metadata/pages.js +67 -0
  503. package/dist/tool-metadata/permanent-delete.d.ts +139 -0
  504. package/dist/tool-metadata/permanent-delete.js +121 -0
  505. package/dist/tool-metadata/plugin-runtime.d.ts +144 -0
  506. package/dist/tool-metadata/plugin-runtime.js +88 -0
  507. package/dist/tool-metadata/post.d.ts +87 -0
  508. package/dist/tool-metadata/post.js +117 -0
  509. package/dist/tool-metadata/recovery.d.ts +65 -0
  510. package/dist/tool-metadata/recovery.js +78 -0
  511. package/dist/tool-metadata/redirects.d.ts +73 -0
  512. package/dist/tool-metadata/redirects.js +93 -0
  513. package/dist/tool-metadata/routines.d.ts +61 -0
  514. package/dist/tool-metadata/routines.js +40 -0
  515. package/dist/tool-metadata/search.d.ts +49 -0
  516. package/dist/tool-metadata/search.js +33 -0
  517. package/dist/tool-metadata/seo.d.ts +64 -0
  518. package/dist/tool-metadata/seo.js +83 -0
  519. package/dist/tool-metadata/server-logs.d.ts +14 -0
  520. package/dist/tool-metadata/server-logs.js +11 -0
  521. package/dist/tool-metadata/settings.d.ts +90 -0
  522. package/dist/tool-metadata/settings.js +117 -0
  523. package/dist/tool-metadata/site-backup.d.ts +84 -0
  524. package/dist/tool-metadata/site-backup.js +30 -0
  525. package/dist/tool-metadata/site-evidence.d.ts +13 -0
  526. package/dist/tool-metadata/site-evidence.js +10 -0
  527. package/dist/tool-metadata/site-guide.d.ts +18 -0
  528. package/dist/tool-metadata/site-guide.js +15 -0
  529. package/dist/tool-metadata/site-inspection.d.ts +44 -0
  530. package/dist/tool-metadata/site-inspection.js +53 -0
  531. package/dist/tool-metadata/site-update.d.ts +30 -0
  532. package/dist/tool-metadata/site-update.js +22 -0
  533. package/dist/tool-metadata/sites.d.ts +52 -0
  534. package/dist/tool-metadata/sites.js +55 -0
  535. package/dist/tool-metadata/skills.d.ts +13 -0
  536. package/dist/tool-metadata/skills.js +10 -0
  537. package/dist/tool-metadata/source-control.d.ts +26 -0
  538. package/dist/tool-metadata/source-control.js +23 -0
  539. package/dist/tool-metadata/trash.d.ts +32 -0
  540. package/dist/tool-metadata/trash.js +27 -0
  541. package/dist/tool-metadata/visitor-tools.d.ts +49 -0
  542. package/dist/tool-metadata/visitor-tools.js +12 -0
  543. package/dist/tool-metadata/web-screenshot.d.ts +14 -0
  544. package/dist/tool-metadata/web-screenshot.js +23 -0
  545. package/dist/tool-metadata/web.d.ts +14 -0
  546. package/dist/tool-metadata/web.js +21 -0
  547. package/dist/tool-metadata/webhooks.d.ts +65 -0
  548. package/dist/tool-metadata/webhooks.js +77 -0
  549. package/dist/tool-metadata/widgets.d.ts +124 -0
  550. package/dist/tool-metadata/widgets.js +161 -0
  551. package/dist/tool-metadata/workspace.d.ts +43 -0
  552. package/dist/tool-metadata/workspace.js +49 -0
  553. package/dist/tool-read-cards.d.ts +88 -0
  554. package/dist/tool-read-cards.js +158 -0
  555. package/dist/tool-registry.d.ts +25 -0
  556. package/package.json +1382 -6
  557. package/plugin-directory.d.ts +2 -2
  558. package/plugin-directory.js +16 -10
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @file The sidebar navigation model a host renders: grouped, ordered rows with route paths.
3
+ *
4
+ * Additive verbatim copy of `AdminNavGroup`/`AdminNavItem` (`manifest/rules.ts`) and their base
5
+ * `AdminNavEntry` (`manifest/types.ts`) from `@jini-ai/admin/core`, so a host's own nav model can
6
+ * name the shape without importing the admin shell. `@jini-ai/admin` keeps its identical
7
+ * declarations, `buildNav` and its exports until the paired cutover.
8
+ */
9
+ export {};
10
+ //# sourceMappingURL=nav.js.map
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @file The shared shape of an OAuth popup landing page, for every route that ends or refuses a
3
+ * provider sign-in (CMS's public API-connection and external-MCP callbacks, its admin sign-in hop).
4
+ * A wire contract, so it sits in neutral Core where both the admin and the public route domains
5
+ * may read it. The markup, XSS and origin protections live in
6
+ * `@jini-ai/oauth/callback-page`; the copy is the host's, so the host injects the renderer
7
+ * ({@link OAuthCallbackPageRenderer}) with its own wording bound in.
8
+ *
9
+ * The failure reason is a closed vocabulary ({@link OAuthCallbackFailureReason}) for the same reason
10
+ * `messageType` is a constant: a caller classifies its caught failure FIRST (see each callback
11
+ * route's classifier) and only the resulting closed value reaches the page, never a provider's own
12
+ * error text.
13
+ */
14
+ /**
15
+ * Closed vocabulary for why an OAuth callback failed. A provider's own response text (its `error`,
16
+ * `error_description`, or anything else it sent) is NEVER a member of this type and must never
17
+ * become one — a caller maps a caught failure onto one of these fixed values before the page ever
18
+ * sees it.
19
+ */
20
+ export type OAuthCallbackFailureReason = "rate_limited" | "no_state" | "state_expired" | "browser_mismatch" | "provider_denied" | "exchange_failed" | "server_unknown" | "account_unchanged";
21
+ /** Every member of {@link OAuthCallbackFailureReason}, for hosts that key their copy table by it. */
22
+ export declare const OAUTH_CALLBACK_FAILURE_REASONS: readonly OAuthCallbackFailureReason[];
23
+ /** What one callback page announces: which of the two FIXED copy variants, its `postMessage` type and, on failure, the reason. */
24
+ export interface OAuthCallbackPageArgs {
25
+ /** Chooses which of the two FIXED copy variants is rendered. Never derived from request data. */
26
+ readonly ok: boolean;
27
+ /** The `postMessage` type this page announces. A constant the host binds per flow. */
28
+ readonly messageType: string;
29
+ /** Which closed-vocabulary reason to render when `ok` is `false`; the host's renderer picks its default when absent. */
30
+ readonly reason?: OAuthCallbackFailureReason;
31
+ }
32
+ /** The host's page renderer, with its copy bound in. Returns the full HTML document. */
33
+ export type OAuthCallbackPageRenderer = (required: OAuthCallbackPageArgs, optional?: Record<string, never>) => string;
34
+ /**
35
+ * The callback page as a web `Response`: `text/html; charset=utf-8`, `Cache-Control: no-store`
36
+ * (a one-time sign-in result must never be served from a cache), its stated byte length (a finished
37
+ * page, as the host framework stated it), plus the caller's own headers in order (`Set-Cookie` may repeat).
38
+ * @complexity O(headers) plus the injected renderer.
39
+ */
40
+ export declare function oauthCallbackPageResponse({ status, render, page }: {
41
+ readonly status: number;
42
+ readonly render: OAuthCallbackPageRenderer;
43
+ readonly page: OAuthCallbackPageArgs;
44
+ }, { headers }?: {
45
+ readonly headers?: readonly (readonly [string, string])[];
46
+ }): Response;
47
+ //# sourceMappingURL=oauth-callback-page.d.ts.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @file The shared shape of an OAuth popup landing page, for every route that ends or refuses a
3
+ * provider sign-in (CMS's public API-connection and external-MCP callbacks, its admin sign-in hop).
4
+ * A wire contract, so it sits in neutral Core where both the admin and the public route domains
5
+ * may read it. The markup, XSS and origin protections live in
6
+ * `@jini-ai/oauth/callback-page`; the copy is the host's, so the host injects the renderer
7
+ * ({@link OAuthCallbackPageRenderer}) with its own wording bound in.
8
+ *
9
+ * The failure reason is a closed vocabulary ({@link OAuthCallbackFailureReason}) for the same reason
10
+ * `messageType` is a constant: a caller classifies its caught failure FIRST (see each callback
11
+ * route's classifier) and only the resulting closed value reaches the page, never a provider's own
12
+ * error text.
13
+ */
14
+ /** Every member of {@link OAuthCallbackFailureReason}, for hosts that key their copy table by it. */
15
+ export const OAUTH_CALLBACK_FAILURE_REASONS = [
16
+ "rate_limited", "no_state", "state_expired", "browser_mismatch", "provider_denied", "exchange_failed", "server_unknown", "account_unchanged",
17
+ ];
18
+ /**
19
+ * The callback page as a web `Response`: `text/html; charset=utf-8`, `Cache-Control: no-store`
20
+ * (a one-time sign-in result must never be served from a cache), its stated byte length (a finished
21
+ * page, as the host framework stated it), plus the caller's own headers in order (`Set-Cookie` may repeat).
22
+ * @complexity O(headers) plus the injected renderer.
23
+ */
24
+ export function oauthCallbackPageResponse({ status, render, page }, { headers = [] } = {}) {
25
+ const html = render(page);
26
+ const out = new Headers({ "cache-control": "no-store", "content-type": "text/html; charset=utf-8", "content-length": String(new TextEncoder().encode(html).byteLength) });
27
+ for (const [name, value] of headers)
28
+ out.append(name, value);
29
+ return new Response(html, { status, headers: out });
30
+ }
31
+ //# sourceMappingURL=oauth-callback-page.js.map
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @file Electron asar archive header and verification shapes. Types only; this module owns the
3
+ * declarations that `@jini-ai/devops/packaging/electron` (`ports.ts`, `archive.ts`) used to
4
+ * declare. That package imports them from here and keeps its runtime values.
5
+ */
6
+ export interface AsarHeaderNode {
7
+ files?: Record<string, AsarHeaderNode>;
8
+ link?: string;
9
+ size?: number;
10
+ offset?: string;
11
+ }
12
+ export interface AsarMismatch {
13
+ relPath: string;
14
+ reason: string;
15
+ }
16
+ export interface AsarVerification {
17
+ checkedCount: number;
18
+ mismatches: AsarMismatch[];
19
+ }
20
+ //# sourceMappingURL=packaging-electron.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Electron asar archive header and verification shapes. Types only; this module owns the
3
+ * declarations that `@jini-ai/devops/packaging/electron` (`ports.ts`, `archive.ts`) used to
4
+ * declare. That package imports them from here and keeps its runtime values.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=packaging-electron.js.map
@@ -0,0 +1,138 @@
1
+ import type { JsonObject } from "../../primitives/index.js";
2
+ import type { PostKind } from "./post-kind.js";
3
+ export interface PluginEmbedDiagnostic {
4
+ readonly code: string;
5
+ readonly message: string;
6
+ }
7
+ /** Scopes one store instance to one Page row — mirrors every other adapter in this feature area
8
+ * being workspace-scoped, so a store built for workspace A can never touch workspace B's row even
9
+ * if handed a colliding `postId` (defense in depth; ids are UUIDs and collision is not the expected
10
+ * threat model, but the scoping costs nothing and matches house convention). */
11
+ export interface PagesHtmlDocumentStoreScope {
12
+ workspaceId: string;
13
+ postId: string;
14
+ /**
15
+ * Fix plan 2026-09-24 row 14 (S1) — the `post_revisions.actor_id` a {@link
16
+ * PagesHtmlDocumentStoreDeps.revisions} append attributes this Page's edit to. Defaults to
17
+ * {@link SYSTEM_ACTOR_ID}, the same ledger fallback `post.ts` itself uses for an omitted caller,
18
+ * rather than being required — most construction sites predate this field and a route that never
19
+ * passes one should not have to.
20
+ */
21
+ actorId?: string;
22
+ }
23
+ /**
24
+ * The capability a Page's bespoke-HTML body is read and written through, as an interface rather
25
+ * than the concrete class.
26
+ *
27
+ * Two implementations satisfy it: {@link SqlPagesHtmlDocumentStore} over the real `content.db`, and
28
+ * `html-document-store.memory.ts`'s `PostRepoPort`-backed twin for `app.ts`'s hermetic root. A
29
+ * class type would not work here even if there were only one — TypeScript compares classes with
30
+ * private fields nominally, so a structurally identical second implementation is not assignable to
31
+ * the first.
32
+ *
33
+ * `read()` deliberately returns only the string; the version an implementation conditions its
34
+ * write on is captured on the instance rather than handed back with the body. Handlers use Jini's
35
+ * pure edits over that body without another store read.
36
+ */
37
+ export interface PagesHtmlDocumentStorePort {
38
+ /** Safe warnings from the last validated write, for authenticated authoring surfaces. */
39
+ embedWarnings?(): readonly PluginEmbedDiagnostic[];
40
+ /** Checks a supplied client basis before capturing it or converting a doc Page to HTML. */
41
+ ensureHtmlFormat(required: {
42
+ seedHtml: string;
43
+ expectedVersion?: number;
44
+ }, optional?: Record<string, never>): Promise<void>;
45
+ read(): Promise<string>;
46
+ write(required: {
47
+ html: string;
48
+ }, optional?: Record<string, never>): Promise<void>;
49
+ /**
50
+ * The row `version` captured by the most recent {@link read}/{@link ensureHtmlFormat} — the exact
51
+ * value the next {@link write}'s compare-and-set will condition on — or `null` before either has
52
+ * run.
53
+ *
54
+ * Added 2026-09-09 so a caller-stated `expectedVersion` (the agent tools' optimistic-concurrency
55
+ * basis, mirroring `content_post_update`'s) can be compared against the version the write is
56
+ * ACTUALLY conditioned on, with nothing able to move in between. Comparing against a version read
57
+ * separately — through `postRepo`, say — would leave a window where a concurrent writer lands
58
+ * between the check and this store's own `read()`, and the write would then be conditioned on the
59
+ * intruder's version and silently clobber it. That is precisely the failure a version guard exists
60
+ * to prevent, so the basis and the predicate must be the same number.
61
+ *
62
+ * This is the host's concurrency contract, independent of the engine's `HtmlDocumentStore`; pure region
63
+ * edits never read the store or advance this basis.
64
+ */
65
+ capturedVersion(): number | null;
66
+ /**
67
+ * Restores a recorded pre-write body verbatim, conditioned on the row still being live at exactly
68
+ * `expectedVersion` (the reverter's compare-and-set, kept even after the revert gateway's own
69
+ * version preflight). Matching live HTML at that version is a successful no-op. Optional only so
70
+ * narrow test fakes keep compiling; the `page-html` reverter refuses a store without it.
71
+ * @throws {PageConcurrentEditError} When the row moved, was trashed, or is gone.
72
+ */
73
+ restore?(required: {
74
+ inverse: PageHtmlInverse;
75
+ expectedVersion: number;
76
+ }, optional?: Record<string, never>): Promise<void>;
77
+ }
78
+ /**
79
+ * Builds a store for one Page, with the `content.db` handle and clock already closed over.
80
+ *
81
+ * A factory rather than a store, for the same reason `RouteDeps.chatHistory` is one: composition
82
+ * owns the db handle so no route ever holds it, which is what makes an unscoped `WHERE id = ?`
83
+ * unwritable from a route rather than merely against convention. Every instance is bound to exactly
84
+ * one `(workspaceId, postId)` pair at construction.
85
+ */
86
+ export type PagesHtmlDocumentStoreFactory = (scope: PagesHtmlDocumentStoreScope, options?: {
87
+ allowedKinds?: ReadonlySet<PostKind>;
88
+ }) => PagesHtmlDocumentStorePort;
89
+ /**
90
+ * @file The exact pre-write body a recorded assistant HTML change restores (P1-T2.T).
91
+ *
92
+ * Kept as the stored row's own bytes, never a normalized or rendered copy: an Undo that restores
93
+ * something nobody ever saved is not an Undo. A doc Page's first full HTML write records the doc
94
+ * body and format captured BEFORE `ensureHtmlFormat` nulls `body_json`, because after that the
95
+ * doc exists nowhere else the reverter is allowed to read (the `pages_read_html` doc fallback is
96
+ * rendered HTML, not the body).
97
+ */
98
+ export type PageHtmlInverse = {
99
+ format: "html";
100
+ html: string;
101
+ } | {
102
+ format: "doc";
103
+ bodyJson: JsonObject;
104
+ };
105
+ /** The assistant tools whose real HTML changes earn a recorded Undo. */
106
+ export type PageHtmlOperation = "pages_write_html" | "pages_write_region" | "pages_move_region";
107
+ /** What one store operation did: `changed: false` covers refusals and unchanged normalized writes. */
108
+ export interface PageHtmlWriteOutcome<T> {
109
+ changed: boolean;
110
+ version: number | null;
111
+ value: T;
112
+ }
113
+ /**
114
+ * Whether this composition can run a recorded HTML write at all (FIX 11). `enabled` only where one
115
+ * transaction spans the page write, its revisions, events and the change-set record (sqlite,
116
+ * postgres). The in-memory composition binds `disabled`: its post snapshot does not cover the
117
+ * change-set repo or the outbox, so a late failure would orphan the Undo record.
118
+ */
119
+ export type RecordedHtmlWrites = "enabled" | "disabled";
120
+ export interface RecordPageHtmlWritePort {
121
+ <T>(required: {
122
+ target: {
123
+ workspaceId: string;
124
+ pageId: string;
125
+ actorId: string;
126
+ executionId: string;
127
+ };
128
+ expectedVersion: number;
129
+ operation: PageHtmlOperation;
130
+ write: () => Promise<PageHtmlWriteOutcome<T>>;
131
+ signal: AbortSignal;
132
+ }, optional?: Record<string, never>): Promise<{
133
+ value: T;
134
+ version: number | null;
135
+ changeSetId?: string;
136
+ }>;
137
+ }
138
+ //# sourceMappingURL=page-html-store.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=page-html-store.js.map
@@ -0,0 +1,221 @@
1
+ import type { AuthorizeFn } from "../events.js";
2
+ import type { EmailAddress, MailerFeedbackEvent, MailSuppressionScope } from "../mail.js";
3
+ /**
4
+ * @file The record and port types of the mail activity ledger and the suppression admin list, as
5
+ * the activity operations consume them. Types only: a host's SQL repos implement these ports.
6
+ *
7
+ * Additive copy of the declarations in `@jini-ai/platform/mail` (`activity/ports.ts`,
8
+ * `activity/vocabulary.ts`, `activity/activity.ts`, `activity/suppressions.ts`, `feedback.ts`,
9
+ * `sender-identity.ts`). The rest of that entry's types already live in `../mail.js`.
10
+ */
11
+ /**
12
+ * The closed vocabularies of a mail activity ledger's derived columns: what happened to a
13
+ * send (`outcome`) and which owner sent it (`use`). The runtime arrays the activity operation
14
+ * validates caller input against stay with the operation; a SQL repo only needs their types.
15
+ */
16
+ export type MailActivityOutcome = "accepted" | "delivered" | "bounced" | "complained" | "suppressed" | "deferred" | "failed" | "unknown" | "captured";
17
+ export type MailActivityUse = "sign_in" | "newsletter_confirmation" | "form_notification" | "newsletter" | "test" | "unknown";
18
+ export interface MailActivityRecord {
19
+ cursorKey: string;
20
+ originalRecipient?: string;
21
+ deliveryMode?: "redirect" | "capture";
22
+ idempotencyKey: string;
23
+ recipient: string;
24
+ lane: "transactional" | "bulk";
25
+ providerId: string;
26
+ use: MailActivityUse;
27
+ outcome: MailActivityOutcome;
28
+ providerMessageId: string | null;
29
+ errorCode: string | null;
30
+ message: string | null;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ }
34
+ export interface MailFeedbackRecord {
35
+ kind: "delivered" | "bounced" | "complained";
36
+ hardBounce: boolean;
37
+ providerId: string;
38
+ occurredAt: string;
39
+ receivedAt: string;
40
+ }
41
+ /** Keyset position: rows at or before `createdAt`, skipping the `skip` already returned at exactly that time. */
42
+ export interface MailActivityPosition {
43
+ createdAt: string;
44
+ key: string;
45
+ }
46
+ export interface MailActivityFilter {
47
+ outcome?: MailActivityOutcome;
48
+ use?: MailActivityUse;
49
+ /** Exact address, compared lowercased as the ledger stores it. */
50
+ recipient?: string;
51
+ }
52
+ export interface MailActivityRepo {
53
+ list(required: {
54
+ workspaceId: string;
55
+ limit: number;
56
+ }, optional?: MailActivityFilter & {
57
+ before?: MailActivityPosition;
58
+ }): Promise<MailActivityRecord[]>;
59
+ get(required: {
60
+ workspaceId: string;
61
+ idempotencyKey: string;
62
+ recipient: string;
63
+ }): Promise<{
64
+ record: MailActivityRecord;
65
+ feedback: MailFeedbackRecord[];
66
+ } | null>;
67
+ }
68
+ export type MailSuppressionReason = "bounced" | "complained" | "manual";
69
+ export interface MailSuppressionEntry {
70
+ address: string;
71
+ scope: MailSuppressionScope;
72
+ reason: MailSuppressionReason;
73
+ createdAt: string;
74
+ revision: string;
75
+ }
76
+ export interface MailSuppressionRemoval {
77
+ id: string;
78
+ address: string;
79
+ scope: MailSuppressionScope;
80
+ suppressionReason: MailSuppressionReason;
81
+ suppressedAt: string;
82
+ removalReason: string;
83
+ removedBy: string;
84
+ removedAt: string;
85
+ }
86
+ export interface MailSuppressionListFilter {
87
+ /** Substring of the address, matched lowercased; `%` and `_` are literal. */
88
+ search?: string;
89
+ scope?: MailSuppressionScope;
90
+ reason?: MailSuppressionReason;
91
+ before?: {
92
+ createdAt: string;
93
+ key: string;
94
+ };
95
+ }
96
+ export interface MailSuppressionAdminRepo {
97
+ list(required: {
98
+ workspaceId: string;
99
+ limit: number;
100
+ }, optional?: MailSuppressionListFilter): Promise<MailSuppressionEntry[]>;
101
+ find(required: {
102
+ workspaceId: string;
103
+ address: string;
104
+ scope: MailSuppressionScope;
105
+ }): Promise<MailSuppressionEntry | null>;
106
+ /** Deletes the suppression and records the removal atomically; `null` when it was not suppressed. */
107
+ remove(required: {
108
+ workspaceId: string;
109
+ address: string;
110
+ scope: MailSuppressionScope;
111
+ removalReason: string;
112
+ removedBy: string;
113
+ revision: string;
114
+ }): Promise<MailSuppressionRemoval | null>;
115
+ /** The newest verified webhook event for a provider; only verified events are ever recorded. */
116
+ lastFeedbackEvent(required: {
117
+ workspaceId: string;
118
+ providerId: string;
119
+ }): Promise<{
120
+ kind: "delivered" | "bounced" | "complained";
121
+ receivedAt: string;
122
+ } | null>;
123
+ }
124
+ /** The ids the host grants the three roles of the mail operations; the operations never spell one. */
125
+ export interface MailPermissionIds {
126
+ /** Full recipient details of the send history, and reading the suppression list. */
127
+ activityRead: string;
128
+ /** The host's status permission: the masked tier of the history. */
129
+ status: string;
130
+ /** Removing an address from the do-not-send list (a holder must also be the owner). */
131
+ suppressionsManage: string;
132
+ }
133
+ export interface MailActivityDeps {
134
+ workspaceId: string;
135
+ authorize: AuthorizeFn;
136
+ permissions: MailPermissionIds;
137
+ /** Absent in hermetic roots: every read refuses with {@link MailActivityUnavailableError}. */
138
+ mailActivity?: MailActivityRepo;
139
+ }
140
+ export interface MailSuppressionDeps {
141
+ workspaceId: string;
142
+ authorize: AuthorizeFn;
143
+ permissions: MailPermissionIds;
144
+ ownerPrincipalId?: Promise<string>;
145
+ /** Absent in hermetic roots: every call refuses with {@link MailSuppressionsUnavailableError}. */
146
+ mailSuppressionAdmin?: MailSuppressionAdminRepo;
147
+ }
148
+ export interface MailFeedbackInboxPort {
149
+ /**
150
+ * Insert-if-absent on (providerId, eventId). `duplicate` means this event was already applied
151
+ * (completed); `inserted` means it must be applied now: either new, or recorded earlier but never
152
+ * completed (the earlier attempt failed or stopped part-way).
153
+ */
154
+ record(required: {
155
+ providerId: string;
156
+ event: MailerFeedbackEvent & {
157
+ eventId: string;
158
+ recipient: string;
159
+ };
160
+ }): Promise<"inserted" | "duplicate">;
161
+ /** Marks (providerId, eventId) applied; later `record` calls for it return `duplicate`. */
162
+ complete(required: {
163
+ providerId: string;
164
+ eventId: string;
165
+ }): Promise<void>;
166
+ }
167
+ /** The site's saved sender, either part possibly absent. */
168
+ export interface ConfiguredMailSender {
169
+ email?: string;
170
+ name?: string;
171
+ }
172
+ /** Resolves the `From` for one system email. */
173
+ export interface MailSenderIdentityPort {
174
+ /**
175
+ * @param required.fallback The caller's placeholder sender; its `name` also fills in a missing
176
+ * configured display name.
177
+ * @throws SenderIdentityNotConfiguredError when a delivering mailer is active but the site has
178
+ * no sender address configured (see `@jini-ai/platform/mail`'s `sender-identity.ts` header).
179
+ */
180
+ resolve(required: {
181
+ workspaceId: string;
182
+ fallback: EmailAddress;
183
+ }, optional?: Record<string, never>): Promise<EmailAddress>;
184
+ }
185
+ export interface MailWebhookSecretSlot {
186
+ label: string;
187
+ configured: boolean;
188
+ updatedAt: string | null;
189
+ }
190
+ export interface MailFeedbackProviderSetup {
191
+ providerId: string;
192
+ label: string;
193
+ lanes: readonly ("transactional" | "bulk")[];
194
+ supported: boolean;
195
+ /** `/hooks/mail/<providerId>` (`server/inbound/public-http/routes/mail-feedback.ts`). */
196
+ webhookPath: string;
197
+ /** Absolute, from the site's verified origin; null while the origin is unverified. */
198
+ webhookUrl: string | null;
199
+ signingSecret: {
200
+ current: MailWebhookSecretSlot;
201
+ previous: MailWebhookSecretSlot;
202
+ } | null;
203
+ lastVerifiedEvent: {
204
+ kind: "delivered" | "bounced" | "complained";
205
+ receivedAt: string;
206
+ } | null;
207
+ state: "unsupported" | "secret_missing" | "no_events_yet" | "receiving";
208
+ }
209
+ export interface MailFeedbackSetupReport {
210
+ /** False when this root cannot describe its providers; `providers` is then empty. */
211
+ available: boolean;
212
+ providers: MailFeedbackProviderSetup[];
213
+ }
214
+ /** The Newsletter launch gate's precondition codes, in its fixed (a)->(d) check order. */
215
+ export type MailLaunchGatePrecondition = "sending_enabled_false" | "consent_capability_unbound" | "origin_not_verified" | "mailer_adapter_not_production";
216
+ export interface MailLaunchGateResult {
217
+ met: boolean;
218
+ /** Fixed (a)->(d) order; the `NEWSLETTER_LAUNCH_GATE_BLOCKED` refusal's `unmetPreconditions`. */
219
+ unmetPreconditions: readonly MailLaunchGatePrecondition[];
220
+ }
221
+ //# sourceMappingURL=platform-mail.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=platform-mail.js.map
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @file OS process usage and private-memory sample shapes. Types only; this module owns the
3
+ * declarations that `@jini-ai/platform/process` (`process.ts`) used to declare. That package
4
+ * imports them from here and keeps its runtime values.
5
+ */
6
+ /** Display-only usage: RSS is bytes; CPU is cumulative seconds across all cores. */
7
+ export type ProcessUsage = {
8
+ pid: number;
9
+ ppid: number;
10
+ rssBytes: number;
11
+ cpuSeconds: number;
12
+ /** Executable basename only; empty when the OS provides no name. */
13
+ name: string;
14
+ };
15
+ /** Private-memory samples are separate from RSS; unsupported hosts retain null readings. */
16
+ export type ProcessPrivateMemory = {
17
+ metric: "physical-footprint" | "private-working-set" | "unavailable";
18
+ readings: Array<{
19
+ pid: number;
20
+ bytes: number | null;
21
+ }>;
22
+ };
23
+ //# sourceMappingURL=platform-process.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file OS process usage and private-memory sample shapes. Types only; this module owns the
3
+ * declarations that `@jini-ai/platform/process` (`process.ts`) used to declare. That package
4
+ * imports them from here and keeps its runtime values.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=platform-process.js.map
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @file The captured server log line and its level/source/metadata vocabulary. Types only.
3
+ *
4
+ * Generic, not host-specific: nothing here knows about sites, workspaces or the admin. A host's
5
+ * in-memory ring buffer of recent server log lines, its rotating log-file sink and every reader
6
+ * (an admin route, an assistant tool) share these shapes. The buffer, its caps and the console
7
+ * tee stay with the host. The read's filters ({@link ServerLogFilters}) and result
8
+ * ({@link ServerLogsResult}) live here too: the reader, the admin route that serves it and the admin
9
+ * client that calls that route all share them.
10
+ *
11
+ * Redaction is applied ON WRITE, never on read: a secret must not sit in memory waiting for a reader
12
+ * to forget the redaction step, so `message` on a stored entry is already redacted.
13
+ */
14
+ export type ServerLogLevel = "debug" | "info" | "warn" | "error";
15
+ /** Which process logged the line: the main server, or the agent daemon it supervises. */
16
+ export type ServerLogSource = "server" | "daemon";
17
+ /** Captured with each line so rotation and later async work cannot change its attribution. */
18
+ export interface ServerLogMetadata {
19
+ readonly release?: string;
20
+ readonly environment?: string;
21
+ readonly traceId?: string;
22
+ readonly spanId?: string;
23
+ }
24
+ export interface ServerLogEntry extends ServerLogMetadata {
25
+ /** Monotonic within one process; lets a reader page forward without duplicates.
26
+ * Total lines ever appended, including ones already dropped by the caps. */
27
+ readonly seq: number;
28
+ /** ISO-8601 time the line was captured. */
29
+ readonly at: string;
30
+ readonly level: ServerLogLevel;
31
+ readonly source: ServerLogSource;
32
+ /** Already redacted and length-capped. */
33
+ readonly message: string;
34
+ }
35
+ export interface ServerLogFilters {
36
+ /** Minimum severity: "warn" returns warn and error. */
37
+ readonly level?: ServerLogLevel | undefined;
38
+ readonly sinceIso?: string | undefined;
39
+ /** Case-insensitive substring of the message. */
40
+ readonly contains?: string | undefined;
41
+ readonly limit?: number | undefined;
42
+ }
43
+ export interface ServerLogsResult {
44
+ /** Oldest first; the newest `limit` matching lines. */
45
+ readonly entries: readonly ServerLogEntry[];
46
+ readonly matched: number;
47
+ readonly buffered: number;
48
+ readonly truncated: boolean;
49
+ readonly capturing: boolean;
50
+ }
51
+ //# sourceMappingURL=platform-server-logs.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @file The captured server log line and its level/source/metadata vocabulary. Types only.
3
+ *
4
+ * Generic, not host-specific: nothing here knows about sites, workspaces or the admin. A host's
5
+ * in-memory ring buffer of recent server log lines, its rotating log-file sink and every reader
6
+ * (an admin route, an assistant tool) share these shapes. The buffer, its caps and the console
7
+ * tee stay with the host. The read's filters ({@link ServerLogFilters}) and result
8
+ * ({@link ServerLogsResult}) live here too: the reader, the admin route that serves it and the admin
9
+ * client that calls that route all share them.
10
+ *
11
+ * Redaction is applied ON WRITE, never on read: a secret must not sit in memory waiting for a reader
12
+ * to forget the redaction step, so `message` on a stored entry is already redacted.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=platform-server-logs.js.map
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @file Site-directory registry shapes a host's site switcher, site creation and site import share.
3
+ * Types only: the host keeps the registry, the filesystem effects and its own environment-variable
4
+ * vocabulary; these shapes carry no host names.
5
+ */
6
+ export interface InitSiteResult {
7
+ siteId: string;
8
+ dir: string;
9
+ }
10
+ export interface SiteCreationAllocation extends InitSiteResult {
11
+ name: string;
12
+ dbPath: string;
13
+ }
14
+ export interface CreateSiteResult extends InitSiteResult {
15
+ name: string;
16
+ }
17
+ /** What THIS process is actually bound to right now — see the host's `describeSiteBinding`. */
18
+ export interface SiteBinding {
19
+ /** Absolute path this process resolved at boot (`resolveSiteRoot()`), re-derived fresh. */
20
+ dir: string;
21
+ /** `dir`'s folder name — the host site-name variable's vocabulary `persistActiveSite` writes in. */
22
+ name: string;
23
+ /**
24
+ * True when the host's site-dir override variable is set in this process's environment.
25
+ *
26
+ * Load-bearing for the admin Sites screen, not a diagnostic nicety: `resolveSiteRoot`'s
27
+ * precedence puts the site-dir override ABOVE the site-name line `persistActiveSite` writes, so when
28
+ * this is true an activate is inert — the next boot resolves the override and ignores the
29
+ * persisted choice entirely. A UI that offered Activate without saying so would promise a switch
30
+ * that cannot happen.
31
+ */
32
+ dirOverridden: boolean;
33
+ /**
34
+ * False when `dir` was resolved from an explicit, arbitrary install-dir argument (a host `serve
35
+ * <dir>` / `bootSiteDir`) rather than from THIS function's own `{cwd, env}`-relative
36
+ * `<cwd>/sites/<name>` convention.
37
+ *
38
+ * `listSites`/`createSite`/`persistActiveSite`/`sites_duplicate_site` all resolve their OWN
39
+ * `sites/` root from a `cwd` — `process.cwd()` by default, which is a DIFFERENT computation from
40
+ * whatever `dir` this binding names. The Sites routes and tools therefore never let it default:
41
+ * they pass the host's `switcherBaseForBinding`'s base, which exists only when this is `true`. `false`
42
+ * tells those write paths to refuse rather than silently write under an unrelated `<cwd>/sites`.
43
+ *
44
+ * `describeSiteBinding` used to hardcode this `true`, on the stated reasoning that its own
45
+ * `{cwd, env}` resolution always agrees with the switcher's. That reasoning did not cover
46
+ * the site-dir override, which `resolveSiteRoot` honors outright and which can name any path on the
47
+ * disk — so an override pointing outside `<cwd>/sites` produced a binding that CLAIMED to be
48
+ * switchable while the switcher's own root was somewhere else entirely. It is computed now (see
49
+ * the host's `describeSiteBinding`), and additionally forced off by
50
+ * the host's `SITE_BINDING_NOT_SWITCHABLE_ENV` for the one case no path comparison can detect: a
51
+ * host `serve <dir>` boot whose `<dir>` happens to sit under `<cwd>/sites` but was still pinned
52
+ * by an explicit argument rather than chosen through the switcher.
53
+ */
54
+ switcherCompatible: boolean;
55
+ /** Repo base is independent of the selected shared home; .env remains repo-owned. */
56
+ switcherBase?: string;
57
+ }
58
+ //# sourceMappingURL=platform-site-dir.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Site-directory registry shapes a host's site switcher, site creation and site import share.
3
+ * Types only: the host keeps the registry, the filesystem effects and its own environment-variable
4
+ * vocabulary; these shapes carry no host names.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=platform-site-dir.js.map