@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,206 @@
1
+ /**
2
+ * @file The admin `external-mcp` wire DTOs (ADR-029): the JSON bodies the external-MCP admin routes
3
+ * (`@jini-ai/cms/admin-http/routes/external-mcp/*`) answer with and an admin client reads. Declared
4
+ * here, once, so the route specs and any client mirror read the same shapes without the client
5
+ * depending on CMS. The routes' behaviour, error ladders and body readers stay in CMS; only the
6
+ * declarations sit in Core.
7
+ *
8
+ * A server row is the host's read model (it carries safe hints only, never an env VALUE); the routes
9
+ * read just `serverId` and `enabled`, so the row type is generic and a host passes its own view.
10
+ * CMS's `routes/external-mcp/__tests__/dto-parity.test.ts` pins every route's answer against these.
11
+ */
12
+ /** The fields every external-MCP server row carries on the wire; the host's read model adds the rest. */
13
+ export interface ExternalMcpServerSummaryDto {
14
+ serverId: string;
15
+ enabled: boolean;
16
+ }
17
+ /** A server row tagged with whether the runtime provisioned it (built-in) or the operator did. */
18
+ export type ExternalMcpOwnedServerDto<Server extends {
19
+ serverId: string;
20
+ } = ExternalMcpServerSummaryDto> = Server & {
21
+ builtIn: boolean;
22
+ };
23
+ /** `GET .../mcp-servers`: the workspace's roster, each row tagged with its ownership. */
24
+ export interface ExternalMcpListEnvelope<Server extends {
25
+ serverId: string;
26
+ } = {
27
+ serverId: string;
28
+ }> {
29
+ servers: ExternalMcpOwnedServerDto<Server>[];
30
+ }
31
+ /** `PUT .../mcp-servers/:serverId`: the saved row; `restartRequired` is conservative by design. */
32
+ export interface ExternalMcpPutEnvelope<Server extends {
33
+ serverId: string;
34
+ } = ExternalMcpServerSummaryDto> {
35
+ server: ExternalMcpOwnedServerDto<Server>;
36
+ restartRequired: true;
37
+ }
38
+ /** `DELETE .../mcp-servers/:serverId`. */
39
+ export interface ExternalMcpDeleteEnvelope {
40
+ removed: true;
41
+ restartRequired: true;
42
+ }
43
+ /** `GET .../mcp-servers/admissions`: the federation's report; `configFailures` only when the reader reported them. */
44
+ export interface ExternalMcpAdmissionsEnvelope {
45
+ connections: unknown;
46
+ configFailures?: unknown;
47
+ }
48
+ /** One saved "Always allow" grant as it is sent (the stored fingerprint never is). */
49
+ export interface ExternalMcpToolApprovalDto {
50
+ serverId: string;
51
+ toolName: string;
52
+ grantedByPrincipalId: string;
53
+ grantedAt: string;
54
+ }
55
+ /** `GET .../mcp-servers/tool-approvals`: sorted by server, then tool. */
56
+ export interface ExternalMcpToolApprovalsEnvelope {
57
+ approvals: ExternalMcpToolApprovalDto[];
58
+ }
59
+ /** `DELETE .../mcp-servers/:serverId/tool-approvals/:toolName`. */
60
+ export interface ExternalMcpToolApprovalRevokeEnvelope {
61
+ removed: true;
62
+ }
63
+ /** `DELETE .../mcp-servers/:serverId/oauth`. */
64
+ export interface ExternalMcpOAuthDisconnectEnvelope {
65
+ disconnected: true;
66
+ restartRequired: true;
67
+ }
68
+ import type { CredentialTokenHint } from './secrets-credential-token.js';
69
+ /**
70
+ * The OAuth half of {@link AdminExternalMcpServer}. Mirrors
71
+ * the host's `ExternalMcpOAuthView` — never carries an access token, a
72
+ * refresh token, or a client secret; `hasStoredToken` is presence only, the same technique the view
73
+ * it mirrors uses.
74
+ */
75
+ export interface AdminExternalMcpOAuthView {
76
+ providerId: string | null;
77
+ grant: string | null;
78
+ clientId: string | null;
79
+ scopes: string[];
80
+ status: string;
81
+ expiresAt: string | null;
82
+ tokenEnvName: string | null;
83
+ hasStoredToken: boolean;
84
+ }
85
+ /** `POST .../mcp-servers/:serverId/oauth/connect`'s `auth`. Mirrors the host's
86
+ * `ExternalMcpConnectStart`; the device code itself never leaves the server. */
87
+ export type AdminExternalMcpConnectStart = {
88
+ kind: "redirect_required";
89
+ authorizationUrl: string;
90
+ expiresAt: string;
91
+ } | {
92
+ kind: "device_code";
93
+ userCode: string;
94
+ verificationUri: string;
95
+ verificationUriComplete: string | null;
96
+ expiresAt: string;
97
+ intervalSeconds: number;
98
+ };
99
+ /**
100
+ * One configured external MCP server, as the admin tab sees it. Mirrors
101
+ * the host's `ExternalMcpServerView`.
102
+ *
103
+ * `envNames` without any matching values is the whole point of the shape, not an omission: the
104
+ * variable names are what an operator needs in order to see which credentials are set, and the
105
+ * values are what must never leave the server. `url`/`authMode`/`oauth` are the same posture applied
106
+ * to the two fields the generic streamable-HTTP + OAuth transport added on top of the original
107
+ * stdio-only shape.
108
+ */
109
+ export interface AdminExternalMcpServer {
110
+ /** Edit revision; sent back as `expectedVersion` so a save from an older screen is refused (409 `VERSION_CONFLICT`). */
111
+ version: number;
112
+ /** Source-derived runtime ownership, absent on older servers. */
113
+ builtIn?: boolean;
114
+ serverId: string;
115
+ label: string;
116
+ transport: string;
117
+ /** One of the host's `EXTERNAL_MCP_AUTH_MODES` — `none` | `static_env` | `oauth`. */
118
+ authMode: string;
119
+ enabled: boolean;
120
+ command: string;
121
+ /** Endpoint for a `streamable_http` server. `null` for `stdio`, where `command` is used instead. */
122
+ url: string | null;
123
+ args: string[];
124
+ allowedToolNames: string[];
125
+ /**
126
+ * The operator's SECOND, write-authorization list — mirrors
127
+ * the host's `ExternalMcpServerView.writeAllowedToolNames`. A remote
128
+ * tool declaring `readOnlyHint: false` is admitted only when it appears in BOTH this list and
129
+ * {@link allowedToolNames} (`mcp-federation/trust.ts` R3's override). Independent of
130
+ * `allowedToolNames`, never derived from it.
131
+ */
132
+ writeAllowedToolNames: string[];
133
+ /**
134
+ * Who last CHANGED {@link writeAllowedToolNames}, and when — mirrors the store's own view fields
135
+ * of the identical name. Both `null` until that list is ever touched, or for a row written before
136
+ * these columns existed. Read-only: there is no input counterpart, since a save attributes itself
137
+ * from the authenticated principal server-side rather than accepting a caller-supplied identity.
138
+ */
139
+ writeGrantsUpdatedByPrincipalId: string | null;
140
+ writeGrantsUpdatedAt: string | null;
141
+ envNames: string[];
142
+ /** Whether a static access token (auth mode `static_env`) is stored. Presence only — the token is
143
+ * sealed and never returned. Optional so an API that predates the field reads as "none stored". */
144
+ hasAccessToken?: boolean;
145
+ accessTokenHint?: CredentialTokenHint | null;
146
+ envTokenHints?: Readonly<Record<string, CredentialTokenHint>>;
147
+ /** For a `stdio` + `static_env` server: which environment variable receives that token. */
148
+ accessTokenEnvName?: string | null;
149
+ oauth: AdminExternalMcpOAuthView;
150
+ }
151
+ /**
152
+ * The OAuth half of {@link AdminExternalMcpServerInput}. Every member is tri-state exactly as the
153
+ * store's own `SaveExternalMcpOAuthInput` is: an absent key keeps whatever is stored, a string
154
+ * replaces it. `clientSecret` is the one member that is ALSO write-only — no read model in this
155
+ * subsystem ever returns it, so the form can only ever send a new one or say nothing.
156
+ */
157
+ export interface AdminExternalMcpOAuthInput {
158
+ providerId?: string;
159
+ grant?: string;
160
+ clientId?: string;
161
+ clientSecret?: string;
162
+ /** Raw operator input, comma- or space-separated. */
163
+ scopes?: string;
164
+ tokenEnvName?: string;
165
+ authorizationEndpoint?: string;
166
+ tokenEndpoint?: string;
167
+ deviceAuthorizationEndpoint?: string;
168
+ }
169
+ /**
170
+ * Write shape for one external MCP server. `args`/`allowedToolNames`/`env` are the operator's raw
171
+ * strings — the server owns parsing them, so the admin never has a second, subtly different parser
172
+ * that could accept something the store rejects.
173
+ */
174
+ export interface AdminExternalMcpServerInput {
175
+ /** The `version` this tab last loaded or saved for the server; absent for a create. */
176
+ expectedVersion?: number;
177
+ label?: string;
178
+ transport: string;
179
+ enabled: boolean;
180
+ command: string;
181
+ /** Endpoint for a `streamable_http` server. Ignored for `stdio`. */
182
+ url?: string;
183
+ args: string;
184
+ allowedToolNames: string;
185
+ /**
186
+ * Raw operator input, comma-separated remote tool names separately authorized to write. Same
187
+ * "resent in full on every save" convention as {@link allowedToolNames} — NOT tri-state like
188
+ * {@link env}, since the tab always has the current list in the clear and can always resend it.
189
+ * The server rejects a save (`ExternalMcpValidationError(field: "writeAllowedToolNames")`) if this
190
+ * names a tool absent from {@link allowedToolNames} — mirrors
191
+ * the host's external-MCP store's C-006 subset check.
192
+ */
193
+ writeAllowedToolNames: string;
194
+ /** Omit to keep stored credentials; `""` to clear them. The distinction is load-bearing. */
195
+ env?: string;
196
+ /** Absent keeps an existing row's auth mode; otherwise one of `none` | `static_env` | `oauth`. */
197
+ authMode?: string;
198
+ /** SECRET, write-only, `static_env` only. Tri-state like {@link env}: omit to keep the stored token,
199
+ * a string replaces it, `""` clears it. Delivered as `Authorization: Bearer` to a hosted server, or
200
+ * as {@link accessTokenEnvName} to a local command. */
201
+ accessToken?: string;
202
+ /** For `stdio` + `static_env`: the environment variable that receives {@link accessToken}. */
203
+ accessTokenEnvName?: string;
204
+ oauth?: AdminExternalMcpOAuthInput;
205
+ }
206
+ //# sourceMappingURL=cms-external-mcp.d.ts.map
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @file The admin `external-mcp` wire DTOs (ADR-029): the JSON bodies the external-MCP admin routes
3
+ * (`@jini-ai/cms/admin-http/routes/external-mcp/*`) answer with and an admin client reads. Declared
4
+ * here, once, so the route specs and any client mirror read the same shapes without the client
5
+ * depending on CMS. The routes' behaviour, error ladders and body readers stay in CMS; only the
6
+ * declarations sit in Core.
7
+ *
8
+ * A server row is the host's read model (it carries safe hints only, never an env VALUE); the routes
9
+ * read just `serverId` and `enabled`, so the row type is generic and a host passes its own view.
10
+ * CMS's `routes/external-mcp/__tests__/dto-parity.test.ts` pins every route's answer against these.
11
+ */
12
+ export {};
13
+ //# sourceMappingURL=cms-external-mcp.js.map
@@ -0,0 +1,192 @@
1
+ /**
2
+ * @file Form-delivery and form-destination seam types shared with hosts and agent plugins: the
3
+ * delivery binding, its job status and safe error codes, the destination form/credential shapes, the
4
+ * connection port and the publish-side receiver port. Moved from `@jini-ai/cms/forms`
5
+ * (`delivery/types.ts`, `delivery/status.ts`, `destination-contracts.ts`), which re-exports them.
6
+ * Types only (XP4).
7
+ *
8
+ * Also carries the form-definition persistence shapes (`FormDefinitionRecord`,
9
+ * `FormDefinitionRepoPort` and their closure), an additive copy of cms's `forms/types.ts` and
10
+ * `forms/ports.ts`; cms keeps its identical declarations until the paired cutover. The owning
11
+ * package derives `FieldType` from its runtime field registry (`keyof typeof FIELD_TYPE_REGISTRY`);
12
+ * this file spells the same keys out, and the two must list the same members.
13
+ */
14
+ import type { FormFieldDescriptor } from "../forms.js";
15
+ import type { UUID } from "../../primitives/index.js";
16
+ /** One configured destination. Credentials are never stored here, only a reference the host
17
+ * resolves fresh on each attempt, so a rotated or revoked credential takes effect at once. */
18
+ export interface FormDeliveryBinding {
19
+ readonly bindingId: string;
20
+ readonly adapterId: string;
21
+ readonly connectionRef: string;
22
+ readonly enabled: boolean;
23
+ /** Absent = every form; [] = no form. */
24
+ readonly formIds?: readonly string[];
25
+ /** Adapter-owned non-secret configuration. */
26
+ readonly config: Readonly<Record<string, unknown>>;
27
+ }
28
+ /** The only error codes that may reach the outbox ledger or a status read. */
29
+ export type FormDeliveryErrorCode = "authorization-required" | "rate-limited" | "configuration-invalid" | "mapping-invalid" | "resource-not-granted" | "destination-limit" | "outcome-unknown" | "adapter-unavailable" | "delivery-failed";
30
+ export type FormDeliveryState = "pending" | "retrying" | "completed" | "failed";
31
+ export interface FormDeliveryJobStatus {
32
+ readonly status: FormDeliveryState;
33
+ readonly attempts: number;
34
+ /** Set only while a failed attempt waits for its next try. */
35
+ readonly nextRetryAt: string | null;
36
+ readonly errorCode: FormDeliveryErrorCode | null;
37
+ }
38
+ /** One active form as a destination receives it: names, required flags and lengths only. Never
39
+ * markup, theme, notification recipients or answers. A publish adds the site's receiver `secret`.
40
+ * Push delivery (`deliver`) also gets each field's `label` and `type`; `name` stays the stable id
41
+ * that keys the answers. */
42
+ export interface FormDestinationForm {
43
+ readonly slug: string;
44
+ readonly fields: readonly {
45
+ readonly name: string;
46
+ readonly required: boolean;
47
+ readonly maxLength?: number;
48
+ readonly multiple?: true;
49
+ readonly label?: string;
50
+ readonly type?: string;
51
+ }[];
52
+ /** Site-relative page to show after a successful submission; absent = back to the form's page. */
53
+ readonly successPath?: string;
54
+ }
55
+ /** What a publish hands a host whose deployment carries a co-hosted receiver. */
56
+ export interface FormDestinationPublishInput {
57
+ readonly forms: readonly FormDestinationForm[];
58
+ readonly secret?: string;
59
+ }
60
+ /** A publish preview's form line: whether submissions will be received, and what that changes.
61
+ * `off` is core's own answer when no destination is selected or the selection cannot receive. */
62
+ export interface FormSubmissionsInspection {
63
+ readonly status: "on" | "off" | "unsupported" | "permission-required";
64
+ readonly forms: number;
65
+ readonly message: string;
66
+ readonly changes: readonly Readonly<Record<string, unknown>>[];
67
+ }
68
+ /** The host kit a module receives. Structurally the deploy host kit the composition passes (egress
69
+ * traced through `createDeployHostKit`); only the members a receiver client needs are named. */
70
+ export interface FormDestinationKit {
71
+ fetch(url: string, init: RequestInit, options: {
72
+ readonly timeoutMs: number;
73
+ }): Promise<Response>;
74
+ readonly timeouts: unknown;
75
+ now?(): number;
76
+ }
77
+ /** A destination's own vendor credential, opened from the vault by its exact label. On the push
78
+ * path, `baseUrl`'s origin plus `additionalHosts` (exact origins) are the only origins the
79
+ * attempt's `kit.fetch` may reach (the host app's `src/features/form-destinations/deliver.ts`). A connection kind whose tokens are short-lived
80
+ * (OAuth) also offers `getAccessToken`: one fresh read per provider request, the first returning
81
+ * `token`, so the connection's request budgets count every request of the attempt. */
82
+ export interface FormDestinationCredential {
83
+ readonly token: string;
84
+ readonly baseUrl: string;
85
+ readonly username?: string;
86
+ readonly additionalHosts?: readonly string[];
87
+ readonly getAccessToken?: () => Promise<string>;
88
+ }
89
+ /** Resolves a binding's `connectionRef` to the credential its adapter needs, or null when there is
90
+ * none (deleted, revoked, other workspace). The single seam for connection kinds: the shipped one
91
+ * opens a custom credential by stable id (the host app's `src/features/form-destinations/connection-port.ts`); an OAuth connection is another
92
+ * implementation of this same type. Modules never see the vault, only the resolved credential.
93
+ * `optional.binding` is the job's frozen binding, for a kind that freezes more than the ref (the
94
+ * OAuth one reads the account the binding was set up with). A port may throw a `FormDeliveryError`
95
+ * to record a specific code. */
96
+ export type FormDeliveryConnectionPort = (required: {
97
+ readonly workspaceId: string;
98
+ readonly connectionRef: string;
99
+ readonly adapterId: string;
100
+ }, optional?: {
101
+ readonly binding?: FormDeliveryBinding;
102
+ }) => Promise<FormDestinationCredential | null>;
103
+ /** What a publish does with the site's forms: the co-hosted add-on for the host, or the external
104
+ * receiver's post address, plus the receiver key's save once the publish has reached the host. */
105
+ export interface FormReceiverPlan {
106
+ readonly hosting?: FormDestinationPublishInput;
107
+ readonly submitUrl?: string;
108
+ /** Present for a new key, or to move an existing key's address: saves it for later pulls. */
109
+ readonly save?: (required: {
110
+ readonly url: string;
111
+ }, optional?: Record<string, never>) => Promise<void>;
112
+ }
113
+ /** The publish-side port static publishing calls. Selection, keys and `prepare` all live behind it. */
114
+ export interface FormReceiverPort {
115
+ /** Read-only: what a preview hands the host (`hosting`, co-hosted only) and the form line core
116
+ * answers itself (external, off or refused). Never reads or creates the receiver key. */
117
+ previewInput(required: {
118
+ readonly workspaceId: string;
119
+ readonly hostingTargetId: string;
120
+ readonly projectName: string;
121
+ readonly kit: FormDestinationKit;
122
+ }, optional?: Record<string, never>): Promise<{
123
+ readonly hosting?: {
124
+ readonly forms: readonly FormDestinationForm[];
125
+ };
126
+ readonly formSubmissions?: FormSubmissionsInspection;
127
+ }>;
128
+ /** Throws a person-facing Error when the selected receiver cannot take this publish. */
129
+ prepare(required: {
130
+ readonly workspaceId: string;
131
+ readonly hostingTargetId: string;
132
+ readonly projectName: string;
133
+ readonly kit: FormDestinationKit;
134
+ }, optional?: Record<string, never>): Promise<FormReceiverPlan>;
135
+ }
136
+ /** Mirrors `keyof typeof FIELD_TYPE_REGISTRY` in the owning package's `forms/field-registry.ts`. */
137
+ export type FieldType = "text" | "textarea" | "email" | "phone" | "url" | "number" | "range" | "date" | "time" | "datetime" | "select" | "multi-select" | "radio" | "checkbox" | "checkbox-group" | "toggle" | "file" | "hidden";
138
+ export type FormDefinitionStatus = "active" | "disabled";
139
+ /** The authored field shape, narrowed to the field types this domain registers. */
140
+ export type FieldDescriptor = FormFieldDescriptor<FieldType>;
141
+ export interface NotifyConfig {
142
+ enabled: boolean;
143
+ recipients: string[];
144
+ }
145
+ export interface FormDefinitionRecord {
146
+ id: UUID;
147
+ workspaceId: UUID;
148
+ name: string;
149
+ slug: string;
150
+ fields: FieldDescriptor[];
151
+ notify: NotifyConfig;
152
+ status: FormDefinitionStatus;
153
+ createdAt: string;
154
+ updatedAt: string;
155
+ /** Compare-and-set counter for edits and trash transitions; never an admin-editable field.
156
+ * Every record constructor, including fixtures, must supply it. */
157
+ version: number;
158
+ }
159
+ /** Definitions and submissions have distinct lifecycles and therefore separate ports.
160
+ * Deletion belongs to the host's Trash/purge workflow, so neither persistence port exposes delete.
161
+ * Reads must hide trashed rows at the repository boundary: public submitters, widget resolvers
162
+ * and other direct consumers must get not-found even if they forget an additional domain filter. */
163
+ export interface FormDefinitionRepoPort {
164
+ /** Reads and updates expose only live records; a trashed row still reserves its slug. */
165
+ findById(required: {
166
+ workspaceId: UUID;
167
+ id: UUID;
168
+ }): Promise<FormDefinitionRecord | null>;
169
+ findBySlug(required: {
170
+ workspaceId: UUID;
171
+ slug: string;
172
+ }): Promise<FormDefinitionRecord | null>;
173
+ list(required: {
174
+ workspaceId: UUID;
175
+ }): Promise<FormDefinitionRecord[]>;
176
+ /** The database unique index is the tie-break for (workspaceId, slug); callers translate collisions.
177
+ * A trashed row retains its slug so restoring it is lossless, and can therefore still conflict. */
178
+ create(record: FormDefinitionRecord): Promise<void>;
179
+ /** Update only a live row. Without a basis, a trashed row remains untouched; with one, a
180
+ * mismatched or missing row throws RecordVersionConflictError. Only Trash restore may revive it.
181
+ * Keep create/update separate so genuine insert uniqueness races remain visible. */
182
+ update(record: FormDefinitionRecord, optional?: {
183
+ expectedVersion?: number;
184
+ }): Promise<void>;
185
+ /** Deliberately trash-blind: both live and trashed rows reserve a slug. Duplication must not
186
+ * propose a trashed slug as available and then collide with the database unique index. */
187
+ isSlugTaken(required: {
188
+ workspaceId: UUID;
189
+ slug: string;
190
+ }): Promise<boolean>;
191
+ }
192
+ //# sourceMappingURL=cms-forms.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @file Form-delivery and form-destination seam types shared with hosts and agent plugins: the
3
+ * delivery binding, its job status and safe error codes, the destination form/credential shapes, the
4
+ * connection port and the publish-side receiver port. Moved from `@jini-ai/cms/forms`
5
+ * (`delivery/types.ts`, `delivery/status.ts`, `destination-contracts.ts`), which re-exports them.
6
+ * Types only (XP4).
7
+ *
8
+ * Also carries the form-definition persistence shapes (`FormDefinitionRecord`,
9
+ * `FormDefinitionRepoPort` and their closure), an additive copy of cms's `forms/types.ts` and
10
+ * `forms/ports.ts`; cms keeps its identical declarations until the paired cutover. The owning
11
+ * package derives `FieldType` from its runtime field registry (`keyof typeof FIELD_TYPE_REGISTRY`);
12
+ * this file spells the same keys out, and the two must list the same members.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=cms-forms.js.map
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @file The admin `integrations` webhook wire DTOs: the JSON bodies the webhook subscription/delivery
3
+ * admin routes answer with and an admin client reads. Declared here, once, so the host's response
4
+ * projections and any client read the same shapes. No signing secret is ever part of them: only
5
+ * `secretVersion`/`previousSecretVersion`, which name a key generation, never the key material.
6
+ */
7
+ export interface AdminWebhookDeliverySummary {
8
+ id: string;
9
+ status: "pending" | "delivering" | "delivered" | "failed" | "dead" | "canceled";
10
+ attempts: number;
11
+ lastResponseStatus: number | null;
12
+ lastError: string | null;
13
+ createdAt: string;
14
+ deliveredAt: string | null;
15
+ }
16
+ export interface AdminWebhookSubscriptionResponse {
17
+ id: string;
18
+ label: string;
19
+ targetUrl: string;
20
+ topics: string[];
21
+ status: "active" | "paused" | "disabled";
22
+ secretVersion: number;
23
+ previousSecretVersion: number | null;
24
+ createdAt: string;
25
+ updatedAt: string;
26
+ disabledAt: string | null;
27
+ /** Row version the server always sends; optional so client-built placeholder rows type-check. */
28
+ version?: number;
29
+ /** Most recent delivery attempt for this subscription, or `null` if none has fired yet. */
30
+ lastDelivery: AdminWebhookDeliverySummary | null;
31
+ }
32
+ export interface AdminWebhookDeliveryResponse {
33
+ id: string;
34
+ subscriptionId: string;
35
+ eventId: string;
36
+ topic: string;
37
+ status: AdminWebhookDeliverySummary["status"];
38
+ attempts: number;
39
+ nextAttemptAt: string;
40
+ lastResponseStatus: number | null;
41
+ lastError: string | null;
42
+ signedWithVersion: number | null;
43
+ createdAt: string;
44
+ deliveredAt: string | null;
45
+ deadAt: string | null;
46
+ }
47
+ //# sourceMappingURL=cms-integrations.d.ts.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @file The admin `integrations` webhook wire DTOs: the JSON bodies the webhook subscription/delivery
3
+ * admin routes answer with and an admin client reads. Declared here, once, so the host's response
4
+ * projections and any client read the same shapes. No signing secret is ever part of them: only
5
+ * `secretVersion`/`previousSecretVersion`, which name a key generation, never the key material.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=cms-integrations.js.map
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @file The admin `system/mail-*` wire DTOs (ADR-029): the JSON bodies the mail admin routes
3
+ * (status, test send, suppression removal preview, refusals) answer with and an admin client reads.
4
+ * Declared here, once, so the server specs (`@jini-ai/cms/admin-http/routes/system/mail-*`) and any
5
+ * client mirror read the same shapes without the client depending on CMS. The rules (what counts as
6
+ * sent, which outcomes are local refusals) stay in CMS; only the declarations sit in Core.
7
+ *
8
+ * The provider-aware status block and a send's outcome are host DTOs the engine answers unchanged,
9
+ * so they are declared here only as far as the engine reads them; a host's client may narrow them.
10
+ */
11
+ /** The provider-aware status block a host builds; the status route spreads it into its body unchanged. */
12
+ export type AdminMailStatusBlockDto = Record<string, unknown>;
13
+ /** `GET .../system/mail-status`: whether outbound mail really sends, plus the host's status block. */
14
+ export type AdminMailStatusDto = {
15
+ mailDeliveryAvailable: boolean;
16
+ } & AdminMailStatusBlockDto;
17
+ /** What the engine reads of a test send's truthful outcome; the host's whole outcome object is answered unchanged. */
18
+ export interface AdminMailTestSendOutcomeDto {
19
+ outcome: string;
20
+ errorCode?: string;
21
+ }
22
+ /** `POST .../system/mail-test-send` 200/429 body: whether the message left, and the send's own outcome. */
23
+ export interface AdminMailTestSendDto {
24
+ sent: boolean;
25
+ result: AdminMailTestSendOutcomeDto;
26
+ }
27
+ /** `POST .../system/mail-suppressions/remove` without `confirmed: true`: the preview of what would be unblocked. */
28
+ export interface AdminMailSuppressionRemovalPreviewDto {
29
+ removed: false;
30
+ confirmationRequired: true;
31
+ /** The host's removal plan (what was blocked, why, and the warnings), answered unchanged. */
32
+ plan: object;
33
+ }
34
+ /** A mail provider refusal's flat body: an operation refusal's caller-safe message, or a store refusal's bare code. */
35
+ export interface AdminMailProviderRefusalDto {
36
+ error: string;
37
+ code: string;
38
+ }
39
+ //# sourceMappingURL=cms-mail.d.ts.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @file The admin `system/mail-*` wire DTOs (ADR-029): the JSON bodies the mail admin routes
3
+ * (status, test send, suppression removal preview, refusals) answer with and an admin client reads.
4
+ * Declared here, once, so the server specs (`@jini-ai/cms/admin-http/routes/system/mail-*`) and any
5
+ * client mirror read the same shapes without the client depending on CMS. The rules (what counts as
6
+ * sent, which outcomes are local refusals) stay in CMS; only the declarations sit in Core.
7
+ *
8
+ * The provider-aware status block and a send's outcome are host DTOs the engine answers unchanged,
9
+ * so they are declared here only as far as the engine reads them; a host's client may narrow them.
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=cms-mail.js.map