@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,235 @@
1
+ /**
2
+ * @file The admin Trash wire DTOs and the `TrashActor` type: the JSON bodies the trash admin routes (list, restore, purge)
3
+ * answer with and an admin client reads, plus who moved an item to the trash. Declared here, once, so the host's route
4
+ * serializers and any client read the same shapes without the client depending on CMS or the trash engine.
5
+ *
6
+ * `@jini-ai/cms/trash` (`trash/ports.ts`) re-exports `TrashActor` from here. The trash service, its adapters and
7
+ * the cms `RemoveEntity` port stay in the cms package.
8
+ */
9
+ import type { RecordedActor } from "../events/ports.js";
10
+ /** Who moved an item to the trash. */
11
+ export interface TrashActor {
12
+ principalId: string;
13
+ pluginId?: string | null;
14
+ /**
15
+ * Typed attribution, persisted as the row's nullable `actor_kind`/`actor_id` when the caller has one.
16
+ * Independent of `principalId`/`pluginId`, which keep their meaning; absent leaves both columns NULL.
17
+ */
18
+ recorded?: RecordedActor | null;
19
+ }
20
+ /**
21
+ * One row of the Trash.
22
+ *
23
+ * Every field is a SNAPSHOT captured when the thing was deleted, not a read of the thing itself —
24
+ * which is what lets a row whose payload is corrupt still be listed and still be restored. `title`
25
+ * can therefore be stale; that is the design, not a bug.
26
+ */
27
+ export interface AdminTrashItemDto {
28
+ /** The trash row's own id. Purge addresses rows by THIS, not by `entityId`. */
29
+ readonly id: string;
30
+ readonly entityType: string;
31
+ /** Presentation subtype; canonical entityType still addresses restore/purge. Older rows may omit it. */
32
+ readonly displayKind?: 'page' | 'post';
33
+ readonly entityId: string;
34
+ readonly title: string;
35
+ readonly subtitle: string | null;
36
+ readonly trashedAt: string;
37
+ readonly purgeAfter: string;
38
+ /** Whole days until auto-purge, floored at 0. Server-computed, so the clock is the server's. */
39
+ readonly daysRemaining: number;
40
+ readonly actorPrincipalId: string;
41
+ readonly actorPluginId: string | null;
42
+ /** The server-resolved username for `actorPrincipalId`, or `null` when no user record matches it
43
+ * (the account was since removed, or the principal is not a user). Never the raw id. Optional
44
+ * because a server build that predates username resolution omits the field, and a reader treats
45
+ * that absence differently from an explicit `null`. */
46
+ readonly actorUsername?: string | null;
47
+ /** True when the row's actor is a non-human system principal, never a real user account. Optional
48
+ * because an older server predates this field; absent means "not known to be a system actor". */
49
+ readonly actorIsSystem?: boolean;
50
+ }
51
+ /** `GET …/trash`: one page of rows and the keyset cursor of the next (`null` on the last page). */
52
+ export interface AdminTrashPageDto {
53
+ readonly items: readonly AdminTrashItemDto[];
54
+ readonly nextCursor: string | null;
55
+ /** The host's retention window for items trashed NOW, in days, so the screen can state it without
56
+ * hard-coding it. Rows trashed under an earlier window keep their own stamped `purgeAfter`, which
57
+ * each row's `daysRemaining` already reflects. */
58
+ readonly retentionDays: number;
59
+ }
60
+ /** Per-item restore outcomes. `forbidden` means the operator lacks THAT ROW'S kind's permission. */
61
+ export type AdminTrashRestoreOutcome = 'restored' | 'not-found' | 'version-changed' | 'adapter-unavailable' | 'forbidden';
62
+ /** Per-item purge outcomes. `forbidden` means the operator lacks THAT ROW'S kind's permission. */
63
+ export type AdminTrashPurgeOutcome = 'purged' | 'already-gone' | 'version-changed' | 'still-referenced' | 'not-found' | 'adapter-unavailable' | 'forbidden';
64
+ /** `POST …/trash/restore`: how many rows came back and each row's outcome. */
65
+ export interface AdminTrashRestoreReportDto {
66
+ readonly restored: number;
67
+ readonly results: readonly {
68
+ readonly entityType: string;
69
+ readonly entityId: string;
70
+ readonly outcome: AdminTrashRestoreOutcome;
71
+ }[];
72
+ }
73
+ /** `POST …/trash/purge`: how many rows were destroyed and each row's outcome. */
74
+ export interface AdminTrashPurgeReportDto {
75
+ readonly purged: number;
76
+ readonly results: readonly {
77
+ readonly id: string;
78
+ readonly outcome: AdminTrashPurgeOutcome;
79
+ }[];
80
+ }
81
+ /**
82
+ * Outcome of one `moveToTrash` call. `version` is the entity's version AFTER the flip (`null` for a
83
+ * kind with no version column) — mirrors {@link TrashPort.trash}'s own success shape rather than
84
+ * inventing a second one.
85
+ */
86
+ export type MoveToTrashOutcome = {
87
+ ok: true;
88
+ version: number | null;
89
+ } | {
90
+ ok: false;
91
+ reason: "unknown-type";
92
+ } | {
93
+ ok: false;
94
+ reason: "not-found";
95
+ } | {
96
+ ok: false;
97
+ reason: "forbidden";
98
+ permission: string;
99
+ } | {
100
+ ok: false;
101
+ reason: "version-changed";
102
+ } | {
103
+ ok: false;
104
+ reason: "blocked";
105
+ code: string;
106
+ count: number;
107
+ };
108
+ /**
109
+ * A Trash kind that performs its own move — a theme is a folder, not a row
110
+ * (`features/theme/trash-theme-tool.ts`'s `createThemeTrashMover`); a hermetic memory-backed form has
111
+ * no row `deps.db` can read (`composition/app.ts`'s `createRouteDeps`). {@link moveToTrash} checks
112
+ * `permission` exactly as it checks a registry entry's, then hands the move over; the mover owns its
113
+ * own lookup and refusals and answers in the same outcome shape.
114
+ */
115
+ export interface TrashKindMover {
116
+ readonly permission: string;
117
+ move(required: {
118
+ workspaceId: string;
119
+ entityId: string;
120
+ actor: TrashActor;
121
+ }): Promise<MoveToTrashOutcome>;
122
+ }
123
+ /** The two display strings captured from columns at trash time. Never derived by the port. */
124
+ export interface TrashDisplay {
125
+ title: string;
126
+ subtitle?: string | null;
127
+ }
128
+ /**
129
+ * Outcome of a marker flip.
130
+ *
131
+ * `version` is the entity's version AFTER the flip — that is what lands in
132
+ * `trashed_items.entity_version` and what the sweeper's compare-and-delete later checks, so a
133
+ * restore (which bumps the version again) always wins a race against a purge. `null` for a domain
134
+ * with no version column.
135
+ *
136
+ * `priorMarker` is OPTIONAL and additive (migration 0072): a status-marker adapter (`menu`, `term`,
137
+ * `taxonomy`) reports the status the row carried immediately before `hide` flipped it to `trash`, so
138
+ * `restore` can put it back exactly rather than to a fixed fallback. A caller that omits the key
139
+ * entirely (timestamp adapters) keeps the exact `{ ok: true, version }` shape — do not set this to
140
+ * `undefined`; leave the key out. `trash.contract.test.ts`'s pinned `assert.deepEqual(trashed, {
141
+ * ok: true, version: 2 })` depends on that: Node's `assert.deepEqual` treats an extra own-enumerable
142
+ * property, even one valued `undefined`, as a mismatch.
143
+ *
144
+ * `noop` is OPTIONAL and additive (T1c, `follow-ups.test.ts`): host table adapters' `hide`/`unhide`
145
+ * set it to `true` on their idempotent "already in the target state" branch — the ONE signal that
146
+ * distinguishes that branch from a real transition, both of which otherwise report the same
147
+ * `ok: true`. `withFollowUps` (`@jini-ai/cms/trash`) reads it to decide whether a hook actually finished
148
+ * something. Same leave-the-key-out rule as `priorMarker`: a real transition leaves it absent, so exact-shape assertions remain
149
+ * valid, so their pinned exact-shape assertions are
150
+ * unaffected.
151
+ *
152
+ * `"blocked"` (T1 item 2, migration-free — no new column) is a THIRD failure reason, alongside
153
+ * `"not-found"`/`"version-changed"`: the row exists and the version matches, but the host's
154
+ * declared blocker found rows that must move or be deleted first (a term with child terms). `code`
155
+ * and `count` are always present together on this branch — the host registry defines their meaning.
156
+ */
157
+ export type TrashMarkerResult = {
158
+ ok: true;
159
+ version: number | null;
160
+ priorMarker?: string | null;
161
+ noop?: true;
162
+ } | {
163
+ ok: false;
164
+ reason: "not-found" | "version-changed";
165
+ } | {
166
+ ok: false;
167
+ reason: "blocked";
168
+ code: string;
169
+ count: number;
170
+ };
171
+ /** Outcome of a physical row removal. `still-referenced` retains the entity and its Trash index. */
172
+ export type TrashPurgeOutcome = "purged" | "version-changed" | "already-gone" | "still-referenced";
173
+ /**
174
+ * One per domain. Built and registered into a plain `Map` at the composition root and resolved
175
+ * **at call time**, never at registration time: this codebase's module registries (`ToolRegistry`,
176
+ * routing's `phaseRegistry`) are append-only with no unregister, so anything that filters at
177
+ * registration runs exactly once. Two real bugs already came from that.
178
+ *
179
+ * Persistent host implementations MUST be column-only SQL. No payload parse, no ORM entity hydration, no domain
180
+ * write-service call that re-validates a record.
181
+ */
182
+ export interface TrashAdapter {
183
+ readonly entityType: string;
184
+ /**
185
+ * Move the domain's own marker to hidden.
186
+ *
187
+ * `at` is supplied by the caller rather than read from an adapter-local clock so the marker's
188
+ * timestamp is byte-identical to the one the calling domain writes into its revision ledger.
189
+ */
190
+ hide(required: {
191
+ workspaceId: string;
192
+ entityId: string;
193
+ at: string;
194
+ expectedVersion: number | null;
195
+ }, optional?: {
196
+ actor?: TrashActor;
197
+ }): Promise<TrashMarkerResult>;
198
+ /**
199
+ * Move it back. Same no-parse rule as {@link TrashAdapter.hide}.
200
+ *
201
+ * `priorMarker` (migration 0072) is what {@link TrashItem.priorMarker} stored at trash time —
202
+ * additive and optional, so every adapter's existing signature stays structurally compatible. A
203
+ * status-marker adapter restores to `priorMarker ?? restoreFallback`; a timestamp-marker adapter
204
+ * (timestamp adapters) ignores it, since clearing the marker column needs no prior value.
205
+ */
206
+ unhide(required: {
207
+ workspaceId: string;
208
+ entityId: string;
209
+ at: string;
210
+ expectedVersion: number | null;
211
+ }, optional?: {
212
+ priorMarker?: string | null;
213
+ actor?: TrashActor;
214
+ }): Promise<TrashMarkerResult>;
215
+ /** Physically remove the row. Compare-and-delete on `expectedVersion`. */
216
+ purge(required: {
217
+ workspaceId: string;
218
+ entityId: string;
219
+ expectedVersion: number | null;
220
+ }, optional?: {
221
+ actor?: TrashActor;
222
+ }): Promise<TrashPurgeOutcome>;
223
+ }
224
+ /** The non-throwing authorization seam both surfaces already hold. */
225
+ export type TrashAuthorizeFn = (params: {
226
+ principalId: string;
227
+ permission: string;
228
+ workspaceId: string;
229
+ entityType?: string;
230
+ entityId?: string | undefined;
231
+ }) => Promise<{
232
+ allowed: boolean;
233
+ reason: string;
234
+ }>;
235
+ //# sourceMappingURL=cms-trash.d.ts.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @file The admin Trash wire DTOs and the `TrashActor` type: the JSON bodies the trash admin routes (list, restore, purge)
3
+ * answer with and an admin client reads, plus who moved an item to the trash. Declared here, once, so the host's route
4
+ * serializers and any client read the same shapes without the client depending on CMS or the trash engine.
5
+ *
6
+ * `@jini-ai/cms/trash` (`trash/ports.ts`) re-exports `TrashActor` from here. The trash service, its adapters and
7
+ * the cms `RemoveEntity` port stay in the cms package.
8
+ */
9
+ export {};
10
+ //# sourceMappingURL=cms-trash.js.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @file The admin workspace wire DTO, shared by the admin workspace routes (which project a
3
+ * workspace record onto it) and the admin client (which reads it back). One owner, so the server's
4
+ * response and the client's expectation cannot drift apart. Types only.
5
+ */
6
+ /** Admin-facing shape of a workspace. */
7
+ export interface AdminWorkspaceResponse {
8
+ id: string;
9
+ name: string;
10
+ slug: string;
11
+ createdAt: string;
12
+ version: number;
13
+ }
14
+ //# sourceMappingURL=cms-workspace.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file The admin workspace wire DTO, shared by the admin workspace routes (which project a
3
+ * workspace record onto it) and the admin client (which reads it back). One owner, so the server's
4
+ * response and the client's expectation cannot drift apart. Types only.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=cms-workspace.js.map
@@ -0,0 +1,187 @@
1
+ /** Provider-neutral comments boundaries. Private moderation data never enters thread rendering. */
2
+ /** @file Comments provider contracts. Types only; this module owns the declarations that
3
+ * `@jini-ai/capability-providers/comments` (`definitions.ts`, `ports.ts`, `registry.ts`) used to
4
+ * declare. That package imports them from here and keeps its runtime values.
5
+ *
6
+ * Provider-neutral comments provider contracts (type-only). Registry/definition/selection-store/renderer boundaries
7
+ * live in core so the cms comments owner can be typed against them while hosts inject the runtime registry factory. */
8
+ export type CommentStatus = 'pending' | 'approved' | 'spam' | 'trash';
9
+ /** Optional executable assets are declared separately; ordinary thread HTML remains visible. */
10
+ export interface CommentThreadScript {
11
+ readonly src: string;
12
+ }
13
+ export interface CommentThreadRendererPort {
14
+ renderThread(required: {
15
+ siteId: string;
16
+ entry: {
17
+ id: string;
18
+ slug: string;
19
+ title: string;
20
+ canonicalUrl: string;
21
+ };
22
+ locale: string;
23
+ }, optional?: {
24
+ nonce?: string;
25
+ cursor?: string;
26
+ }): Promise<{
27
+ html: string;
28
+ scripts?: readonly CommentThreadScript[];
29
+ }>;
30
+ }
31
+ export interface CommentModerationPort {
32
+ listQueue(required: {
33
+ siteId: string;
34
+ status: CommentStatus;
35
+ limit: number;
36
+ cursor?: string | null;
37
+ }, optional?: Record<string, never>): Promise<{
38
+ items: readonly {
39
+ id: string;
40
+ entryId: string;
41
+ status: CommentStatus;
42
+ authorName: string;
43
+ bodyText: string;
44
+ version: number;
45
+ }[];
46
+ nextCursor: string | null;
47
+ }>;
48
+ get(required: {
49
+ siteId: string;
50
+ id: string;
51
+ }, optional?: Record<string, never>): Promise<{
52
+ id: string;
53
+ entryId: string;
54
+ status: CommentStatus;
55
+ authorName: string;
56
+ bodyText: string;
57
+ version: number;
58
+ } | null>;
59
+ apply(required: {
60
+ siteId: string;
61
+ id: string;
62
+ expectedVersion: number;
63
+ action: 'approve' | 'mark_spam' | 'trash' | 'restore';
64
+ actorPrincipalId: string;
65
+ actorPluginId?: string | null;
66
+ note: string | null;
67
+ }, optional?: Record<string, never>): Promise<{
68
+ ok: true;
69
+ } | {
70
+ ok: false;
71
+ reason: 'not-found' | 'conflict';
72
+ currentVersion?: number | undefined;
73
+ }>;
74
+ purge(required: {
75
+ siteId: string;
76
+ id: string;
77
+ actorPrincipalId: string;
78
+ note: string | null;
79
+ }, optional?: Record<string, never>): Promise<{
80
+ ok: true;
81
+ } | {
82
+ ok: false;
83
+ reason: 'not-found' | 'conflict';
84
+ }>;
85
+ }
86
+ export interface CommentSubmissionPort {
87
+ submit(required: {
88
+ siteId: string;
89
+ entryId: string;
90
+ parentId: string | null;
91
+ authorName: string;
92
+ authorEmail: string | null;
93
+ authorUrl: string | null;
94
+ bodyRaw: string;
95
+ authorIpHash: string;
96
+ honeypotValue: string;
97
+ }, optional?: Record<string, never>): Promise<{
98
+ ok: true;
99
+ id: string;
100
+ status: CommentStatus;
101
+ } | {
102
+ ok: false;
103
+ reason: string;
104
+ }>;
105
+ }
106
+ /** Separate bindings preserve the difference between stored and embedded providers. */
107
+ export type CommentsProviderAdapter = {
108
+ kind: 'stored';
109
+ renderer: CommentThreadRendererPort;
110
+ moderation: CommentModerationPort;
111
+ submission: CommentSubmissionPort;
112
+ } | {
113
+ kind: 'embedded';
114
+ renderer: CommentThreadRendererPort;
115
+ dashboardUrl: string;
116
+ };
117
+ export interface CommentsSelection {
118
+ providerId: string | null;
119
+ revision: number;
120
+ }
121
+ /** compareAndSet must compare and persist inside ONE storage transaction, including the revision. */
122
+ export interface CommentsSelectionStorePort {
123
+ read(required: {
124
+ siteId: string;
125
+ }, optional?: Record<string, never>): Promise<CommentsSelection>;
126
+ compareAndSet(required: {
127
+ siteId: string;
128
+ expectedRevision: number;
129
+ providerId: string | null;
130
+ actorPrincipalId: string;
131
+ }, optional?: Record<string, never>): Promise<boolean>;
132
+ }
133
+ export interface CommentsSettingField {
134
+ readonly key: string;
135
+ readonly label: string;
136
+ readonly kind: 'public' | 'secret';
137
+ readonly required: boolean;
138
+ }
139
+ export interface CommentsProviderDefinition {
140
+ readonly id: string;
141
+ readonly label: string;
142
+ readonly kind: 'stored' | 'embedded';
143
+ readonly consentCategory: 'functional' | 'marketing';
144
+ readonly csp: {
145
+ readonly scriptSrc: readonly string[];
146
+ readonly frameSrc: readonly string[];
147
+ readonly connectSrc: readonly string[];
148
+ readonly styleSrc: readonly string[];
149
+ };
150
+ readonly settingsSchema: readonly CommentsSettingField[];
151
+ readonly implementation: 'metadata-only' | 'adapter';
152
+ }
153
+ export interface CommentsProviderBinding {
154
+ definition: CommentsProviderDefinition;
155
+ /** Resolves only this site's adapter; undefined explicitly means not ready. No executable metadata loading. */
156
+ resolve(required: {
157
+ siteId: string;
158
+ }, optional?: Record<string, never>): Promise<CommentsProviderAdapter | undefined>;
159
+ }
160
+ export interface CommentsProviderRegistry {
161
+ register(required: CommentsProviderBinding, optional?: Record<string, never>): void;
162
+ get(required: {
163
+ providerId: string;
164
+ }, optional?: Record<string, never>): CommentsProviderDefinition | undefined;
165
+ has(required: {
166
+ providerId: string;
167
+ }, optional?: Record<string, never>): boolean;
168
+ list(required: Record<string, never>, optional?: Record<string, never>): readonly CommentsProviderDefinition[];
169
+ resolve(required: {
170
+ siteId: string;
171
+ providerId: string;
172
+ }, optional?: Record<string, never>): Promise<CommentsProviderAdapter | undefined>;
173
+ active(required: {
174
+ siteId: string;
175
+ }, optional?: Record<string, never>): Promise<{
176
+ providerId: string | null;
177
+ revision: number;
178
+ adapter: CommentsProviderAdapter | undefined;
179
+ }>;
180
+ select(required: {
181
+ siteId: string;
182
+ providerId: string | null;
183
+ expectedRevision: number;
184
+ actorPrincipalId: string;
185
+ }, optional?: Record<string, never>): Promise<void>;
186
+ }
187
+ //# sourceMappingURL=comments-providers.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=comments-providers.js.map
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @file Provider-neutral payment-provider discovery shapes for the Commerce operational status read
3
+ * model. Types only; this module owns the declarations that `@jini-ai/commerce`
4
+ * (`catalog/contracts.ts`) used to declare. That package imports them from here and keeps its
5
+ * runtime values.
6
+ *
7
+ * Payment providers remain opaque adapters identified by an open string; provider registration does
8
+ * not imply that Commerce configuration, checkout, subscriptions, reconciliation, or revenue
9
+ * projections exist.
10
+ */
11
+ export type CommercePaymentConfirmation = "none" | "redirect" | "client_action" | "out_of_band";
12
+ export interface CommercePaymentProviderCapabilities {
13
+ readonly refunds: "none" | "full" | "partial";
14
+ readonly tokenization: boolean;
15
+ readonly recurring: boolean;
16
+ readonly confirmation: readonly CommercePaymentConfirmation[];
17
+ readonly currencies: readonly string[] | "any";
18
+ readonly webhooks: boolean;
19
+ }
20
+ export interface CommercePaymentProvider {
21
+ readonly id: string;
22
+ readonly displayName: string;
23
+ readonly capabilities: CommercePaymentProviderCapabilities;
24
+ }
25
+ /**
26
+ * Narrow read port satisfied structurally by the host's optional payment runtime.
27
+ *
28
+ * The port intentionally excludes charge, refund, webhook, payment-record, and credential
29
+ * methods. A Commerce status request therefore cannot move money, process an event, read a secret,
30
+ * or manufacture a revenue projection through this boundary.
31
+ */
32
+ export interface CommercePaymentRuntimePort {
33
+ listProviders(): readonly CommercePaymentProvider[];
34
+ }
35
+ //# sourceMappingURL=commerce.d.ts.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @file Provider-neutral payment-provider discovery shapes for the Commerce operational status read
3
+ * model. Types only; this module owns the declarations that `@jini-ai/commerce`
4
+ * (`catalog/contracts.ts`) used to declare. That package imports them from here and keeps its
5
+ * runtime values.
6
+ *
7
+ * Payment providers remain opaque adapters identified by an open string; provider registration does
8
+ * not imply that Commerce configuration, checkout, subscriptions, reconciliation, or revenue
9
+ * projections exist.
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=commerce.js.map
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @file Where a provider plugin's saved settings live: a storage-neutral port,
3
+ * `pluginId → { settings, secrets }`, so boot and the admin settings card never know which store
4
+ * answered. Types only.
5
+ *
6
+ * Owner of these declarations; `@jini-ai/plugins/host` re-exports the types from here. The host
7
+ * supplies the adapters (site vault, project store); none live here.
8
+ */
9
+ import type { ProviderKeyUsage, ProviderWriteResult } from "./plugins-host.js";
10
+ /** Saved values for one provider plugin; keys are the plugin's declared setting names. */
11
+ export interface ProviderPluginConfig {
12
+ readonly settings: Readonly<Record<string, string>>;
13
+ readonly secrets: Readonly<Record<string, string>>;
14
+ }
15
+ /** The admin card's view: public values and the NAMES of saved secrets, never a secret value. */
16
+ export interface ProviderSettingsView {
17
+ readonly settings: Readonly<Record<string, string>>;
18
+ readonly secretNames: readonly string[];
19
+ /** A row is saved but this machine cannot open it (the store's key was lost or re-minted): shown as
20
+ * not configured, with a notice to enter the settings again. */
21
+ readonly unreadable?: true;
22
+ }
23
+ export interface ProviderConfigSource {
24
+ usage(required: {
25
+ pluginId: string;
26
+ }, optional?: Record<string, never>): Promise<ProviderKeyUsage>;
27
+ /** Which store this is, for the admin card ("saved for this project" vs "this site"). */
28
+ readonly scope: "project" | "site";
29
+ /** Null when nothing was ever saved for the plugin.
30
+ * Throws the host's unreadable-config error when a row is saved but cannot be opened here. */
31
+ read(required: {
32
+ pluginId: string;
33
+ }, optional?: Record<string, never>): Promise<ProviderPluginConfig | null>;
34
+ /** Public values and secret names. The row holding both halves is decrypted to read them, so an
35
+ * endpoint and its credential are one saved snapshot, but no secret value is returned.
36
+ * Null when nothing was saved. */
37
+ readSettings(required: {
38
+ pluginId: string;
39
+ }, optional?: Record<string, never>): Promise<ProviderSettingsView | null>;
40
+ /** Saves the whole config, overwriting a row this machine cannot open. */
41
+ write(required: {
42
+ pluginId: string;
43
+ config: ProviderPluginConfig;
44
+ }, optional?: Record<string, never>): Promise<ProviderWriteResult | void>;
45
+ }
46
+ //# sourceMappingURL=composition-provider-config-source.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=composition-provider-config-source.js.map