aimeat 2.1.0 → 2.3.0

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 (1300) hide show
  1. package/README.md +110 -84
  2. package/dist/.env.example +57 -16
  3. package/dist/locales/en.json +277 -369
  4. package/dist/locales/fi.json +281 -373
  5. package/dist/public/components/ContactCard.js +30 -5
  6. package/dist/public/components/ContactPicker.js +3 -2
  7. package/dist/public/components/ImageDeliverable.js +2 -1
  8. package/dist/public/components/JsonView.js +1 -0
  9. package/dist/public/components/LinkPreview.js +1 -1
  10. package/dist/public/components/NotificationBell.js +6 -4
  11. package/dist/public/components/UsageChart.js +2 -1
  12. package/dist/public/cortex-bundled/aimeat-charts.js +158 -10
  13. package/dist/public/cortex-bundled/aimeat-charts.yaml +1 -1
  14. package/dist/public/cortex-bundled/aimeat-dag.js +515 -173
  15. package/dist/public/cortex-bundled/aimeat-dag.yaml +1 -1
  16. package/dist/public/cortex-bundled/aimeat-i18n.js +6 -1
  17. package/dist/public/cortex-bundled/aimeat-i18n.yaml +1 -1
  18. package/dist/public/cortex-bundled/aimeat-surface.js +577 -0
  19. package/dist/public/cortex-bundled/aimeat-surface.yaml +107 -0
  20. package/dist/public/cortex-bundled/aimeat-viewport.js +405 -0
  21. package/dist/public/cortex-bundled/aimeat-viewport.yaml +100 -0
  22. package/dist/public/css/theme.css +1516 -1432
  23. package/dist/public/css/views/app-grant.css +95 -36
  24. package/dist/public/css/views/help.css +28 -0
  25. package/dist/public/css/views/inbox.css +1 -1
  26. package/dist/public/css/views/landing.css +20 -0
  27. package/dist/public/css/views/members.css +40 -10
  28. package/dist/public/css/views/portal-dev.css +64 -45
  29. package/dist/public/css/views/profile.css +17 -0
  30. package/dist/public/js/api.js +1 -0
  31. package/dist/public/js/app-sandbox.js +1 -0
  32. package/dist/public/js/components/auth-image.js +3 -1
  33. package/dist/public/js/i18n.js +3 -1
  34. package/dist/public/js/presence-store.js +3 -1
  35. package/dist/public/js/recents.js +2 -0
  36. package/dist/public/js/services/agent-activity.js +2 -1
  37. package/dist/public/js/services/agent-directives.js +2 -1
  38. package/dist/public/js/services/agent-integration.js +2 -1
  39. package/dist/public/js/services/agent-messages.js +2 -1
  40. package/dist/public/js/services/agent-tasks.js +2 -1
  41. package/dist/public/js/services/agents.js +3 -2
  42. package/dist/public/js/services/calibrator.js +2 -1
  43. package/dist/public/js/services/consent.js +2 -1
  44. package/dist/public/js/services/contacts.js +2 -1
  45. package/dist/public/js/services/cortex.js +5 -4
  46. package/dist/public/js/services/ecosystem.js +2 -1
  47. package/dist/public/js/services/knowledge.js +2 -1
  48. package/dist/public/js/services/ledger.js +2 -1
  49. package/dist/public/js/services/living.js +10 -9
  50. package/dist/public/js/services/memory.js +2 -1
  51. package/dist/public/js/services/messages.js +53 -8
  52. package/dist/public/js/services/nodes.js +3 -2
  53. package/dist/public/js/services/notebook-plan.js +2 -1
  54. package/dist/public/js/services/notebook.js +6 -5
  55. package/dist/public/js/services/offers.js +6 -5
  56. package/dist/public/js/services/organisms.js +26 -25
  57. package/dist/public/js/services/organisms.prompts.js +3 -2
  58. package/dist/public/js/services/organisms.shared.js +2 -1
  59. package/dist/public/js/services/organisms.workspace-gen.js +3 -2
  60. package/dist/public/js/services/packages.js +1 -0
  61. package/dist/public/js/services/schedules.js +2 -1
  62. package/dist/public/js/services/security.js +3 -2
  63. package/dist/public/js/services/skills.js +1 -0
  64. package/dist/public/js/services/tracked-responses.js +4 -3
  65. package/dist/public/js/services/unfurl.js +4 -4
  66. package/dist/public/js/services/work.js +2 -1
  67. package/dist/public/js/site.js +74 -0
  68. package/dist/public/js/swallowed.js +69 -0
  69. package/dist/public/js/theme.js +2 -1
  70. package/dist/public/js/utils.js +3 -1
  71. package/dist/public/lib/VENDORED.md +7 -3
  72. package/dist/public/lib/aimeat-daisyui-bridge.css +39 -2
  73. package/dist/public/lib/aimeat-game/board.css +262 -0
  74. package/dist/public/lib/aimeat-game/progress.css +406 -0
  75. package/dist/public/lib/aimeat-game/shell.css +388 -0
  76. package/dist/public/lib/aimeat-game.css +394 -0
  77. package/dist/public/lib/aimeat-theme.css +538 -0
  78. package/dist/public/lib/fonts/LICENSE.md +11 -4
  79. package/dist/public/lib/fonts/fraunces-var-latin-ext.woff2 +0 -0
  80. package/dist/public/lib/fonts/fraunces-var-latin.woff2 +0 -0
  81. package/dist/public/lib/fonts/inter-var-latin-ext.woff2 +0 -0
  82. package/dist/public/lib/fonts/inter-var-latin.woff2 +0 -0
  83. package/dist/public/lib/fonts/jetbrains-mono-var-latin-ext.woff2 +0 -0
  84. package/dist/public/lib/fonts/jetbrains-mono-var-latin.woff2 +0 -0
  85. package/dist/public/lib/fonts/space-grotesk-var-latin-ext.woff2 +0 -0
  86. package/dist/public/lib/fonts/space-grotesk-var-latin.woff2 +0 -0
  87. package/dist/public/lib/pdfjs@6/pdf.min.mjs +29 -0
  88. package/dist/public/lib/pdfjs@6/pdf.worker.min.mjs +29 -0
  89. package/dist/public/lib/samples/theme-check.html +92 -0
  90. package/dist/public/lib/samples/themes-boot.js +20 -0
  91. package/dist/public/lib/samples/themes.html +154 -0
  92. package/dist/public/lib/samples/themes.js +60 -0
  93. package/dist/public/privacy.fi.html +1 -1
  94. package/dist/public/privacy.html +1 -1
  95. package/dist/public/spa.html +885 -793
  96. package/dist/public/sw.js +4 -2
  97. package/dist/public/views/admin/agent-integration-tab.js +7 -6
  98. package/dist/public/views/admin/ai-usage-tab.js +2 -1
  99. package/dist/public/views/admin/cortex-tab.js +2 -1
  100. package/dist/public/views/admin/economy-tab.js +0 -1
  101. package/dist/public/views/admin/email-tab.js +4 -2
  102. package/dist/public/views/admin/federation-tab.js +3 -2
  103. package/dist/public/views/admin/feedback-tab.js +2 -1
  104. package/dist/public/views/admin/knowledge-tab.js +2 -1
  105. package/dist/public/views/admin/messages-tab.js +2 -1
  106. package/dist/public/views/admin/msm-tab.js +2 -1
  107. package/dist/public/views/admin/packages-tab.js +3 -2
  108. package/dist/public/views/admin/portal-tab.js +7 -2
  109. package/dist/public/views/admin/push-tab.js +9 -4
  110. package/dist/public/views/admin/stats-tab.js +2 -1
  111. package/dist/public/views/admin/usage-tab.js +4 -3
  112. package/dist/public/views/admin.js +6 -4
  113. package/dist/public/views/agent-solo.js +4 -3
  114. package/dist/public/views/app-grant.js +105 -32
  115. package/dist/public/views/business.js +139 -55
  116. package/dist/public/views/command-palette.js +5 -3
  117. package/dist/public/views/companies.js +3 -2
  118. package/dist/public/views/doc-solo.js +2 -1
  119. package/dist/public/views/help.js +95 -15
  120. package/dist/public/views/how-it-works.js +41 -8
  121. package/dist/public/views/invite-accept.js +3 -2
  122. package/dist/public/views/landing-activity.js +3 -2
  123. package/dist/public/views/landing-node-totals.js +2 -1
  124. package/dist/public/views/landing.js +75 -152
  125. package/dist/public/views/members.js +29 -2
  126. package/dist/public/views/my-company.js +9 -7
  127. package/dist/public/views/my-company.payments.js +2 -1
  128. package/dist/public/views/portal-classic.js +2 -1
  129. package/dist/public/views/portal-dev.js +64 -35
  130. package/dist/public/views/portal-dev.panels.js +39 -2
  131. package/dist/public/views/portal-dev.upload.js +25 -196
  132. package/dist/public/views/portal.components.js +4 -3
  133. package/dist/public/views/portfolio.js +5 -4
  134. package/dist/public/views/profile/access-tab/access-tokens.js +2 -1
  135. package/dist/public/views/profile/access-tab/agent-defaults.js +3 -1
  136. package/dist/public/views/profile/access-tab/connected-apps.js +152 -7
  137. package/dist/public/views/profile/access-tab/sharing-groups.js +4 -1
  138. package/dist/public/views/profile/access-tab.js +3 -1
  139. package/dist/public/views/profile/agents/agent-card.js +6 -5
  140. package/dist/public/views/profile/agents/tab-activity.js +10 -8
  141. package/dist/public/views/profile/agents/tab-agent-config.js +3 -1
  142. package/dist/public/views/profile/agents/tab-contracts.js +2 -1
  143. package/dist/public/views/profile/agents/tab-data-access.js +10 -7
  144. package/dist/public/views/profile/agents/tab-helpers.js +5 -0
  145. package/dist/public/views/profile/agents/tab-integration.js +12 -9
  146. package/dist/public/views/profile/agents/tab-messages.js +6 -4
  147. package/dist/public/views/profile/agents/tab-quality.js +3 -2
  148. package/dist/public/views/profile/agents/tab-usage.js +5 -3
  149. package/dist/public/views/profile/agents/task-item.js +12 -7
  150. package/dist/public/views/profile/agents-activity-subtab.js +5 -2
  151. package/dist/public/views/profile/agents-capabilities-subtab.js +4 -2
  152. package/dist/public/views/profile/agents-messages-subtab.js +5 -2
  153. package/dist/public/views/profile/agents-services-subtab.js +1 -0
  154. package/dist/public/views/profile/agents-tab.js +11 -7
  155. package/dist/public/views/profile/appdev-tab.js +3 -2
  156. package/dist/public/views/profile/apps-tab.js +10 -8
  157. package/dist/public/views/profile/boards-tab.js +5 -4
  158. package/dist/public/views/profile/calibrator-batch.helpers.js +3 -2
  159. package/dist/public/views/profile/calibrator-batch.js +3 -1
  160. package/dist/public/views/profile/calibrator-llm-editor.js +3 -2
  161. package/dist/public/views/profile/calibrator-tab.js +5 -4
  162. package/dist/public/views/profile/capabilities-tab.js +2 -1
  163. package/dist/public/views/profile/chat-sessions-tab.js +6 -3
  164. package/dist/public/views/profile/contacts-tab.js +2 -1
  165. package/dist/public/views/profile/data-wallet-tab.js +5 -4
  166. package/dist/public/views/profile/discover-tab.js +4 -1
  167. package/dist/public/views/profile/ecosystem-tab.automation.js +13 -9
  168. package/dist/public/views/profile/ecosystem-tab.cards.js +3 -2
  169. package/dist/public/views/profile/ecosystem-tab.js +10 -7
  170. package/dist/public/views/profile/email-tab.js +2 -1
  171. package/dist/public/views/profile/extensions-tab.js +7 -6
  172. package/dist/public/views/profile/extensions-tab.maturity.js +6 -2
  173. package/dist/public/views/profile/extensions-tab.prompts.js +24 -0
  174. package/dist/public/views/profile/federation-tab.js +2 -1
  175. package/dist/public/views/profile/inbox-tab/components.js +30 -11
  176. package/dist/public/views/profile/inbox-tab/helpers.js +15 -1
  177. package/dist/public/views/profile/inbox-tab/use-thread-ux.js +30 -3
  178. package/dist/public/views/profile/inbox-tab.js +33 -30
  179. package/dist/public/views/profile/inline-panels.js +5 -4
  180. package/dist/public/views/profile/knowledge-tab.js +15 -13
  181. package/dist/public/views/profile/landing-page.cards.js +14 -9
  182. package/dist/public/views/profile/landing-page.helpers.js +5 -2
  183. package/dist/public/views/profile/landing-page.js +11 -7
  184. package/dist/public/views/profile/landing-page.modals.js +8 -5
  185. package/dist/public/views/profile/libraries-tab.js +10 -2
  186. package/dist/public/views/profile/living-tab.js +3 -2
  187. package/dist/public/views/profile/mcp-tab.js +4 -2
  188. package/dist/public/views/profile/memory-tab/browse-view.js +3 -2
  189. package/dist/public/views/profile/memory-tab/components.js +4 -3
  190. package/dist/public/views/profile/memory-tab/entries-view.js +3 -2
  191. package/dist/public/views/profile/memory-tab.js +18 -16
  192. package/dist/public/views/profile/nodes-tab.js +2 -1
  193. package/dist/public/views/profile/notebook-card.js +4 -3
  194. package/dist/public/views/profile/notebook-tab.js +7 -5
  195. package/dist/public/views/profile/notifications-tab.js +9 -5
  196. package/dist/public/views/profile/offers-tab.js +5 -4
  197. package/dist/public/views/profile/openrouter-settings.js +5 -4
  198. package/dist/public/views/profile/organisms/activity-panel.js +2 -1
  199. package/dist/public/views/profile/organisms/agents.js +2 -1
  200. package/dist/public/views/profile/organisms/document.js +13 -12
  201. package/dist/public/views/profile/organisms/helpers.js +2 -1
  202. package/dist/public/views/profile/organisms/home.js +7 -6
  203. package/dist/public/views/profile/organisms/invite-panel.js +1 -1
  204. package/dist/public/views/profile/organisms/members.js +7 -6
  205. package/dist/public/views/profile/organisms/mindmap.js +1 -1
  206. package/dist/public/views/profile/organisms/panels.js +4 -3
  207. package/dist/public/views/profile/organisms/participants-panel.js +11 -10
  208. package/dist/public/views/profile/organisms/readme-panel.js +1 -0
  209. package/dist/public/views/profile/organisms/sources-panel.js +2 -1
  210. package/dist/public/views/profile/organisms/workspace/doc-space.js +2 -1
  211. package/dist/public/views/profile/organisms/workspace/model.js +1 -0
  212. package/dist/public/views/profile/organisms/workspace-apps.js +4 -2
  213. package/dist/public/views/profile/organisms/workspace-comments.js +3 -2
  214. package/dist/public/views/profile/organisms/workspace-list.js +5 -4
  215. package/dist/public/views/profile/organisms/workspace.js +19 -16
  216. package/dist/public/views/profile/organisms-tab.js +20 -12
  217. package/dist/public/views/profile/packages-tab.js +6 -4
  218. package/dist/public/views/profile/portfolio-tab.js +1 -1
  219. package/dist/public/views/profile/scheduler-calendar.js +2 -1
  220. package/dist/public/views/profile/scheduler-tab.js +2 -1
  221. package/dist/public/views/profile/security-tab.js +2 -1
  222. package/dist/public/views/profile/services-tab.js +4 -3
  223. package/dist/public/views/profile/wallet-tab.js +106 -36
  224. package/dist/public/views/profile/work-tab.js +3 -2
  225. package/dist/public/views/profile/workflows-form.js +2 -1
  226. package/dist/public/views/profile/workflows-tab.js +3 -2
  227. package/dist/public/views/public-workspace-viewer.js +7 -4
  228. package/dist/scripts/build-sdk-libs.d.ts.map +1 -1
  229. package/dist/scripts/build-sdk-libs.js +4 -0
  230. package/dist/scripts/build-sdk-libs.js.map +1 -1
  231. package/dist/scripts/check-openapi.d.ts +2 -0
  232. package/dist/scripts/check-openapi.d.ts.map +1 -0
  233. package/dist/scripts/check-openapi.js +139 -0
  234. package/dist/scripts/check-openapi.js.map +1 -0
  235. package/dist/scripts/check-silent-catch.d.ts +2 -0
  236. package/dist/scripts/check-silent-catch.d.ts.map +1 -0
  237. package/dist/scripts/check-silent-catch.js +159 -0
  238. package/dist/scripts/check-silent-catch.js.map +1 -0
  239. package/dist/scripts/embed-viewport.d.ts +23 -0
  240. package/dist/scripts/embed-viewport.d.ts.map +1 -0
  241. package/dist/scripts/embed-viewport.js +116 -0
  242. package/dist/scripts/embed-viewport.js.map +1 -0
  243. package/dist/src/auth/jwt.d.ts +2 -0
  244. package/dist/src/auth/jwt.d.ts.map +1 -1
  245. package/dist/src/auth/jwt.js +15 -3
  246. package/dist/src/auth/jwt.js.map +1 -1
  247. package/dist/src/auth/keypair.d.ts.map +1 -1
  248. package/dist/src/auth/keypair.js +3 -0
  249. package/dist/src/auth/keypair.js.map +1 -1
  250. package/dist/src/auth/middleware.d.ts +2 -0
  251. package/dist/src/auth/middleware.d.ts.map +1 -1
  252. package/dist/src/auth/middleware.js +33 -14
  253. package/dist/src/auth/middleware.js.map +1 -1
  254. package/dist/src/auth/node-keys.d.ts.map +1 -1
  255. package/dist/src/auth/node-keys.js +59 -16
  256. package/dist/src/auth/node-keys.js.map +1 -1
  257. package/dist/src/auth/sse-domain-scopes.d.ts +50 -0
  258. package/dist/src/auth/sse-domain-scopes.d.ts.map +1 -0
  259. package/dist/src/auth/sse-domain-scopes.js +111 -0
  260. package/dist/src/auth/sse-domain-scopes.js.map +1 -0
  261. package/dist/src/cli/config-import.d.ts.map +1 -1
  262. package/dist/src/cli/config-import.js +3 -1
  263. package/dist/src/cli/config-import.js.map +1 -1
  264. package/dist/src/cli/connect/auth.d.ts.map +1 -1
  265. package/dist/src/cli/connect/auth.js +1 -0
  266. package/dist/src/cli/connect/auth.js.map +1 -1
  267. package/dist/src/cli/connect/config.d.ts.map +1 -1
  268. package/dist/src/cli/connect/config.js +3 -1
  269. package/dist/src/cli/connect/config.js.map +1 -1
  270. package/dist/src/cli/connect/keychain.d.ts.map +1 -1
  271. package/dist/src/cli/connect/keychain.js +6 -2
  272. package/dist/src/cli/connect/keychain.js.map +1 -1
  273. package/dist/src/cli/connect/mcp/local-server.d.ts.map +1 -1
  274. package/dist/src/cli/connect/mcp/local-server.js +9 -2
  275. package/dist/src/cli/connect/mcp/local-server.js.map +1 -1
  276. package/dist/src/cli/connect/mcp/tools/agent-tasks.d.ts.map +1 -1
  277. package/dist/src/cli/connect/mcp/tools/agent-tasks.js +4 -1
  278. package/dist/src/cli/connect/mcp/tools/agent-tasks.js.map +1 -1
  279. package/dist/src/cli/connect/mcp/tools/core.d.ts.map +1 -1
  280. package/dist/src/cli/connect/mcp/tools/core.js +14 -3
  281. package/dist/src/cli/connect/mcp/tools/core.js.map +1 -1
  282. package/dist/src/cli/connect/mcp/tools/workspaces.d.ts +3 -0
  283. package/dist/src/cli/connect/mcp/tools/workspaces.d.ts.map +1 -1
  284. package/dist/src/cli/connect/mcp/tools/workspaces.js +6 -2
  285. package/dist/src/cli/connect/mcp/tools/workspaces.js.map +1 -1
  286. package/dist/src/cli/connect/task-runner.d.ts.map +1 -1
  287. package/dist/src/cli/connect/task-runner.js +11 -4
  288. package/dist/src/cli/connect/task-runner.js.map +1 -1
  289. package/dist/src/cli/connect/tool-call-defs-core.d.ts.map +1 -1
  290. package/dist/src/cli/connect/tool-call-defs-core.js +13 -1
  291. package/dist/src/cli/connect/tool-call-defs-core.js.map +1 -1
  292. package/dist/src/cli/connect/tool-call-helpers.d.ts.map +1 -1
  293. package/dist/src/cli/connect/tool-call-helpers.js +1 -0
  294. package/dist/src/cli/connect/tool-call-helpers.js.map +1 -1
  295. package/dist/src/cli/connect/tunnel-client.d.ts.map +1 -1
  296. package/dist/src/cli/connect/tunnel-client.js +26 -8
  297. package/dist/src/cli/connect/tunnel-client.js.map +1 -1
  298. package/dist/src/cli/federation-join.d.ts.map +1 -1
  299. package/dist/src/cli/federation-join.js +7 -3
  300. package/dist/src/cli/federation-join.js.map +1 -1
  301. package/dist/src/cli/init-wizard/presets.d.ts.map +1 -1
  302. package/dist/src/cli/init-wizard/presets.js +21 -0
  303. package/dist/src/cli/init-wizard/presets.js.map +1 -1
  304. package/dist/src/cli/init-wizard/steps-advanced.d.ts.map +1 -1
  305. package/dist/src/cli/init-wizard/steps-advanced.js +2 -0
  306. package/dist/src/cli/init-wizard/steps-advanced.js.map +1 -1
  307. package/dist/src/cli/init-wizard/steps-operator.d.ts.map +1 -1
  308. package/dist/src/cli/init-wizard/steps-operator.js +10 -0
  309. package/dist/src/cli/init-wizard/steps-operator.js.map +1 -1
  310. package/dist/src/commerce/__tests__/x402-registry.test.d.ts +2 -0
  311. package/dist/src/commerce/__tests__/x402-registry.test.d.ts.map +1 -0
  312. package/dist/src/commerce/__tests__/x402-registry.test.js +105 -0
  313. package/dist/src/commerce/__tests__/x402-registry.test.js.map +1 -0
  314. package/dist/src/commerce/evm-address.d.ts +21 -0
  315. package/dist/src/commerce/evm-address.d.ts.map +1 -0
  316. package/dist/src/commerce/evm-address.js +94 -0
  317. package/dist/src/commerce/evm-address.js.map +1 -0
  318. package/dist/src/commerce/invoice-handler.d.ts +5 -0
  319. package/dist/src/commerce/invoice-handler.d.ts.map +1 -0
  320. package/dist/src/commerce/invoice-handler.js +41 -0
  321. package/dist/src/commerce/invoice-handler.js.map +1 -0
  322. package/dist/src/commerce/money.d.ts +18 -5
  323. package/dist/src/commerce/money.d.ts.map +1 -1
  324. package/dist/src/commerce/money.js +27 -6
  325. package/dist/src/commerce/money.js.map +1 -1
  326. package/dist/src/commerce/payable-book.d.ts +31 -0
  327. package/dist/src/commerce/payable-book.d.ts.map +1 -0
  328. package/dist/src/commerce/payable-book.js +27 -0
  329. package/dist/src/commerce/payable-book.js.map +1 -0
  330. package/dist/src/commerce/payment-handlers.d.ts.map +1 -1
  331. package/dist/src/commerce/payment-handlers.js +8 -4
  332. package/dist/src/commerce/payment-handlers.js.map +1 -1
  333. package/dist/src/commerce/sellable-resolvers.d.ts +6 -6
  334. package/dist/src/commerce/sellable-resolvers.d.ts.map +1 -1
  335. package/dist/src/commerce/sellable-resolvers.js +17 -4
  336. package/dist/src/commerce/sellable-resolvers.js.map +1 -1
  337. package/dist/src/commerce/session-service.js +2 -2
  338. package/dist/src/commerce/session-service.js.map +1 -1
  339. package/dist/src/commerce/stripe-handler.d.ts +33 -0
  340. package/dist/src/commerce/stripe-handler.d.ts.map +1 -0
  341. package/dist/src/commerce/stripe-handler.js +108 -0
  342. package/dist/src/commerce/stripe-handler.js.map +1 -0
  343. package/dist/src/commerce/types.d.ts +10 -12
  344. package/dist/src/commerce/types.d.ts.map +1 -1
  345. package/dist/src/commerce/x402-facilitator.d.ts +64 -13
  346. package/dist/src/commerce/x402-facilitator.d.ts.map +1 -1
  347. package/dist/src/commerce/x402-facilitator.js +72 -19
  348. package/dist/src/commerce/x402-facilitator.js.map +1 -1
  349. package/dist/src/commerce/x402-handler.d.ts +13 -7
  350. package/dist/src/commerce/x402-handler.d.ts.map +1 -1
  351. package/dist/src/commerce/x402-handler.js +23 -10
  352. package/dist/src/commerce/x402-handler.js.map +1 -1
  353. package/dist/src/commerce/x402.d.ts +11 -6
  354. package/dist/src/commerce/x402.d.ts.map +1 -1
  355. package/dist/src/commerce/x402.js +10 -7
  356. package/dist/src/commerce/x402.js.map +1 -1
  357. package/dist/src/config-types.d.ts +78 -0
  358. package/dist/src/config-types.d.ts.map +1 -1
  359. package/dist/src/config.d.ts.map +1 -1
  360. package/dist/src/config.js +70 -1
  361. package/dist/src/config.js.map +1 -1
  362. package/dist/src/data/app-templates/shells.d.ts +11 -3
  363. package/dist/src/data/app-templates/shells.d.ts.map +1 -1
  364. package/dist/src/data/app-templates/shells.js +87 -6
  365. package/dist/src/data/app-templates/shells.js.map +1 -1
  366. package/dist/src/data/app-templates.js +2 -2
  367. package/dist/src/data/app-templates.js.map +1 -1
  368. package/dist/src/data/library-packs/cortex.d.ts.map +1 -1
  369. package/dist/src/data/library-packs/cortex.js +108 -5
  370. package/dist/src/data/library-packs/cortex.js.map +1 -1
  371. package/dist/src/data/library-packs/sdk.d.ts +4 -0
  372. package/dist/src/data/library-packs/sdk.d.ts.map +1 -1
  373. package/dist/src/data/library-packs/sdk.js +78 -8
  374. package/dist/src/data/library-packs/sdk.js.map +1 -1
  375. package/dist/src/data/library-packs/vendored.d.ts.map +1 -1
  376. package/dist/src/data/library-packs/vendored.js +171 -6
  377. package/dist/src/data/library-packs/vendored.js.map +1 -1
  378. package/dist/src/generated/api-types.d.ts +949 -44
  379. package/dist/src/generated/api-types.d.ts.map +1 -1
  380. package/dist/src/index-connect.d.ts.map +1 -1
  381. package/dist/src/index-connect.js +4 -1
  382. package/dist/src/index-connect.js.map +1 -1
  383. package/dist/src/index-start.d.ts.map +1 -1
  384. package/dist/src/index-start.js +10 -6
  385. package/dist/src/index-start.js.map +1 -1
  386. package/dist/src/mcp/agent-tasks.d.ts +4 -0
  387. package/dist/src/mcp/agent-tasks.d.ts.map +1 -1
  388. package/dist/src/mcp/agent-tasks.js +20 -2
  389. package/dist/src/mcp/agent-tasks.js.map +1 -1
  390. package/dist/src/mcp/app-template-proposals.d.ts.map +1 -1
  391. package/dist/src/mcp/app-template-proposals.js +2 -1
  392. package/dist/src/mcp/app-template-proposals.js.map +1 -1
  393. package/dist/src/mcp/apps.d.ts.map +1 -1
  394. package/dist/src/mcp/apps.js +4 -3
  395. package/dist/src/mcp/apps.js.map +1 -1
  396. package/dist/src/mcp/capabilities.d.ts +7 -1
  397. package/dist/src/mcp/capabilities.d.ts.map +1 -1
  398. package/dist/src/mcp/capabilities.js +8 -4
  399. package/dist/src/mcp/capabilities.js.map +1 -1
  400. package/dist/src/mcp/catalog/definitions/commerce.d.ts.map +1 -1
  401. package/dist/src/mcp/catalog/definitions/commerce.js +4 -2
  402. package/dist/src/mcp/catalog/definitions/commerce.js.map +1 -1
  403. package/dist/src/mcp/catalog/definitions/discovery-work-boards.d.ts.map +1 -1
  404. package/dist/src/mcp/catalog/definitions/discovery-work-boards.js +4 -3
  405. package/dist/src/mcp/catalog/definitions/discovery-work-boards.js.map +1 -1
  406. package/dist/src/mcp/catalog/definitions/organisms-workspaces-apps.js +1 -1
  407. package/dist/src/mcp/catalog/definitions/organisms-workspaces-apps.js.map +1 -1
  408. package/dist/src/mcp/catalog/definitions/schedules-tasks-memory.d.ts.map +1 -1
  409. package/dist/src/mcp/catalog/definitions/schedules-tasks-memory.js +3 -2
  410. package/dist/src/mcp/catalog/definitions/schedules-tasks-memory.js.map +1 -1
  411. package/dist/src/mcp/catalog/output-schemas.d.ts +6 -1
  412. package/dist/src/mcp/catalog/output-schemas.d.ts.map +1 -1
  413. package/dist/src/mcp/catalog/output-schemas.js +6 -1
  414. package/dist/src/mcp/catalog/output-schemas.js.map +1 -1
  415. package/dist/src/mcp/catalog/scopes.d.ts +0 -1
  416. package/dist/src/mcp/catalog/scopes.d.ts.map +1 -1
  417. package/dist/src/mcp/catalog/scopes.js +2 -11
  418. package/dist/src/mcp/catalog/scopes.js.map +1 -1
  419. package/dist/src/mcp/catalog/surfaces.d.ts +1 -7
  420. package/dist/src/mcp/catalog/surfaces.d.ts.map +1 -1
  421. package/dist/src/mcp/catalog/surfaces.js +10 -16
  422. package/dist/src/mcp/catalog/surfaces.js.map +1 -1
  423. package/dist/src/mcp/commerce.d.ts.map +1 -1
  424. package/dist/src/mcp/commerce.js +50 -6
  425. package/dist/src/mcp/commerce.js.map +1 -1
  426. package/dist/src/mcp/core-storage.d.ts +23 -0
  427. package/dist/src/mcp/core-storage.d.ts.map +1 -0
  428. package/dist/src/mcp/core-storage.js +157 -0
  429. package/dist/src/mcp/core-storage.js.map +1 -0
  430. package/dist/src/mcp/core.d.ts +16 -0
  431. package/dist/src/mcp/core.d.ts.map +1 -1
  432. package/dist/src/mcp/core.js +78 -121
  433. package/dist/src/mcp/core.js.map +1 -1
  434. package/dist/src/mcp/dm-messages.d.ts +4 -0
  435. package/dist/src/mcp/dm-messages.d.ts.map +1 -1
  436. package/dist/src/mcp/dm-messages.js +43 -2
  437. package/dist/src/mcp/dm-messages.js.map +1 -1
  438. package/dist/src/mcp/exchange-run.d.ts +28 -0
  439. package/dist/src/mcp/exchange-run.d.ts.map +1 -1
  440. package/dist/src/mcp/exchange-run.js +58 -37
  441. package/dist/src/mcp/exchange-run.js.map +1 -1
  442. package/dist/src/mcp/exchange.d.ts.map +1 -1
  443. package/dist/src/mcp/exchange.js +12 -9
  444. package/dist/src/mcp/exchange.js.map +1 -1
  445. package/dist/src/mcp/extensions.d.ts.map +1 -1
  446. package/dist/src/mcp/extensions.js +66 -108
  447. package/dist/src/mcp/extensions.js.map +1 -1
  448. package/dist/src/mcp/index.d.ts +5 -0
  449. package/dist/src/mcp/index.d.ts.map +1 -1
  450. package/dist/src/mcp/index.js +24 -9
  451. package/dist/src/mcp/index.js.map +1 -1
  452. package/dist/src/mcp/knowledge.d.ts.map +1 -1
  453. package/dist/src/mcp/knowledge.js +1 -0
  454. package/dist/src/mcp/knowledge.js.map +1 -1
  455. package/dist/src/mcp/memory-namespace-hints.d.ts +33 -0
  456. package/dist/src/mcp/memory-namespace-hints.d.ts.map +1 -0
  457. package/dist/src/mcp/memory-namespace-hints.js +60 -0
  458. package/dist/src/mcp/memory-namespace-hints.js.map +1 -0
  459. package/dist/src/mcp/oauth.d.ts +3 -0
  460. package/dist/src/mcp/oauth.d.ts.map +1 -1
  461. package/dist/src/mcp/oauth.js +13 -8
  462. package/dist/src/mcp/oauth.js.map +1 -1
  463. package/dist/src/mcp/workspaces.d.ts +5 -0
  464. package/dist/src/mcp/workspaces.d.ts.map +1 -1
  465. package/dist/src/mcp/workspaces.js +12 -7
  466. package/dist/src/mcp/workspaces.js.map +1 -1
  467. package/dist/src/middleware/cors.d.ts.map +1 -1
  468. package/dist/src/middleware/cors.js +3 -1
  469. package/dist/src/middleware/cors.js.map +1 -1
  470. package/dist/src/middleware/subdomain.d.ts +4 -0
  471. package/dist/src/middleware/subdomain.d.ts.map +1 -1
  472. package/dist/src/middleware/subdomain.js +23 -2
  473. package/dist/src/middleware/subdomain.js.map +1 -1
  474. package/dist/src/models/agent-task-schemas.d.ts +25 -3
  475. package/dist/src/models/agent-task-schemas.d.ts.map +1 -1
  476. package/dist/src/models/agent-task-schemas.js +16 -0
  477. package/dist/src/models/agent-task-schemas.js.map +1 -1
  478. package/dist/src/models/app-tool-schemas.d.ts +553 -1
  479. package/dist/src/models/app-tool-schemas.d.ts.map +1 -1
  480. package/dist/src/models/app-tool-schemas.js +97 -1
  481. package/dist/src/models/app-tool-schemas.js.map +1 -1
  482. package/dist/src/models/odps-schemas.d.ts +305 -0
  483. package/dist/src/models/odps-schemas.d.ts.map +1 -0
  484. package/dist/src/models/odps-schemas.js +182 -0
  485. package/dist/src/models/odps-schemas.js.map +1 -0
  486. package/dist/src/models/offer-schemas.d.ts +357 -2
  487. package/dist/src/models/offer-schemas.d.ts.map +1 -1
  488. package/dist/src/models/offer-schemas.js +37 -0
  489. package/dist/src/models/offer-schemas.js.map +1 -1
  490. package/dist/src/models/schemas.d.ts +6 -3
  491. package/dist/src/models/schemas.d.ts.map +1 -1
  492. package/dist/src/models/schemas.js +10 -1
  493. package/dist/src/models/schemas.js.map +1 -1
  494. package/dist/src/models/webhook-schemas.d.ts +8 -8
  495. package/dist/src/routes/admin-config.d.ts.map +1 -1
  496. package/dist/src/routes/admin-config.js +4 -1
  497. package/dist/src/routes/admin-config.js.map +1 -1
  498. package/dist/src/routes/admin-extensions.d.ts.map +1 -1
  499. package/dist/src/routes/admin-extensions.js +2 -1
  500. package/dist/src/routes/admin-extensions.js.map +1 -1
  501. package/dist/src/routes/admin-monitoring.js +14 -5
  502. package/dist/src/routes/admin-monitoring.js.map +1 -1
  503. package/dist/src/routes/admin-security.d.ts.map +1 -1
  504. package/dist/src/routes/admin-security.js +4 -1
  505. package/dist/src/routes/admin-security.js.map +1 -1
  506. package/dist/src/routes/admin.d.ts.map +1 -1
  507. package/dist/src/routes/admin.js +6 -4
  508. package/dist/src/routes/admin.js.map +1 -1
  509. package/dist/src/routes/agent-activity.d.ts.map +1 -1
  510. package/dist/src/routes/agent-activity.js +4 -1
  511. package/dist/src/routes/agent-activity.js.map +1 -1
  512. package/dist/src/routes/agent-directives.d.ts +3 -10
  513. package/dist/src/routes/agent-directives.d.ts.map +1 -1
  514. package/dist/src/routes/agent-directives.js +7 -12
  515. package/dist/src/routes/agent-directives.js.map +1 -1
  516. package/dist/src/routes/agent-integration.d.ts.map +1 -1
  517. package/dist/src/routes/agent-integration.js +3 -1
  518. package/dist/src/routes/agent-integration.js.map +1 -1
  519. package/dist/src/routes/agent-messages.d.ts.map +1 -1
  520. package/dist/src/routes/agent-messages.js +5 -2
  521. package/dist/src/routes/agent-messages.js.map +1 -1
  522. package/dist/src/routes/agent-onboarding.d.ts.map +1 -1
  523. package/dist/src/routes/agent-onboarding.js +19 -6
  524. package/dist/src/routes/agent-onboarding.js.map +1 -1
  525. package/dist/src/routes/agent-skills-discovery.d.ts.map +1 -1
  526. package/dist/src/routes/agent-skills-discovery.js +2 -1
  527. package/dist/src/routes/agent-skills-discovery.js.map +1 -1
  528. package/dist/src/routes/agent-tasks/completion.js +1 -1
  529. package/dist/src/routes/agent-tasks/completion.js.map +1 -1
  530. package/dist/src/routes/agent-tasks/create-read.d.ts +4 -0
  531. package/dist/src/routes/agent-tasks/create-read.d.ts.map +1 -1
  532. package/dist/src/routes/agent-tasks/create-read.js +23 -2
  533. package/dist/src/routes/agent-tasks/create-read.js.map +1 -1
  534. package/dist/src/routes/agent-tasks/lifecycle.d.ts.map +1 -1
  535. package/dist/src/routes/agent-tasks/lifecycle.js +38 -9
  536. package/dist/src/routes/agent-tasks/lifecycle.js.map +1 -1
  537. package/dist/src/routes/agents/management.d.ts.map +1 -1
  538. package/dist/src/routes/agents/management.js +4 -1
  539. package/dist/src/routes/agents/management.js.map +1 -1
  540. package/dist/src/routes/agents/offers.d.ts +2 -0
  541. package/dist/src/routes/agents/offers.d.ts.map +1 -1
  542. package/dist/src/routes/agents/offers.js +0 -0
  543. package/dist/src/routes/agents/offers.js.map +1 -1
  544. package/dist/src/routes/agents/profile-metadata.d.ts.map +1 -1
  545. package/dist/src/routes/agents/profile-metadata.js +2 -1
  546. package/dist/src/routes/agents/profile-metadata.js.map +1 -1
  547. package/dist/src/routes/app-grants.d.ts +13 -0
  548. package/dist/src/routes/app-grants.d.ts.map +1 -1
  549. package/dist/src/routes/app-grants.js +124 -29
  550. package/dist/src/routes/app-grants.js.map +1 -1
  551. package/dist/src/routes/appdev-overview.d.ts.map +1 -1
  552. package/dist/src/routes/appdev-overview.js +2 -1
  553. package/dist/src/routes/appdev-overview.js.map +1 -1
  554. package/dist/src/routes/apps/catalogue-admin.d.ts.map +1 -1
  555. package/dist/src/routes/apps/catalogue-admin.js +2 -1
  556. package/dist/src/routes/apps/catalogue-admin.js.map +1 -1
  557. package/dist/src/routes/apps/drafts.d.ts +3 -0
  558. package/dist/src/routes/apps/drafts.d.ts.map +1 -1
  559. package/dist/src/routes/apps/drafts.js +65 -2
  560. package/dist/src/routes/apps/drafts.js.map +1 -1
  561. package/dist/src/routes/apps/fork-manage.d.ts.map +1 -1
  562. package/dist/src/routes/apps/fork-manage.js +6 -3
  563. package/dist/src/routes/apps/fork-manage.js.map +1 -1
  564. package/dist/src/routes/apps/helpers.d.ts.map +1 -1
  565. package/dist/src/routes/apps/helpers.js +5 -1
  566. package/dist/src/routes/apps/helpers.js.map +1 -1
  567. package/dist/src/routes/apps/publish.d.ts +2 -0
  568. package/dist/src/routes/apps/publish.d.ts.map +1 -1
  569. package/dist/src/routes/apps/publish.js +25 -5
  570. package/dist/src/routes/apps/publish.js.map +1 -1
  571. package/dist/src/routes/apps/read.d.ts.map +1 -1
  572. package/dist/src/routes/apps/read.js +2 -1
  573. package/dist/src/routes/apps/read.js.map +1 -1
  574. package/dist/src/routes/auth.d.ts.map +1 -1
  575. package/dist/src/routes/auth.js +2 -1
  576. package/dist/src/routes/auth.js.map +1 -1
  577. package/dist/src/routes/boards.js +1 -1
  578. package/dist/src/routes/boards.js.map +1 -1
  579. package/dist/src/routes/bootstrap.d.ts.map +1 -1
  580. package/dist/src/routes/bootstrap.js +8 -3
  581. package/dist/src/routes/bootstrap.js.map +1 -1
  582. package/dist/src/routes/capabilities.d.ts.map +1 -1
  583. package/dist/src/routes/capabilities.js +4 -3
  584. package/dist/src/routes/capabilities.js.map +1 -1
  585. package/dist/src/routes/commerce-acp.js +1 -1
  586. package/dist/src/routes/commerce-acp.js.map +1 -1
  587. package/dist/src/routes/commerce-ucp.d.ts +2 -3
  588. package/dist/src/routes/commerce-ucp.d.ts.map +1 -1
  589. package/dist/src/routes/commerce-ucp.js +6 -12
  590. package/dist/src/routes/commerce-ucp.js.map +1 -1
  591. package/dist/src/routes/commerce.d.ts +7 -1
  592. package/dist/src/routes/commerce.d.ts.map +1 -1
  593. package/dist/src/routes/commerce.js +175 -5
  594. package/dist/src/routes/commerce.js.map +1 -1
  595. package/dist/src/routes/csm.d.ts.map +1 -1
  596. package/dist/src/routes/csm.js +3 -1
  597. package/dist/src/routes/csm.js.map +1 -1
  598. package/dist/src/routes/ecosystem-apps.d.ts.map +1 -1
  599. package/dist/src/routes/ecosystem-apps.js +7 -6
  600. package/dist/src/routes/ecosystem-apps.js.map +1 -1
  601. package/dist/src/routes/exchange-market.d.ts +6 -2
  602. package/dist/src/routes/exchange-market.d.ts.map +1 -1
  603. package/dist/src/routes/exchange-market.js +163 -33
  604. package/dist/src/routes/exchange-market.js.map +1 -1
  605. package/dist/src/routes/exchange.d.ts +10 -1
  606. package/dist/src/routes/exchange.d.ts.map +1 -1
  607. package/dist/src/routes/exchange.js +349 -11
  608. package/dist/src/routes/exchange.js.map +1 -1
  609. package/dist/src/routes/extensions/actions.d.ts +2 -0
  610. package/dist/src/routes/extensions/actions.d.ts.map +1 -1
  611. package/dist/src/routes/extensions/actions.js +65 -8
  612. package/dist/src/routes/extensions/actions.js.map +1 -1
  613. package/dist/src/routes/extensions/crud.d.ts.map +1 -1
  614. package/dist/src/routes/extensions/crud.js +36 -3
  615. package/dist/src/routes/extensions/crud.js.map +1 -1
  616. package/dist/src/routes/extensions/entitlement-gate.d.ts +44 -7
  617. package/dist/src/routes/extensions/entitlement-gate.d.ts.map +1 -1
  618. package/dist/src/routes/extensions/entitlement-gate.js +22 -130
  619. package/dist/src/routes/extensions/entitlement-gate.js.map +1 -1
  620. package/dist/src/routes/extensions/internal-pass.d.ts +23 -0
  621. package/dist/src/routes/extensions/internal-pass.d.ts.map +1 -0
  622. package/dist/src/routes/extensions/internal-pass.js +70 -0
  623. package/dist/src/routes/extensions/internal-pass.js.map +1 -0
  624. package/dist/src/routes/extensions/manifest.d.ts +10 -0
  625. package/dist/src/routes/extensions/manifest.d.ts.map +1 -1
  626. package/dist/src/routes/extensions/manifest.js +136 -5
  627. package/dist/src/routes/extensions/manifest.js.map +1 -1
  628. package/dist/src/routes/extensions/metered-response.d.ts +37 -0
  629. package/dist/src/routes/extensions/metered-response.d.ts.map +1 -0
  630. package/dist/src/routes/extensions/metered-response.js +60 -0
  631. package/dist/src/routes/extensions/metered-response.js.map +1 -0
  632. package/dist/src/routes/extensions/pacing.d.ts +62 -0
  633. package/dist/src/routes/extensions/pacing.d.ts.map +1 -0
  634. package/dist/src/routes/extensions/pacing.js +45 -0
  635. package/dist/src/routes/extensions/pacing.js.map +1 -0
  636. package/dist/src/routes/extensions/paywall.d.ts +16 -0
  637. package/dist/src/routes/extensions/paywall.d.ts.map +1 -1
  638. package/dist/src/routes/extensions/paywall.js +170 -21
  639. package/dist/src/routes/extensions/paywall.js.map +1 -1
  640. package/dist/src/routes/extensions/priced-binding.d.ts +50 -0
  641. package/dist/src/routes/extensions/priced-binding.d.ts.map +1 -0
  642. package/dist/src/routes/extensions/priced-binding.js +46 -0
  643. package/dist/src/routes/extensions/priced-binding.js.map +1 -0
  644. package/dist/src/routes/federation-genesis.d.ts.map +1 -1
  645. package/dist/src/routes/federation-genesis.js +14 -5
  646. package/dist/src/routes/federation-genesis.js.map +1 -1
  647. package/dist/src/routes/federation-peer/introduce.d.ts.map +1 -1
  648. package/dist/src/routes/federation-peer/introduce.js +3 -1
  649. package/dist/src/routes/federation-peer/introduce.js.map +1 -1
  650. package/dist/src/routes/federation-peer/lifecycle.d.ts.map +1 -1
  651. package/dist/src/routes/federation-peer/lifecycle.js +3 -2
  652. package/dist/src/routes/federation-peer/lifecycle.js.map +1 -1
  653. package/dist/src/routes/federation-peer/peers.d.ts.map +1 -1
  654. package/dist/src/routes/federation-peer/peers.js +5 -3
  655. package/dist/src/routes/federation-peer/peers.js.map +1 -1
  656. package/dist/src/routes/federation-peer/policy-book.d.ts.map +1 -1
  657. package/dist/src/routes/federation-peer/policy-book.js +2 -1
  658. package/dist/src/routes/federation-peer/policy-book.js.map +1 -1
  659. package/dist/src/routes/federation-peer/promotion.d.ts.map +1 -1
  660. package/dist/src/routes/federation-peer/promotion.js +4 -1
  661. package/dist/src/routes/federation-peer/promotion.js.map +1 -1
  662. package/dist/src/routes/federation-settlements.js +2 -2
  663. package/dist/src/routes/federation-settlements.js.map +1 -1
  664. package/dist/src/routes/federation-sync/catalogue-trust.js +5 -3
  665. package/dist/src/routes/federation-sync/catalogue-trust.js.map +1 -1
  666. package/dist/src/routes/federation-sync/messaging.js +5 -3
  667. package/dist/src/routes/federation-sync/messaging.js.map +1 -1
  668. package/dist/src/routes/federation-sync/routing.d.ts.map +1 -1
  669. package/dist/src/routes/federation-sync/routing.js +7 -5
  670. package/dist/src/routes/federation-sync/routing.js.map +1 -1
  671. package/dist/src/routes/flags.d.ts.map +1 -1
  672. package/dist/src/routes/flags.js +3 -1
  673. package/dist/src/routes/flags.js.map +1 -1
  674. package/dist/src/routes/ghii/register-login.js +1 -1
  675. package/dist/src/routes/ghii/register-login.js.map +1 -1
  676. package/dist/src/routes/instances/install.d.ts.map +1 -1
  677. package/dist/src/routes/instances/install.js +2 -1
  678. package/dist/src/routes/instances/install.js.map +1 -1
  679. package/dist/src/routes/instances/manage.d.ts.map +1 -1
  680. package/dist/src/routes/instances/manage.js +2 -1
  681. package/dist/src/routes/instances/manage.js.map +1 -1
  682. package/dist/src/routes/knowledge/packages-core.d.ts.map +1 -1
  683. package/dist/src/routes/knowledge/packages-core.js +2 -1
  684. package/dist/src/routes/knowledge/packages-core.js.map +1 -1
  685. package/dist/src/routes/knowledge/sharing.d.ts.map +1 -1
  686. package/dist/src/routes/knowledge/sharing.js +2 -1
  687. package/dist/src/routes/knowledge/sharing.js.map +1 -1
  688. package/dist/src/routes/library-packs.d.ts.map +1 -1
  689. package/dist/src/routes/library-packs.js +10 -3
  690. package/dist/src/routes/library-packs.js.map +1 -1
  691. package/dist/src/routes/libs.d.ts +9 -0
  692. package/dist/src/routes/libs.d.ts.map +1 -1
  693. package/dist/src/routes/libs.js +11 -2
  694. package/dist/src/routes/libs.js.map +1 -1
  695. package/dist/src/routes/matches.d.ts.map +1 -1
  696. package/dist/src/routes/matches.js +7 -3
  697. package/dist/src/routes/matches.js.map +1 -1
  698. package/dist/src/routes/memory/bulk.d.ts.map +1 -1
  699. package/dist/src/routes/memory/bulk.js +3 -1
  700. package/dist/src/routes/memory/bulk.js.map +1 -1
  701. package/dist/src/routes/memory/crud.d.ts.map +1 -1
  702. package/dist/src/routes/memory/crud.js +14 -2
  703. package/dist/src/routes/memory/crud.js.map +1 -1
  704. package/dist/src/routes/memory/federation.d.ts.map +1 -1
  705. package/dist/src/routes/memory/federation.js +5 -0
  706. package/dist/src/routes/memory/federation.js.map +1 -1
  707. package/dist/src/routes/memory/key.d.ts.map +1 -1
  708. package/dist/src/routes/memory/key.js +9 -4
  709. package/dist/src/routes/memory/key.js.map +1 -1
  710. package/dist/src/routes/messages.d.ts.map +1 -1
  711. package/dist/src/routes/messages.js +2 -1
  712. package/dist/src/routes/messages.js.map +1 -1
  713. package/dist/src/routes/msm.d.ts.map +1 -1
  714. package/dist/src/routes/msm.js +3 -1
  715. package/dist/src/routes/msm.js.map +1 -1
  716. package/dist/src/routes/oauth-login.d.ts.map +1 -1
  717. package/dist/src/routes/oauth-login.js +1 -0
  718. package/dist/src/routes/oauth-login.js.map +1 -1
  719. package/dist/src/routes/openrouter.js +2 -2
  720. package/dist/src/routes/openrouter.js.map +1 -1
  721. package/dist/src/routes/organisms/crud.d.ts +3 -0
  722. package/dist/src/routes/organisms/crud.d.ts.map +1 -1
  723. package/dist/src/routes/organisms/crud.js +8 -4
  724. package/dist/src/routes/organisms/crud.js.map +1 -1
  725. package/dist/src/routes/organisms/gates.d.ts.map +1 -1
  726. package/dist/src/routes/organisms/gates.js +3 -2
  727. package/dist/src/routes/organisms/gates.js.map +1 -1
  728. package/dist/src/routes/organisms/intake.d.ts.map +1 -1
  729. package/dist/src/routes/organisms/intake.js +13 -1
  730. package/dist/src/routes/organisms/intake.js.map +1 -1
  731. package/dist/src/routes/organisms/shared.d.ts.map +1 -1
  732. package/dist/src/routes/organisms/shared.js +7 -3
  733. package/dist/src/routes/organisms/shared.js.map +1 -1
  734. package/dist/src/routes/organisms/workspace-ops.d.ts.map +1 -1
  735. package/dist/src/routes/organisms/workspace-ops.js +6 -5
  736. package/dist/src/routes/organisms/workspace-ops.js.map +1 -1
  737. package/dist/src/routes/organisms/workspace-read.d.ts.map +1 -1
  738. package/dist/src/routes/organisms/workspace-read.js +11 -4
  739. package/dist/src/routes/organisms/workspace-read.js.map +1 -1
  740. package/dist/src/routes/owners.d.ts.map +1 -1
  741. package/dist/src/routes/owners.js +37 -12
  742. package/dist/src/routes/owners.js.map +1 -1
  743. package/dist/src/routes/personal.js +3 -1
  744. package/dist/src/routes/personal.js.map +1 -1
  745. package/dist/src/routes/portal.d.ts +6 -1
  746. package/dist/src/routes/portal.d.ts.map +1 -1
  747. package/dist/src/routes/portal.js +75 -10
  748. package/dist/src/routes/portal.js.map +1 -1
  749. package/dist/src/routes/portfolio.d.ts.map +1 -1
  750. package/dist/src/routes/portfolio.js +5 -1
  751. package/dist/src/routes/portfolio.js.map +1 -1
  752. package/dist/src/routes/prompts.d.ts.map +1 -1
  753. package/dist/src/routes/prompts.js +36 -2
  754. package/dist/src/routes/prompts.js.map +1 -1
  755. package/dist/src/routes/public-events.d.ts.map +1 -1
  756. package/dist/src/routes/public-events.js +4 -1
  757. package/dist/src/routes/public-events.js.map +1 -1
  758. package/dist/src/routes/public-stats.d.ts +7 -0
  759. package/dist/src/routes/public-stats.d.ts.map +1 -1
  760. package/dist/src/routes/public-stats.js +57 -17
  761. package/dist/src/routes/public-stats.js.map +1 -1
  762. package/dist/src/routes/schedules.d.ts +3 -0
  763. package/dist/src/routes/schedules.d.ts.map +1 -1
  764. package/dist/src/routes/schedules.js +14 -1
  765. package/dist/src/routes/schedules.js.map +1 -1
  766. package/dist/src/routes/sse.d.ts +7 -0
  767. package/dist/src/routes/sse.d.ts.map +1 -1
  768. package/dist/src/routes/sse.js +36 -6
  769. package/dist/src/routes/sse.js.map +1 -1
  770. package/dist/src/routes/stats.d.ts.map +1 -1
  771. package/dist/src/routes/stats.js +5 -1
  772. package/dist/src/routes/stats.js.map +1 -1
  773. package/dist/src/routes/storage-files.d.ts +15 -0
  774. package/dist/src/routes/storage-files.d.ts.map +1 -1
  775. package/dist/src/routes/storage-files.js +69 -51
  776. package/dist/src/routes/storage-files.js.map +1 -1
  777. package/dist/src/routes/subdomains.d.ts +13 -0
  778. package/dist/src/routes/subdomains.d.ts.map +1 -1
  779. package/dist/src/routes/subdomains.js +106 -8
  780. package/dist/src/routes/subdomains.js.map +1 -1
  781. package/dist/src/routes/unfurl.d.ts.map +1 -1
  782. package/dist/src/routes/unfurl.js +13 -3
  783. package/dist/src/routes/unfurl.js.map +1 -1
  784. package/dist/src/routes/upload.d.ts +22 -0
  785. package/dist/src/routes/upload.d.ts.map +1 -1
  786. package/dist/src/routes/upload.js +204 -34
  787. package/dist/src/routes/upload.js.map +1 -1
  788. package/dist/src/routes/wallet.d.ts +3 -0
  789. package/dist/src/routes/wallet.d.ts.map +1 -1
  790. package/dist/src/routes/wallet.js +6 -1
  791. package/dist/src/routes/wallet.js.map +1 -1
  792. package/dist/src/routes/webmcp.d.ts +8 -0
  793. package/dist/src/routes/webmcp.d.ts.map +1 -1
  794. package/dist/src/routes/webmcp.js +97 -46
  795. package/dist/src/routes/webmcp.js.map +1 -1
  796. package/dist/src/routes/wellknown.d.ts.map +1 -1
  797. package/dist/src/routes/wellknown.js +1 -0
  798. package/dist/src/routes/wellknown.js.map +1 -1
  799. package/dist/src/schemas/knowledge-package.d.ts +1 -1
  800. package/dist/src/server-bootstrap/config-init.d.ts.map +1 -1
  801. package/dist/src/server-bootstrap/config-init.js +2 -0
  802. package/dist/src/server-bootstrap/config-init.js.map +1 -1
  803. package/dist/src/server-bootstrap/routes-loader.d.ts +4 -2
  804. package/dist/src/server-bootstrap/routes-loader.d.ts.map +1 -1
  805. package/dist/src/server-bootstrap/routes-loader.js +11 -22
  806. package/dist/src/server-bootstrap/routes-loader.js.map +1 -1
  807. package/dist/src/server-bootstrap/service-init.js +3 -1
  808. package/dist/src/server-bootstrap/service-init.js.map +1 -1
  809. package/dist/src/server-bootstrap/static-files.d.ts +4 -0
  810. package/dist/src/server-bootstrap/static-files.d.ts.map +1 -1
  811. package/dist/src/server-bootstrap/static-files.js +14 -1
  812. package/dist/src/server-bootstrap/static-files.js.map +1 -1
  813. package/dist/src/services/agent-statistics.d.ts.map +1 -1
  814. package/dist/src/services/agent-statistics.js +4 -1
  815. package/dist/src/services/agent-statistics.js.map +1 -1
  816. package/dist/src/services/app-agent-deploy.d.ts.map +1 -1
  817. package/dist/src/services/app-agent-deploy.js +4 -1
  818. package/dist/src/services/app-agent-deploy.js.map +1 -1
  819. package/dist/src/services/app-agent-surface.d.ts +78 -0
  820. package/dist/src/services/app-agent-surface.d.ts.map +1 -0
  821. package/dist/src/services/app-agent-surface.js +74 -0
  822. package/dist/src/services/app-agent-surface.js.map +1 -0
  823. package/dist/src/services/app-tool-names.d.ts +15 -0
  824. package/dist/src/services/app-tool-names.d.ts.map +1 -0
  825. package/dist/src/services/app-tool-names.js +24 -0
  826. package/dist/src/services/app-tool-names.js.map +1 -0
  827. package/dist/src/services/appdev-overview.d.ts.map +1 -1
  828. package/dist/src/services/appdev-overview.js +3 -2
  829. package/dist/src/services/appdev-overview.js.map +1 -1
  830. package/dist/src/services/attachment-duplication.js +3 -3
  831. package/dist/src/services/attachment-duplication.js.map +1 -1
  832. package/dist/src/services/build-app-prompt.d.ts +19 -0
  833. package/dist/src/services/build-app-prompt.d.ts.map +1 -1
  834. package/dist/src/services/build-app-prompt.js +97 -11
  835. package/dist/src/services/build-app-prompt.js.map +1 -1
  836. package/dist/src/services/build-extension-prompt.d.ts +40 -0
  837. package/dist/src/services/build-extension-prompt.d.ts.map +1 -0
  838. package/dist/src/services/build-extension-prompt.js +253 -0
  839. package/dist/src/services/build-extension-prompt.js.map +1 -0
  840. package/dist/src/services/cache-cleanup.d.ts.map +1 -1
  841. package/dist/src/services/cache-cleanup.js +2 -1
  842. package/dist/src/services/cache-cleanup.js.map +1 -1
  843. package/dist/src/services/call-timing.d.ts +51 -0
  844. package/dist/src/services/call-timing.d.ts.map +1 -0
  845. package/dist/src/services/call-timing.js +92 -0
  846. package/dist/src/services/call-timing.js.map +1 -0
  847. package/dist/src/services/capability-invoke.d.ts +8 -1
  848. package/dist/src/services/capability-invoke.d.ts.map +1 -1
  849. package/dist/src/services/capability-invoke.js +24 -2
  850. package/dist/src/services/capability-invoke.js.map +1 -1
  851. package/dist/src/services/catalogue-sync.d.ts.map +1 -1
  852. package/dist/src/services/catalogue-sync.js +1 -0
  853. package/dist/src/services/catalogue-sync.js.map +1 -1
  854. package/dist/src/services/component-registrar.d.ts.map +1 -1
  855. package/dist/src/services/component-registrar.js +22 -6
  856. package/dist/src/services/component-registrar.js.map +1 -1
  857. package/dist/src/services/config-loader.d.ts.map +1 -1
  858. package/dist/src/services/config-loader.js +6 -1
  859. package/dist/src/services/config-loader.js.map +1 -1
  860. package/dist/src/services/config-schema.d.ts.map +1 -1
  861. package/dist/src/services/config-schema.js +7 -0
  862. package/dist/src/services/config-schema.js.map +1 -1
  863. package/dist/src/services/connect-tunnel.d.ts.map +1 -1
  864. package/dist/src/services/connect-tunnel.js +17 -6
  865. package/dist/src/services/connect-tunnel.js.map +1 -1
  866. package/dist/src/services/consent.d.ts.map +1 -1
  867. package/dist/src/services/consent.js +3 -1
  868. package/dist/src/services/consent.js.map +1 -1
  869. package/dist/src/services/consul-config.d.ts.map +1 -1
  870. package/dist/src/services/consul-config.js +7 -2
  871. package/dist/src/services/consul-config.js.map +1 -1
  872. package/dist/src/services/contacts.js +4 -2
  873. package/dist/src/services/contacts.js.map +1 -1
  874. package/dist/src/services/core-jobs.js +1 -1
  875. package/dist/src/services/core-jobs.js.map +1 -1
  876. package/dist/src/services/db/agent-messages-overview-db-service.d.ts.map +1 -1
  877. package/dist/src/services/db/agent-messages-overview-db-service.js +2 -1
  878. package/dist/src/services/db/agent-messages-overview-db-service.js.map +1 -1
  879. package/dist/src/services/db/agent-quality-overview-db-service.d.ts.map +1 -1
  880. package/dist/src/services/db/agent-quality-overview-db-service.js +2 -1
  881. package/dist/src/services/db/agent-quality-overview-db-service.js.map +1 -1
  882. package/dist/src/services/db/messages-inbox-db-service.d.ts.map +1 -1
  883. package/dist/src/services/db/messages-inbox-db-service.js +3 -2
  884. package/dist/src/services/db/messages-inbox-db-service.js.map +1 -1
  885. package/dist/src/services/db/messaging-db-service.d.ts.map +1 -1
  886. package/dist/src/services/db/messaging-db-service.js +3 -2
  887. package/dist/src/services/db/messaging-db-service.js.map +1 -1
  888. package/dist/src/services/db/wallet-tab-db-service.d.ts +3 -3
  889. package/dist/src/services/doc-images.d.ts.map +1 -1
  890. package/dist/src/services/doc-images.js +7 -4
  891. package/dist/src/services/doc-images.js.map +1 -1
  892. package/dist/src/services/draft-token.d.ts +22 -2
  893. package/dist/src/services/draft-token.d.ts.map +1 -1
  894. package/dist/src/services/draft-token.js +52 -3
  895. package/dist/src/services/draft-token.js.map +1 -1
  896. package/dist/src/services/ecosystem-automation-notify.d.ts.map +1 -1
  897. package/dist/src/services/ecosystem-automation-notify.js +10 -4
  898. package/dist/src/services/ecosystem-automation-notify.js.map +1 -1
  899. package/dist/src/services/ecosystem-automation.d.ts.map +1 -1
  900. package/dist/src/services/ecosystem-automation.js +3 -2
  901. package/dist/src/services/ecosystem-automation.js.map +1 -1
  902. package/dist/src/services/ecosystem-events.js +1 -1
  903. package/dist/src/services/ecosystem-events.js.map +1 -1
  904. package/dist/src/services/entitlement-merge.d.ts +50 -0
  905. package/dist/src/services/entitlement-merge.d.ts.map +1 -0
  906. package/dist/src/services/entitlement-merge.js +116 -0
  907. package/dist/src/services/entitlement-merge.js.map +1 -0
  908. package/dist/src/services/entitlement-money.d.ts.map +1 -1
  909. package/dist/src/services/entitlement-money.js +4 -1
  910. package/dist/src/services/entitlement-money.js.map +1 -1
  911. package/dist/src/services/exchange-market.d.ts +88 -10
  912. package/dist/src/services/exchange-market.d.ts.map +1 -1
  913. package/dist/src/services/exchange-market.js +104 -11
  914. package/dist/src/services/exchange-market.js.map +1 -1
  915. package/dist/src/services/exchange-odps.d.ts +58 -0
  916. package/dist/src/services/exchange-odps.d.ts.map +1 -0
  917. package/dist/src/services/exchange-odps.js +400 -0
  918. package/dist/src/services/exchange-odps.js.map +1 -0
  919. package/dist/src/services/exchange-projection.d.ts +67 -0
  920. package/dist/src/services/exchange-projection.d.ts.map +1 -0
  921. package/dist/src/services/exchange-projection.js +629 -0
  922. package/dist/src/services/exchange-projection.js.map +1 -0
  923. package/dist/src/services/exchange-proposals.d.ts.map +1 -1
  924. package/dist/src/services/exchange-proposals.js +6 -2
  925. package/dist/src/services/exchange-proposals.js.map +1 -1
  926. package/dist/src/services/extension-files.d.ts +64 -0
  927. package/dist/src/services/extension-files.d.ts.map +1 -0
  928. package/dist/src/services/extension-files.js +88 -0
  929. package/dist/src/services/extension-files.js.map +1 -0
  930. package/dist/src/services/extension-purchase.d.ts +36 -0
  931. package/dist/src/services/extension-purchase.d.ts.map +1 -0
  932. package/dist/src/services/extension-purchase.js +110 -0
  933. package/dist/src/services/extension-purchase.js.map +1 -0
  934. package/dist/src/services/extension-runtime.d.ts +56 -1
  935. package/dist/src/services/extension-runtime.d.ts.map +1 -1
  936. package/dist/src/services/extension-runtime.js +73 -4
  937. package/dist/src/services/extension-runtime.js.map +1 -1
  938. package/dist/src/services/extension-secrets.d.ts +8 -0
  939. package/dist/src/services/extension-secrets.d.ts.map +1 -1
  940. package/dist/src/services/extension-secrets.js +14 -0
  941. package/dist/src/services/extension-secrets.js.map +1 -1
  942. package/dist/src/services/federation-availability.d.ts.map +1 -1
  943. package/dist/src/services/federation-availability.js +1 -0
  944. package/dist/src/services/federation-availability.js.map +1 -1
  945. package/dist/src/services/federation-book.js +15 -7
  946. package/dist/src/services/federation-book.js.map +1 -1
  947. package/dist/src/services/federation-helpers.d.ts.map +1 -1
  948. package/dist/src/services/federation-helpers.js +1 -0
  949. package/dist/src/services/federation-helpers.js.map +1 -1
  950. package/dist/src/services/federation.d.ts.map +1 -1
  951. package/dist/src/services/federation.js +8 -6
  952. package/dist/src/services/federation.js.map +1 -1
  953. package/dist/src/services/file-refs.d.ts +105 -0
  954. package/dist/src/services/file-refs.d.ts.map +1 -0
  955. package/dist/src/services/file-refs.js +106 -0
  956. package/dist/src/services/file-refs.js.map +1 -0
  957. package/dist/src/services/gate-expiry.d.ts.map +1 -1
  958. package/dist/src/services/gate-expiry.js +2 -1
  959. package/dist/src/services/gate-expiry.js.map +1 -1
  960. package/dist/src/services/genesis-sync.d.ts.map +1 -1
  961. package/dist/src/services/genesis-sync.js +9 -4
  962. package/dist/src/services/genesis-sync.js.map +1 -1
  963. package/dist/src/services/handbooks/commerce.d.ts +13 -0
  964. package/dist/src/services/handbooks/commerce.d.ts.map +1 -0
  965. package/dist/src/services/handbooks/commerce.js +60 -0
  966. package/dist/src/services/handbooks/commerce.js.map +1 -0
  967. package/dist/src/services/handbooks/index.d.ts +1 -0
  968. package/dist/src/services/handbooks/index.d.ts.map +1 -1
  969. package/dist/src/services/handbooks/index.js +2 -2
  970. package/dist/src/services/handbooks/index.js.map +1 -1
  971. package/dist/src/services/hooks.d.ts.map +1 -1
  972. package/dist/src/services/hooks.js +2 -0
  973. package/dist/src/services/hooks.js.map +1 -1
  974. package/dist/src/services/invitations.d.ts.map +1 -1
  975. package/dist/src/services/invitations.js +2 -0
  976. package/dist/src/services/invitations.js.map +1 -1
  977. package/dist/src/services/living-author.d.ts.map +1 -1
  978. package/dist/src/services/living-author.js +4 -1
  979. package/dist/src/services/living-author.js.map +1 -1
  980. package/dist/src/services/living-pulse.js +18 -6
  981. package/dist/src/services/living-pulse.js.map +1 -1
  982. package/dist/src/services/mailbox-notification.d.ts.map +1 -1
  983. package/dist/src/services/mailbox-notification.js +1 -0
  984. package/dist/src/services/mailbox-notification.js.map +1 -1
  985. package/dist/src/services/match-notification.d.ts.map +1 -1
  986. package/dist/src/services/match-notification.js +2 -1
  987. package/dist/src/services/match-notification.js.map +1 -1
  988. package/dist/src/services/matching.d.ts.map +1 -1
  989. package/dist/src/services/matching.js +5 -2
  990. package/dist/src/services/matching.js.map +1 -1
  991. package/dist/src/services/memory-replication.d.ts.map +1 -1
  992. package/dist/src/services/memory-replication.js +3 -1
  993. package/dist/src/services/memory-replication.js.map +1 -1
  994. package/dist/src/services/message-broadcast.d.ts.map +1 -1
  995. package/dist/src/services/message-broadcast.js +2 -1
  996. package/dist/src/services/message-broadcast.js.map +1 -1
  997. package/dist/src/services/message-delivery.d.ts.map +1 -1
  998. package/dist/src/services/message-delivery.js +9 -4
  999. package/dist/src/services/message-delivery.js.map +1 -1
  1000. package/dist/src/services/metered-access.d.ts +148 -0
  1001. package/dist/src/services/metered-access.d.ts.map +1 -0
  1002. package/dist/src/services/metered-access.js +128 -0
  1003. package/dist/src/services/metered-access.js.map +1 -0
  1004. package/dist/src/services/metered-entitlements.d.ts +147 -5
  1005. package/dist/src/services/metered-entitlements.d.ts.map +1 -1
  1006. package/dist/src/services/metered-entitlements.js +251 -30
  1007. package/dist/src/services/metered-entitlements.js.map +1 -1
  1008. package/dist/src/services/metered-settlement.d.ts +45 -0
  1009. package/dist/src/services/metered-settlement.d.ts.map +1 -0
  1010. package/dist/src/services/metered-settlement.js +117 -0
  1011. package/dist/src/services/metered-settlement.js.map +1 -0
  1012. package/dist/src/services/network-policy.d.ts.map +1 -1
  1013. package/dist/src/services/network-policy.js +6 -2
  1014. package/dist/src/services/network-policy.js.map +1 -1
  1015. package/dist/src/services/notebook-classify.d.ts.map +1 -1
  1016. package/dist/src/services/notebook-classify.js +7 -2
  1017. package/dist/src/services/notebook-classify.js.map +1 -1
  1018. package/dist/src/services/notebook-plan.d.ts.map +1 -1
  1019. package/dist/src/services/notebook-plan.js +4 -1
  1020. package/dist/src/services/notebook-plan.js.map +1 -1
  1021. package/dist/src/services/notify.d.ts.map +1 -1
  1022. package/dist/src/services/notify.js +6 -3
  1023. package/dist/src/services/notify.js.map +1 -1
  1024. package/dist/src/services/openrouter.d.ts.map +1 -1
  1025. package/dist/src/services/openrouter.js +1 -0
  1026. package/dist/src/services/openrouter.js.map +1 -1
  1027. package/dist/src/services/organism-export.d.ts.map +1 -1
  1028. package/dist/src/services/organism-export.js +4 -1
  1029. package/dist/src/services/organism-export.js.map +1 -1
  1030. package/dist/src/services/organism-import.d.ts.map +1 -1
  1031. package/dist/src/services/organism-import.js +5 -1
  1032. package/dist/src/services/organism-import.js.map +1 -1
  1033. package/dist/src/services/owner-memory.d.ts +14 -1
  1034. package/dist/src/services/owner-memory.d.ts.map +1 -1
  1035. package/dist/src/services/owner-memory.js +8 -14
  1036. package/dist/src/services/owner-memory.js.map +1 -1
  1037. package/dist/src/services/perf-trace.js +3 -1
  1038. package/dist/src/services/perf-trace.js.map +1 -1
  1039. package/dist/src/services/personal-tunnel.js +14 -8
  1040. package/dist/src/services/personal-tunnel.js.map +1 -1
  1041. package/dist/src/services/presence.d.ts.map +1 -1
  1042. package/dist/src/services/presence.js +11 -5
  1043. package/dist/src/services/presence.js.map +1 -1
  1044. package/dist/src/services/protected-resource.d.ts +60 -0
  1045. package/dist/src/services/protected-resource.d.ts.map +1 -0
  1046. package/dist/src/services/protected-resource.js +137 -0
  1047. package/dist/src/services/protected-resource.js.map +1 -0
  1048. package/dist/src/services/realtime-manager.d.ts.map +1 -1
  1049. package/dist/src/services/realtime-manager.js +8 -5
  1050. package/dist/src/services/realtime-manager.js.map +1 -1
  1051. package/dist/src/services/safe-zip.d.ts.map +1 -1
  1052. package/dist/src/services/safe-zip.js +4 -1
  1053. package/dist/src/services/safe-zip.js.map +1 -1
  1054. package/dist/src/services/scheduler-extension-job.js +2 -2
  1055. package/dist/src/services/scheduler-extension-job.js.map +1 -1
  1056. package/dist/src/services/scheduler.js +13 -7
  1057. package/dist/src/services/scheduler.js.map +1 -1
  1058. package/dist/src/services/security-incident.d.ts.map +1 -1
  1059. package/dist/src/services/security-incident.js +7 -2
  1060. package/dist/src/services/security-incident.js.map +1 -1
  1061. package/dist/src/services/site-sync.d.ts.map +1 -1
  1062. package/dist/src/services/site-sync.js +1 -0
  1063. package/dist/src/services/site-sync.js.map +1 -1
  1064. package/dist/src/services/site.d.ts +1 -1
  1065. package/dist/src/services/site.d.ts.map +1 -1
  1066. package/dist/src/services/site.js +29 -8
  1067. package/dist/src/services/site.js.map +1 -1
  1068. package/dist/src/services/structure-overview.d.ts.map +1 -1
  1069. package/dist/src/services/structure-overview.js +4 -1
  1070. package/dist/src/services/structure-overview.js.map +1 -1
  1071. package/dist/src/services/structure-snapshot.d.ts.map +1 -1
  1072. package/dist/src/services/structure-snapshot.js +3 -2
  1073. package/dist/src/services/structure-snapshot.js.map +1 -1
  1074. package/dist/src/services/sync-scheduler.js +3 -2
  1075. package/dist/src/services/sync-scheduler.js.map +1 -1
  1076. package/dist/src/services/task-files.d.ts +51 -0
  1077. package/dist/src/services/task-files.d.ts.map +1 -0
  1078. package/dist/src/services/task-files.js +58 -0
  1079. package/dist/src/services/task-files.js.map +1 -0
  1080. package/dist/src/services/tracked-response.js +1 -1
  1081. package/dist/src/services/tracked-response.js.map +1 -1
  1082. package/dist/src/services/trust-broadcast.d.ts.map +1 -1
  1083. package/dist/src/services/trust-broadcast.js +1 -0
  1084. package/dist/src/services/trust-broadcast.js.map +1 -1
  1085. package/dist/src/services/upload-token.d.ts +29 -0
  1086. package/dist/src/services/upload-token.d.ts.map +1 -1
  1087. package/dist/src/services/upload-token.js +37 -0
  1088. package/dist/src/services/upload-token.js.map +1 -1
  1089. package/dist/src/services/upload-zip.d.ts +9 -0
  1090. package/dist/src/services/upload-zip.d.ts.map +1 -1
  1091. package/dist/src/services/upload-zip.js +19 -81
  1092. package/dist/src/services/upload-zip.js.map +1 -1
  1093. package/dist/src/services/web-bot-auth.d.ts.map +1 -1
  1094. package/dist/src/services/web-bot-auth.js +1 -0
  1095. package/dist/src/services/web-bot-auth.js.map +1 -1
  1096. package/dist/src/services/workflow/engine-steps.d.ts.map +1 -1
  1097. package/dist/src/services/workflow/engine-steps.js +12 -6
  1098. package/dist/src/services/workflow/engine-steps.js.map +1 -1
  1099. package/dist/src/services/workspace-export.d.ts.map +1 -1
  1100. package/dist/src/services/workspace-export.js +5 -2
  1101. package/dist/src/services/workspace-export.js.map +1 -1
  1102. package/dist/src/services/workspace-import.d.ts.map +1 -1
  1103. package/dist/src/services/workspace-import.js +2 -1
  1104. package/dist/src/services/workspace-import.js.map +1 -1
  1105. package/dist/src/services/workspace-meta.d.ts +15 -0
  1106. package/dist/src/services/workspace-meta.d.ts.map +1 -1
  1107. package/dist/src/services/workspace-meta.js +17 -0
  1108. package/dist/src/services/workspace-meta.js.map +1 -1
  1109. package/dist/src/services/workspace-provision.d.ts +3 -0
  1110. package/dist/src/services/workspace-provision.d.ts.map +1 -1
  1111. package/dist/src/services/workspace-provision.js +5 -3
  1112. package/dist/src/services/workspace-provision.js.map +1 -1
  1113. package/dist/src/services/workspace-versions.d.ts.map +1 -1
  1114. package/dist/src/services/workspace-versions.js +0 -0
  1115. package/dist/src/services/workspace-versions.js.map +1 -1
  1116. package/dist/src/storage/providers/postgres-kysely/db-types.d.ts +5 -0
  1117. package/dist/src/storage/providers/postgres-kysely/db-types.d.ts.map +1 -1
  1118. package/dist/src/storage/providers/postgres-kysely/helpers.d.ts +11 -0
  1119. package/dist/src/storage/providers/postgres-kysely/helpers.d.ts.map +1 -1
  1120. package/dist/src/storage/providers/postgres-kysely/helpers.js +14 -0
  1121. package/dist/src/storage/providers/postgres-kysely/helpers.js.map +1 -1
  1122. package/dist/src/storage/providers/postgres-kysely/methods/app-grants.d.ts +2 -1
  1123. package/dist/src/storage/providers/postgres-kysely/methods/app-grants.d.ts.map +1 -1
  1124. package/dist/src/storage/providers/postgres-kysely/methods/app-grants.js +16 -0
  1125. package/dist/src/storage/providers/postgres-kysely/methods/app-grants.js.map +1 -1
  1126. package/dist/src/storage/providers/postgres-kysely/methods/capabilities.js +3 -3
  1127. package/dist/src/storage/providers/postgres-kysely/methods/capabilities.js.map +1 -1
  1128. package/dist/src/storage/providers/postgres-kysely/methods/ecosystem.js +3 -3
  1129. package/dist/src/storage/providers/postgres-kysely/methods/ecosystem.js.map +1 -1
  1130. package/dist/src/storage/providers/postgres-kysely/methods/federation.d.ts.map +1 -1
  1131. package/dist/src/storage/providers/postgres-kysely/methods/federation.js +12 -10
  1132. package/dist/src/storage/providers/postgres-kysely/methods/federation.js.map +1 -1
  1133. package/dist/src/storage/providers/postgres-kysely/methods/identity.d.ts.map +1 -1
  1134. package/dist/src/storage/providers/postgres-kysely/methods/identity.js +26 -12
  1135. package/dist/src/storage/providers/postgres-kysely/methods/identity.js.map +1 -1
  1136. package/dist/src/storage/providers/postgres-kysely/methods/marketplace.js +5 -5
  1137. package/dist/src/storage/providers/postgres-kysely/methods/marketplace.js.map +1 -1
  1138. package/dist/src/storage/providers/postgres-kysely/methods/memory.d.ts +2 -0
  1139. package/dist/src/storage/providers/postgres-kysely/methods/memory.d.ts.map +1 -1
  1140. package/dist/src/storage/providers/postgres-kysely/methods/memory.js +12 -1
  1141. package/dist/src/storage/providers/postgres-kysely/methods/memory.js.map +1 -1
  1142. package/dist/src/storage/providers/postgres-kysely/methods/node-ext-escrow.d.ts +9 -0
  1143. package/dist/src/storage/providers/postgres-kysely/methods/node-ext-escrow.d.ts.map +1 -1
  1144. package/dist/src/storage/providers/postgres-kysely/methods/node-ext-escrow.js +31 -27
  1145. package/dist/src/storage/providers/postgres-kysely/methods/node-ext-escrow.js.map +1 -1
  1146. package/dist/src/storage/providers/postgres-kysely/methods/organisms.d.ts.map +1 -1
  1147. package/dist/src/storage/providers/postgres-kysely/methods/organisms.js +15 -15
  1148. package/dist/src/storage/providers/postgres-kysely/methods/organisms.js.map +1 -1
  1149. package/dist/src/storage/providers/postgres-kysely/methods/otk.js +3 -3
  1150. package/dist/src/storage/providers/postgres-kysely/methods/otk.js.map +1 -1
  1151. package/dist/src/storage/providers/postgres-kysely/methods/packages.d.ts.map +1 -1
  1152. package/dist/src/storage/providers/postgres-kysely/methods/packages.js +4 -14
  1153. package/dist/src/storage/providers/postgres-kysely/methods/packages.js.map +1 -1
  1154. package/dist/src/storage/providers/postgres-kysely/methods/template-listings.d.ts.map +1 -1
  1155. package/dist/src/storage/providers/postgres-kysely/methods/template-listings.js +11 -10
  1156. package/dist/src/storage/providers/postgres-kysely/methods/template-listings.js.map +1 -1
  1157. package/dist/src/storage/providers/postgres-kysely/methods/wallet.d.ts.map +1 -1
  1158. package/dist/src/storage/providers/postgres-kysely/methods/wallet.js +3 -1
  1159. package/dist/src/storage/providers/postgres-kysely/methods/wallet.js.map +1 -1
  1160. package/dist/src/storage/providers/postgres-kysely/migrate.d.ts.map +1 -1
  1161. package/dist/src/storage/providers/postgres-kysely/migrate.js +3 -0
  1162. package/dist/src/storage/providers/postgres-kysely/migrate.js.map +1 -1
  1163. package/dist/src/storage/providers/postgres-kysely/migrations/0012_unique_live_app_grant.sql +29 -0
  1164. package/dist/src/storage/providers/postgres-kysely/migrations/0013_ghii_password_lockout.sql +12 -0
  1165. package/dist/src/storage/providers/postgres-kysely/migrations/0014_transaction_initiator.sql +6 -0
  1166. package/dist/src/storage/providers/postgres-kysely/migrations/0015_app_grant_spend_cap.sql +5 -0
  1167. package/dist/src/storage/providers/sqlite/methods/apps.d.ts +4 -1
  1168. package/dist/src/storage/providers/sqlite/methods/apps.d.ts.map +1 -1
  1169. package/dist/src/storage/providers/sqlite/methods/apps.js +19 -2
  1170. package/dist/src/storage/providers/sqlite/methods/apps.js.map +1 -1
  1171. package/dist/src/storage/providers/sqlite/methods/community.d.ts.map +1 -1
  1172. package/dist/src/storage/providers/sqlite/methods/community.js +6 -1
  1173. package/dist/src/storage/providers/sqlite/methods/community.js.map +1 -1
  1174. package/dist/src/storage/providers/sqlite/methods/governance.d.ts +1 -0
  1175. package/dist/src/storage/providers/sqlite/methods/governance.d.ts.map +1 -1
  1176. package/dist/src/storage/providers/sqlite/methods/governance.js +4 -1
  1177. package/dist/src/storage/providers/sqlite/methods/governance.js.map +1 -1
  1178. package/dist/src/storage/providers/sqlite/methods/identity-nodes.d.ts.map +1 -1
  1179. package/dist/src/storage/providers/sqlite/methods/identity-nodes.js +9 -2
  1180. package/dist/src/storage/providers/sqlite/methods/identity-nodes.js.map +1 -1
  1181. package/dist/src/storage/providers/sqlite/methods/owner.d.ts +5 -0
  1182. package/dist/src/storage/providers/sqlite/methods/owner.d.ts.map +1 -1
  1183. package/dist/src/storage/providers/sqlite/methods/owner.js +8 -0
  1184. package/dist/src/storage/providers/sqlite/methods/owner.js.map +1 -1
  1185. package/dist/src/storage/providers/sqlite/methods/work.d.ts.map +1 -1
  1186. package/dist/src/storage/providers/sqlite/methods/work.js +4 -2
  1187. package/dist/src/storage/providers/sqlite/methods/work.js.map +1 -1
  1188. package/dist/src/storage/providers/sqlite/repos/community.d.ts.map +1 -1
  1189. package/dist/src/storage/providers/sqlite/repos/community.js +6 -1
  1190. package/dist/src/storage/providers/sqlite/repos/community.js.map +1 -1
  1191. package/dist/src/storage/providers/sqlite/repos/identity.d.ts +3 -0
  1192. package/dist/src/storage/providers/sqlite/repos/identity.d.ts.map +1 -1
  1193. package/dist/src/storage/providers/sqlite/repos/identity.js +13 -4
  1194. package/dist/src/storage/providers/sqlite/repos/identity.js.map +1 -1
  1195. package/dist/src/storage/providers/sqlite/repos/work.d.ts.map +1 -1
  1196. package/dist/src/storage/providers/sqlite/repos/work.js +4 -2
  1197. package/dist/src/storage/providers/sqlite/repos/work.js.map +1 -1
  1198. package/dist/src/storage/providers/sqlite/schema-tables-1.d.ts.map +1 -1
  1199. package/dist/src/storage/providers/sqlite/schema-tables-1.js +1 -0
  1200. package/dist/src/storage/providers/sqlite/schema-tables-1.js.map +1 -1
  1201. package/dist/src/storage/providers/sqlite/schema-tables-2.d.ts.map +1 -1
  1202. package/dist/src/storage/providers/sqlite/schema-tables-2.js +2 -0
  1203. package/dist/src/storage/providers/sqlite/schema-tables-2.js.map +1 -1
  1204. package/dist/src/storage/providers/sqlite/schema.d.ts +3 -0
  1205. package/dist/src/storage/providers/sqlite/schema.d.ts.map +1 -1
  1206. package/dist/src/storage/providers/sqlite/schema.js +34 -1
  1207. package/dist/src/storage/providers/sqlite/schema.js.map +1 -1
  1208. package/dist/src/storage/repositories/app-grant.repository.d.ts +10 -2
  1209. package/dist/src/storage/repositories/app-grant.repository.d.ts.map +1 -1
  1210. package/dist/src/storage/repositories/memory.repository.d.ts +14 -0
  1211. package/dist/src/storage/repositories/memory.repository.d.ts.map +1 -1
  1212. package/dist/src/storage/repositories-impl/memory-repository.d.ts +8 -1
  1213. package/dist/src/storage/repositories-impl/memory-repository.d.ts.map +1 -1
  1214. package/dist/src/storage/repositories-impl/memory-repository.js +15 -4
  1215. package/dist/src/storage/repositories-impl/memory-repository.js.map +1 -1
  1216. package/dist/src/storage/types/agents-messaging.d.ts +19 -0
  1217. package/dist/src/storage/types/agents-messaging.d.ts.map +1 -1
  1218. package/dist/src/storage/types/agents-messaging.js.map +1 -1
  1219. package/dist/src/storage/types/auth.d.ts +9 -0
  1220. package/dist/src/storage/types/auth.d.ts.map +1 -1
  1221. package/dist/src/storage/types/commerce.d.ts +13 -0
  1222. package/dist/src/storage/types/commerce.d.ts.map +1 -1
  1223. package/dist/src/storage/types/organisms-federation.d.ts +29 -0
  1224. package/dist/src/storage/types/organisms-federation.d.ts.map +1 -1
  1225. package/dist/src/utils/app-agent-discovery.d.ts +31 -0
  1226. package/dist/src/utils/app-agent-discovery.d.ts.map +1 -0
  1227. package/dist/src/utils/app-agent-discovery.js +96 -0
  1228. package/dist/src/utils/app-agent-discovery.js.map +1 -0
  1229. package/dist/src/utils/app-badge.d.ts.map +1 -1
  1230. package/dist/src/utils/app-badge.js +7 -3
  1231. package/dist/src/utils/app-badge.js.map +1 -1
  1232. package/dist/src/utils/app-protect.d.ts.map +1 -1
  1233. package/dist/src/utils/app-protect.js +1 -0
  1234. package/dist/src/utils/app-protect.js.map +1 -1
  1235. package/dist/src/utils/env-validator.d.ts.map +1 -1
  1236. package/dist/src/utils/env-validator.js +5 -1
  1237. package/dist/src/utils/env-validator.js.map +1 -1
  1238. package/dist/src/utils/gaii.d.ts +50 -0
  1239. package/dist/src/utils/gaii.d.ts.map +1 -1
  1240. package/dist/src/utils/gaii.js +66 -0
  1241. package/dist/src/utils/gaii.js.map +1 -1
  1242. package/dist/src/utils/url-validator.d.ts.map +1 -1
  1243. package/dist/src/utils/url-validator.js +4 -1
  1244. package/dist/src/utils/url-validator.js.map +1 -1
  1245. package/dist/src/utils/version.d.ts.map +1 -1
  1246. package/dist/src/utils/version.js +1 -0
  1247. package/dist/src/utils/version.js.map +1 -1
  1248. package/dist/static/app-catalog/_template.html +6 -5
  1249. package/dist/static/app-catalog/js/cortex.js +3 -1
  1250. package/dist/static/app-catalog/js/detail.js +411 -36
  1251. package/dist/static/app-catalog/js/i18n-data.js +279 -3
  1252. package/dist/static/app-catalog/js/main.js +28 -37
  1253. package/dist/static/app-catalog/js/monetize.js +204 -16
  1254. package/dist/static/app-catalog/js/odps.js +489 -0
  1255. package/dist/static/app-catalog/js/render.js +3 -0
  1256. package/dist/static/app-catalog/js/workcopy.js +198 -0
  1257. package/dist/static/app-catalog/styles/app-catalog.css +60 -0
  1258. package/dist/static/app-catalog.html +1450 -137
  1259. package/dist/static/sdk-libs/agents/index.js +45 -7
  1260. package/dist/static/sdk-libs/auth/cluster.js +97 -0
  1261. package/dist/static/sdk-libs/auth/index.js +25 -1
  1262. package/dist/static/sdk-libs/auth/locale.js +151 -0
  1263. package/dist/static/sdk-libs/auth/modal.js +11 -2
  1264. package/dist/static/sdk-libs/auth/palette.js +172 -0
  1265. package/dist/static/sdk-libs/auth/pill.js +37 -6
  1266. package/dist/static/sdk-libs/auth/session.js +7 -3
  1267. package/dist/static/sdk-libs/auth/theme.js +61 -20
  1268. package/dist/static/sdk-libs/data/index.js +70 -8
  1269. package/dist/static/sdk-libs/dist/aimeat-agents.js +41 -8
  1270. package/dist/static/sdk-libs/dist/aimeat-auth.js +423 -22
  1271. package/dist/static/sdk-libs/dist/aimeat-data.js +50 -8
  1272. package/dist/static/sdk-libs/dist/aimeat-exchange.js +675 -0
  1273. package/dist/static/sdk-libs/dist/aimeat-game.js +1555 -0
  1274. package/dist/static/sdk-libs/dist/aimeat-live.js +54 -2
  1275. package/dist/static/sdk-libs/dist/aimeat-markdown.js +32 -1
  1276. package/dist/static/sdk-libs/dist/aimeat-webmcp.js +46 -0
  1277. package/dist/static/sdk-libs/exchange/browse.js +81 -0
  1278. package/dist/static/sdk-libs/exchange/client.js +131 -0
  1279. package/dist/static/sdk-libs/exchange/contracts.js +228 -0
  1280. package/dist/static/sdk-libs/exchange/demand.js +106 -0
  1281. package/dist/static/sdk-libs/exchange/earnings.js +39 -0
  1282. package/dist/static/sdk-libs/exchange/format.js +51 -0
  1283. package/dist/static/sdk-libs/exchange/index.js +70 -0
  1284. package/dist/static/sdk-libs/exchange/odps-completeness.js +177 -0
  1285. package/dist/static/sdk-libs/exchange/sell.js +253 -0
  1286. package/dist/static/sdk-libs/game/board.js +331 -0
  1287. package/dist/static/sdk-libs/game/dom.js +223 -0
  1288. package/dist/static/sdk-libs/game/i18n.js +201 -0
  1289. package/dist/static/sdk-libs/game/index.js +72 -0
  1290. package/dist/static/sdk-libs/game/markers.js +150 -0
  1291. package/dist/static/sdk-libs/game/menu.js +260 -0
  1292. package/dist/static/sdk-libs/game/overlay.js +193 -0
  1293. package/dist/static/sdk-libs/game/progress.js +280 -0
  1294. package/dist/static/sdk-libs/game/score.js +134 -0
  1295. package/dist/static/sdk-libs/game/screen.js +120 -0
  1296. package/dist/static/sdk-libs/game/units.js +55 -0
  1297. package/dist/static/sdk-libs/live/index.js +71 -4
  1298. package/dist/static/sdk-libs/markdown/index.js +49 -1
  1299. package/dist/static/sdk-libs/webmcp/index.js +63 -0
  1300. package/package.json +7 -2
@@ -738,7 +738,10 @@ export interface paths {
738
738
  * @description Returns the requesting app and the exact scopes (with descriptions) for the consent UI to
739
739
  * render, plus `app_owner` (the app's owner name) and `origin_bound` (the redirect origin is
740
740
  * verified to be this very app's subdomain) — together these let the consent page auto-approve
741
- * the signed-in owner's OWN app, matching the silent-bridge policy. Unguessable id; no auth.
741
+ * the signed-in owner's OWN app, matching the silent-bridge policy. `app_icon` and
742
+ * `app_description` come from the app manifest and are display-only: they give a first-time
743
+ * visitor something to recognise the app BY, never part of the authorization decision.
744
+ * Unguessable id; no auth.
742
745
  */
743
746
  get: operations["appGrantRequest"];
744
747
  put?: never;
@@ -763,8 +766,9 @@ export interface paths {
763
766
  * @description The owner, authenticated on the apex SPA, approves a pending request. The node mints a
764
767
  * single-use authorization code and returns the app's `redirect_url` (carrying the code +
765
768
  * state) for the browser to navigate back to the app. The optional `scopes` array grants a
766
- * SUBSET of the requested scopes (the "Advanced" picker) values not in the request are
767
- * ignored; omit to grant everything requested.
769
+ * SUBSET of the requested scopes (the consent page's per-scope checkboxes, revealed by "Show
770
+ * the exact permissions") — values not in the request are ignored; omit to grant everything
771
+ * requested.
768
772
  */
769
773
  post: operations["appGrantConsent"];
770
774
  delete?: never;
@@ -1661,6 +1665,26 @@ export interface paths {
1661
1665
  patch?: never;
1662
1666
  trace?: never;
1663
1667
  };
1668
+ "/v1/prompts/build-extension": {
1669
+ parameters: {
1670
+ query?: never;
1671
+ header?: never;
1672
+ path?: never;
1673
+ cookie?: never;
1674
+ };
1675
+ /**
1676
+ * Canonical "build an AIMEAT server extension" prompt
1677
+ * @description The node-served, single-source-of-truth extension-building prompt — the SAME text the profile Extensions tab copies, so the tab, an agentic coder, the node:aimeat-extension-builder skill and llms.txt cannot drift apart. Covers the sandbox ctx surface (memory, fetch, files, caller, config, log, hash, now), the manifest and its input/output schemas, secret config fields, binary file I/O, the `commercial` block that prices an action and the `exchange` flag that lists it on the market, and how to install and activate the result. data.prompt is the complete copy-paste prompt; data.body is the platform core the tab wraps its own header around. Public.
1678
+ */
1679
+ get: operations["getBuildExtensionPrompt"];
1680
+ put?: never;
1681
+ post?: never;
1682
+ delete?: never;
1683
+ options?: never;
1684
+ head?: never;
1685
+ patch?: never;
1686
+ trace?: never;
1687
+ };
1664
1688
  "/v1/prompts/appdev-flow": {
1665
1689
  parameters: {
1666
1690
  query?: never;
@@ -2260,7 +2284,7 @@ export interface paths {
2260
2284
  };
2261
2285
  /**
2262
2286
  * List the caller-owner's EXCHANGE entitlements (EXCHANGE / TARGET-045)
2263
- * @description Every metered entitlement the caller's owner holds as consumer, with live spend + budget. Response `data`: `{ entitlements: [{ entitlement_id, provider, ext, action, unit, price_per_call, rake_percent, contract_ref, state, budget: { cap_units, spent_units, remaining_units, calls } }] }`.
2287
+ * @description Every metered entitlement the caller's owner holds as consumer, with live spend + budget. A right belongs to the HUMAN who pays for it, so one record covers the owner, their agents, their apps and their ecosystem apps alike; `callers` breaks the totals down by the principal that actually made each call. Response `data`: `{ entitlements: [{ entitlement_id, provider, ext, action, unit, price_per_call, rake_percent, contract_ref, state, budget: { cap_units, spent_units, remaining_units, calls }, callers: [{ gaii, calls, spent_units, carried_units, last_used_at }] }] }`.
2264
2288
  */
2265
2289
  get: operations["exchangeListEntitlements"];
2266
2290
  put?: never;
@@ -2295,6 +2319,90 @@ export interface paths {
2295
2319
  patch?: never;
2296
2320
  trace?: never;
2297
2321
  };
2322
+ "/v1/app-grants/{grantId}/spend-cap": {
2323
+ parameters: {
2324
+ query?: never;
2325
+ header?: never;
2326
+ path?: never;
2327
+ cookie?: never;
2328
+ };
2329
+ get?: never;
2330
+ put?: never;
2331
+ post?: never;
2332
+ delete?: never;
2333
+ options?: never;
2334
+ head?: never;
2335
+ /**
2336
+ * How much of your money a connected app may spend
2337
+ * @description The `contract:spend` scope answers WHETHER an app may buy on your behalf; this answers how much. A yes with no number is a blank cheque, and until an app could be named apart from its owner the question could not even be asked — an app grant presents the owner's own GHII, so at the money layer a call from an app was indistinguishable from the person's own. Body: `{ cap_morsels: number | null, reset?: boolean }`. GET /v1/app-grants carries the same three fields back (`can_spend`, `spend_cap_morsels`, `spent_morsels`) so Profile > Access can render the dial. `null` removes the ceiling (the scope alone); `0` stops the app spending without withdrawing anything else it was trusted with; `reset: true` puts the counter back to zero. Only morsel charges count against it — money is denominated in micro-units and summing the two into one ceiling would conflate different numbers. Owner-only.
2338
+ */
2339
+ patch: operations["appGrantSetSpendCap"];
2340
+ trace?: never;
2341
+ };
2342
+ "/v1/exchange/entitlements/merge": {
2343
+ parameters: {
2344
+ query?: never;
2345
+ header?: never;
2346
+ path?: never;
2347
+ cookie?: never;
2348
+ };
2349
+ get?: never;
2350
+ put?: never;
2351
+ /**
2352
+ * Fold per-caller rights into the one right their owner holds (operator)
2353
+ * @description Migration for rights minted before they were keyed to the owner. Only the human has a balance — `debitBalance` resolves every agent to its owner before touching a row — so a right keyed to the exact caller left one person holding several contracts for one product, all drawing on the one wallet. Once the key moved to the owner, those caller-keyed records stop resolving and their history would simply stop being found; this carries it across. Calls and spend are summed, each source becomes a row in the surviving record's caller breakdown, and every absorbed record is archived to contract history first. Surviving TERMS are the most recently created ones, because that is the last set the human agreed to; groups where an absorbed record priced differently are flagged `terms_changed`, because that changes what a call costs those callers. Rails are never merged (morsels and money micro-units are different numbers). Defaults to a DRY RUN — pass `{ "dry_run": false }` to apply. Operator-only.
2354
+ */
2355
+ post: operations["exchangeMergeEntitlements"];
2356
+ delete?: never;
2357
+ options?: never;
2358
+ head?: never;
2359
+ patch?: never;
2360
+ trace?: never;
2361
+ };
2362
+ "/v1/exchange/grants": {
2363
+ parameters: {
2364
+ query?: never;
2365
+ header?: never;
2366
+ path?: never;
2367
+ cookie?: never;
2368
+ };
2369
+ /**
2370
+ * Everyone you are carrying, and what it has cost you
2371
+ * @description Every grant the caller's owner has ISSUED, with the accumulated cost of each. `?app_id=` narrows to the grants one app's approvals created. Response `data`: `{ grants: [{ consumer_gaii, ext, action, capability, list_price_per_call, carried_units, cap_carried_units, reason, state, budget }], count, carried }`, where `carried` totals the cost per rail (morsels / EUR / USD).
2372
+ */
2373
+ get: operations["exchangeListGrants"];
2374
+ put?: never;
2375
+ /**
2376
+ * Carry a consumer's access instead of billing them — issue an EXCHANGE grant
2377
+ * @description The provider decides who may use their capability without paying for it: "only the members I approve may use this app; everyone else pays". A grant is an entitlement priced at zero over the provider's OWN listing, held in its own key space, so it never overwrites a contract the consumer bought and stepping aside returns them to it. It is read at the one settlement chokepoint every metered surface shares, so it holds on the app-tool endpoint, the raw extension route, the MCP twin and the commerce checkout alike. The consumer settles NOTHING in either half of the price — the pacing morsels burn from the PROVIDER's wallet, since a carried member paying the throttle is still a member paying. What the provider is giving away is counted (`carried_units` accumulates the list price per call) and can be bounded (`cap_carried_units`). Requires scope `exchange:grant`, so an app issuing these on an owner's approval must say so. Body: `{ consumer, offering_id, cap_carried_units?, note?, app_id?, reason? }`. Returns `{ grant }`.
2378
+ */
2379
+ post: operations["exchangeIssueGrant"];
2380
+ delete?: never;
2381
+ options?: never;
2382
+ head?: never;
2383
+ patch?: never;
2384
+ trace?: never;
2385
+ };
2386
+ "/v1/exchange/grants/revoke": {
2387
+ parameters: {
2388
+ query?: never;
2389
+ header?: never;
2390
+ path?: never;
2391
+ cookie?: never;
2392
+ };
2393
+ get?: never;
2394
+ put?: never;
2395
+ /**
2396
+ * Withdraw a grant — one, or every grant an app approval issued
2397
+ * @description Immediate: the next call reads a non-active grant and falls back to whatever the consumer bought for themselves, which for most of them is nothing. Two forms — `{ consumer, offering_id }` for one, or `{ app_id, role?, consumer? }` for every grant issued under an approval being taken back, so an app demoting a member does not have to remember each listing. Provider-only; requires scope `exchange:grant`. Returns `{ revoked, grants }`.
2398
+ */
2399
+ post: operations["exchangeRevokeGrant"];
2400
+ delete?: never;
2401
+ options?: never;
2402
+ head?: never;
2403
+ patch?: never;
2404
+ trace?: never;
2405
+ };
2298
2406
  "/v1/exchange/proposals": {
2299
2407
  parameters: {
2300
2408
  query?: never;
@@ -2419,6 +2527,26 @@ export interface paths {
2419
2527
  patch?: never;
2420
2528
  trace?: never;
2421
2529
  };
2530
+ "/v1/exchange/earnings": {
2531
+ parameters: {
2532
+ query?: never;
2533
+ header?: never;
2534
+ path?: never;
2535
+ cookie?: never;
2536
+ };
2537
+ /**
2538
+ * What you have EARNED and not yet been paid — the seller's accrued payables (EXCHANGE / TARGET-045)
2539
+ * @description A money-priced metered call settles through the ACCRUAL rail: no per-call PSP charge and no custodial escrow — each call books the seller's net (price − platform rake) as a `pending` payable. This reads that book for the caller. Owner-scoped by the money identity (the same key the wallet uses), so an owner's agent or a granted app reads the OWNER's earnings and never another seller's; `wallet:read` gates non-owner principals. Returns `{ seller, currencies: { EUR: { pending, settled, total, entries } }, entries: [{ tracking_code, amount, currency, method, status, at, reference, buyer }], count, note }` — amounts in the currency's integer micro-units. READ-ONLY: it does not pay out, invoice, or move an entry from `pending` to `settled`.
2540
+ */
2541
+ get: operations["exchangeEarnings"];
2542
+ put?: never;
2543
+ post?: never;
2544
+ delete?: never;
2545
+ options?: never;
2546
+ head?: never;
2547
+ patch?: never;
2548
+ trace?: never;
2549
+ };
2422
2550
  "/v1/exchange/work": {
2423
2551
  parameters: {
2424
2552
  query?: never;
@@ -2516,18 +2644,81 @@ export interface paths {
2516
2644
  };
2517
2645
  /**
2518
2646
  * One EXCHANGE offering's full detail — I/O schema, call recipe, usage stats (public) (TARGET-045)
2519
- * @description Everything a human or agent needs to judge fit and integrate: the offering, the capability's `input_schema`/`output_schema`, a `call_recipe` (the contract IS the access — you call `POST /v1/ext/{ext}/{action}` as yourself, no separate API key), and usage `stats` (reputation). Public. Returns `{ offering, capability, call_recipe, stats }`.
2647
+ * @description Everything a human or agent needs to judge fit and integrate: the offering, the capability's `input_schema`/`output_schema`, a `call_recipe` (the contract IS the access — you call `POST /v1/ext/{ext}/{action}` as yourself, no separate API key), and usage `stats` (reputation). Public. Returns `{ offering, capability, call_recipe, stats, pacing, odps }`. `pacing.toll_morsels` is the morsel BURN each call costs the consumer to bound consumption rate — not a price: nobody is credited it, and calling your own capability is free. `pacing.source` is `capability` when the provider declared it (`tollMorsels` on the tool/action/offer) and `node` when the node default applies. `odps` points at the same listing rendered as an Open Data Product Specification v4.1 document.
2520
2648
  */
2521
2649
  get: operations["exchangeOfferingDetail"];
2522
2650
  put?: never;
2523
2651
  post?: never;
2524
- /** Delist one of your EXCHANGE offerings (TARGET-045) */
2652
+ /**
2653
+ * Delist one of your EXCHANGE offerings (TARGET-045)
2654
+ * @description Delists a hand-authored listing. A PROJECTED listing (`auto: true`, TARGET-050) exists because its SOURCE says so — the app-tool manifest's `exchange` flag, the extension action's `commercial.exchange`, or the agent offer's `exchange` — so delisting it here would simply come back on the next reconcile: this returns 409 `SOURCE_MANAGED` and names the source to turn off instead. Pass `?force=1` to delist anyway (until the next reconcile). Delisting never affects a CONTRACT.
2655
+ */
2525
2656
  delete: operations["exchangeDelistOffering"];
2526
2657
  options?: never;
2527
2658
  head?: never;
2528
2659
  patch?: never;
2529
2660
  trace?: never;
2530
2661
  };
2662
+ "/v1/exchange/offerings/{id}/odps": {
2663
+ parameters: {
2664
+ query?: never;
2665
+ header?: never;
2666
+ path?: never;
2667
+ cookie?: never;
2668
+ };
2669
+ /**
2670
+ * One EXCHANGE offering as an Open Data Product Specification v4.1 document (public) (TARGET-045)
2671
+ * @description The listing rendered in the Linux Foundation's **Open Data Product Specification** (ODPS) v4.1 — the interoperable descriptor an outside catalogue or a negotiating agent can read without knowing anything about AIMEAT. Derived on read from the offering (never stored in ODPS form), so it cannot drift from the listing it describes. Carries `product.details`, `dataAccess` (the metered REST call plus the MCP surface), `pricingPlans` (base price + every bundle/subscription plan), `license` (AIMEAT usage terms as ODPS rights + restrictions), `dataHolder`, `paymentGateways`, and — when the provider committed to them — `SLA` and `dataQuality`. AIMEAT-specific truth (metered coordinate, pinned interface + I/O schema, call recipe, provenance, projection source, OBSERVED usage) travels under `product.x-aimeat`, which keeps the document valid against the official ODPS schema. Returns `{ odps_version, odps }` in the AIMEAT envelope; `?format=yaml` serves the raw YAML instead.
2672
+ */
2673
+ get: operations["exchangeOfferingOdps"];
2674
+ put?: never;
2675
+ post?: never;
2676
+ delete?: never;
2677
+ options?: never;
2678
+ head?: never;
2679
+ patch?: never;
2680
+ trace?: never;
2681
+ };
2682
+ "/v1/exchange/offerings/{id}/odps.yaml": {
2683
+ parameters: {
2684
+ query?: never;
2685
+ header?: never;
2686
+ path?: never;
2687
+ cookie?: never;
2688
+ };
2689
+ /**
2690
+ * One EXCHANGE offering as an ODPS v4.1 YAML document (public) (TARGET-045)
2691
+ * @description Same document as `GET /v1/exchange/offerings/{id}/odps`, served raw as `text/yaml` — the format the Open Data Product Specification leads with, so the URL can be handed straight to an ODPS-aware tool.
2692
+ */
2693
+ get: operations["exchangeOfferingOdpsYaml"];
2694
+ put?: never;
2695
+ post?: never;
2696
+ delete?: never;
2697
+ options?: never;
2698
+ head?: never;
2699
+ patch?: never;
2700
+ trace?: never;
2701
+ };
2702
+ "/v1/exchange/reconcile": {
2703
+ parameters: {
2704
+ query?: never;
2705
+ header?: never;
2706
+ path?: never;
2707
+ cookie?: never;
2708
+ };
2709
+ get?: never;
2710
+ put?: never;
2711
+ /**
2712
+ * Reconcile your EXCHANGE listings against their sources (TARGET-050)
2713
+ * @description The EXCHANGE listing is a PROJECTION of its source: an app-tool manifest entry with `exchange: true`, an extension action with `commercial.exchange: true`, or an agent offer with `exchange: true` (and visibility `public`). Writing any of those projects it automatically — this is the explicit handle. `dry_run` reports what WOULD change and writes nothing (not even an interface snapshot). `migrate` adopts hand-authored listings into the model: it flips the flag ON in their source and keeps their `offeringId`, so existing entitlements referencing `offering:{id}` keep resolving; a listing whose source is gone is reported as an orphan and left untouched. Scope a run with `app_id`/`ext`/`agent`. Idempotent. A CONTRACT is never touched — entitlements keep the interface version and the price they were signed at. Returns `{ owner, dryRun, changes[], created, updated, adopted, delisted, unchanged, skipped }` (+ `orphans`, `flagged` when migrating); each change carries `action`, `offeringId`, `kind`, `label`, `unit`, `currency` and, for a skip, the `reason` (SCHEMA_REQUIRED, NOT_PRICED, TOOL_UNBOUND, NOT_PUBLIC, INVALID_TOOL_MANIFEST, INVALID_OFFERS_DOC).
2714
+ */
2715
+ post: operations["exchangeReconcileOfferings"];
2716
+ delete?: never;
2717
+ options?: never;
2718
+ head?: never;
2719
+ patch?: never;
2720
+ trace?: never;
2721
+ };
2531
2722
  "/v1/exchange/offerings/{id}/consumers": {
2532
2723
  parameters: {
2533
2724
  query?: never;
@@ -3284,7 +3475,14 @@ export interface paths {
3284
3475
  /** List storage items */
3285
3476
  get: operations["listStorage"];
3286
3477
  put?: never;
3287
- /** Upload file */
3478
+ /**
3479
+ * Upload file
3480
+ * @description Three request shapes. Prefer **presigned** for anything over ~1 KB: JSON with
3481
+ * `mode: "presigned"` stores no bytes and answers with an `upload_url` to `PUT` the raw file to
3482
+ * (see `PUT /v1/upload/{token}`). The inline JSON form base64-encodes the file into the request
3483
+ * body, which inflates it by 4/3 and must therefore fit inside the node's JSON body limit — a
3484
+ * ceiling separate from, and usually lower than, the storage quota.
3485
+ */
3288
3486
  post: operations["uploadFile"];
3289
3487
  delete?: never;
3290
3488
  options?: never;
@@ -3322,6 +3520,8 @@ export interface paths {
3322
3520
  /**
3323
3521
  * Download file
3324
3522
  * @description Returns raw bytes by default (supports Range headers for partial downloads). With `mode=handle`, returns a JSON handle (resource_uri + presigned, TTL-limited download_url + metadata) instead of bytes — used by MCP clients so binary content never enters the model context. With `mode=inline`, returns small (<= 32 KB) text files inline as JSON; larger or non-text files are rejected with 413.
3523
+ *
3524
+ * Scope: this route reads the CALLER's own namespace only — files are keyed by (owner, key), so a file owned by anyone else is absent here and answers 404. To read a file someone else owns (an owner's upload for one of their agents, a DM or task attachment, a group/workspace share) use `GET /v1/pub/{gaii}/{key}`, which runs the consent/visibility guard.
3325
3525
  */
3326
3526
  get: operations["downloadFile"];
3327
3527
  put?: never;
@@ -4514,6 +4714,74 @@ export interface paths {
4514
4714
  patch?: never;
4515
4715
  trace?: never;
4516
4716
  };
4717
+ "/v1/commerce/payout": {
4718
+ parameters: {
4719
+ query?: never;
4720
+ header?: never;
4721
+ path?: never;
4722
+ cookie?: never;
4723
+ };
4724
+ /**
4725
+ * Which payout rails can pay you, and what each needs (owner) (TARGET-042)
4726
+ * @description The seller's settlement rails reported apart, because they are different things: **Stripe** moves real currency (EUR/USD) onto YOUR OWN Stripe account using the secret key you brought (you are the merchant of record; the node holds neither key nor funds), **x402** settles a stablecoin on-chain straight to an address you control, and **invoice** captures nothing at all and books the obligation for you to bill offline. Returns `{ x402: { enabled, network, testnet, configured, address, currencies, assets, note }, stripe: { configured, provider, keyHint, currencies, note }, invoice: { available, currencies, note } }`. `currencies` and `assets` are READ FROM THE NODE'S NETWORK REGISTRY, so they list only what this node can really settle: `assets` carries `{ currency, symbol, address, decimals }` per settleable currency (USD → USDC, EUR → EURC on the Base networks). ONE payout address receives every asset. A money sale over x402 with no address fails with SELLER_NO_X402_ADDRESS — this is the read that tells you before it happens.
4727
+ */
4728
+ get: operations["commercePayoutStatus"];
4729
+ put?: never;
4730
+ post?: never;
4731
+ delete?: never;
4732
+ options?: never;
4733
+ head?: never;
4734
+ patch?: never;
4735
+ trace?: never;
4736
+ };
4737
+ "/v1/commerce/payout/x402": {
4738
+ parameters: {
4739
+ query?: never;
4740
+ header?: never;
4741
+ path?: never;
4742
+ cookie?: never;
4743
+ };
4744
+ get?: never;
4745
+ /**
4746
+ * Set your stablecoin (x402) payout address (owner) (TARGET-042)
4747
+ * @description Stores the EVM account address a stablecoin sale settles to. ONE address receives every settlement asset the node's network carries (USDC for a USD price, EURC for a EUR one), so there is no per-currency setting. MERGED into your payment-settings record: your Stripe credentials in the same record are untouched (and the reverse holds — setting Stripe no longer clears this). 400 INVALID_ADDRESS unless the value is `0x` + 40 hex characters. Responds `{ configured, address, network, currencies, enabled, checked }`, where `currencies` is what this node can actually settle to that address.
4748
+ */
4749
+ put: operations["commercePayoutX402Set"];
4750
+ post?: never;
4751
+ /**
4752
+ * Remove your stablecoin (x402) payout address (owner) (TARGET-042)
4753
+ * @description Clears only the payout address. Card and invoice settlement through your Stripe credentials is unaffected; stablecoin sales (USDC and EURC alike) fail until an address is set again.
4754
+ */
4755
+ delete: operations["commercePayoutX402Clear"];
4756
+ options?: never;
4757
+ head?: never;
4758
+ patch?: never;
4759
+ trace?: never;
4760
+ };
4761
+ "/v1/commerce/payout/stripe": {
4762
+ parameters: {
4763
+ query?: never;
4764
+ header?: never;
4765
+ path?: never;
4766
+ cookie?: never;
4767
+ };
4768
+ get?: never;
4769
+ /**
4770
+ * Set your own Stripe secret key for card settlement (owner)
4771
+ * @description Stores the Stripe secret key that card sales of YOUR items settle on. There is no node-level or platform key: the charge runs on your account, you are the merchant of record, Stripe did your KYC, and this node holds neither the funds nor a claim on them. MERGED into your payment-settings record, so your x402 payout address is untouched. The secret is stored server-side and is NEVER returned by any endpoint; reads report only `keyHint` (last four characters). 400 INVALID_PSP unless `secret_key` is 8-200 characters. Responds `{ configured, provider, keyHint, note }`.
4772
+ */
4773
+ put: operations["commercePayoutStripeSet"];
4774
+ post?: never;
4775
+ /**
4776
+ * Remove your Stripe credentials (owner)
4777
+ * @description Clears only the Stripe credentials. Your x402 payout address is untouched and invoice settlement still works; card sales fail with PSP_NOT_CONFIGURED until credentials are set again.
4778
+ */
4779
+ delete: operations["commercePayoutStripeClear"];
4780
+ options?: never;
4781
+ head?: never;
4782
+ patch?: never;
4783
+ trace?: never;
4784
+ };
4517
4785
  "/v1/commerce/checkout-sessions": {
4518
4786
  parameters: {
4519
4787
  query?: never;
@@ -4642,7 +4910,7 @@ export interface paths {
4642
4910
  };
4643
4911
  /**
4644
4912
  * WebMCP-shaped tool listing of an app (public)
4645
- * @description The app's PUBLIC apps.{appId}.tools manifest served as WebMCP tool descriptors (name, description, inputSchema — the fields document.modelContext.registerTool takes) plus the AIMEAT payment contract per tool: fulfillment 'call' | 'task', and for priced tools the morsel/micro-unit money price with a ready-made checkout line item. The page itself registers the same tools in-browser via /v1/libs/aimeat-webmcp.js. 404 when the app declares no public manifest (TARGET-034 phase C).
4913
+ * @description The app's PUBLIC apps.{appId}.tools manifest served as WebMCP tool descriptors (name, description, inputSchema — the fields document.modelContext.registerTool takes) plus the AIMEAT payment contract per tool: fulfillment 'call' | 'task', and for priced tools the morsel/micro-unit money price with a ready-made checkout line item. The page itself registers the same tools in-browser via /v1/libs/aimeat-webmcp.js (TARGET-034 phase C). Also carries `app_surface`: the app's public agent-facing description — declared scopes, SKILL.md packs bound to the app, bundled crew-defs, and live EXCHANGE listings for its tools. A published app with no public tool manifest answers 200 with an empty `tools` array (and a manifest for an app this node does not host still lists its tools, without `app_surface`). 404 means neither exists, or the app is access-code gated, priced, or operator-hidden. A PRIVATE manifest reads exactly like an absent one.
4646
4914
  */
4647
4915
  get: operations["appWebmcpListing"];
4648
4916
  put?: never;
@@ -4684,7 +4952,7 @@ export interface paths {
4684
4952
  put?: never;
4685
4953
  /**
4686
4954
  * UCP checkout — create session
4687
- * @description Universal Commerce Protocol (2026-04-08) shaped checkout over the commerce core. Every response carries ucp.version + ucp.capabilities; the UCP-Agent header (platform profile URL) is fetched best-effort for capability negotiation. Item ids: "offer:<agentGaii>:<offerId>" or "org-offering:<owner>/<slug>:<agentGaii>:<offerId>".
4955
+ * @description Universal Commerce Protocol (2026-04-08) shaped checkout over the commerce core. Every response carries ucp.version + ucp.capabilities; the UCP-Agent header (platform profile URL) is fetched best-effort for capability negotiation. Item ids: "offer:<agentGaii>:<offerId>" or "app-tool:<owner>/<appId>:<tool>".
4688
4956
  */
4689
4957
  post: operations["ucpCreateCheckoutSession"];
4690
4958
  delete?: never;
@@ -6103,7 +6371,16 @@ export interface paths {
6103
6371
  path?: never;
6104
6372
  cookie?: never;
6105
6373
  };
6106
- get?: never;
6374
+ /**
6375
+ * Read the app's unpublished draft (staging) content
6376
+ * @description Returns the current draft slot for `{owner}/{filename}` — the base64 content plus its size,
6377
+ * mime type and manifest. Owner-only; the caller is resolved from the token, so a draft is
6378
+ * never readable by anyone else. This is the read side of the draft slot: an editing client
6379
+ * that reloads must be able to load the working copy BACK, otherwise it can only re-fetch the
6380
+ * LIVE bytes and would silently overwrite the draft on its next save. The `?preview=` URL is
6381
+ * not usable for this — on an app-origin node it redirects to the isolated (CORS-less) origin.
6382
+ */
6383
+ get: operations["getAppDraft"];
6107
6384
  /**
6108
6385
  * Save the app's unpublished draft (staging)
6109
6386
  * @description Upserts the single draft slot for `{owner}/{filename}` — the staging copy of the NEXT version.
@@ -6150,6 +6427,37 @@ export interface paths {
6150
6427
  patch?: never;
6151
6428
  trace?: never;
6152
6429
  };
6430
+ "/v1/apps/{owner}/{filename}/frame-token": {
6431
+ parameters: {
6432
+ query?: never;
6433
+ header?: never;
6434
+ path?: never;
6435
+ cookie?: never;
6436
+ };
6437
+ get?: never;
6438
+ put?: never;
6439
+ /**
6440
+ * Mint a frame grant letting ONE origin embed this app
6441
+ * @description Returns a `frame_url` usable as an `iframe` src. An app origin refuses framing by default
6442
+ * (`frame-ancestors 'self' <apex>`); a frame grant widens that by exactly the ONE origin named
6443
+ * in the token, and only for responses carrying it.
6444
+ *
6445
+ * The grant is issued to the CALLING page's `Origin` header — never to an origin supplied in the
6446
+ * body, which would let a page request permission on someone else's behalf. Owner-only: a grant
6447
+ * to frame an app you do not own is a clickjacking primitive. A malformed, expired or
6448
+ * wrong-app grant simply leaves the strict policy in place, so framing fails closed.
6449
+ *
6450
+ * Deliberately one origin per grant rather than a list of allowed origins on the app: a list
6451
+ * grows with how many apps the owner has, and past roughly seventy it overruns a typical reverse
6452
+ * proxy's header buffer and every app origin starts answering 502.
6453
+ */
6454
+ post: operations["mintAppFrameToken"];
6455
+ delete?: never;
6456
+ options?: never;
6457
+ head?: never;
6458
+ patch?: never;
6459
+ trace?: never;
6460
+ };
6153
6461
  "/v1/apps/{owner}/{filename}/publish-draft": {
6154
6462
  parameters: {
6155
6463
  query?: never;
@@ -11172,14 +11480,23 @@ export interface paths {
11172
11480
  };
11173
11481
  /**
11174
11482
  * Download public file
11175
- * @description Download a file by owner GAII and key. Public files need no auth.
11176
- * Non-public files apply the same consent/visibility rules as memory:
11177
- * the caller must hold a matching consent grant or (for `visibility:'group'`)
11178
- * be a member of the file's sharing group; `organism.{id}` grants resolve for
11179
- * active organism members. Every read is written to the consent audit log.
11180
- * An authenticated caller without access gets 403; anonymous/unauthenticated
11181
- * callers get 404 (file existence is hidden on public URLs).
11483
+ * @description Download a file by owner GAII and key. This is the ONE door for reading a file the caller
11484
+ * does not own `GET /v1/storage/{key}` is namespaced to the caller and cannot reach it.
11485
+ * Public files need no auth. Non-public files apply the same consent/visibility rules as
11486
+ * memory: `visibility:'owner'` admits every agent and app of the SAME owner (this is how a
11487
+ * document an owner uploads reaches that owner's own agent upload with `visibility: owner`,
11488
+ * then the agent reads it with its own token), `members` any authenticated node user,
11489
+ * `group`/`workspace` their members, and a private file only with a matching consent grant;
11490
+ * `organism.{id}` grants resolve for active organism members. Denied reads are written to the
11491
+ * consent audit log. An authenticated caller without access gets 403; anonymous/
11492
+ * unauthenticated callers get 404 (file existence is hidden on public URLs).
11182
11493
  * Supports wildcard keys with path separators.
11494
+ *
11495
+ * With `mode=handle` the response is a presigned, TTL-limited `download_url` plus metadata
11496
+ * instead of the bytes, so an agent or liaison can hand the URL to a fetch or a document
11497
+ * parser without pulling binary through a tool result. The access decision is identical. A
11498
+ * handle for someone else's file expires sooner (15 min) than one for your own (1 h), so it
11499
+ * cannot long outlive a revoked grant.
11183
11500
  */
11184
11501
  get: operations["getPublicFile"];
11185
11502
  put?: never;
@@ -12961,11 +13278,8 @@ export interface paths {
12961
13278
  /**
12962
13279
  * Get merged agent directives
12963
13280
  * @description Returns the merged view of agent directives combining system defaults,
12964
- * an optional edition-locked enterprise layer (company Secretary on the
12965
- * Enterprise edition), owner defaults, and agent-specific overrides. Rules
12966
- * are ordered by source priority: system, enterprise, owner, agent. The
12967
- * enterprise layer is read-only (`locked:true`); `enterprise_locked` flags
12968
- * its presence.
13281
+ * owner defaults, and agent-specific overrides, ordered by source priority:
13282
+ * system, owner, agent.
12969
13283
  */
12970
13284
  get: operations["getAgentDirectives"];
12971
13285
  /**
@@ -17595,6 +17909,12 @@ export interface components {
17595
17909
  flagCount: number;
17596
17910
  /** @description GAII of the entry owner (included in public reads via /v1/memory/{gaii}/{key}) */
17597
17911
  owner_gaii?: string;
17912
+ /**
17913
+ * @description Owner-scope listings only. Other same-owner identities holding this SAME key. Memory is
17914
+ * keyed by the writer, and an owner-scope read resolves GHII-first, so those copies are
17915
+ * absent from the response — this names them instead of letting the collision be invisible.
17916
+ */
17917
+ also_under?: string[];
17598
17918
  /** @description Data Decision Context — structured metadata for agent decision-making */
17599
17919
  _ddc?: {
17600
17920
  flagCount?: number;
@@ -18971,6 +19291,31 @@ export interface components {
18971
19291
  * @enum {string}
18972
19292
  */
18973
19293
  TaskStatus: "draft" | "queued" | "revision_requested" | "active" | "paused" | "done" | "failed" | "stalled";
19294
+ /** @description One file handed to the agent WITH the task. Only a REFERENCE is stored, never the bytes. On create, `ref` (and optionally `name`) is supplied; the server verifies the file exists and that the CREATOR can read it, then fills `mime` and `size` from the stored file. On read, the entry is authorized again as the READING principal and carries `access` plus a presigned `download_url` when granted — so a revoked grant stops handing out URLs on the next read. */
19295
+ AgentTaskFileRef: {
19296
+ /**
19297
+ * @description "<ownerGaii>/<storage key>" (a bare key means the caller's own storage).
19298
+ * @example alice@aimeat-fi-001-genesis/invoices/2026-07.pdf
19299
+ */
19300
+ ref: string;
19301
+ name?: string;
19302
+ readonly mime?: string;
19303
+ readonly size?: number;
19304
+ /** @enum {string} */
19305
+ readonly access?: "granted" | "denied" | "missing";
19306
+ /** @description Why a non-granted read was refused (e.g. consent_denied, not_found). */
19307
+ readonly reason?: string;
19308
+ /** @description Presigned, TTL-limited GET. Present only when access is granted. */
19309
+ readonly download_url?: string;
19310
+ readonly expires_in_seconds?: number;
19311
+ };
19312
+ /** @description What the agent needs in order to do the task — knowledge, memory, and files. */
19313
+ AgentTaskResources: {
19314
+ knowledge_packages?: string[];
19315
+ memory_keys?: string[];
19316
+ memory_prefixes?: string[];
19317
+ files?: components["schemas"]["AgentTaskFileRef"][];
19318
+ };
18974
19319
  AgentTask: {
18975
19320
  /** Format: uuid */
18976
19321
  id: string;
@@ -18988,6 +19333,7 @@ export interface components {
18988
19333
  createdAt: string;
18989
19334
  /** Format: date-time */
18990
19335
  updatedAt: string;
19336
+ resources?: components["schemas"]["AgentTaskResources"];
18991
19337
  /** @description Memory key (agent namespace) where the task's deliverable was published, if any. */
18992
19338
  deliverableKey?: string;
18993
19339
  rating?: components["schemas"]["AgentTaskRating"];
@@ -19030,14 +19376,10 @@ export interface components {
19030
19376
  };
19031
19377
  AgentDirectives: {
19032
19378
  purpose?: string;
19033
- /** @description True when an edition-locked enterprise directive layer is present (a company Secretary on the AIMEAT Enterprise edition). Such rules carry source 'enterprise' + locked:true and are read-only. */
19034
- enterprise_locked?: boolean;
19035
19379
  rules?: {
19036
19380
  text?: string;
19037
19381
  /** @enum {string} */
19038
- source?: "system" | "enterprise" | "owner" | "agent";
19039
- /** @description True for read-only enterprise-layer rules (cannot be edited via PUT). */
19040
- locked?: boolean;
19382
+ source?: "system" | "owner" | "agent";
19041
19383
  }[];
19042
19384
  memoryAreas?: {
19043
19385
  key?: string;
@@ -22859,6 +23201,33 @@ export interface operations {
22859
23201
  };
22860
23202
  };
22861
23203
  };
23204
+ getBuildExtensionPrompt: {
23205
+ parameters: {
23206
+ query?: {
23207
+ /** @description Language for the built extension's own user-facing text; the instructions stay English */
23208
+ lang?: "en" | "fi";
23209
+ /** @description The account the extension will be installed for, so namespaces read concretely (defaults to the caller when authenticated) */
23210
+ owner?: string;
23211
+ /** @description What the extension should do, embedded in the prompt header */
23212
+ idea?: string;
23213
+ /** @description txt returns the full prompt as text/plain instead of the JSON envelope */
23214
+ format?: "txt";
23215
+ };
23216
+ header?: never;
23217
+ path?: never;
23218
+ cookie?: never;
23219
+ };
23220
+ requestBody?: never;
23221
+ responses: {
23222
+ /** @description The extension build prompt (JSON envelope with prompt + body, or text/plain with format=txt) */
23223
+ 200: {
23224
+ headers: {
23225
+ [name: string]: unknown;
23226
+ };
23227
+ content?: never;
23228
+ };
23229
+ };
23230
+ };
22862
23231
  getAppdevFlowPrompt: {
22863
23232
  parameters: {
22864
23233
  query?: {
@@ -23911,6 +24280,136 @@ export interface operations {
23911
24280
  404: components["responses"]["AimeatError"];
23912
24281
  };
23913
24282
  };
24283
+ appGrantSetSpendCap: {
24284
+ parameters: {
24285
+ query?: never;
24286
+ header?: never;
24287
+ path: {
24288
+ grantId: string;
24289
+ };
24290
+ cookie?: never;
24291
+ };
24292
+ requestBody: {
24293
+ content: {
24294
+ "application/json": {
24295
+ /** @description Ceiling in morsels across the life of the grant. null removes it. */
24296
+ cap_morsels?: number | null;
24297
+ /** @description Put the spent counter back to zero. */
24298
+ reset?: boolean;
24299
+ };
24300
+ };
24301
+ };
24302
+ responses: {
24303
+ 200: components["responses"]["AimeatSuccess"];
24304
+ 400: components["responses"]["AimeatError"];
24305
+ 401: components["responses"]["AimeatError"];
24306
+ 404: components["responses"]["AimeatError"];
24307
+ };
24308
+ };
24309
+ exchangeMergeEntitlements: {
24310
+ parameters: {
24311
+ query?: never;
24312
+ header?: never;
24313
+ path?: never;
24314
+ cookie?: never;
24315
+ };
24316
+ requestBody?: {
24317
+ content: {
24318
+ "application/json": {
24319
+ /**
24320
+ * @description Report what would be merged without writing.
24321
+ * @default true
24322
+ */
24323
+ dry_run?: boolean;
24324
+ };
24325
+ };
24326
+ };
24327
+ responses: {
24328
+ 200: components["responses"]["AimeatSuccess"];
24329
+ 401: components["responses"]["AimeatError"];
24330
+ 403: components["responses"]["AimeatError"];
24331
+ };
24332
+ };
24333
+ exchangeListGrants: {
24334
+ parameters: {
24335
+ query?: {
24336
+ /** @description Only grants issued under this app's approvals. */
24337
+ app_id?: string;
24338
+ };
24339
+ header?: never;
24340
+ path?: never;
24341
+ cookie?: never;
24342
+ };
24343
+ requestBody?: never;
24344
+ responses: {
24345
+ 200: components["responses"]["AimeatSuccess"];
24346
+ 401: components["responses"]["AimeatError"];
24347
+ };
24348
+ };
24349
+ exchangeIssueGrant: {
24350
+ parameters: {
24351
+ query?: never;
24352
+ header?: never;
24353
+ path?: never;
24354
+ cookie?: never;
24355
+ };
24356
+ requestBody: {
24357
+ content: {
24358
+ "application/json": {
24359
+ /** @description The principal to carry — an owner name, their GHII, or one of their agents' GAII. Must resolve on this node; a name that no call would ever match is rejected rather than stored. */
24360
+ consumer: string;
24361
+ /** @description The provider's own listed offering. Someone else's is a 404. */
24362
+ offering_id: string;
24363
+ /** @description Ceiling on what the provider will carry, in the listing's unit. Omit for no ceiling. */
24364
+ cap_carried_units?: number;
24365
+ /** @description Free text the provider records with the approval. */
24366
+ note?: string;
24367
+ /** @description Consuming app id ("owner/filename") for the per-app cost surface. */
24368
+ app_id?: string;
24369
+ /** @description The app + role this grant stands for, so a demotion can withdraw exactly what the approval created. */
24370
+ reason?: {
24371
+ app_id?: string;
24372
+ role?: string;
24373
+ };
24374
+ };
24375
+ };
24376
+ };
24377
+ responses: {
24378
+ 201: components["responses"]["AimeatSuccess"];
24379
+ 400: components["responses"]["AimeatError"];
24380
+ 401: components["responses"]["AimeatError"];
24381
+ 403: components["responses"]["AimeatError"];
24382
+ 404: components["responses"]["AimeatError"];
24383
+ };
24384
+ };
24385
+ exchangeRevokeGrant: {
24386
+ parameters: {
24387
+ query?: never;
24388
+ header?: never;
24389
+ path?: never;
24390
+ cookie?: never;
24391
+ };
24392
+ requestBody: {
24393
+ content: {
24394
+ "application/json": {
24395
+ consumer?: string;
24396
+ /** @description Withdraw one grant; requires consumer. */
24397
+ offering_id?: string;
24398
+ /** @description Withdraw every grant this app's approvals issued. */
24399
+ app_id?: string;
24400
+ /** @description With app_id */
24401
+ role?: string;
24402
+ };
24403
+ };
24404
+ };
24405
+ responses: {
24406
+ 200: components["responses"]["AimeatSuccess"];
24407
+ 400: components["responses"]["AimeatError"];
24408
+ 401: components["responses"]["AimeatError"];
24409
+ 403: components["responses"]["AimeatError"];
24410
+ 404: components["responses"]["AimeatError"];
24411
+ };
24412
+ };
23914
24413
  exchangeListProposals: {
23915
24414
  parameters: {
23916
24415
  query?: never;
@@ -24025,6 +24524,27 @@ export interface operations {
24025
24524
  200: components["responses"]["AimeatSuccess"];
24026
24525
  };
24027
24526
  };
24527
+ exchangeEarnings: {
24528
+ parameters: {
24529
+ query?: {
24530
+ /** @description Only pending (owed) or settled (paid) entries. */
24531
+ status?: "pending" | "settled";
24532
+ /** @description Narrow to one currency (e.g. EUR). */
24533
+ currency?: string;
24534
+ /** @description Max payable records to read (default 200 */
24535
+ limit?: number;
24536
+ };
24537
+ header?: never;
24538
+ path?: never;
24539
+ cookie?: never;
24540
+ };
24541
+ requestBody?: never;
24542
+ responses: {
24543
+ 200: components["responses"]["AimeatSuccess"];
24544
+ 401: components["responses"]["AimeatError"];
24545
+ 403: components["responses"]["AimeatError"];
24546
+ };
24547
+ };
24028
24548
  exchangeListWork: {
24029
24549
  parameters: {
24030
24550
  query?: {
@@ -24154,7 +24674,18 @@ export interface operations {
24154
24674
  plans?: Record<string, never>[];
24155
24675
  title?: string;
24156
24676
  description?: string;
24157
- provenance?: Record<string, never>;
24677
+ /** @description Provider attestation, validated (400 INVALID_PROVENANCE): { source, legalBasis, consentStatus, retention, transformations, snapshotHash (SHA-256), lineage[{source,transform,at}] }. The node stamps odpsVersion. */
24678
+ provenance?: {
24679
+ source?: string;
24680
+ legalBasis?: string;
24681
+ consentStatus?: string;
24682
+ retention?: string;
24683
+ transformations?: string;
24684
+ snapshotHash?: string;
24685
+ lineage?: Record<string, never>[];
24686
+ };
24687
+ /** @description ODPS v4.1 fields the node cannot derive, validated (400 INVALID_ODPS): productType, valueProposition, categories, standards, useCases, contentSample, logoURL, sla[{dimension,objective,unit}], dataQuality[{dimension,objective,unit}], dataHolder{legalName,…}, license{geographicalArea,applicableLaws,exclusive,…}. Surfaced at GET /v1/exchange/offerings/{id}/odps.yaml. */
24688
+ odps?: Record<string, never>;
24158
24689
  tags?: string[];
24159
24690
  usage_terms: {
24160
24691
  derivatives?: boolean;
@@ -24189,7 +24720,29 @@ export interface operations {
24189
24720
  };
24190
24721
  exchangeDelistOffering: {
24191
24722
  parameters: {
24192
- query?: never;
24723
+ query?: {
24724
+ /** @description Delist a source-managed listing anyway (it returns on the next reconcile). */
24725
+ force?: "1";
24726
+ };
24727
+ header?: never;
24728
+ path: {
24729
+ id: string;
24730
+ };
24731
+ cookie?: never;
24732
+ };
24733
+ requestBody?: never;
24734
+ responses: {
24735
+ 200: components["responses"]["AimeatSuccess"];
24736
+ 404: components["responses"]["AimeatError"];
24737
+ 409: components["responses"]["AimeatError"];
24738
+ };
24739
+ };
24740
+ exchangeOfferingOdps: {
24741
+ parameters: {
24742
+ query?: {
24743
+ /** @description Serve the raw ODPS YAML document instead of the JSON envelope. */
24744
+ format?: "yaml";
24745
+ };
24193
24746
  header?: never;
24194
24747
  path: {
24195
24748
  id: string;
@@ -24202,6 +24755,60 @@ export interface operations {
24202
24755
  404: components["responses"]["AimeatError"];
24203
24756
  };
24204
24757
  };
24758
+ exchangeOfferingOdpsYaml: {
24759
+ parameters: {
24760
+ query?: never;
24761
+ header?: never;
24762
+ path: {
24763
+ id: string;
24764
+ };
24765
+ cookie?: never;
24766
+ };
24767
+ requestBody?: never;
24768
+ responses: {
24769
+ /** @description The ODPS v4.1 document. */
24770
+ 200: {
24771
+ headers: {
24772
+ [name: string]: unknown;
24773
+ };
24774
+ content: {
24775
+ "text/yaml": string;
24776
+ };
24777
+ };
24778
+ 404: components["responses"]["AimeatError"];
24779
+ };
24780
+ };
24781
+ exchangeReconcileOfferings: {
24782
+ parameters: {
24783
+ query?: {
24784
+ dry_run?: "1";
24785
+ migrate?: "1";
24786
+ };
24787
+ header?: never;
24788
+ path?: never;
24789
+ cookie?: never;
24790
+ };
24791
+ requestBody?: {
24792
+ content: {
24793
+ "application/json": {
24794
+ /** @description Report only; write nothing. */
24795
+ dry_run?: boolean;
24796
+ /** @description Adopt hand-authored listings (flag their source, keep the offeringId). */
24797
+ migrate?: boolean;
24798
+ /** @description Reconcile only this app's tool manifest. */
24799
+ app_id?: string;
24800
+ /** @description Reconcile only this extension's actions. */
24801
+ ext?: string;
24802
+ /** @description Reconcile only this agent's offers. */
24803
+ agent?: string;
24804
+ };
24805
+ };
24806
+ };
24807
+ responses: {
24808
+ 200: components["responses"]["AimeatSuccess"];
24809
+ 401: components["responses"]["AimeatError"];
24810
+ };
24811
+ };
24205
24812
  exchangeOfferingConsumers: {
24206
24813
  parameters: {
24207
24814
  query?: never;
@@ -25185,6 +25792,17 @@ export interface operations {
25185
25792
  };
25186
25793
  };
25187
25794
  };
25795
+ /**
25796
+ * @description The payload was rejected. `error` carries the reason code from the shared manifest
25797
+ * validator for extension/cortex ZIPs (`INVALID_MANIFEST`, `MISSING_SCRIPT`,
25798
+ * `CODE_TOO_LARGE`, …) and `message` names the offending field.
25799
+ */
25800
+ 400: {
25801
+ headers: {
25802
+ [name: string]: unknown;
25803
+ };
25804
+ content?: never;
25805
+ };
25188
25806
  /** @description Invalid token */
25189
25807
  401: {
25190
25808
  headers: {
@@ -25192,7 +25810,20 @@ export interface operations {
25192
25810
  };
25193
25811
  content?: never;
25194
25812
  };
25195
- /** @description Token already used (single-use) */
25813
+ /**
25814
+ * @description The target already exists and belongs to another owner (extension uploads). The token
25815
+ * subject is what identifies the uploader; ownership is always checked.
25816
+ */
25817
+ 403: {
25818
+ headers: {
25819
+ [name: string]: unknown;
25820
+ };
25821
+ content?: never;
25822
+ };
25823
+ /**
25824
+ * @description Token already used (single-use), or — for an extension upload without `update:true` in
25825
+ * the token meta — an extension of that name is already installed (`ALREADY_EXISTS`).
25826
+ */
25196
25827
  409: {
25197
25828
  headers: {
25198
25829
  [name: string]: unknown;
@@ -25206,13 +25837,39 @@ export interface operations {
25206
25837
  };
25207
25838
  content?: never;
25208
25839
  };
25209
- /** @description File exceeds size limit encoded in token */
25840
+ /**
25841
+ * @description `FILE_TOO_LARGE` — the body exceeds the per-file size limit encoded in the token, or
25842
+ * `QUOTA_EXCEEDED` — a storage upload would put the account over its total storage quota
25843
+ * (the same gate the inline `POST /v1/storage` applies; the token's limit caps one file,
25844
+ * the quota caps the account).
25845
+ */
25210
25846
  413: {
25211
25847
  headers: {
25212
25848
  [name: string]: unknown;
25213
25849
  };
25214
25850
  content?: never;
25215
25851
  };
25852
+ /**
25853
+ * @description Processing failed. The body carries a `reason` naming the failure. An extension upsert
25854
+ * whose storage write did not apply answers `UPDATE_FAILED` and states that the installed
25855
+ * version is unchanged — this endpoint never reports an unapplied write as success.
25856
+ */
25857
+ 500: {
25858
+ headers: {
25859
+ [name: string]: unknown;
25860
+ };
25861
+ content?: never;
25862
+ };
25863
+ /**
25864
+ * @description The manifest declares `type: secret` config but no encryption key is configured
25865
+ * (`ENCRYPTION_NOT_CONFIGURED`); set AIMEAT_ENCRYPTION_KEY.
25866
+ */
25867
+ 503: {
25868
+ headers: {
25869
+ [name: string]: unknown;
25870
+ };
25871
+ content?: never;
25872
+ };
25216
25873
  };
25217
25874
  };
25218
25875
  downloadViaToken: {
@@ -25287,6 +25944,24 @@ export interface operations {
25287
25944
  };
25288
25945
  requestBody: {
25289
25946
  content: {
25947
+ "application/json": {
25948
+ key: string;
25949
+ /** @description Base64-encoded file bytes. Required unless `mode` is `presigned`. */
25950
+ data?: string;
25951
+ mime_type?: string;
25952
+ /**
25953
+ * @description Mint a one-shot upload URL instead of storing bytes now. The response carries `upload_url`, `upload_method`, `content_type`, `max_size_bytes` and `expires_in_seconds`.
25954
+ * @enum {string}
25955
+ */
25956
+ mode?: "presigned";
25957
+ /** @enum {string} */
25958
+ visibility?: "private" | "owner" | "group" | "workspace" | "members" | "public";
25959
+ /** @description Sharing group ID (required when visibility is 'group') */
25960
+ group_id?: string;
25961
+ /** @description One or more "{organismId}/{workspaceId}" (required when visibility is 'workspace'). */
25962
+ workspace_refs?: string[];
25963
+ federate?: boolean;
25964
+ };
25290
25965
  "multipart/form-data": {
25291
25966
  /** Format: binary */
25292
25967
  file?: string;
@@ -25299,8 +25974,22 @@ export interface operations {
25299
25974
  };
25300
25975
  };
25301
25976
  responses: {
25977
+ /** @description Presigned mode — an upload URL was minted. No bytes were stored; `PUT` the file to `upload_url`. */
25978
+ 200: {
25979
+ headers: {
25980
+ [name: string]: unknown;
25981
+ };
25982
+ content?: never;
25983
+ };
25302
25984
  201: components["responses"]["AimeatSuccess"];
25303
- /** @description Storage quota exceeded */
25985
+ /** @description An anonymous principal targeted a key outside `anonymous/*`. Applies to both the inline and the presigned form: the namespace fence is on the write, not on the representation. */
25986
+ 403: {
25987
+ headers: {
25988
+ [name: string]: unknown;
25989
+ };
25990
+ content?: never;
25991
+ };
25992
+ /** @description Storage quota exceeded, or the file exceeds the per-file size limit */
25304
25993
  413: {
25305
25994
  headers: {
25306
25995
  [name: string]: unknown;
@@ -26965,6 +27654,89 @@ export interface operations {
26965
27654
  200: components["responses"]["AimeatSuccess"];
26966
27655
  };
26967
27656
  };
27657
+ commercePayoutStatus: {
27658
+ parameters: {
27659
+ query?: never;
27660
+ header?: never;
27661
+ path?: never;
27662
+ cookie?: never;
27663
+ };
27664
+ requestBody?: never;
27665
+ responses: {
27666
+ 200: components["responses"]["AimeatSuccess"];
27667
+ 401: components["responses"]["AimeatError"];
27668
+ };
27669
+ };
27670
+ commercePayoutX402Set: {
27671
+ parameters: {
27672
+ query?: never;
27673
+ header?: never;
27674
+ path?: never;
27675
+ cookie?: never;
27676
+ };
27677
+ requestBody: {
27678
+ content: {
27679
+ "application/json": {
27680
+ /** @description EVM account address: 0x followed by 40 hex characters. */
27681
+ address: string;
27682
+ };
27683
+ };
27684
+ };
27685
+ responses: {
27686
+ 200: components["responses"]["AimeatSuccess"];
27687
+ 400: components["responses"]["AimeatError"];
27688
+ 401: components["responses"]["AimeatError"];
27689
+ };
27690
+ };
27691
+ commercePayoutX402Clear: {
27692
+ parameters: {
27693
+ query?: never;
27694
+ header?: never;
27695
+ path?: never;
27696
+ cookie?: never;
27697
+ };
27698
+ requestBody?: never;
27699
+ responses: {
27700
+ 200: components["responses"]["AimeatSuccess"];
27701
+ 401: components["responses"]["AimeatError"];
27702
+ };
27703
+ };
27704
+ commercePayoutStripeSet: {
27705
+ parameters: {
27706
+ query?: never;
27707
+ header?: never;
27708
+ path?: never;
27709
+ cookie?: never;
27710
+ };
27711
+ requestBody: {
27712
+ content: {
27713
+ "application/json": {
27714
+ /** @description Your Stripe secret key (sk_live_… or sk_test_…). */
27715
+ secret_key: string;
27716
+ /** @description Provider label, default 'stripe'. */
27717
+ provider?: string;
27718
+ };
27719
+ };
27720
+ };
27721
+ responses: {
27722
+ 200: components["responses"]["AimeatSuccess"];
27723
+ 400: components["responses"]["AimeatError"];
27724
+ 401: components["responses"]["AimeatError"];
27725
+ };
27726
+ };
27727
+ commercePayoutStripeClear: {
27728
+ parameters: {
27729
+ query?: never;
27730
+ header?: never;
27731
+ path?: never;
27732
+ cookie?: never;
27733
+ };
27734
+ requestBody?: never;
27735
+ responses: {
27736
+ 200: components["responses"]["AimeatSuccess"];
27737
+ 401: components["responses"]["AimeatError"];
27738
+ };
27739
+ };
26968
27740
  listCheckoutSessions: {
26969
27741
  parameters: {
26970
27742
  query?: {
@@ -26994,14 +27766,12 @@ export interface operations {
26994
27766
  * @default offer
26995
27767
  * @enum {string}
26996
27768
  */
26997
- kind?: "offer" | "org-offering" | "app-tool" | "ext-call";
27769
+ kind?: "offer" | "app-tool" | "ext-call";
26998
27770
  /** @description Provider agent GAII (or bare name for own agent) */
26999
27771
  agent?: string;
27000
27772
  offer_id?: string;
27001
27773
  /** @description app-tool: the tool name from apps.{appId}.tools; ext-call: the action id */
27002
27774
  tool?: string;
27003
- /** @description org-offering: "creatorOwner/slug" */
27004
- org?: string;
27005
27775
  /** @description app-tool: "ownerName/appId"; ext-call: the extension name */
27006
27776
  app?: string;
27007
27777
  /** @description app-tool: buyer input forwarded to the capability invoke at completion */
@@ -27196,7 +27966,7 @@ export interface operations {
27196
27966
  };
27197
27967
  requestBody?: never;
27198
27968
  responses: {
27199
- /** @description WebMCP tool listing */
27969
+ /** @description WebMCP tool listing + the app's public agent-facing surface */
27200
27970
  200: {
27201
27971
  headers: {
27202
27972
  [name: string]: unknown;
@@ -27205,7 +27975,7 @@ export interface operations {
27205
27975
  "application/json": Record<string, never>;
27206
27976
  };
27207
27977
  };
27208
- /** @description No public tool manifest */
27978
+ /** @description No such public app (missing, access-code gated, priced, or operator-hidden) */
27209
27979
  404: {
27210
27980
  headers: {
27211
27981
  [name: string]: unknown;
@@ -29653,6 +30423,48 @@ export interface operations {
29653
30423
  404: components["responses"]["NotFound"];
29654
30424
  };
29655
30425
  };
30426
+ getAppDraft: {
30427
+ parameters: {
30428
+ query?: never;
30429
+ header?: never;
30430
+ path: {
30431
+ owner: string;
30432
+ filename: string;
30433
+ };
30434
+ cookie?: never;
30435
+ };
30436
+ requestBody?: never;
30437
+ responses: {
30438
+ /** @description The draft content */
30439
+ 200: {
30440
+ headers: {
30441
+ [name: string]: unknown;
30442
+ };
30443
+ content: {
30444
+ "application/json": components["schemas"]["AimeatEnvelope"] & {
30445
+ data?: {
30446
+ filename?: string;
30447
+ /** @description base64-encoded draft HTML */
30448
+ content?: string;
30449
+ mime_type?: string;
30450
+ size?: number;
30451
+ /** Format: date-time */
30452
+ updated_at?: string;
30453
+ manifest?: Record<string, never>;
30454
+ };
30455
+ };
30456
+ };
30457
+ };
30458
+ 401: components["responses"]["Unauthorized"];
30459
+ /** @description No draft exists for this app */
30460
+ 404: {
30461
+ headers: {
30462
+ [name: string]: unknown;
30463
+ };
30464
+ content?: never;
30465
+ };
30466
+ };
30467
+ };
29656
30468
  saveAppDraft: {
29657
30469
  parameters: {
29658
30470
  query?: never;
@@ -29789,6 +30601,62 @@ export interface operations {
29789
30601
  };
29790
30602
  };
29791
30603
  };
30604
+ mintAppFrameToken: {
30605
+ parameters: {
30606
+ query?: never;
30607
+ header?: never;
30608
+ path: {
30609
+ owner: string;
30610
+ filename: string;
30611
+ };
30612
+ cookie?: never;
30613
+ };
30614
+ requestBody?: never;
30615
+ responses: {
30616
+ /** @description Frame grant minted */
30617
+ 200: {
30618
+ headers: {
30619
+ [name: string]: unknown;
30620
+ };
30621
+ content: {
30622
+ "application/json": components["schemas"]["AimeatEnvelope"] & {
30623
+ data?: {
30624
+ /** @description Use as an iframe src */
30625
+ frame_url?: string;
30626
+ /** @description The app's own origin */
30627
+ app_origin_url?: string;
30628
+ /** @description The one origin this grant names */
30629
+ granted_to?: string;
30630
+ expires_in_seconds?: number;
30631
+ note?: string;
30632
+ };
30633
+ };
30634
+ };
30635
+ };
30636
+ /** @description The request carried no usable Origin header */
30637
+ 400: {
30638
+ headers: {
30639
+ [name: string]: unknown;
30640
+ };
30641
+ content?: never;
30642
+ };
30643
+ 401: components["responses"]["Unauthorized"];
30644
+ /** @description No such app owned by the caller */
30645
+ 404: {
30646
+ headers: {
30647
+ [name: string]: unknown;
30648
+ };
30649
+ content?: never;
30650
+ };
30651
+ /** @description App origins are disabled on this node */
30652
+ 409: {
30653
+ headers: {
30654
+ [name: string]: unknown;
30655
+ };
30656
+ content?: never;
30657
+ };
30658
+ };
30659
+ };
29792
30660
  publishAppDraft: {
29793
30661
  parameters: {
29794
30662
  query?: never;
@@ -36772,12 +37640,27 @@ export interface operations {
36772
37640
  requestBody: {
36773
37641
  content: {
36774
37642
  "application/json": {
36775
- /** @description YAML manifest defining the extension metadata, actions, and limits */
36776
- manifest: string;
37643
+ /**
37644
+ * @description Presigned mode: omit `manifest`/`scripts` and receive an `upload_url`; PUT a ZIP
37645
+ * (manifest.yaml at root, scripts in scripts/) to it. Lets the mint and the upload
37646
+ * happen in one command so the upload token is never transcribed.
37647
+ * @enum {string}
37648
+ */
37649
+ mode?: "presigned";
37650
+ /** @description YAML manifest defining the extension metadata, actions, and limits (required unless mode=presigned) */
37651
+ manifest?: string;
36777
37652
  /** @description Key-value map of script filenames to JavaScript source code */
36778
- scripts: {
37653
+ scripts?: {
36779
37654
  [key: string]: string;
36780
37655
  };
37656
+ /**
37657
+ * @description Presigned only. Upsert an already-installed extension instead of 409. Activation
37658
+ * status, lifecycle stamps and the ext:{name} memory are preserved. Carried in the
37659
+ * upload token meta.
37660
+ */
37661
+ update?: boolean;
37662
+ /** @description Presigned only. Activate immediately after install/update. */
37663
+ activate?: boolean;
36781
37664
  };
36782
37665
  };
36783
37666
  };
@@ -38646,10 +39529,13 @@ export interface operations {
38646
39529
  };
38647
39530
  getPublicFile: {
38648
39531
  parameters: {
38649
- query?: never;
39532
+ query?: {
39533
+ /** @description Omit for raw bytes; `handle` returns a presigned download_url + metadata. */
39534
+ mode?: "handle";
39535
+ };
38650
39536
  header?: never;
38651
39537
  path: {
38652
- /** @description URL-encoded agent GAII */
39538
+ /** @description URL-encoded owner GHII / agent GAII that owns the file */
38653
39539
  gaii: string;
38654
39540
  /** @description File key (may contain path separators) */
38655
39541
  key: string;
@@ -38658,12 +39544,30 @@ export interface operations {
38658
39544
  };
38659
39545
  requestBody?: never;
38660
39546
  responses: {
38661
- /** @description File content with appropriate Content-Type */
39547
+ /** @description File bytes, or a JSON handle when `mode=handle` */
38662
39548
  200: {
38663
39549
  headers: {
38664
39550
  [name: string]: unknown;
38665
39551
  };
38666
- content?: never;
39552
+ content: {
39553
+ "application/octet-stream": string;
39554
+ "application/json": components["schemas"]["AimeatEnvelope"] & {
39555
+ data?: {
39556
+ ref?: string;
39557
+ owner_gaii?: string;
39558
+ key?: string;
39559
+ /** @enum {string} */
39560
+ mode?: "handle";
39561
+ mime_type?: string;
39562
+ size?: number;
39563
+ visibility?: string;
39564
+ download_url?: string;
39565
+ /** @enum {string} */
39566
+ download_method?: "GET";
39567
+ expires_in_seconds?: number;
39568
+ };
39569
+ };
39570
+ };
38667
39571
  };
38668
39572
  403: components["responses"]["Forbidden"];
38669
39573
  404: components["responses"]["NotFound"];
@@ -41345,6 +42249,7 @@ export interface operations {
41345
42249
  /** @default false */
41346
42250
  done?: boolean;
41347
42251
  }[];
42252
+ resources?: components["schemas"]["AgentTaskResources"];
41348
42253
  };
41349
42254
  };
41350
42255
  };