@jini-ai/core 0.7.3-next.2 → 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 (552) hide show
  1. package/README.md +68 -0
  2. package/dist/admin-runtime/admin-http.d.ts +43 -0
  3. package/dist/admin-runtime/admin-http.js +11 -0
  4. package/dist/admin-runtime/index.d.ts +1 -0
  5. package/dist/config/env-schema.d.ts +31 -0
  6. package/dist/config/env-schema.js +29 -0
  7. package/dist/contracts/agents/definition.d.ts +9 -1
  8. package/dist/contracts/agents/index.d.ts +1 -0
  9. package/dist/contracts/agents/inventory.d.ts +29 -0
  10. package/dist/contracts/agents/inventory.js +8 -0
  11. package/dist/contracts/agents/provider-ports.d.ts +117 -0
  12. package/dist/contracts/agents/provider-ports.js +2 -0
  13. package/dist/contracts/agents/proxy-provider-kit.d.ts +122 -0
  14. package/dist/contracts/agents/proxy-provider-kit.js +119 -0
  15. package/dist/contracts/agents/proxy-provider.d.ts +34 -0
  16. package/dist/contracts/agents/proxy-provider.js +2 -0
  17. package/dist/contracts/blob-gc.d.ts +69 -0
  18. package/dist/contracts/blob-gc.js +13 -0
  19. package/dist/contracts/credentials.d.ts +5 -19
  20. package/dist/contracts/desktop-zoom.d.ts +7 -0
  21. package/dist/contracts/desktop-zoom.js +6 -0
  22. package/dist/contracts/events/change-set.d.ts +12 -3
  23. package/dist/contracts/events/command.d.ts +11 -5
  24. package/dist/contracts/events/ports.d.ts +38 -0
  25. package/dist/contracts/events/ports.js +8 -1
  26. package/dist/contracts/events.d.ts +2 -1
  27. package/dist/contracts/events.js +1 -1
  28. package/dist/contracts/execution.d.ts +541 -0
  29. package/dist/contracts/execution.js +2 -0
  30. package/dist/contracts/find-in-page.d.ts +12 -0
  31. package/dist/contracts/find-in-page.js +7 -0
  32. package/dist/contracts/headless/chart-providers.d.ts +12 -0
  33. package/dist/contracts/headless/chart-providers.js +2 -0
  34. package/dist/contracts/headless/chat-attachment.d.ts +21 -0
  35. package/dist/contracts/headless/chat-attachment.js +9 -0
  36. package/dist/contracts/headless/contracts.d.ts +179 -0
  37. package/dist/contracts/headless/contracts.js +2 -0
  38. package/dist/contracts/headless/form-delivery-status.d.ts +35 -0
  39. package/dist/contracts/headless/form-delivery-status.js +2 -0
  40. package/dist/contracts/headless/member-login.d.ts +3 -0
  41. package/dist/contracts/headless/member-login.js +3 -0
  42. package/dist/contracts/headless/operator-locale.d.ts +17 -0
  43. package/dist/contracts/headless/operator-locale.js +2 -0
  44. package/dist/contracts/headless/plugin-export-catalog.d.ts +21 -0
  45. package/dist/contracts/headless/plugin-export-catalog.js +2 -0
  46. package/dist/contracts/headless/plugin-host.d.ts +128 -0
  47. package/dist/contracts/headless/plugin-host.js +2 -0
  48. package/dist/contracts/headless/plugin-install-source.d.ts +82 -0
  49. package/dist/contracts/headless/plugin-install-source.js +12 -0
  50. package/dist/contracts/headless/site-cookie-consent.d.ts +41 -0
  51. package/dist/contracts/headless/site-cookie-consent.js +2 -0
  52. package/dist/contracts/hosted-mcp/admissions.d.ts +125 -0
  53. package/dist/contracts/hosted-mcp/admissions.js +3 -0
  54. package/dist/contracts/hosted-mcp/record.d.ts +7 -2
  55. package/dist/contracts/hosted-mcp.d.ts +1 -0
  56. package/dist/contracts/mail.d.ts +28 -2
  57. package/dist/contracts/mail.js +3 -0
  58. package/dist/contracts/observability.d.ts +12 -0
  59. package/dist/contracts/run-attempt.d.ts +14 -0
  60. package/dist/contracts/run-attempt.js +7 -0
  61. package/dist/contracts/server/api-error.js +1 -0
  62. package/dist/contracts/server/client-facing-error.d.ts +25 -0
  63. package/dist/contracts/server/client-facing-error.js +21 -0
  64. package/dist/contracts/server/deferred-body.d.ts +65 -0
  65. package/dist/contracts/server/deferred-body.js +2 -0
  66. package/dist/contracts/server/failure-copy.d.ts +19 -0
  67. package/dist/contracts/server/failure-copy.js +26 -0
  68. package/dist/contracts/server/json-route.d.ts +52 -26
  69. package/dist/contracts/server/json-route.js +128 -32
  70. package/dist/contracts/server/request-body.d.ts +12 -0
  71. package/dist/contracts/server/request-body.js +7 -3
  72. package/dist/contracts/server/route-reply.d.ts +32 -0
  73. package/dist/contracts/server/route-reply.js +26 -0
  74. package/dist/contracts/server.d.ts +4 -0
  75. package/dist/contracts/server.js +4 -0
  76. package/dist/contracts/site/admin-sites.d.ts +134 -0
  77. package/dist/contracts/site/admin-sites.js +7 -0
  78. package/dist/contracts/site/admin-surfaces-connections.d.ts +128 -0
  79. package/dist/contracts/site/admin-surfaces-connections.js +2 -0
  80. package/dist/contracts/site/agent-plugins-admin-surfaces.d.ts +218 -0
  81. package/dist/contracts/site/agent-plugins-admin-surfaces.js +2 -0
  82. package/dist/contracts/site/agent-plugins-connect.d.ts +25 -0
  83. package/dist/contracts/site/agent-plugins-connect.js +2 -0
  84. package/dist/contracts/site/agent-plugins-lifecycle.d.ts +151 -0
  85. package/dist/contracts/site/agent-plugins-lifecycle.js +2 -0
  86. package/dist/contracts/site/agent-plugins-manifest.d.ts +41 -0
  87. package/dist/contracts/site/agent-plugins-manifest.js +11 -0
  88. package/dist/contracts/site/agent-runtime.d.ts +110 -0
  89. package/dist/contracts/site/agent-runtime.js +2 -0
  90. package/dist/contracts/site/agentic-core.d.ts +44 -0
  91. package/dist/contracts/site/agentic-core.js +9 -0
  92. package/dist/contracts/site/agentic-dom.d.ts +27 -0
  93. package/dist/contracts/site/agentic-dom.js +2 -0
  94. package/dist/contracts/site/agentic.d.ts +37 -0
  95. package/dist/contracts/site/agentic.js +8 -0
  96. package/dist/contracts/site/analytics.d.ts +81 -0
  97. package/dist/contracts/site/analytics.js +2 -0
  98. package/dist/contracts/site/api-ai-assistant-api-types.d.ts +182 -0
  99. package/dist/contracts/site/api-ai-assistant-api-types.js +2 -0
  100. package/dist/contracts/site/api-connections-hosted-mcp.d.ts +176 -0
  101. package/dist/contracts/site/api-connections-hosted-mcp.js +2 -0
  102. package/dist/contracts/site/api-security-api-types.d.ts +177 -0
  103. package/dist/contracts/site/api-security-api-types.js +2 -0
  104. package/dist/contracts/site/approval-i18n.d.ts +32 -0
  105. package/dist/contracts/site/approval-i18n.js +156 -0
  106. package/dist/contracts/site/asset-transfer-tool-ports.d.ts +54 -0
  107. package/dist/contracts/site/asset-transfer-tool-ports.js +2 -0
  108. package/dist/contracts/site/assistant-host-ports.d.ts +23 -0
  109. package/dist/contracts/site/assistant-host-ports.js +2 -0
  110. package/dist/contracts/site/assistant-mcp-services.d.ts +26 -0
  111. package/dist/contracts/site/assistant-mcp-services.js +8 -0
  112. package/dist/contracts/site/assistant-tool-contributions.d.ts +45 -0
  113. package/dist/contracts/site/assistant-tool-contributions.js +2 -0
  114. package/dist/contracts/site/chat-core.d.ts +93 -0
  115. package/dist/contracts/site/chat-core.js +13 -0
  116. package/dist/contracts/site/client-directives.d.ts +21 -0
  117. package/dist/contracts/site/client-directives.js +8 -0
  118. package/dist/contracts/site/cms-admin-media.d.ts +61 -0
  119. package/dist/contracts/site/cms-admin-media.js +7 -0
  120. package/dist/contracts/site/cms-agent-plugins.d.ts +114 -0
  121. package/dist/contracts/site/cms-agent-plugins.js +17 -0
  122. package/dist/contracts/site/cms-assistant.d.ts +74 -0
  123. package/dist/contracts/site/cms-assistant.js +17 -0
  124. package/dist/contracts/site/cms-core.d.ts +17 -0
  125. package/dist/contracts/site/cms-core.js +12 -0
  126. package/dist/contracts/site/cms-external-mcp.d.ts +206 -0
  127. package/dist/contracts/site/cms-external-mcp.js +13 -0
  128. package/dist/contracts/site/cms-forms.d.ts +192 -0
  129. package/dist/contracts/site/cms-forms.js +15 -0
  130. package/dist/contracts/site/cms-integrations.d.ts +47 -0
  131. package/dist/contracts/site/cms-integrations.js +8 -0
  132. package/dist/contracts/site/cms-mail.d.ts +39 -0
  133. package/dist/contracts/site/cms-mail.js +12 -0
  134. package/dist/contracts/site/cms-media.d.ts +449 -0
  135. package/dist/contracts/site/cms-media.js +3 -0
  136. package/dist/contracts/site/cms-menus.d.ts +109 -0
  137. package/dist/contracts/site/cms-menus.js +13 -0
  138. package/dist/contracts/site/cms-plugins.d.ts +81 -0
  139. package/dist/contracts/site/cms-plugins.js +13 -0
  140. package/dist/contracts/site/cms-publish-content.d.ts +129 -0
  141. package/dist/contracts/site/cms-publish-content.js +13 -0
  142. package/dist/contracts/site/cms-recovery.d.ts +37 -0
  143. package/dist/contracts/site/cms-recovery.js +13 -0
  144. package/dist/contracts/site/cms-seo.d.ts +124 -0
  145. package/dist/contracts/site/cms-seo.js +17 -0
  146. package/dist/contracts/site/cms-settings.d.ts +47 -0
  147. package/dist/contracts/site/cms-settings.js +15 -0
  148. package/dist/contracts/site/cms-sites.d.ts +24 -0
  149. package/dist/contracts/site/cms-sites.js +12 -0
  150. package/dist/contracts/site/cms-system-deploy.d.ts +37 -0
  151. package/dist/contracts/site/cms-system-deploy.js +9 -0
  152. package/dist/contracts/site/cms-trash.d.ts +235 -0
  153. package/dist/contracts/site/cms-trash.js +10 -0
  154. package/dist/contracts/site/cms-workspace.d.ts +14 -0
  155. package/dist/contracts/site/cms-workspace.js +7 -0
  156. package/dist/contracts/site/comments-providers.d.ts +187 -0
  157. package/dist/contracts/site/comments-providers.js +2 -0
  158. package/dist/contracts/site/commerce.d.ts +35 -0
  159. package/dist/contracts/site/commerce.js +12 -0
  160. package/dist/contracts/site/composition-provider-config-source.d.ts +46 -0
  161. package/dist/contracts/site/composition-provider-config-source.js +2 -0
  162. package/dist/contracts/site/content-editor-ports.d.ts +239 -0
  163. package/dist/contracts/site/content-editor-ports.js +2 -0
  164. package/dist/contracts/site/contracts-resources.d.ts +21 -0
  165. package/dist/contracts/site/contracts-resources.js +7 -0
  166. package/dist/contracts/site/cookie-consent-react.d.ts +44 -0
  167. package/dist/contracts/site/cookie-consent-react.js +8 -0
  168. package/dist/contracts/site/cookie-consent.d.ts +100 -0
  169. package/dist/contracts/site/cookie-consent.js +9 -0
  170. package/dist/contracts/site/core-commands.d.ts +66 -0
  171. package/dist/contracts/site/core-commands.js +15 -0
  172. package/dist/contracts/site/core-consent-refusal.d.ts +7 -0
  173. package/dist/contracts/site/core-consent-refusal.js +2 -0
  174. package/dist/contracts/site/core-custom-credential-categories.d.ts +14 -0
  175. package/dist/contracts/site/core-custom-credential-categories.js +7 -0
  176. package/dist/contracts/site/core-public-page-security-headers.d.ts +13 -0
  177. package/dist/contracts/site/core-public-page-security-headers.js +3 -0
  178. package/dist/contracts/site/core-run-events.d.ts +49 -0
  179. package/dist/contracts/site/core-run-events.js +11 -0
  180. package/dist/contracts/site/core-runtime-mode.d.ts +9 -0
  181. package/dist/contracts/site/core-runtime-mode.js +2 -0
  182. package/dist/contracts/site/core-theme-slots.d.ts +31 -0
  183. package/dist/contracts/site/core-theme-slots.js +3 -0
  184. package/dist/contracts/site/credential-project-half.d.ts +18 -0
  185. package/dist/contracts/site/credential-project-half.js +2 -0
  186. package/dist/contracts/site/custom-credential-publish-compatibility.d.ts +11 -0
  187. package/dist/contracts/site/custom-credential-publish-compatibility.js +2 -0
  188. package/dist/contracts/site/daemon-core-rpc.d.ts +114 -0
  189. package/dist/contracts/site/daemon-core-rpc.js +2 -0
  190. package/dist/contracts/site/daemon-http.d.ts +197 -0
  191. package/dist/contracts/site/daemon-http.js +11 -0
  192. package/dist/contracts/site/daemon-surface-exchanges.d.ts +46 -0
  193. package/dist/contracts/site/daemon-surface-exchanges.js +2 -0
  194. package/dist/contracts/site/daemon-tool-audit.d.ts +43 -0
  195. package/dist/contracts/site/daemon-tool-audit.js +9 -0
  196. package/dist/contracts/site/daemon-tool-recovery.d.ts +36 -0
  197. package/dist/contracts/site/daemon-tool-recovery.js +9 -0
  198. package/dist/contracts/site/daemon.d.ts +45 -0
  199. package/dist/contracts/site/daemon.js +2 -0
  200. package/dist/contracts/site/database-introspection.d.ts +46 -0
  201. package/dist/contracts/site/database-introspection.js +2 -0
  202. package/dist/contracts/site/db-data-modules.d.ts +61 -0
  203. package/dist/contracts/site/db-data-modules.js +6 -0
  204. package/dist/contracts/site/deployment-admin.d.ts +74 -0
  205. package/dist/contracts/site/deployment-admin.js +2 -0
  206. package/dist/contracts/site/dev-supervisor-dev-restart.d.ts +26 -0
  207. package/dist/contracts/site/dev-supervisor-dev-restart.js +10 -0
  208. package/dist/contracts/site/devops-deploy.d.ts +77 -0
  209. package/dist/contracts/site/devops-deploy.js +9 -0
  210. package/dist/contracts/site/diagnostics-domain-dns.d.ts +10 -0
  211. package/dist/contracts/site/diagnostics-domain-dns.js +7 -0
  212. package/dist/contracts/site/diagnostics-observability.d.ts +66 -0
  213. package/dist/contracts/site/diagnostics-observability.js +2 -0
  214. package/dist/contracts/site/events-outbox.d.ts +56 -0
  215. package/dist/contracts/site/events-outbox.js +10 -0
  216. package/dist/contracts/site/export-run.d.ts +54 -0
  217. package/dist/contracts/site/export-run.js +9 -0
  218. package/dist/contracts/site/external-mcp-tool-ports.d.ts +28 -0
  219. package/dist/contracts/site/external-mcp-tool-ports.js +2 -0
  220. package/dist/contracts/site/fs-durable-json.d.ts +22 -0
  221. package/dist/contracts/site/fs-durable-json.js +7 -0
  222. package/dist/contracts/site/gated-mutations/watermark.d.ts +44 -0
  223. package/dist/contracts/site/gated-mutations/watermark.js +37 -0
  224. package/dist/contracts/site/gated-mutations-ports.d.ts +45 -0
  225. package/dist/contracts/site/gated-mutations-ports.js +6 -0
  226. package/dist/contracts/site/gated-results.d.ts +17 -0
  227. package/dist/contracts/site/gated-results.js +8 -0
  228. package/dist/contracts/site/headless-assistant-permanent-deletes-policy.d.ts +16 -0
  229. package/dist/contracts/site/headless-assistant-permanent-deletes-policy.js +8 -0
  230. package/dist/contracts/site/hooks-sites-port-hooks.d.ts +151 -0
  231. package/dist/contracts/site/hooks-sites-port-hooks.js +7 -0
  232. package/dist/contracts/site/host-node.d.ts +213 -0
  233. package/dist/contracts/site/host-node.js +2 -0
  234. package/dist/contracts/site/html-region-ports.d.ts +103 -0
  235. package/dist/contracts/site/html-region-ports.js +2 -0
  236. package/dist/contracts/site/http-kit-rate-limit.d.ts +21 -0
  237. package/dist/contracts/site/http-kit-rate-limit.js +8 -0
  238. package/dist/contracts/site/http-kit-settings.d.ts +12 -0
  239. package/dist/contracts/site/http-kit-settings.js +8 -0
  240. package/dist/contracts/site/human-confirm.d.ts +42 -0
  241. package/dist/contracts/site/human-confirm.js +2 -0
  242. package/dist/contracts/site/installed-skill.d.ts +16 -0
  243. package/dist/contracts/site/installed-skill.js +2 -0
  244. package/dist/contracts/site/integrations-api-connections.d.ts +19 -0
  245. package/dist/contracts/site/integrations-api-connections.js +7 -0
  246. package/dist/contracts/site/integrations-credentialed-http.d.ts +16 -0
  247. package/dist/contracts/site/integrations-credentialed-http.js +8 -0
  248. package/dist/contracts/site/legacy-owner-store.d.ts +15 -0
  249. package/dist/contracts/site/legacy-owner-store.js +5 -0
  250. package/dist/contracts/site/lifecycle-boot-lifecycle.d.ts +27 -0
  251. package/dist/contracts/site/lifecycle-boot-lifecycle.js +10 -0
  252. package/dist/contracts/site/lifecycle-host-tools.d.ts +64 -0
  253. package/dist/contracts/site/lifecycle-host-tools.js +2 -0
  254. package/dist/contracts/site/media-provider-contribution.d.ts +118 -0
  255. package/dist/contracts/site/media-provider-contribution.js +3 -0
  256. package/dist/contracts/site/media-providers-catalog.d.ts +42 -0
  257. package/dist/contracts/site/media-providers-catalog.js +7 -0
  258. package/dist/contracts/site/media-tool-ports.d.ts +166 -0
  259. package/dist/contracts/site/media-tool-ports.js +2 -0
  260. package/dist/contracts/site/media-upload-limits.d.ts +6 -0
  261. package/dist/contracts/site/media-upload-limits.js +7 -0
  262. package/dist/contracts/site/nav.d.ts +46 -0
  263. package/dist/contracts/site/nav.js +10 -0
  264. package/dist/contracts/site/oauth-callback-page.d.ts +47 -0
  265. package/dist/contracts/site/oauth-callback-page.js +31 -0
  266. package/dist/contracts/site/packaging-electron.d.ts +20 -0
  267. package/dist/contracts/site/packaging-electron.js +7 -0
  268. package/dist/contracts/site/page-html-store.d.ts +138 -0
  269. package/dist/contracts/site/page-html-store.js +2 -0
  270. package/dist/contracts/site/platform-mail.d.ts +221 -0
  271. package/dist/contracts/site/platform-mail.js +2 -0
  272. package/dist/contracts/site/platform-process.d.ts +23 -0
  273. package/dist/contracts/site/platform-process.js +7 -0
  274. package/dist/contracts/site/platform-server-logs.d.ts +51 -0
  275. package/dist/contracts/site/platform-server-logs.js +15 -0
  276. package/dist/contracts/site/platform-site-dir.d.ts +58 -0
  277. package/dist/contracts/site/platform-site-dir.js +7 -0
  278. package/dist/contracts/site/plugin-directory.d.ts +29 -0
  279. package/dist/contracts/site/plugin-directory.js +2 -0
  280. package/dist/contracts/site/plugins-host.d.ts +92 -0
  281. package/dist/contracts/site/plugins-host.js +2 -0
  282. package/dist/contracts/site/post-author.d.ts +8 -0
  283. package/dist/contracts/site/post-author.js +5 -0
  284. package/dist/contracts/site/post-kind.d.ts +10 -0
  285. package/dist/contracts/site/post-kind.js +2 -0
  286. package/dist/contracts/site/post-revision-lock.d.ts +17 -0
  287. package/dist/contracts/site/post-revision-lock.js +16 -0
  288. package/dist/contracts/site/project-key-attachments.d.ts +78 -0
  289. package/dist/contracts/site/project-key-attachments.js +2 -0
  290. package/dist/contracts/site/protocol-mcp-ui.d.ts +37 -0
  291. package/dist/contracts/site/protocol-mcp-ui.js +12 -0
  292. package/dist/contracts/site/public-origin.d.ts +9 -0
  293. package/dist/contracts/site/public-origin.js +22 -0
  294. package/dist/contracts/site/publish-ports.d.ts +42 -0
  295. package/dist/contracts/site/publish-ports.js +31 -0
  296. package/dist/contracts/site/recovery-operation-lock.d.ts +27 -0
  297. package/dist/contracts/site/recovery-operation-lock.js +11 -0
  298. package/dist/contracts/site/recovery-reconcile-interrupted-migration.d.ts +16 -0
  299. package/dist/contracts/site/recovery-reconcile-interrupted-migration.js +12 -0
  300. package/dist/contracts/site/request-facts.d.ts +28 -0
  301. package/dist/contracts/site/request-facts.js +28 -0
  302. package/dist/contracts/site/routines.d.ts +64 -0
  303. package/dist/contracts/site/routines.js +2 -0
  304. package/dist/contracts/site/sandbox-node-worker.d.ts +15 -0
  305. package/dist/contracts/site/sandbox-node-worker.js +9 -0
  306. package/dist/contracts/site/search.d.ts +181 -0
  307. package/dist/contracts/site/search.js +2 -0
  308. package/dist/contracts/site/secrets-credential-sets.d.ts +117 -0
  309. package/dist/contracts/site/secrets-credential-sets.js +2 -0
  310. package/dist/contracts/site/secrets-credential-token.d.ts +11 -0
  311. package/dist/contracts/site/secrets-credential-token.js +7 -0
  312. package/dist/contracts/site/seo-content-analysis.d.ts +18 -0
  313. package/dist/contracts/site/seo-content-analysis.js +7 -0
  314. package/dist/contracts/site/site-assistant-visitor-tools-management.d.ts +85 -0
  315. package/dist/contracts/site/site-assistant-visitor-tools-management.js +8 -0
  316. package/dist/contracts/site/site-import-history.d.ts +67 -0
  317. package/dist/contracts/site/site-import-history.js +2 -0
  318. package/dist/contracts/site/site-key.d.ts +133 -0
  319. package/dist/contracts/site/site-key.js +9 -0
  320. package/dist/contracts/site/site-serving-gate.d.ts +13 -0
  321. package/dist/contracts/site/site-serving-gate.js +22 -0
  322. package/dist/contracts/site/skill-install.d.ts +17 -0
  323. package/dist/contracts/site/skill-install.js +2 -0
  324. package/dist/contracts/site/skills-install.d.ts +21 -0
  325. package/dist/contracts/site/skills-install.js +7 -0
  326. package/dist/contracts/site/soft-delete.d.ts +13 -0
  327. package/dist/contracts/site/soft-delete.js +13 -0
  328. package/dist/contracts/site/source-control-credentials.d.ts +197 -0
  329. package/dist/contracts/site/source-control-credentials.js +2 -0
  330. package/dist/contracts/site/strict-base64.d.ts +30 -0
  331. package/dist/contracts/site/strict-base64.js +33 -0
  332. package/dist/contracts/site/tool-metadata-approval-policy.d.ts +13 -0
  333. package/dist/contracts/site/tool-metadata-approval-policy.js +2 -0
  334. package/dist/contracts/site/ui-sections.d.ts +27 -0
  335. package/dist/contracts/site/ui-sections.js +13 -0
  336. package/dist/contracts/site/user-management-react.d.ts +276 -0
  337. package/dist/contracts/site/user-management-react.js +9 -0
  338. package/dist/contracts/site/user-management-server.d.ts +104 -0
  339. package/dist/contracts/site/user-management-server.js +2 -0
  340. package/dist/contracts/site/user-management.d.ts +379 -0
  341. package/dist/contracts/site/user-management.js +2 -0
  342. package/dist/contracts/site/vault-context.d.ts +15 -0
  343. package/dist/contracts/site/vault-context.js +6 -0
  344. package/dist/contracts/site/vendor-credentials.d.ts +37 -0
  345. package/dist/contracts/site/vendor-credentials.js +2 -0
  346. package/dist/contracts/site/web-evidence-capture-budget.d.ts +16 -0
  347. package/dist/contracts/site/web-evidence-capture-budget.js +7 -0
  348. package/dist/contracts/site/web-evidence-playwright.d.ts +38 -0
  349. package/dist/contracts/site/web-evidence-playwright.js +9 -0
  350. package/dist/contracts/site/web-screenshot.d.ts +58 -0
  351. package/dist/contracts/site/web-screenshot.js +7 -0
  352. package/dist/contracts/site/widgets-html.d.ts +40 -0
  353. package/dist/contracts/site/widgets-html.js +7 -0
  354. package/dist/contracts/speech-transcription.d.ts +27 -0
  355. package/dist/contracts/speech-transcription.js +8 -0
  356. package/dist/contracts/standing-draft.d.ts +38 -0
  357. package/dist/contracts/standing-draft.js +2 -0
  358. package/dist/contracts/storage/cleanup-preview.d.ts +23 -0
  359. package/dist/contracts/storage/cleanup-preview.js +2 -0
  360. package/dist/contracts/storage/rows.d.ts +6 -2
  361. package/dist/contracts/storage/rows.js +3 -3
  362. package/dist/contracts/storage/sqlite-compaction.d.ts +108 -0
  363. package/dist/contracts/storage/sqlite-compaction.js +7 -0
  364. package/dist/contracts/storage.d.ts +2 -0
  365. package/dist/contracts/tool-result-block.d.ts +21 -0
  366. package/dist/contracts/tool-result-block.js +8 -0
  367. package/dist/errors/catalog.js +2 -2
  368. package/dist/errors/reporter.d.ts +81 -13
  369. package/dist/errors/reporter.js +220 -32
  370. package/dist/errors/route-refusal.d.ts +29 -0
  371. package/dist/errors/route-refusal.js +25 -0
  372. package/dist/errors/testing.d.ts +6 -7
  373. package/dist/errors/testing.js +7 -4
  374. package/dist/extension-capability-vocabulary.d.ts +29 -0
  375. package/dist/extension-capability-vocabulary.js +31 -0
  376. package/dist/index.d.ts +2 -1
  377. package/dist/index.js +1 -0
  378. package/dist/keyset-cursor.d.ts +25 -0
  379. package/dist/keyset-cursor.js +20 -0
  380. package/dist/native-approval-memory.d.ts +22 -0
  381. package/dist/native-approval-memory.js +32 -0
  382. package/dist/net/public-dns-vocabulary.d.ts +17 -0
  383. package/dist/net/public-dns-vocabulary.js +14 -0
  384. package/dist/object-store.d.ts +7 -0
  385. package/dist/object-store.js +1 -0
  386. package/dist/operator-locale.d.ts +29 -0
  387. package/dist/operator-locale.js +27 -0
  388. package/dist/optimistic-concurrency.d.ts +23 -0
  389. package/dist/origin-validation.d.ts +7 -0
  390. package/dist/origin-validation.js +8 -1
  391. package/dist/primitives/creator-kind.d.ts +27 -0
  392. package/dist/primitives/creator-kind.js +20 -0
  393. package/dist/primitives/index.d.ts +2 -0
  394. package/dist/primitives/index.js +2 -0
  395. package/dist/primitives/lazy-proxy.d.ts +5 -0
  396. package/dist/primitives/lazy-proxy.js +17 -0
  397. package/dist/redaction-collectors.js +60 -39
  398. package/dist/redaction-exact-secrets.js +4 -4
  399. package/dist/redaction-labels.d.ts +3 -1
  400. package/dist/redaction-labels.js +3 -3
  401. package/dist/redaction-patterns.d.ts +3 -1
  402. package/dist/redaction-patterns.js +1 -1
  403. package/dist/redaction-spans.d.ts +5 -1
  404. package/dist/redaction-spans.js +2 -2
  405. package/dist/registration-kit.d.ts +12 -0
  406. package/dist/registration-kit.js +14 -0
  407. package/dist/scheduled-publish.d.ts +57 -0
  408. package/dist/scheduled-publish.js +33 -0
  409. package/dist/settings/ensure-definitions.d.ts +8 -0
  410. package/dist/settings/guarded-reads.d.ts +58 -0
  411. package/dist/settings/guarded-reads.js +48 -0
  412. package/dist/settings/index.d.ts +3 -2
  413. package/dist/settings/index.js +1 -0
  414. package/dist/settings/settings.d.ts +8 -0
  415. package/dist/settings/write-definition-rename.js +2 -2
  416. package/dist/settings/write-definition-retype.js +4 -4
  417. package/dist/settings/write-definition-status.js +4 -4
  418. package/dist/settings/write-service.d.ts +14 -6
  419. package/dist/settings/write-service.js +2 -2
  420. package/dist/surface-exchanges.d.ts +32 -1
  421. package/dist/text/descriptor-i18n.d.ts +4 -1
  422. package/dist/text/descriptor-i18n.js +4 -1
  423. package/dist/text/index.d.ts +3 -0
  424. package/dist/text/index.js +2 -0
  425. package/dist/text/merge-locale-overlays.d.ts +25 -0
  426. package/dist/text/merge-locale-overlays.js +23 -0
  427. package/dist/text/upload-limit-message.d.ts +19 -0
  428. package/dist/text/upload-limit-message.js +29 -0
  429. package/dist/tool-access-change.d.ts +12 -0
  430. package/dist/tool-access-change.js +6 -0
  431. package/dist/tool-metadata/agent-pause.d.ts +21 -0
  432. package/dist/tool-metadata/agent-pause.js +9 -0
  433. package/dist/tool-metadata/agent-plugins.d.ts +72 -0
  434. package/dist/tool-metadata/agent-plugins.js +54 -0
  435. package/dist/tool-metadata/analytics.d.ts +14 -0
  436. package/dist/tool-metadata/analytics.js +17 -0
  437. package/dist/tool-metadata/change-sets.d.ts +24 -0
  438. package/dist/tool-metadata/change-sets.js +19 -0
  439. package/dist/tool-metadata/comments.d.ts +105 -0
  440. package/dist/tool-metadata/comments.js +106 -0
  441. package/dist/tool-metadata/commerce.d.ts +30 -0
  442. package/dist/tool-metadata/commerce.js +11 -0
  443. package/dist/tool-metadata/consent.d.ts +57 -0
  444. package/dist/tool-metadata/consent.js +16 -0
  445. package/dist/tool-metadata/content-duplication.d.ts +13 -0
  446. package/dist/tool-metadata/content-duplication.js +14 -0
  447. package/dist/tool-metadata/content-types.d.ts +74 -0
  448. package/dist/tool-metadata/content-types.js +96 -0
  449. package/dist/tool-metadata/custom-credentials.d.ts +117 -0
  450. package/dist/tool-metadata/custom-credentials.js +105 -0
  451. package/dist/tool-metadata/database-transfer.d.ts +48 -0
  452. package/dist/tool-metadata/database-transfer.js +32 -0
  453. package/dist/tool-metadata/database.d.ts +90 -0
  454. package/dist/tool-metadata/database.js +111 -0
  455. package/dist/tool-metadata/deploy-ops.d.ts +99 -0
  456. package/dist/tool-metadata/deploy-ops.js +96 -0
  457. package/dist/tool-metadata/deployments.d.ts +101 -0
  458. package/dist/tool-metadata/deployments.js +81 -0
  459. package/dist/tool-metadata/domain-dns.d.ts +84 -0
  460. package/dist/tool-metadata/domain-dns.js +99 -0
  461. package/dist/tool-metadata/email-templates.d.ts +54 -0
  462. package/dist/tool-metadata/email-templates.js +41 -0
  463. package/dist/tool-metadata/entries.d.ts +54 -0
  464. package/dist/tool-metadata/entries.js +70 -0
  465. package/dist/tool-metadata/external-mcp.d.ts +86 -0
  466. package/dist/tool-metadata/external-mcp.js +80 -0
  467. package/dist/tool-metadata/files-copy.d.ts +14 -0
  468. package/dist/tool-metadata/files-copy.js +18 -0
  469. package/dist/tool-metadata/forms.d.ts +94 -0
  470. package/dist/tool-metadata/forms.js +117 -0
  471. package/dist/tool-metadata/frontend-control.d.ts +118 -0
  472. package/dist/tool-metadata/frontend-control.js +78 -0
  473. package/dist/tool-metadata/fs-files.d.ts +36 -0
  474. package/dist/tool-metadata/fs-files.js +46 -0
  475. package/dist/tool-metadata/identity.d.ts +184 -0
  476. package/dist/tool-metadata/identity.js +226 -0
  477. package/dist/tool-metadata/image-transform.d.ts +14 -0
  478. package/dist/tool-metadata/image-transform.js +18 -0
  479. package/dist/tool-metadata/mail-status.d.ts +132 -0
  480. package/dist/tool-metadata/mail-status.js +104 -0
  481. package/dist/tool-metadata/media-generation.d.ts +24 -0
  482. package/dist/tool-metadata/media-generation.js +29 -0
  483. package/dist/tool-metadata/media-import.d.ts +34 -0
  484. package/dist/tool-metadata/media-import.js +40 -0
  485. package/dist/tool-metadata/media-video-conversion.d.ts +19 -0
  486. package/dist/tool-metadata/media-video-conversion.js +20 -0
  487. package/dist/tool-metadata/media.d.ts +106 -0
  488. package/dist/tool-metadata/media.js +103 -0
  489. package/dist/tool-metadata/members.d.ts +71 -0
  490. package/dist/tool-metadata/members.js +69 -0
  491. package/dist/tool-metadata/navigation.d.ts +54 -0
  492. package/dist/tool-metadata/navigation.js +71 -0
  493. package/dist/tool-metadata/newsletter.d.ts +190 -0
  494. package/dist/tool-metadata/newsletter.js +246 -0
  495. package/dist/tool-metadata/observability.d.ts +13 -0
  496. package/dist/tool-metadata/observability.js +8 -0
  497. package/dist/tool-metadata/pages.d.ts +47 -0
  498. package/dist/tool-metadata/pages.js +67 -0
  499. package/dist/tool-metadata/permanent-delete.d.ts +139 -0
  500. package/dist/tool-metadata/permanent-delete.js +121 -0
  501. package/dist/tool-metadata/plugin-runtime.d.ts +144 -0
  502. package/dist/tool-metadata/plugin-runtime.js +88 -0
  503. package/dist/tool-metadata/post.d.ts +87 -0
  504. package/dist/tool-metadata/post.js +117 -0
  505. package/dist/tool-metadata/recovery.d.ts +65 -0
  506. package/dist/tool-metadata/recovery.js +78 -0
  507. package/dist/tool-metadata/redirects.d.ts +73 -0
  508. package/dist/tool-metadata/redirects.js +93 -0
  509. package/dist/tool-metadata/routines.d.ts +61 -0
  510. package/dist/tool-metadata/routines.js +40 -0
  511. package/dist/tool-metadata/search.d.ts +49 -0
  512. package/dist/tool-metadata/search.js +33 -0
  513. package/dist/tool-metadata/seo.d.ts +64 -0
  514. package/dist/tool-metadata/seo.js +83 -0
  515. package/dist/tool-metadata/server-logs.d.ts +14 -0
  516. package/dist/tool-metadata/server-logs.js +11 -0
  517. package/dist/tool-metadata/settings.d.ts +90 -0
  518. package/dist/tool-metadata/settings.js +117 -0
  519. package/dist/tool-metadata/site-backup.d.ts +84 -0
  520. package/dist/tool-metadata/site-backup.js +30 -0
  521. package/dist/tool-metadata/site-evidence.d.ts +13 -0
  522. package/dist/tool-metadata/site-evidence.js +10 -0
  523. package/dist/tool-metadata/site-guide.d.ts +18 -0
  524. package/dist/tool-metadata/site-guide.js +15 -0
  525. package/dist/tool-metadata/site-inspection.d.ts +44 -0
  526. package/dist/tool-metadata/site-inspection.js +53 -0
  527. package/dist/tool-metadata/site-update.d.ts +30 -0
  528. package/dist/tool-metadata/site-update.js +22 -0
  529. package/dist/tool-metadata/sites.d.ts +52 -0
  530. package/dist/tool-metadata/sites.js +55 -0
  531. package/dist/tool-metadata/skills.d.ts +13 -0
  532. package/dist/tool-metadata/skills.js +10 -0
  533. package/dist/tool-metadata/source-control.d.ts +26 -0
  534. package/dist/tool-metadata/source-control.js +23 -0
  535. package/dist/tool-metadata/trash.d.ts +32 -0
  536. package/dist/tool-metadata/trash.js +27 -0
  537. package/dist/tool-metadata/visitor-tools.d.ts +49 -0
  538. package/dist/tool-metadata/visitor-tools.js +12 -0
  539. package/dist/tool-metadata/web-screenshot.d.ts +14 -0
  540. package/dist/tool-metadata/web-screenshot.js +23 -0
  541. package/dist/tool-metadata/web.d.ts +14 -0
  542. package/dist/tool-metadata/web.js +21 -0
  543. package/dist/tool-metadata/webhooks.d.ts +65 -0
  544. package/dist/tool-metadata/webhooks.js +77 -0
  545. package/dist/tool-metadata/widgets.d.ts +124 -0
  546. package/dist/tool-metadata/widgets.js +161 -0
  547. package/dist/tool-metadata/workspace.d.ts +43 -0
  548. package/dist/tool-metadata/workspace.js +49 -0
  549. package/dist/tool-read-cards.d.ts +88 -0
  550. package/dist/tool-read-cards.js +158 -0
  551. package/dist/tool-registry.d.ts +25 -0
  552. package/package.json +1381 -5
@@ -0,0 +1,42 @@
1
+ import type { AccessApprovalDescription } from "../../approval.js";
2
+ import type { SurfaceDetail } from "../cards.js";
3
+ export interface HumanConfirmSpec {
4
+ /** The calling tool's own id — the click is routed back to it, so it must be allowlisted. */
5
+ readonly toolId: string;
6
+ /** Fixed access changes, rendered through the common card and always approved afresh. */
7
+ readonly access?: AccessApprovalDescription;
8
+ /** Prefix for the refusal code when no human can be asked, e.g. `"WEBHOOKS"`. */
9
+ readonly errorCode: string;
10
+ readonly title: string;
11
+ readonly description?: string;
12
+ /** Jini renders structured JSON values, optional previous snapshots and explicit field labels. */
13
+ readonly details: readonly SurfaceDetail[];
14
+ readonly detailDisclosure?: {
15
+ readonly label: string;
16
+ readonly details: readonly SurfaceDetail[];
17
+ };
18
+ readonly warning?: string;
19
+ /** Plain explanation in a neutral box; `warning` stays the red callout for real danger. */
20
+ readonly notice?: string;
21
+ /** Resource ids in `access` whose facts the card's own `details` already state: left out of the rows, never out of the approval. */
22
+ readonly accessRowsStatedInDetails?: readonly string[];
23
+ readonly danger?: boolean;
24
+ readonly confirmLabel: string;
25
+ readonly cancelLabel?: string;
26
+ /**
27
+ * Further affirmative buttons after confirm ("Allow for this chat", say). Each one confirms exactly
28
+ * as confirm does — same dwell, same one-call lock — and also posts its `choice`, which comes back
29
+ * as {@link HumanConfirmOutcome}'s `choice`. A `choice` that is not one of these is ignored, so a
30
+ * forged answer can never widen what the person was offered.
31
+ */
32
+ readonly alternatives?: readonly HumanConfirmAlternative[];
33
+ }
34
+ /** One extra affirmative button — see {@link HumanConfirmSpec.alternatives}. */
35
+ export interface HumanConfirmAlternative {
36
+ /** The button's handle, a lowercase `[a-z0-9-]` id other than `confirm`/`cancel`. */
37
+ readonly id: string;
38
+ readonly label: string;
39
+ /** What this button answers, reported back as the outcome's `choice`. */
40
+ readonly choice: string;
41
+ }
42
+ //# sourceMappingURL=human-confirm.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=human-confirm.js.map
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @file One installed skill as the host's skills list route returns it and the admin Skills screen
3
+ * renders it: its tool id, display copy, enabled state and where it came from. Type-only, so the
4
+ * admin package's screen and the host's transport read one declaration.
5
+ */
6
+ export interface InstalledSkill {
7
+ toolId: string;
8
+ name: string;
9
+ description: string;
10
+ enabled: boolean;
11
+ source: "uploaded" | {
12
+ githubUrl: string;
13
+ commit: string;
14
+ };
15
+ }
16
+ //# sourceMappingURL=installed-skill.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=installed-skill.js.map
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @file The result shape of the plugin-declared API-connection sign-in (`runApiConnectionConnect` in
3
+ * `@jini-ai/integrations/api-connections`). It sits in core so a host's service ports can name it
4
+ * without depending on the integrations package.
5
+ */
6
+ /**
7
+ * `connectionRef` is the opaque, plugin-scoped key the plugin's tools take as input. It is not a
8
+ * secret: the host refuses it for any plugin that does not declare the connection in this workspace.
9
+ * Returned in both states so a later call can use it once the person finishes signing in.
10
+ */
11
+ export type ApiConnectionConnectStatus = {
12
+ readonly status: "connected" | "waiting-for-sign-in";
13
+ readonly connectionRef: string;
14
+ };
15
+ /** Resolves the client-setting prefix a plugin's manifest declares (`extensions.jini.clientNamespace`); `undefined` when it declares none. */
16
+ export type ClientNamespaceFor = (input: {
17
+ readonly pluginId: string;
18
+ }) => Promise<string | undefined>;
19
+ //# sourceMappingURL=integrations-api-connections.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file The result shape of the plugin-declared API-connection sign-in (`runApiConnectionConnect` in
3
+ * `@jini-ai/integrations/api-connections`). It sits in core so a host's service ports can name it
4
+ * without depending on the integrations package.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=integrations-api-connections.js.map
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @file Credential-scheme rule shapes: a self-describing token prefix mapped to the HTTP
3
+ * authentication scheme it is sent with, and the parsed registry a host assembles from plugin
4
+ * declarations. Parsing and detection live in `@jini-ai/integrations/credentialed-http`; these types
5
+ * sit in core so a host can carry a registry without depending on the integrations package.
6
+ */
7
+ export interface CredentialSchemeRule {
8
+ readonly id: string;
9
+ readonly prefix: string;
10
+ readonly scheme: string;
11
+ }
12
+ export interface CredentialSchemeRegistry {
13
+ readonly rules: readonly CredentialSchemeRule[];
14
+ readonly refusals: readonly string[];
15
+ }
16
+ //# sourceMappingURL=integrations-credentialed-http.d.ts.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @file Credential-scheme rule shapes: a self-describing token prefix mapped to the HTTP
3
+ * authentication scheme it is sent with, and the parsed registry a host assembles from plugin
4
+ * declarations. Parsing and detection live in `@jini-ai/integrations/credentialed-http`; these types
5
+ * sit in core so a host can carry a registry without depending on the integrations package.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=integrations-credentialed-http.js.map
@@ -0,0 +1,15 @@
1
+ /** @file The legacy owner store's read contract, shared by the file wiring (`@jini-ai/server/owner-store`)
2
+ * and the passphrase-backup decoder (`@jini-ai/platform/secrets/legacy-owner`): both produce this snapshot.
3
+ */
4
+ /** A site the legacy store copied an entry to (consumerId = the site's canonical folder). */
5
+ export interface LegacyOwnerStoreDestination {
6
+ entryId: string;
7
+ consumerId: string;
8
+ }
9
+ /** grants: active copies. revocations: revoked copies whose site cleanup never finished. */
10
+ export interface LegacyOwnerStoreSnapshot<Entry> {
11
+ entries: Entry[];
12
+ grants: LegacyOwnerStoreDestination[];
13
+ revocations: LegacyOwnerStoreDestination[];
14
+ }
15
+ //# sourceMappingURL=legacy-owner-store.d.ts.map
@@ -0,0 +1,5 @@
1
+ /** @file The legacy owner store's read contract, shared by the file wiring (`@jini-ai/server/owner-store`)
2
+ * and the passphrase-backup decoder (`@jini-ai/platform/secrets/legacy-owner`): both produce this snapshot.
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=legacy-owner-store.js.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @file Per-module boot lifecycle outcome vocabulary. Types only.
3
+ *
4
+ * A host's boot orchestrator runs each module's `prepare`/`start` stages and records one
5
+ * `BootModuleResult` per module it attempted; health and readiness surfaces read those results.
6
+ * Only CRITICAL modules can fail the boot as a whole — optional-module failures never flip it. The
7
+ * orchestrator, its module shape and its rollback loop stay with the host.
8
+ */
9
+ export type ModuleLifecycleStatus = {
10
+ status: "ready";
11
+ } | {
12
+ status: "disabled";
13
+ reasonCode: string;
14
+ remediationHint: string;
15
+ } | {
16
+ status: "failed";
17
+ reasonCode: string;
18
+ remediationHint: string;
19
+ };
20
+ export type BootCriticality = "critical" | "optional";
21
+ export interface BootModuleResult {
22
+ name: string;
23
+ owner: string;
24
+ criticality: BootCriticality;
25
+ lifecycle: ModuleLifecycleStatus;
26
+ }
27
+ //# sourceMappingURL=lifecycle-boot-lifecycle.d.ts.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @file Per-module boot lifecycle outcome vocabulary. Types only.
3
+ *
4
+ * A host's boot orchestrator runs each module's `prepare`/`start` stages and records one
5
+ * `BootModuleResult` per module it attempted; health and readiness surfaces read those results.
6
+ * Only CRITICAL modules can fail the boot as a whole — optional-module failures never flip it. The
7
+ * orchestrator, its module shape and its rollback loop stay with the host.
8
+ */
9
+ export {};
10
+ //# sourceMappingURL=lifecycle-boot-lifecycle.js.map
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @file The provider-status tool's row and port shapes, and the host plugin-maturity vocabulary,
3
+ * as types only.
4
+ *
5
+ * An additive copy of the declarations in `@jini-ai/agent-plugins/lifecycle/host-tools`
6
+ * (`provider-status-tool.ts`, `identity.ts`); that package keeps its identical declarations,
7
+ * values and exports until the paired cutover.
8
+ */
9
+ import type { ToolExecutionContext } from '../../tool-registry.js';
10
+ /** @agent-note This projection contains manifest display metadata only. The host must never put saved setting values in it. */
11
+ export interface ProviderSettingFieldProjection {
12
+ readonly name: string;
13
+ readonly label: string;
14
+ readonly secret?: boolean;
15
+ readonly required?: boolean;
16
+ readonly requiredUnless?: {
17
+ readonly field: string;
18
+ readonly equals: string;
19
+ readonly orPresent?: string;
20
+ readonly headerNames?: readonly string[];
21
+ };
22
+ readonly requiredWhen?: {
23
+ readonly field: string;
24
+ readonly in: readonly string[];
25
+ };
26
+ readonly hint?: string;
27
+ readonly default?: string;
28
+ readonly options?: readonly {
29
+ readonly value: string;
30
+ readonly label: string;
31
+ }[];
32
+ readonly allowCustom?: boolean;
33
+ }
34
+ /** One provider plugin's status row; the composition root fills it from discovery, activation and the settings store. */
35
+ export interface ProviderStatusRow {
36
+ readonly pluginId: string;
37
+ /** Manifest declarations only; never saved values. */
38
+ readonly fields?: readonly ProviderSettingFieldProjection[];
39
+ readonly settingsCard?: {
40
+ readonly tool: string;
41
+ readonly input: {
42
+ readonly kind: "provider-settings";
43
+ readonly target: string;
44
+ };
45
+ };
46
+ readonly enabled: boolean;
47
+ readonly configured: boolean;
48
+ readonly missing: readonly string[];
49
+ readonly store: "project" | "site";
50
+ readonly appliesAt: "now" | "restart" | "failed";
51
+ readonly keyId?: string;
52
+ readonly usedByThisSite: boolean;
53
+ readonly usedBy: readonly string[];
54
+ readonly unreadable?: true;
55
+ readonly quarantine?: string;
56
+ }
57
+ export interface ProviderStatusPorts {
58
+ /** Every discovered plugin that declares provider settings; presence only. */
59
+ readonly list: (required: Record<string, never>) => Promise<readonly ProviderStatusRow[]>;
60
+ readonly authorize: (ctx: ToolExecutionContext) => Promise<void>;
61
+ }
62
+ /** Host metadata; absence keeps the plugin's normal presentation and behavior. */
63
+ export type PluginMaturity = 'untested' | 'soon';
64
+ //# sourceMappingURL=lifecycle-host-tools.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=lifecycle-host-tools.js.map
@@ -0,0 +1,118 @@
1
+ /**
2
+ * The `media` provider contract: what a plugin hands a host so one media vendor (its catalogue row,
3
+ * its models and the adapters serving its routes) can be registered without the host's neutral code
4
+ * naming that vendor.
5
+ *
6
+ * Why structural, not imported: a plugin cannot import the host's dispatch package, so every shape a
7
+ * contribution touches is restated here at the smallest size the adapters need. The host's own richer
8
+ * request/context types are assignable to these (a function taking fewer fields accepts more).
9
+ *
10
+ * Wire helpers arrive as {@link MediaWirePort} through provider initialization, so a vendor's adapter
11
+ * reuses the host's request builder, response parsing and safe download instead of copying them.
12
+ */
13
+ import type { MediaModel, MediaProvider } from './media-providers-catalog.js';
14
+ /** The `contract` name a media plugin registers under. */
15
+ export declare const MEDIA_PROVIDER_CONTRACT_ID = "media";
16
+ /** The slice of one generation request an adapter reads. */
17
+ export interface MediaRenderContext {
18
+ readonly wireModel: string;
19
+ readonly prompt: string;
20
+ readonly aspect: string | undefined;
21
+ readonly voice: string;
22
+ readonly language: string;
23
+ readonly requestInit: {
24
+ readonly dispatcher?: unknown;
25
+ };
26
+ }
27
+ /** Credentials a host resolved for one provider; never read from the environment by an adapter. */
28
+ export interface MediaProviderCredentials {
29
+ readonly apiKey?: string;
30
+ readonly baseUrl?: string;
31
+ }
32
+ /** One vendor HTTP request plus values `parseResponse` needs again. */
33
+ export interface MediaVendorRequest<Meta = undefined> {
34
+ readonly url: string;
35
+ readonly init: RequestInit;
36
+ readonly meta: Meta;
37
+ }
38
+ /** Generated bytes with a provenance note. */
39
+ export interface MediaRenderResult {
40
+ readonly bytes: Buffer;
41
+ readonly providerNote: string;
42
+ readonly suggestedExt?: string;
43
+ }
44
+ /** Throws a plain-words error when the credentials cannot make a request. */
45
+ export type MediaCredentialGuard = (required: {
46
+ credentials: MediaProviderCredentials;
47
+ }) => void;
48
+ /** One route's request/response pair: validate credentials, build one request, parse its response. */
49
+ export interface MediaVendorAdapter<Meta = never> {
50
+ readonly requireCredential?: MediaCredentialGuard;
51
+ buildRequest(required: {
52
+ ctx: MediaRenderContext;
53
+ credentials: MediaProviderCredentials;
54
+ }): MediaVendorRequest<Meta>;
55
+ parseResponse(required: {
56
+ resp: Response;
57
+ ctx: MediaRenderContext;
58
+ request: MediaVendorRequest<Meta>;
59
+ }): Promise<MediaRenderResult>;
60
+ }
61
+ /** The options a raw-bytes response parser needs; `Meta` is whatever `buildRequest` returned. */
62
+ export interface MediaRawBytesParserOptions<Meta> {
63
+ readonly errorTag: string;
64
+ readonly zeroBytesMessage: string;
65
+ readonly note: (required: {
66
+ bytes: Buffer;
67
+ meta: Meta;
68
+ }) => string;
69
+ readonly suggestedExt: string;
70
+ }
71
+ /** Generic wire helpers a host lends a media plugin; none of them knows any vendor. */
72
+ export interface MediaWirePort {
73
+ requireApiKey(required: {
74
+ message: string;
75
+ }): MediaCredentialGuard;
76
+ /** The OpenAI-images-compatible aspect names; an unknown aspect falls back to the wide default. */
77
+ imageAspectFor(required: {
78
+ aspect: string | undefined;
79
+ }): string;
80
+ /** `<baseUrl>/images/generations` for an OpenAI-images-compatible endpoint. */
81
+ imageGenerationUrl(required: {
82
+ baseUrl: string;
83
+ }): string;
84
+ jsonPostInit(required: {
85
+ ctx: Pick<MediaRenderContext, 'requestInit'>;
86
+ body: unknown;
87
+ }, optional?: {
88
+ apiKey?: string;
89
+ }): RequestInit;
90
+ parseJson(required: {
91
+ resp: Response;
92
+ providerTag: string;
93
+ }): Promise<unknown>;
94
+ /** Bytes of the first `{ data: [{ b64_json | url }] }` entry; a URL is fetched through the host's guarded client. */
95
+ imageBytesFromData(required: {
96
+ data: unknown;
97
+ providerTag: string;
98
+ ctx: MediaRenderContext;
99
+ }): Promise<Buffer>;
100
+ sniffImageExt(required: {
101
+ bytes: Buffer;
102
+ }): string;
103
+ createRawBytesParser<Meta>(required: MediaRawBytesParserOptions<Meta>): MediaVendorAdapter<Meta>['parseResponse'];
104
+ }
105
+ /** A catalogued model plus the surface (and audio kind) it is offered on. */
106
+ export interface MediaContributionModel extends MediaModel {
107
+ readonly surface: 'image' | 'video' | 'audio';
108
+ readonly audioKind?: 'music' | 'speech' | 'sfx';
109
+ readonly order?: number;
110
+ }
111
+ /** Everything one vendor brings, registered as one unit. */
112
+ export interface MediaProviderContribution {
113
+ readonly provider: MediaProvider;
114
+ readonly models: readonly MediaContributionModel[];
115
+ /** Route key (`image`, `video`, `audio:speech`, ...) to the adapter serving it. */
116
+ readonly adapters: Readonly<Record<string, MediaVendorAdapter<never>>>;
117
+ }
118
+ //# sourceMappingURL=media-provider-contribution.d.ts.map
@@ -0,0 +1,3 @@
1
+ /** The `contract` name a media plugin registers under. */
2
+ export const MEDIA_PROVIDER_CONTRACT_ID = 'media';
3
+ //# sourceMappingURL=media-provider-contribution.js.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @file Media-provider catalogue shapes. Types only; this module owns the declarations that
3
+ * `@jini-ai/integrations/media-providers` (`types.ts`, re-exported by its `catalog` subpath) used to
4
+ * declare. That package imports them from here and keeps its runtime values.
5
+ */
6
+ /**
7
+ * A third-party media-generation vendor (e.g. OpenAI, Fal.ai, ElevenLabs).
8
+ * Reference/catalogue data, not a live connection — a host resolves
9
+ * `credentialsRequired`/`defaultBaseUrl` into its own credential storage.
10
+ */
11
+ export interface MediaProvider {
12
+ readonly id: string;
13
+ readonly label: string;
14
+ readonly hint: string;
15
+ /**
16
+ * Whether this package's dispatch engine has a real adapter/renderer registered for this
17
+ * provider (vs. a planned/future integration that exists only as this catalogue entry). See
18
+ * `dispatch/vendor-registry.ts`'s `mediaVendorRegistry` and `dispatch/engine.ts`'s `ROUTES`
19
+ * table for where that registration actually lives — `providers.test.ts` asserts every
20
+ * `true` entry with a catalogued model resolves to one, so this flag can't drift from
21
+ * reality the way it did for `hyperframes`/`fal`/`leonardo` (all three claimed `true` with
22
+ * no adapter anywhere).
23
+ */
24
+ readonly integrated: boolean;
25
+ readonly defaultBaseUrl?: string;
26
+ readonly docsUrl?: string;
27
+ readonly credentialsRequired?: boolean;
28
+ readonly settingsVisible?: boolean;
29
+ readonly supportsCustomModel?: boolean;
30
+ readonly customModelPlaceholder?: string;
31
+ }
32
+ /** A specific generation model offered by a `MediaProvider`. */
33
+ export interface MediaModel {
34
+ readonly id: string;
35
+ readonly label: string;
36
+ readonly hint: string;
37
+ readonly provider: string;
38
+ /** Capability tags, e.g. `t2i`/`i2i`/`inpaint`/`t2v`/`i2v`/`tts`. Open-ended by design — see `archived provenance ledger`. */
39
+ readonly caps: readonly string[];
40
+ readonly default?: boolean;
41
+ }
42
+ //# sourceMappingURL=media-providers-catalog.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Media-provider catalogue shapes. Types only; this module owns the declarations that
3
+ * `@jini-ai/integrations/media-providers` (`types.ts`, re-exported by its `catalog` subpath) used to
4
+ * declare. That package imports them from here and keeps its runtime values.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=media-providers-catalog.js.map
@@ -0,0 +1,166 @@
1
+ import type { MediaRecord, MediaProvenance, StagedMediaFile } from "./cms-media.js";
2
+ export interface MediaToolUploadInput {
3
+ workspaceId: string;
4
+ bytes: Uint8Array;
5
+ filename: string;
6
+ contentType: string;
7
+ createdByPrincipal: string;
8
+ alt?: string | undefined;
9
+ caption?: string | undefined;
10
+ credit?: string | undefined;
11
+ description?: string | undefined;
12
+ provenance?: MediaProvenance;
13
+ }
14
+ /** What `media_import_from_url` returns — the SAME shape `media_upload_asset`/`media_generate_asset`/
15
+ * `media_list_assets` return, so the model can chain straight into `media_update_metadata`/
16
+ * `media_trash_asset` off the returned `id` with no separate lookup, and use `publicUrl` to embed the
17
+ * image immediately. Declared locally for the same reason `media-generation`'s `GeneratedMediaView`
18
+ * is: `@jini-ai/cms/media`'s equivalent view type is an internal projection, not public surface. */
19
+ export interface ImportedMediaView {
20
+ id: string;
21
+ createdBy: string | null;
22
+ /** The asset's short lookup name (2026-09-16) — a page marker can reference this instead of the
23
+ * long `id`; mirrors `@jini-ai/cms/media`'s own `MediaToolView.slug` addition. */
24
+ slug: string;
25
+ title: string;
26
+ alt: string;
27
+ caption: string;
28
+ credit: string;
29
+ sha256: string;
30
+ status: string;
31
+ version: number;
32
+ publicUrl: string | null;
33
+ /** The URL the bytes actually came from, after redirect resolution and normalization — so a
34
+ * transcript records what was imported, not merely what was asked for. Empty for local files. */
35
+ sourceUrl: string;
36
+ }
37
+ export interface MediaToolStoragePorts {
38
+ upload(required: {
39
+ input: MediaToolUploadInput;
40
+ }, optional?: Record<string, never>): Promise<{
41
+ media: MediaRecord;
42
+ }>;
43
+ recordContentType(required: {
44
+ workspaceId: string;
45
+ sha256: string;
46
+ contentType: string;
47
+ }, optional?: Record<string, never>): Promise<void>;
48
+ resolvePublicUrls(required: {
49
+ assets: readonly MediaRecord[];
50
+ }, optional?: Record<string, never>): Promise<Map<string, string | null>>;
51
+ }
52
+ export type MediaStagedUploadInput = Omit<MediaToolUploadInput, "bytes"> & {
53
+ staged: StagedMediaFile;
54
+ };
55
+ export interface MediaLocalImportStoragePorts extends MediaToolStoragePorts {
56
+ canUploadStagedVideo(required: Record<string, never>, optional?: {
57
+ signal?: AbortSignal;
58
+ }): Promise<boolean>;
59
+ uploadStagedVideo(required: {
60
+ input: MediaStagedUploadInput;
61
+ }, optional?: {
62
+ signal?: AbortSignal;
63
+ }): Promise<{
64
+ media: MediaRecord;
65
+ }>;
66
+ }
67
+ export interface MediaImportSourcePorts {
68
+ ordinaryMaxBytes: number;
69
+ withLocalStream<T>(required: {
70
+ rootPath: string;
71
+ relativePath: string;
72
+ maxBytes: number;
73
+ consume: (source: {
74
+ length: number;
75
+ chunks: AsyncIterable<Uint8Array>;
76
+ }) => Promise<T>;
77
+ }, optional?: {
78
+ signal?: AbortSignal;
79
+ }): Promise<T>;
80
+ withStagedFile<T>(required: {
81
+ chunks: AsyncIterable<Uint8Array>;
82
+ byteLength: number;
83
+ contentType: string;
84
+ consume: (staged: StagedMediaFile) => Promise<T>;
85
+ }, optional?: {
86
+ signal?: AbortSignal;
87
+ }): Promise<T>;
88
+ fetchRemote(required: {
89
+ url: string;
90
+ }, optional?: Record<string, never>): Promise<{
91
+ bytes: Uint8Array;
92
+ contentType: string;
93
+ url: URL;
94
+ }>;
95
+ resolveLocal(required: {
96
+ root: string;
97
+ relativePath: string;
98
+ }, optional?: Record<string, never>): {
99
+ rootPath: string;
100
+ relativePath: string;
101
+ };
102
+ readLocal(required: {
103
+ rootPath: string;
104
+ relativePath: string;
105
+ maxBytes: number;
106
+ }, optional?: Record<string, never>): Promise<Uint8Array>;
107
+ localReadLimit(required: {
108
+ relativePath: string;
109
+ }, optional?: Record<string, never>): number;
110
+ validateBytes(required: {
111
+ source: URL | string;
112
+ bytes: Uint8Array;
113
+ bytesTruncated: boolean;
114
+ }, optional?: Record<string, never>): string;
115
+ }
116
+ export interface MediaImportRefusalPorts {
117
+ isEgressRefusal(required: {
118
+ error: unknown;
119
+ }, optional?: Record<string, never>): boolean;
120
+ describeEgressRefusal(required: {
121
+ error: unknown;
122
+ }, optional?: Record<string, never>): {
123
+ logMessage: string;
124
+ callerSafeError: Error;
125
+ } | undefined;
126
+ logEgressRefusal(required: {
127
+ line: string;
128
+ }, optional?: Record<string, never>): void;
129
+ isPathRefusal(required: {
130
+ error: unknown;
131
+ }, optional?: Record<string, never>): boolean;
132
+ }
133
+ export interface ImageGenerationCredential {
134
+ readonly apiKey?: string | undefined;
135
+ readonly baseUrl?: string | undefined;
136
+ }
137
+ export interface GeneratedImageBytes {
138
+ readonly bytes: Uint8Array;
139
+ readonly providerId: string;
140
+ readonly usedStubFallback: boolean;
141
+ }
142
+ export interface ImageGenerationPorts {
143
+ readSavedSelections(required: {
144
+ workspaceId: string;
145
+ }, optional?: Record<string, never>): Promise<Readonly<Record<string, {
146
+ apiKeyConfigured?: boolean;
147
+ model?: string;
148
+ }>>>;
149
+ readSavedCredential(required: {
150
+ workspaceId: string;
151
+ providerId: string;
152
+ }, optional?: Record<string, never>): Promise<ImageGenerationCredential | null>;
153
+ readEnvCredential(required: {
154
+ providerId: string;
155
+ }, optional?: Record<string, never>): ImageGenerationCredential | null;
156
+ generateImage(required: {
157
+ model: string;
158
+ prompt: string;
159
+ providerId: string;
160
+ credentials: ImageGenerationCredential;
161
+ allowStubFallback: boolean;
162
+ }, optional: {
163
+ signal: AbortSignal;
164
+ }): Promise<GeneratedImageBytes>;
165
+ }
166
+ //# sourceMappingURL=media-tool-ports.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=media-tool-ports.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The one media upload policy value: an ordinary file (image, document, small video) is admitted
3
+ * up to 50 MiB, and a video at or under it is kept as-is rather than converted.
4
+ */
5
+ export declare const MEDIA_MAX_UPLOAD_BYTES: number;
6
+ //# sourceMappingURL=media-upload-limits.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The one media upload policy value: an ordinary file (image, document, small video) is admitted
3
+ * up to 50 MiB, and a video at or under it is kept as-is rather than converted.
4
+ */
5
+ // The eventual stored-file target is not the maximum input accepted for a convertible video.
6
+ export const MEDIA_MAX_UPLOAD_BYTES = 50 * 1024 * 1024;
7
+ //# sourceMappingURL=media-upload-limits.js.map
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @file The sidebar navigation model a host renders: grouped, ordered rows with route paths.
3
+ *
4
+ * Additive verbatim copy of `AdminNavGroup`/`AdminNavItem` (`manifest/rules.ts`) and their base
5
+ * `AdminNavEntry` (`manifest/types.ts`) from `@jini-ai/admin/core`, so a host's own nav model can
6
+ * name the shape without importing the admin shell. `@jini-ai/admin` keeps its identical
7
+ * declarations, `buildNav` and its exports until the paired cutover.
8
+ */
9
+ /** Sidebar presence. Optional on a panel — absence means routable but not listed. */
10
+ export interface AdminNavEntry {
11
+ readonly label: string;
12
+ /** Inner SVG markup for an 18x18 stroked icon (`viewBox="0 0 18 18"`, `stroke="currentColor"`),
13
+ * matching the convention already used across the reference implementation's `nav.ts`. Optional so a panel can be
14
+ * listed before anyone has drawn it an icon. */
15
+ readonly icon?: string;
16
+ /** Group heading. Panels sharing a value are rendered together; omitted means the ungrouped
17
+ * top row. */
18
+ readonly group?: string;
19
+ /** Ascending sort within a group. Ties fall back to registration order, which is stable. */
20
+ readonly order?: number;
21
+ /** Renders as a disabled row — announced but not yet built. */
22
+ readonly soon?: boolean;
23
+ /**
24
+ * When `soon` is set, renders the row as a REAL link (not a disabled non-link) while still
25
+ * showing the `soon` badge, so an operator can click through and preview the unfinished screen
26
+ * instead of the row being inert. Ignored when `soon` is falsy — there is nothing to opt into on
27
+ * a shipped row. Opt-in rather than a `soon` behavior change: the existing "disabled non-link"
28
+ * shape stays the default for a panel author who has not deliberately decided the in-progress
29
+ * screen is safe to preview.
30
+ */
31
+ readonly soonPreviewable?: boolean;
32
+ }
33
+ /** A sidebar group, ready to render. */
34
+ export interface AdminNavGroup {
35
+ /** Group heading; absent for the ungrouped top row. */
36
+ readonly label?: string;
37
+ readonly items: readonly AdminNavItem[];
38
+ }
39
+ /** A sidebar row. `href` is a **route path** (`/settings`), never a URL — the shell applies the
40
+ * base. Conflating the two is what produced the reference implementation's
41
+ * `/admin/#/section/settings` URLs. */
42
+ export interface AdminNavItem extends AdminNavEntry {
43
+ readonly id: string;
44
+ readonly href: string;
45
+ }
46
+ //# sourceMappingURL=nav.d.ts.map