@desplega.ai/agent-swarm 2.7.8 → 2.7.10

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 (380) hide show
  1. package/dist/acp-adapter-srfhs1s9.js +16 -0
  2. package/dist/{actions-4m1ct4nh.js → actions-b8aqhrsg.js} +20 -19
  3. package/dist/{amp-adapter-txqh7eqj.js → amp-adapter-4c165vgn.js} +3 -3
  4. package/dist/{anthropic-messages-xey2skwx.js → anthropic-messages-jkva0zps.js} +68 -78
  5. package/dist/app-m9khefrh.js +20 -0
  6. package/dist/{assistant-gd08kr9e.js → assistant-rh4v3ntz.js} +22 -21
  7. package/dist/{azure-openai-responses-26t7j9ra.js → azure-openai-responses-wgtqkbr3.js} +5 -10
  8. package/dist/{boot-args-schema-tjrkpbvm.js → boot-args-schema-hwkc8bzv.js} +1 -1
  9. package/dist/{boot-reembed-21hbck22.js → boot-reembed-5y6yw9sj.js} +1 -1
  10. package/dist/{boot-reembed-mdxd3wgp.js → boot-reembed-fdyk55h4.js} +1 -1
  11. package/dist/{boot-scrub-sweep-qy0zr9t2.js → boot-scrub-sweep-r5r8kqsn.js} +4 -4
  12. package/dist/{boot-seeds-n46eaxdv.js → boot-seeds-8f9zt5cm.js} +5 -4
  13. package/dist/{boxd-nv507va8.js → boxd-qbkxy6ap.js} +1 -1
  14. package/dist/{claude-adapter-j37w2eds.js → claude-adapter-s5df247c.js} +8 -8
  15. package/dist/{claude-managed-adapter-8jvcma9a.js → claude-managed-adapter-h74d06yz.js} +4 -4
  16. package/dist/{claude-managed-setup-rzkjmgc1.js → claude-managed-setup-9gsmwzyx.js} +4 -4
  17. package/dist/{claude-sdk-session-4k7w73t0.js → claude-sdk-session-dq1j4nz9.js} +7901 -7718
  18. package/dist/{cli-s4ss5g59.js → cli-0m7rtm11.js} +5 -5
  19. package/dist/{cli-fzachfnf.js → cli-16phend6.js} +5 -5
  20. package/dist/{cli-yqefz277.js → cli-18qt3few.js} +1 -1
  21. package/dist/{cli-snpj5zbj.js → cli-1z4qggfe.js} +9 -36
  22. package/dist/{cli-s0qnd4wv.js → cli-28fq781p.js} +1 -1
  23. package/dist/{cli-1p89xny0.js → cli-2r0jcc3k.js} +1 -1
  24. package/dist/{cli-66ww7fer.js → cli-2tsfpc70.js} +1 -1
  25. package/dist/{cli-rvtm68yy.js → cli-2xv18ywz.js} +2 -2
  26. package/dist/{cli-kyr67fgx.js → cli-36wdfzgn.js} +18608 -9089
  27. package/dist/{cli-t60ajbbp.js → cli-38yww4e9.js} +20 -20
  28. package/dist/{cli-5xaqj21p.js → cli-3kd08rej.js} +1 -1
  29. package/dist/{cli-ae7mrdf9.js → cli-3vjhs18n.js} +4 -6
  30. package/dist/{cli-ssnjfg5p.js → cli-3xcwp3z8.js} +8 -10
  31. package/dist/{cli-rjknb2ae.js → cli-3xddv0rk.js} +6 -6
  32. package/dist/{cli-az48n0nr.js → cli-4caa1x7d.js} +67 -64
  33. package/dist/cli-4vwxp550.js +9321 -0
  34. package/dist/{cli-pz4rk021.js → cli-54vrpgm0.js} +1 -1
  35. package/dist/{cli-gvx71kqv.js → cli-55bkx8hh.js} +3 -3
  36. package/dist/{cli-r9jqcehk.js → cli-5mpy301f.js} +38 -2
  37. package/dist/{cli-bb0mmdk8.js → cli-5wfz00be.js} +35 -12
  38. package/dist/{cli-btfsp3mv.js → cli-5xcb8gxq.js} +9 -11
  39. package/dist/{cli-4t50yq3j.js → cli-6m6b4bep.js} +29 -12
  40. package/dist/cli-6pzk82fd.js +778 -0
  41. package/dist/{cli-8sdejs1f.js → cli-7wz05bx3.js} +797 -255
  42. package/dist/{cli-mkk9rnzz.js → cli-8bpgbr8k.js} +54 -7
  43. package/dist/{cli-fyhr5h4s.js → cli-8ewkreqd.js} +17 -13
  44. package/dist/{cli-p3vsj0d3.js → cli-an1knn2k.js} +15 -10
  45. package/dist/{cli-0ykgn1h5.js → cli-bxz823sz.js} +2 -2
  46. package/dist/{cli-jdv6ypxs.js → cli-bzvs88tv.js} +2 -2
  47. package/dist/{cli-bshb7jas.js → cli-cr14kftt.js} +3 -3
  48. package/dist/{cli-njwac61j.js → cli-cyn9v8zr.js} +12 -2
  49. package/dist/{cli-a22h291q.js → cli-d6521kb5.js} +1 -1
  50. package/dist/{cli-1b7btd38.js → cli-d84byzn8.js} +869 -5
  51. package/dist/{cli-84rj785g.js → cli-eb2azq8n.js} +9 -9
  52. package/dist/{cli-1cxrbkk6.js → cli-ed6yqpf1.js} +7 -9
  53. package/dist/{cli-wx3rhnm0.js → cli-eddnyg3t.js} +1 -1
  54. package/dist/{cli-ga786dzg.js → cli-eqk5p56g.js} +18 -17
  55. package/dist/{cli-mthwvjre.js → cli-f2zenhja.js} +1 -1
  56. package/dist/{cli-ferkkrg9.js → cli-fjggej24.js} +2 -2
  57. package/dist/{cli-g7s47cc5.js → cli-fsgttth8.js} +123 -102
  58. package/dist/{cli-269q28a1.js → cli-g1px1g2e.js} +27 -6
  59. package/dist/{cli-sq4n7af4.js → cli-h49ejvmc.js} +4 -6
  60. package/dist/{cli-5j0m12ns.js → cli-hfkwwy1h.js} +51 -15
  61. package/dist/{cli-agfm16v9.js → cli-hg42n3hx.js} +12 -12
  62. package/dist/{cli-yndmfxb3.js → cli-hxpyc9sn.js} +3 -3
  63. package/dist/{cli-w4xnbm46.js → cli-j7d73g1y.js} +414 -145
  64. package/dist/{cli-gazw7kpa.js → cli-jg24scat.js} +8 -10
  65. package/dist/{cli-5ja3b75e.js → cli-jrp1dt73.js} +1 -1
  66. package/dist/{cli-98rw5dt5.js → cli-jrzkw01m.js} +2 -2
  67. package/dist/{cli-583frbyr.js → cli-kchjb7qy.js} +1 -1
  68. package/dist/{cli-xr8908my.js → cli-kx4c8j05.js} +32 -17
  69. package/dist/{cli-fmjd0t1y.js → cli-m0cy2vyf.js} +2 -2
  70. package/dist/{cli-c0kqky8y.js → cli-m5akxq8q.js} +1 -1
  71. package/dist/{cli-ycscb2ar.js → cli-m88rpzkh.js} +2 -2
  72. package/dist/{cli-ppjxh6ah.js → cli-mp9aa8g5.js} +10 -12
  73. package/dist/{cli-xq9r2wtt.js → cli-mr97t7cc.js} +679 -247
  74. package/dist/{cli-z75yxkjh.js → cli-n07eecjs.js} +3 -3
  75. package/dist/{cli-7cx2m6t2.js → cli-n515ex5z.js} +16 -16
  76. package/dist/{cli-fy6x31ps.js → cli-n5yexkdg.js} +1 -0
  77. package/dist/{cli-bbw9wj9m.js → cli-n9abj89w.js} +17 -16
  78. package/dist/{cli-ypff1qwp.js → cli-n9ftpys4.js} +7 -7
  79. package/dist/{cli-32m9eda8.js → cli-nj3x45rw.js} +111 -109
  80. package/dist/{cli-6vcp76qk.js → cli-p74md7t8.js} +42 -23
  81. package/dist/{cli-rjcbm574.js → cli-pr0eze3x.js} +2 -2
  82. package/dist/{cli-dq8x79v8.js → cli-pyrxt9gw.js} +198 -3
  83. package/dist/{cli-m0hmeqma.js → cli-q581b386.js} +5 -5
  84. package/dist/{cli-8rpcng8j.js → cli-rjyghzg4.js} +8 -10
  85. package/dist/cli-rkc97c6a.js +39 -0
  86. package/dist/{cli-msg9m2ny.js → cli-rt0ag4x1.js} +9 -11
  87. package/dist/{cli-qd57hhhh.js → cli-rvhdmjvt.js} +6 -10
  88. package/dist/{cli-318r69gq.js → cli-t73cas91.js} +440 -9
  89. package/dist/{cli-q4ebh7h7.js → cli-td33w98c.js} +6 -6
  90. package/dist/{cli-zkky4t5g.js → cli-tmft5dz2.js} +2 -2
  91. package/dist/{cli-q26b9wre.js → cli-tph5wt3y.js} +4 -4
  92. package/dist/{cli-3e4snnzf.js → cli-ttbqe3q4.js} +1 -1
  93. package/dist/{cli-wemma3jd.js → cli-v2fwbnsk.js} +7 -7
  94. package/dist/cli-w3bk0dgv.js +5266 -0
  95. package/dist/{cli-8h0ayw8c.js → cli-x9exydey.js} +6 -6
  96. package/dist/{cli-85gzce7b.js → cli-xbtq4d6s.js} +287 -75
  97. package/dist/{cli-eyg1pa00.js → cli-xd5ebp64.js} +7 -7
  98. package/dist/{cli-g83s9ewh.js → cli-xfjrc279.js} +1 -1
  99. package/dist/{cli-7axf41jq.js → cli-xncjscpm.js} +40 -42
  100. package/dist/{cli-9m8hdawy.js → cli-xvymtmv4.js} +4 -4
  101. package/dist/{cli-81p9jd57.js → cli-yab6sh8p.js} +9 -3
  102. package/dist/{cli-srye3vdt.js → cli-ybjdc978.js} +1 -1
  103. package/dist/{cli-z1srzaf6.js → cli-yz7v0sh4.js} +70 -5
  104. package/dist/{cli-nbsf8yvn.js → cli-z9cs5m0w.js} +9 -9
  105. package/dist/{cli-k5671be5.js → cli-zcfpsfzf.js} +5 -5
  106. package/dist/{cli-vf078p3e.js → cli-zfqg6fzn.js} +1 -1
  107. package/dist/{cli-tpksw2nr.js → cli-zjphdj1a.js} +461 -108
  108. package/dist/cli.js +32 -52
  109. package/dist/{cloudflare-workers-ai-system-one-ef2a980q.js → cloudflare-workers-ai-system-one-9y1zx3pt.js} +2 -2
  110. package/dist/{codex-adapter-88z6psm4.js → codex-adapter-yr60sme6.js} +7 -7
  111. package/dist/{codex-login-74wa4hmq.js → codex-login-bcda78ge.js} +2 -2
  112. package/dist/{codex-session-runner-zwbcwzvx.js → codex-session-runner-pch8x584.js} +8 -8
  113. package/dist/{commands-7amxs716.js → commands-phjfbkv0.js} +3 -3
  114. package/dist/{controller-5rkkc37m.js → controller-jkx994pz.js} +4 -4
  115. package/dist/{controllers-connect-m7d4vxxb.js → controllers-connect-c4448kwa.js} +25 -24
  116. package/dist/{cursor-adapter-x1q18693.js → cursor-adapter-ndebqnm8.js} +2 -2
  117. package/dist/{db-athc68zt.js → db-ef32tbfc.js} +6 -2
  118. package/dist/{db-h2fsfve3.js → db-ez6egt6v.js} +3 -3
  119. package/dist/{devin-adapter-r9phbnc9.js → devin-adapter-z46ep5ph.js} +1 -1
  120. package/dist/{dispatcher-b1yz2bnn.js → dispatcher-g3tt9hs9.js} +19 -18
  121. package/dist/{docker-c1a3gqmf.js → docker-866qpzt9.js} +2 -2
  122. package/dist/{dsh-adapter-e33bkxq9.js → dsh-adapter-tcyn3099.js} +2 -2
  123. package/dist/{e2b-fr12yccx.js → e2b-jkwfhbcv.js} +2 -2
  124. package/dist/{e2b-x6ywzak3.js → e2b-s16txnpx.js} +2 -3
  125. package/dist/{easter-egg-3d-pv5qnzc8.js → easter-egg-3d-e36hk5td.js} +1 -1
  126. package/dist/{embedding-space-b4txbwrk.js → embedding-space-4kyh5qqj.js} +6 -6
  127. package/dist/{embeddings-m6zn6tad.js → embeddings-6a8v4a6t.js} +1 -1
  128. package/dist/{event-bus-g0ka3pbw.js → event-bus-e66gh7cc.js} +1 -1
  129. package/dist/{execute-68nwny8m.js → execute-3cbg0twf.js} +1 -1
  130. package/dist/{external-channel-gkckmhzh.js → external-channel-se646snz.js} +2 -2
  131. package/dist/fx-adapter-yw795hqq.js +19 -0
  132. package/dist/{google-generative-ai-v94hr7h0.js → google-generative-ai-h7s3e9kk.js} +7 -12
  133. package/dist/{google-vertex-g7vr6cf8.js → google-vertex-fhxaafzw.js} +7 -12
  134. package/dist/grok-adapter-ttmcss2j.js +19 -0
  135. package/dist/handlers-17wha3ze.js +33 -0
  136. package/dist/heartbeat-gwewgdms.js +42 -0
  137. package/dist/{hook-q5fv0jy2.js → hook-g3nhexsy.js} +16 -11
  138. package/dist/{hook-w0q2wcrv.js → hook-hq93y5ej.js} +5 -5
  139. package/dist/{http-bxat8dg3.js → http-5a9p4h6y.js} +808 -285
  140. package/dist/{index-pxn30mse.js → index-0eny15vj.js} +8 -8
  141. package/dist/{index-6cxzwfen.js → index-0rvk3vd4.js} +71 -71
  142. package/dist/{index-fvzke5kx.js → index-1qw6f2dc.js} +10 -10
  143. package/dist/{index-cqhqpgrv.js → index-3c5pxbge.js} +1 -1
  144. package/dist/{index-k7fj52d3.js → index-6haqt3v5.js} +12302 -11048
  145. package/dist/index-8arwq8mw.js +34 -0
  146. package/dist/{index-h7f61sy9.js → index-e5pfbsys.js} +3 -3
  147. package/dist/{index-bxrexmfy.js → index-hgn3c961.js} +14 -13
  148. package/dist/{index-h39zbx67.js → index-m5gx1xd6.js} +68 -68
  149. package/dist/{index-5fx3b3kw.js → index-rvccek1w.js} +9 -9
  150. package/dist/{index-fm0czesf.js → index-s72rqgsx.js} +1 -1
  151. package/dist/index-tpw054az.js +38 -0
  152. package/dist/{index-514d9pf6.js → index-w7em4ktq.js} +8 -8
  153. package/dist/index-waq75j2j.js +31 -0
  154. package/dist/{keepalive-qnt21cv0.js → keepalive-1j4n4dmk.js} +4 -4
  155. package/dist/lead-re73kdgc.js +72 -0
  156. package/dist/{llama-cpp-classify-s5c47rwh.js → llama-cpp-classify-nfgswa1m.js} +2 -2
  157. package/dist/{maintenance-btdr68y4.js → maintenance-dmghacy5.js} +1 -1
  158. package/dist/{mistral-conversations-3gjpdb4b.js → mistral-conversations-a45tx39a.js} +29 -51
  159. package/dist/{oauth-refresh-sweep-vczabeh4.js → oauth-refresh-sweep-yy06c03c.js} +3 -3
  160. package/dist/{onboard-k33ezyq8.js → onboard-52f9t5dm.js} +68 -16
  161. package/dist/{openai-codex-responses-8pbxq9h5.js → openai-codex-responses-k9gapdze.js} +7 -11
  162. package/dist/{openai-completions-rm00s912.js → openai-completions-xd579js7.js} +50 -58
  163. package/dist/{openai-decisions-8v957r2r.js → openai-decisions-q3hh60wr.js} +2 -2
  164. package/dist/{openai-responses-agxpf96k.js → openai-responses-4d5dx3c7.js} +5 -10
  165. package/dist/{opencode-adapter-3dst2ka7.js → opencode-adapter-krnh9jkn.js} +6 -6
  166. package/dist/{openrouter-images-3ecegv0d.js → openrouter-images-xr9gme9x.js} +4 -3
  167. package/dist/{otel-impl-13am7a65.js → otel-impl-xjqz6wjj.js} +2 -2
  168. package/dist/{pi-messages-pchtw4he.js → pi-messages-hjbv8v10.js} +28 -12
  169. package/dist/{pi-mono-adapter-c53de1gd.js → pi-mono-adapter-dbxyp0qv.js} +23 -26
  170. package/dist/{pricing-refresh-9fcbnq3f.js → pricing-refresh-ctdr74pd.js} +3 -3
  171. package/dist/{rbac-roles-66j5h4y5.js → rbac-roles-ehv8s10n.js} +12 -3
  172. package/dist/{rbac-roles-gw0p9h3j.js → rbac-roles-q0gr8eyj.js} +16 -2
  173. package/dist/{render-v2-fg8bmdn4.js → render-v2-5b6chvcq.js} +9 -4
  174. package/dist/{resume-1c8kr3nh.js → resume-5a5d2845.js} +7 -7
  175. package/dist/{runtime-tzf9j7tc.js → runtime-khxszyfp.js} +1 -1
  176. package/dist/{session-access-d0atq10j.js → session-access-gj0bjhqg.js} +4 -4
  177. package/dist/{session-source-backfill-0vscqmsa.js → session-source-backfill-2sy0krfk.js} +3 -3
  178. package/dist/{setup-tvfa7rwe.js → setup-7ssfakk1.js} +1 -1
  179. package/dist/{typesafe-system-one-0bmqcxfg.js → typesafe-system-one-f2en2knd.js} +2 -2
  180. package/dist/virtual-modules-pjj0knwf.js +362 -0
  181. package/dist/{work-objects-ks71xqeb.js → work-objects-bf3syvhq.js} +22 -21
  182. package/dist/{worker-follow-up-bfx0h9hg.js → worker-follow-up-38xevga6.js} +19 -18
  183. package/dist/worker-r8mz7a65.js +72 -0
  184. package/dist/{x-vmmye1kb.js → x-2fyrt5pp.js} +2 -2
  185. package/openapi.json +1169 -257
  186. package/package.json +9 -11
  187. package/src/apps/catalog.generated.json +354 -82
  188. package/src/apps/page-validator.ts +134 -2
  189. package/src/assets/key.ts +77 -4
  190. package/src/be/connector-codes.ts +21 -6
  191. package/src/be/db/session-labels.ts +57 -0
  192. package/src/be/db/session-tree.ts +51 -7
  193. package/src/be/db/slack-trees.ts +146 -0
  194. package/src/be/db/tasks/read.ts +124 -7
  195. package/src/be/db-client.ts +8 -2
  196. package/src/be/db.ts +99 -86
  197. package/src/be/event-loop-lag.ts +146 -0
  198. package/src/be/improvements.ts +416 -0
  199. package/src/be/mcp-overflow-sweep.ts +2 -1
  200. package/src/be/memory/providers/sqlite-store.ts +39 -8
  201. package/src/be/migrations/274_improvements.sql +27 -0
  202. package/src/be/migrations/275_task_dispatched_by.sql +8 -0
  203. package/src/be/migrations/278_slack_render_v2_reconcile.sql +108 -0
  204. package/src/be/rbac-roles.ts +123 -1
  205. package/src/be/swarm-config-guard.ts +3 -0
  206. package/src/be/users.ts +58 -1
  207. package/src/cli.tsx +5 -25
  208. package/src/commands/codex-login.ts +1 -1
  209. package/src/commands/context-preamble.ts +258 -0
  210. package/src/commands/e2b.ts +0 -1
  211. package/src/commands/onboard/agent-fs-version.ts +1 -1
  212. package/src/commands/onboard/compose-generator.ts +0 -1
  213. package/src/commands/onboard/dashboard-url.ts +31 -0
  214. package/src/commands/onboard/steps/generate.tsx +17 -1
  215. package/src/commands/onboard/steps/post-dashboard.tsx +9 -3
  216. package/src/commands/onboard.tsx +19 -6
  217. package/src/commands/runner.ts +117 -96
  218. package/src/extensions/catalog.generated.json +3 -3
  219. package/src/extensions/contract-types.generated.ts +1 -1
  220. package/src/heartbeat/heartbeat.ts +5 -4
  221. package/src/hooks/hook.ts +13 -5
  222. package/src/http/all-routes.ts +1 -0
  223. package/src/http/approval-requests.ts +2 -44
  224. package/src/http/auth.ts +5 -4
  225. package/src/http/codex-oauth-accounts.ts +31 -23
  226. package/src/http/codex-oauth-device.ts +1 -1
  227. package/src/http/codex-oauth-keep-warm.ts +1 -1
  228. package/src/http/core.ts +9 -3
  229. package/src/http/improvements.ts +317 -0
  230. package/src/http/index.ts +12 -6
  231. package/src/http/memory.ts +9 -4
  232. package/src/http/operator-actor.ts +2 -1
  233. package/src/http/person-responder.ts +66 -0
  234. package/src/http/sessions.ts +65 -10
  235. package/src/http/tasks.ts +1 -1
  236. package/src/http/user-roles.ts +11 -2
  237. package/src/http/users.ts +194 -104
  238. package/src/http/utils.ts +18 -0
  239. package/src/http/webhooks.ts +48 -0
  240. package/src/integrations/chat-sdk/commands.ts +167 -31
  241. package/src/integrations/chat-sdk/inbound.ts +10 -8
  242. package/src/integrations/chat-sdk/message-text.ts +117 -0
  243. package/src/providers/acp-targets.ts +1 -1
  244. package/src/providers/amp-adapter.ts +1 -1
  245. package/src/providers/codex-adapter.ts +8 -1
  246. package/src/providers/codex-models.ts +4 -3
  247. package/src/providers/codex-oauth/auth-json.ts +14 -18
  248. package/src/providers/codex-oauth/storage.ts +2 -2
  249. package/src/providers/cursor-adapter.ts +1 -1
  250. package/src/providers/dsh-adapter.ts +1 -1
  251. package/src/rbac/legacy-policy.ts +2 -0
  252. package/src/rbac/permissions.ts +10 -0
  253. package/src/scheduler/scheduler.ts +4 -1
  254. package/src/scripts-runtime/executors/quickjs-runner.ts +2 -0
  255. package/src/scripts-runtime/executors/quickjs-structured-clone.ts +180 -0
  256. package/src/scripts-runtime/quickjs-compat.ts +0 -1
  257. package/src/scripts-runtime/types/swarm-extension.d.ts +2 -0
  258. package/src/server.ts +2 -0
  259. package/src/slack/ack.ts +20 -14
  260. package/src/slack/app.ts +332 -10
  261. package/src/slack/handlers.ts +9 -2
  262. package/src/slack/index.ts +7 -1
  263. package/src/slack/lifecycle-lock.ts +29 -0
  264. package/src/slack/render-v2.ts +466 -229
  265. package/src/slack/socket-fence.ts +64 -0
  266. package/src/slack/watcher.ts +42 -8
  267. package/src/tests/api-drain-worker-e2e.test.ts +69 -2
  268. package/src/tests/apps-catalog-drift.test.ts +35 -0
  269. package/src/tests/apps-catalog-table.test.ts +203 -0
  270. package/src/tests/apps-element-assembly.test.ts +28 -0
  271. package/src/tests/apps-schema-form.test.ts +151 -0
  272. package/src/tests/apps-smart-links.test.ts +151 -0
  273. package/src/tests/apps-table-filters-migration.test.ts +96 -0
  274. package/src/tests/apps-table-selection-migration.test.ts +95 -0
  275. package/src/tests/chat-sdk-commands.test.ts +359 -2
  276. package/src/tests/chat-sdk-inbound.test.ts +20 -0
  277. package/src/tests/chat-sdk-slack.test.ts +189 -1
  278. package/src/tests/chatgpt-subscription-session-bench.test.ts +2 -2
  279. package/src/tests/claude-worker-parity.test.ts +2 -2
  280. package/src/tests/codex-adapter.test.ts +30 -0
  281. package/src/tests/codex-login.test.ts +2 -2
  282. package/src/tests/codex-oauth-accounts.test.ts +48 -12
  283. package/src/tests/codex-oauth-credential-info.test.ts +77 -1
  284. package/src/tests/codex-oauth-device.test.ts +1 -1
  285. package/src/tests/codex-oauth-keep-warm.test.ts +2 -2
  286. package/src/tests/codex-oauth.test.ts +25 -4
  287. package/src/tests/codex-pool.test.ts +2 -2
  288. package/src/tests/db-client-busy-retry.test.ts +69 -18
  289. package/src/tests/db-client.test.ts +26 -1
  290. package/src/tests/db-task-read-contract.test.ts +4 -0
  291. package/src/tests/db-task-write-contract.test.ts +2 -0
  292. package/src/tests/deploy-one-box.test.ts +39 -1
  293. package/src/tests/docs-index-footprint.test.js +3 -3
  294. package/src/tests/dsh-adapter.test.ts +1 -1
  295. package/src/tests/event-loop-lag.test.ts +184 -0
  296. package/src/tests/extensions-example-comms-adherence-gate.test.ts +115 -0
  297. package/src/tests/fixtures/onboard/content.compose.yml.txt +0 -4
  298. package/src/tests/fixtures/onboard/dev.compose.yml.txt +0 -3
  299. package/src/tests/fixtures/onboard/full-all.compose.yml.txt +0 -11
  300. package/src/tests/fixtures/onboard/full.compose.yml.txt +0 -11
  301. package/src/tests/fixtures/onboard/research.compose.yml.txt +0 -3
  302. package/src/tests/fixtures/onboard/solo.compose.yml.txt +0 -1
  303. package/src/tests/fixtures/prs-app-definition.json.txt +784 -0
  304. package/src/tests/fixtures/prs-filters-migration.patch.json.txt +318 -0
  305. package/src/tests/fixtures/prs-selection-migration.patch.json.txt +373 -0
  306. package/src/tests/fixtures/runner-identity-refresh.ts +3 -0
  307. package/src/tests/fixtures/runner-legacy-resume-prompt.ts +3 -0
  308. package/src/tests/fixtures/runner-task-start-reads.ts +140 -0
  309. package/src/tests/github-webhook-early-ack.test.ts +144 -0
  310. package/src/tests/hook-ping-me-order.test.ts +85 -0
  311. package/src/tests/http-api-integration.test.ts +2 -0
  312. package/src/tests/http-log-scrubbing.test.ts +68 -2
  313. package/src/tests/improvements-payload.test.ts +200 -0
  314. package/src/tests/improvements-route.test.ts +419 -0
  315. package/src/tests/install-sh-setup-url.test.ts +190 -0
  316. package/src/tests/kv-storage.test.ts +92 -1
  317. package/src/tests/memory-key-paths.test.ts +57 -0
  318. package/src/tests/memory-retrieval-purge.test.ts +19 -0
  319. package/src/tests/onboard-dashboard-output.test.ts +109 -0
  320. package/src/tests/onboard-dashboard-url.test.ts +83 -0
  321. package/src/tests/operator-granted-credentials.test.ts +561 -0
  322. package/src/tests/operator-granted-role-wire.test.ts +222 -0
  323. package/src/tests/quickjs-compat.test.ts +1 -1
  324. package/src/tests/rbac-engine.test.ts +2 -0
  325. package/src/tests/runner-context-preamble.test.ts +552 -0
  326. package/src/tests/runner-context-usage.test.ts +0 -1
  327. package/src/tests/runner-legacy-options.test.ts +55 -0
  328. package/src/tests/runner-slot-reconcile.test.ts +38 -0
  329. package/src/tests/runner-task-start-reads.test.ts +58 -0
  330. package/src/tests/script-connections.test.ts +3 -0
  331. package/src/tests/script-executor-conformance.test.ts +188 -0
  332. package/src/tests/send-task-dispatched-by.test.ts +129 -0
  333. package/src/tests/session-dispatched-tasks.test.ts +115 -0
  334. package/src/tests/session-sharing.test.ts +198 -9
  335. package/src/tests/sessions-tree.test.ts +133 -2
  336. package/src/tests/slack-app-icon.test.ts +4 -0
  337. package/src/tests/slack-dm-implicit-mention.test.ts +236 -0
  338. package/src/tests/slack-file-tools-attachments.test.ts +96 -3
  339. package/src/tests/slack-reaction-config.test.ts +39 -0
  340. package/src/tests/slack-read-boundaries.test.ts +4 -3
  341. package/src/tests/slack-render-v2-query-plans.test.ts +262 -3
  342. package/src/tests/slack-render-v2-reconcile.test.ts +201 -0
  343. package/src/tests/slack-render-v2.test.ts +47 -0
  344. package/src/tests/slack-socket-watchdog.test.ts +748 -0
  345. package/src/tests/submit-improvement-tool.test.ts +82 -0
  346. package/src/tests/tool-annotations.test.ts +1 -1
  347. package/src/tests/vcs-identity-inheritance.test.ts +85 -0
  348. package/src/tools/manage-user.ts +88 -58
  349. package/src/tools/send-task.ts +3 -0
  350. package/src/tools/slack-read.ts +61 -33
  351. package/src/tools/submit-improvement.ts +68 -0
  352. package/src/tools/tool-config.ts +3 -0
  353. package/src/tools/utils.ts +16 -7
  354. package/src/types.ts +5 -0
  355. package/src/utils/request-auth-context.ts +6 -1
  356. package/templates/extensions/comms-adherence-gate/README.md +25 -0
  357. package/templates/extensions/comms-adherence-gate/hooks.ts +100 -11
  358. package/templates/extensions/comms-adherence-gate/manifest.json +1 -1
  359. package/templates/skills/apps/SKILL.md +29 -11
  360. package/templates/skills/apps/content.md +29 -11
  361. package/templates/skills/swarm-scripts/SKILL.md +1 -1
  362. package/templates/skills/swarm-scripts/content.md +1 -1
  363. package/templates/skills/work-on-task/SKILL.md +1 -1
  364. package/templates/skills/work-on-task/content.md +1 -1
  365. package/dist/acp-adapter-vg5hqkvj.js +0 -16
  366. package/dist/app-e00m45gn.js +0 -17
  367. package/dist/cli-5c4hjzne.js +0 -873
  368. package/dist/cli-ae0dnfee.js +0 -20222
  369. package/dist/cli-nn3ysbqk.js +0 -428
  370. package/dist/cli-pc5znp64.js +0 -364
  371. package/dist/fx-adapter-m5jbgd5q.js +0 -19
  372. package/dist/grok-adapter-csvv7sac.js +0 -19
  373. package/dist/handlers-8x5gfbzx.js +0 -32
  374. package/dist/heartbeat-6c2y3267.js +0 -41
  375. package/dist/index-hpfte8jd.js +0 -33
  376. package/dist/index-ncf7yb5s.js +0 -30
  377. package/dist/index-vte6dyeh.js +0 -37
  378. package/dist/lead-4bvftzm6.js +0 -71
  379. package/dist/virtual-modules-efxcp740.js +0 -59
  380. package/dist/worker-e7v2bvm9.js +0 -71
package/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Agent Swarm API",
5
- "version": "2.7.8",
5
+ "version": "2.7.10",
6
6
  "description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
7
7
  },
8
8
  "servers": [
@@ -344,6 +344,9 @@
344
344
  "parentTaskId": {
345
345
  "type": "string"
346
346
  },
347
+ "dispatchedByTaskId": {
348
+ "type": "string"
349
+ },
347
350
  "claudeSessionId": {
348
351
  "type": "string"
349
352
  },
@@ -34183,10 +34186,10 @@
34183
34186
  "enum": [
34184
34187
  "all"
34185
34188
  ],
34186
- "description": "all: every user's tasks, read-only, for a user with an admin role or session.read.all; ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way."
34189
+ "description": "all: every user's tasks, read-only, for a user whose role lists session.read.all (the built-in auditor role; the grant-all admin role alone does not count); ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way."
34187
34190
  },
34188
34191
  "required": false,
34189
- "description": "all: every user's tasks, read-only, for a user with an admin role or session.read.all; ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way.",
34192
+ "description": "all: every user's tasks, read-only, for a user whose role lists session.read.all (the built-in auditor role; the grant-all admin role alone does not count); ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way.",
34190
34193
  "name": "scope",
34191
34194
  "in": "query"
34192
34195
  }
@@ -51419,10 +51422,10 @@
51419
51422
  "tree",
51420
51423
  "all"
51421
51424
  ],
51422
- "description": "mine: owned sessions. shared: sessions shared with me. tree: Sessions that GET /api/session-tree counts: mine plus shared with me, no ownerless roots. A bypass actor sees every root with tree scope. all: every user's sessions, read-only, for a user with an admin role or session.read.all; ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way, also for tree."
51425
+ "description": "mine: owned sessions. shared: sessions shared with me. tree: Sessions that GET /api/session-tree counts: mine plus shared with me, no ownerless roots. A bypass actor sees every root with tree scope. all: every user's sessions, read-only, for a user whose role lists session.read.all (the built-in auditor role; the grant-all admin role alone does not count); ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way, also for tree."
51423
51426
  },
51424
51427
  "required": false,
51425
- "description": "mine: owned sessions. shared: sessions shared with me. tree: Sessions that GET /api/session-tree counts: mine plus shared with me, no ownerless roots. A bypass actor sees every root with tree scope. all: every user's sessions, read-only, for a user with an admin role or session.read.all; ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way, also for tree.",
51428
+ "description": "mine: owned sessions. shared: sessions shared with me. tree: Sessions that GET /api/session-tree counts: mine plus shared with me, no ownerless roots. A bypass actor sees every root with tree scope. all: every user's sessions, read-only, for a user whose role lists session.read.all (the built-in auditor role; the grant-all admin role alone does not count); ignored for anyone else. The X-Swarm-Session-Scope: all header opts in the same way, also for tree.",
51426
51429
  "name": "scope",
51427
51430
  "in": "query"
51428
51431
  },
@@ -52422,7 +52425,7 @@
52422
52425
  ],
52423
52426
  "responses": {
52424
52427
  "200": {
52425
- "description": "Root task + chain (ordered by createdAt), plus the caller's `access` and the session `owner`",
52428
+ "description": "Root task + chain (ordered by createdAt), plus the caller's `access` and the session `owner`. The chain also holds tasks a chain task dispatched (`dispatchedByTaskId`) that sit elsewhere: in the same session, or in another session the caller can read.",
52426
52429
  "content": {
52427
52430
  "application/json": {
52428
52431
  "schema": {
@@ -59974,6 +59977,855 @@
59974
59977
  }
59975
59978
  }
59976
59979
  },
59980
+ "/api/improvements": {
59981
+ "get": {
59982
+ "summary": "List product improvements",
59983
+ "description": "Lists improvements newest first, with `enabled` for the `IMPROVEMENTS_ENABLED` switch: every pending and failed row, plus the newest 100 other rows. Pending and failed rows carry `leakHints` for the approver.",
59984
+ "tags": [
59985
+ "Improvements"
59986
+ ],
59987
+ "security": [
59988
+ {
59989
+ "bearerAuth": []
59990
+ }
59991
+ ],
59992
+ "responses": {
59993
+ "200": {
59994
+ "description": "Improvements and the switch state",
59995
+ "content": {
59996
+ "application/json": {
59997
+ "schema": {
59998
+ "type": "object",
59999
+ "properties": {
60000
+ "enabled": {
60001
+ "type": "boolean"
60002
+ },
60003
+ "improvements": {
60004
+ "type": "array",
60005
+ "items": {
60006
+ "type": "object",
60007
+ "properties": {
60008
+ "id": {
60009
+ "type": "string"
60010
+ },
60011
+ "text": {
60012
+ "type": "string"
60013
+ },
60014
+ "email": {
60015
+ "type": [
60016
+ "string",
60017
+ "null"
60018
+ ]
60019
+ },
60020
+ "status": {
60021
+ "type": "string",
60022
+ "enum": [
60023
+ "pending_approval",
60024
+ "sending",
60025
+ "sent",
60026
+ "failed",
60027
+ "discarded"
60028
+ ]
60029
+ },
60030
+ "source": {
60031
+ "type": "string",
60032
+ "enum": [
60033
+ "mcp",
60034
+ "api",
60035
+ "ui"
60036
+ ]
60037
+ },
60038
+ "requestedByAgentId": {
60039
+ "type": [
60040
+ "string",
60041
+ "null"
60042
+ ]
60043
+ },
60044
+ "approvedBy": {
60045
+ "type": [
60046
+ "string",
60047
+ "null"
60048
+ ]
60049
+ },
60050
+ "approvedAt": {
60051
+ "type": [
60052
+ "string",
60053
+ "null"
60054
+ ]
60055
+ },
60056
+ "sentAt": {
60057
+ "type": [
60058
+ "string",
60059
+ "null"
60060
+ ]
60061
+ },
60062
+ "proxyStatus": {
60063
+ "type": [
60064
+ "number",
60065
+ "null"
60066
+ ]
60067
+ },
60068
+ "proxyId": {
60069
+ "type": [
60070
+ "string",
60071
+ "null"
60072
+ ]
60073
+ },
60074
+ "proxyError": {
60075
+ "type": [
60076
+ "string",
60077
+ "null"
60078
+ ]
60079
+ },
60080
+ "createdAt": {
60081
+ "type": "string"
60082
+ },
60083
+ "updatedAt": {
60084
+ "type": "string"
60085
+ },
60086
+ "leakHints": {
60087
+ "type": "array",
60088
+ "items": {
60089
+ "type": "string"
60090
+ },
60091
+ "description": "Substrings that look install-specific (agent, repo, host, org or user email). Pending and failed rows only. They warn; they never block."
60092
+ }
60093
+ },
60094
+ "required": [
60095
+ "id",
60096
+ "text",
60097
+ "email",
60098
+ "status",
60099
+ "source",
60100
+ "requestedByAgentId",
60101
+ "approvedBy",
60102
+ "approvedAt",
60103
+ "sentAt",
60104
+ "proxyStatus",
60105
+ "proxyId",
60106
+ "proxyError",
60107
+ "createdAt",
60108
+ "updatedAt"
60109
+ ]
60110
+ }
60111
+ }
60112
+ },
60113
+ "required": [
60114
+ "enabled",
60115
+ "improvements"
60116
+ ]
60117
+ }
60118
+ }
60119
+ }
60120
+ }
60121
+ }
60122
+ },
60123
+ "post": {
60124
+ "summary": "Draft a product improvement, or send one as a person",
60125
+ "description": "Stores the text, scrubbed of known secrets, as `pending_approval`. An agent caller always gets a pending draft. A person (user token, or the shared key with no agent identity) may pass `sendNow: true` to approve and send in one call, unless scrubbing changed the text: then it stays pending so they can review it. `sendNow` needs a valid `email` (400 without one); a draft does not. Only `install_id` (always), `text` and `email` are sent to desplega.",
60126
+ "tags": [
60127
+ "Improvements"
60128
+ ],
60129
+ "security": [
60130
+ {
60131
+ "bearerAuth": []
60132
+ }
60133
+ ],
60134
+ "requestBody": {
60135
+ "content": {
60136
+ "application/json": {
60137
+ "schema": {
60138
+ "type": "object",
60139
+ "properties": {
60140
+ "text": {
60141
+ "type": "string",
60142
+ "maxLength": 8000
60143
+ },
60144
+ "email": {
60145
+ "type": "string",
60146
+ "maxLength": 320,
60147
+ "format": "email"
60148
+ },
60149
+ "sendNow": {
60150
+ "type": "boolean"
60151
+ },
60152
+ "source": {
60153
+ "type": "string",
60154
+ "enum": [
60155
+ "ui",
60156
+ "api"
60157
+ ]
60158
+ }
60159
+ },
60160
+ "required": [
60161
+ "text"
60162
+ ]
60163
+ }
60164
+ }
60165
+ }
60166
+ },
60167
+ "responses": {
60168
+ "200": {
60169
+ "description": "A person's `sendNow` was approved and sent (see `status`)",
60170
+ "content": {
60171
+ "application/json": {
60172
+ "schema": {
60173
+ "type": "object",
60174
+ "properties": {
60175
+ "improvement": {
60176
+ "type": "object",
60177
+ "properties": {
60178
+ "id": {
60179
+ "type": "string"
60180
+ },
60181
+ "text": {
60182
+ "type": "string"
60183
+ },
60184
+ "email": {
60185
+ "type": [
60186
+ "string",
60187
+ "null"
60188
+ ]
60189
+ },
60190
+ "status": {
60191
+ "type": "string",
60192
+ "enum": [
60193
+ "pending_approval",
60194
+ "sending",
60195
+ "sent",
60196
+ "failed",
60197
+ "discarded"
60198
+ ]
60199
+ },
60200
+ "source": {
60201
+ "type": "string",
60202
+ "enum": [
60203
+ "mcp",
60204
+ "api",
60205
+ "ui"
60206
+ ]
60207
+ },
60208
+ "requestedByAgentId": {
60209
+ "type": [
60210
+ "string",
60211
+ "null"
60212
+ ]
60213
+ },
60214
+ "approvedBy": {
60215
+ "type": [
60216
+ "string",
60217
+ "null"
60218
+ ]
60219
+ },
60220
+ "approvedAt": {
60221
+ "type": [
60222
+ "string",
60223
+ "null"
60224
+ ]
60225
+ },
60226
+ "sentAt": {
60227
+ "type": [
60228
+ "string",
60229
+ "null"
60230
+ ]
60231
+ },
60232
+ "proxyStatus": {
60233
+ "type": [
60234
+ "number",
60235
+ "null"
60236
+ ]
60237
+ },
60238
+ "proxyId": {
60239
+ "type": [
60240
+ "string",
60241
+ "null"
60242
+ ]
60243
+ },
60244
+ "proxyError": {
60245
+ "type": [
60246
+ "string",
60247
+ "null"
60248
+ ]
60249
+ },
60250
+ "createdAt": {
60251
+ "type": "string"
60252
+ },
60253
+ "updatedAt": {
60254
+ "type": "string"
60255
+ },
60256
+ "leakHints": {
60257
+ "type": "array",
60258
+ "items": {
60259
+ "type": "string"
60260
+ },
60261
+ "description": "Substrings that look install-specific (agent, repo, host, org or user email). Pending and failed rows only. They warn; they never block."
60262
+ }
60263
+ },
60264
+ "required": [
60265
+ "id",
60266
+ "text",
60267
+ "email",
60268
+ "status",
60269
+ "source",
60270
+ "requestedByAgentId",
60271
+ "approvedBy",
60272
+ "approvedAt",
60273
+ "sentAt",
60274
+ "proxyStatus",
60275
+ "proxyId",
60276
+ "proxyError",
60277
+ "createdAt",
60278
+ "updatedAt"
60279
+ ]
60280
+ }
60281
+ },
60282
+ "required": [
60283
+ "improvement"
60284
+ ]
60285
+ }
60286
+ }
60287
+ }
60288
+ },
60289
+ "201": {
60290
+ "description": "Draft stored as `pending_approval`",
60291
+ "content": {
60292
+ "application/json": {
60293
+ "schema": {
60294
+ "type": "object",
60295
+ "properties": {
60296
+ "improvement": {
60297
+ "type": "object",
60298
+ "properties": {
60299
+ "id": {
60300
+ "type": "string"
60301
+ },
60302
+ "text": {
60303
+ "type": "string"
60304
+ },
60305
+ "email": {
60306
+ "type": [
60307
+ "string",
60308
+ "null"
60309
+ ]
60310
+ },
60311
+ "status": {
60312
+ "type": "string",
60313
+ "enum": [
60314
+ "pending_approval",
60315
+ "sending",
60316
+ "sent",
60317
+ "failed",
60318
+ "discarded"
60319
+ ]
60320
+ },
60321
+ "source": {
60322
+ "type": "string",
60323
+ "enum": [
60324
+ "mcp",
60325
+ "api",
60326
+ "ui"
60327
+ ]
60328
+ },
60329
+ "requestedByAgentId": {
60330
+ "type": [
60331
+ "string",
60332
+ "null"
60333
+ ]
60334
+ },
60335
+ "approvedBy": {
60336
+ "type": [
60337
+ "string",
60338
+ "null"
60339
+ ]
60340
+ },
60341
+ "approvedAt": {
60342
+ "type": [
60343
+ "string",
60344
+ "null"
60345
+ ]
60346
+ },
60347
+ "sentAt": {
60348
+ "type": [
60349
+ "string",
60350
+ "null"
60351
+ ]
60352
+ },
60353
+ "proxyStatus": {
60354
+ "type": [
60355
+ "number",
60356
+ "null"
60357
+ ]
60358
+ },
60359
+ "proxyId": {
60360
+ "type": [
60361
+ "string",
60362
+ "null"
60363
+ ]
60364
+ },
60365
+ "proxyError": {
60366
+ "type": [
60367
+ "string",
60368
+ "null"
60369
+ ]
60370
+ },
60371
+ "createdAt": {
60372
+ "type": "string"
60373
+ },
60374
+ "updatedAt": {
60375
+ "type": "string"
60376
+ },
60377
+ "leakHints": {
60378
+ "type": "array",
60379
+ "items": {
60380
+ "type": "string"
60381
+ },
60382
+ "description": "Substrings that look install-specific (agent, repo, host, org or user email). Pending and failed rows only. They warn; they never block."
60383
+ }
60384
+ },
60385
+ "required": [
60386
+ "id",
60387
+ "text",
60388
+ "email",
60389
+ "status",
60390
+ "source",
60391
+ "requestedByAgentId",
60392
+ "approvedBy",
60393
+ "approvedAt",
60394
+ "sentAt",
60395
+ "proxyStatus",
60396
+ "proxyId",
60397
+ "proxyError",
60398
+ "createdAt",
60399
+ "updatedAt"
60400
+ ]
60401
+ }
60402
+ },
60403
+ "required": [
60404
+ "improvement"
60405
+ ]
60406
+ }
60407
+ }
60408
+ }
60409
+ },
60410
+ "400": {
60411
+ "description": "Invalid text or email, or `sendNow` without an email",
60412
+ "content": {
60413
+ "application/json": {
60414
+ "schema": {
60415
+ "$ref": "#/components/schemas/ErrorResponse"
60416
+ }
60417
+ }
60418
+ }
60419
+ },
60420
+ "403": {
60421
+ "description": "The caller may not draft improvements",
60422
+ "content": {
60423
+ "application/json": {
60424
+ "schema": {
60425
+ "$ref": "#/components/schemas/ErrorResponse"
60426
+ }
60427
+ }
60428
+ }
60429
+ },
60430
+ "409": {
60431
+ "description": "Improvements are turned off",
60432
+ "content": {
60433
+ "application/json": {
60434
+ "schema": {
60435
+ "$ref": "#/components/schemas/ErrorResponse"
60436
+ }
60437
+ }
60438
+ }
60439
+ }
60440
+ }
60441
+ }
60442
+ },
60443
+ "/api/improvements/{id}/approve": {
60444
+ "post": {
60445
+ "summary": "Approve and send a drafted improvement",
60446
+ "description": "Only a person may approve: a user token, or the shared key with no agent identity (recorded as `operator`). `approvedBy` is taken from the credential, never the body. `email` is required and is sent with the text and the install id. The stored text is sent as is; to change it, discard and draft again. A failed send can be approved again. There is no automatic retry.",
60447
+ "tags": [
60448
+ "Improvements"
60449
+ ],
60450
+ "security": [
60451
+ {
60452
+ "bearerAuth": []
60453
+ }
60454
+ ],
60455
+ "parameters": [
60456
+ {
60457
+ "schema": {
60458
+ "type": "string",
60459
+ "format": "uuid"
60460
+ },
60461
+ "required": true,
60462
+ "name": "id",
60463
+ "in": "path"
60464
+ }
60465
+ ],
60466
+ "requestBody": {
60467
+ "content": {
60468
+ "application/json": {
60469
+ "schema": {
60470
+ "type": "object",
60471
+ "properties": {
60472
+ "email": {
60473
+ "type": "string",
60474
+ "maxLength": 320,
60475
+ "format": "email",
60476
+ "description": "The approver's email, sent with the text."
60477
+ }
60478
+ },
60479
+ "required": [
60480
+ "email"
60481
+ ]
60482
+ }
60483
+ }
60484
+ }
60485
+ },
60486
+ "responses": {
60487
+ "200": {
60488
+ "description": "Approved. `status` is `sent`, or `failed` with the proxy status and error.",
60489
+ "content": {
60490
+ "application/json": {
60491
+ "schema": {
60492
+ "type": "object",
60493
+ "properties": {
60494
+ "improvement": {
60495
+ "type": "object",
60496
+ "properties": {
60497
+ "id": {
60498
+ "type": "string"
60499
+ },
60500
+ "text": {
60501
+ "type": "string"
60502
+ },
60503
+ "email": {
60504
+ "type": [
60505
+ "string",
60506
+ "null"
60507
+ ]
60508
+ },
60509
+ "status": {
60510
+ "type": "string",
60511
+ "enum": [
60512
+ "pending_approval",
60513
+ "sending",
60514
+ "sent",
60515
+ "failed",
60516
+ "discarded"
60517
+ ]
60518
+ },
60519
+ "source": {
60520
+ "type": "string",
60521
+ "enum": [
60522
+ "mcp",
60523
+ "api",
60524
+ "ui"
60525
+ ]
60526
+ },
60527
+ "requestedByAgentId": {
60528
+ "type": [
60529
+ "string",
60530
+ "null"
60531
+ ]
60532
+ },
60533
+ "approvedBy": {
60534
+ "type": [
60535
+ "string",
60536
+ "null"
60537
+ ]
60538
+ },
60539
+ "approvedAt": {
60540
+ "type": [
60541
+ "string",
60542
+ "null"
60543
+ ]
60544
+ },
60545
+ "sentAt": {
60546
+ "type": [
60547
+ "string",
60548
+ "null"
60549
+ ]
60550
+ },
60551
+ "proxyStatus": {
60552
+ "type": [
60553
+ "number",
60554
+ "null"
60555
+ ]
60556
+ },
60557
+ "proxyId": {
60558
+ "type": [
60559
+ "string",
60560
+ "null"
60561
+ ]
60562
+ },
60563
+ "proxyError": {
60564
+ "type": [
60565
+ "string",
60566
+ "null"
60567
+ ]
60568
+ },
60569
+ "createdAt": {
60570
+ "type": "string"
60571
+ },
60572
+ "updatedAt": {
60573
+ "type": "string"
60574
+ },
60575
+ "leakHints": {
60576
+ "type": "array",
60577
+ "items": {
60578
+ "type": "string"
60579
+ },
60580
+ "description": "Substrings that look install-specific (agent, repo, host, org or user email). Pending and failed rows only. They warn; they never block."
60581
+ }
60582
+ },
60583
+ "required": [
60584
+ "id",
60585
+ "text",
60586
+ "email",
60587
+ "status",
60588
+ "source",
60589
+ "requestedByAgentId",
60590
+ "approvedBy",
60591
+ "approvedAt",
60592
+ "sentAt",
60593
+ "proxyStatus",
60594
+ "proxyId",
60595
+ "proxyError",
60596
+ "createdAt",
60597
+ "updatedAt"
60598
+ ]
60599
+ }
60600
+ },
60601
+ "required": [
60602
+ "improvement"
60603
+ ]
60604
+ }
60605
+ }
60606
+ }
60607
+ },
60608
+ "400": {
60609
+ "description": "Missing or invalid email",
60610
+ "content": {
60611
+ "application/json": {
60612
+ "schema": {
60613
+ "$ref": "#/components/schemas/ErrorResponse"
60614
+ }
60615
+ }
60616
+ }
60617
+ },
60618
+ "403": {
60619
+ "description": "Caller is an agent",
60620
+ "content": {
60621
+ "application/json": {
60622
+ "schema": {
60623
+ "$ref": "#/components/schemas/ErrorResponse"
60624
+ }
60625
+ }
60626
+ }
60627
+ },
60628
+ "404": {
60629
+ "description": "Not found",
60630
+ "content": {
60631
+ "application/json": {
60632
+ "schema": {
60633
+ "$ref": "#/components/schemas/ErrorResponse"
60634
+ }
60635
+ }
60636
+ }
60637
+ },
60638
+ "409": {
60639
+ "description": "Already sent, sending or discarded, or improvements are turned off",
60640
+ "content": {
60641
+ "application/json": {
60642
+ "schema": {
60643
+ "$ref": "#/components/schemas/ErrorResponse"
60644
+ }
60645
+ }
60646
+ }
60647
+ }
60648
+ }
60649
+ }
60650
+ },
60651
+ "/api/improvements/{id}/discard": {
60652
+ "post": {
60653
+ "summary": "Discard a drafted improvement",
60654
+ "description": "A person may discard any pending or failed improvement. An agent may discard only a draft it requested.",
60655
+ "tags": [
60656
+ "Improvements"
60657
+ ],
60658
+ "security": [
60659
+ {
60660
+ "bearerAuth": []
60661
+ }
60662
+ ],
60663
+ "parameters": [
60664
+ {
60665
+ "schema": {
60666
+ "type": "string",
60667
+ "format": "uuid"
60668
+ },
60669
+ "required": true,
60670
+ "name": "id",
60671
+ "in": "path"
60672
+ }
60673
+ ],
60674
+ "responses": {
60675
+ "200": {
60676
+ "description": "Discarded",
60677
+ "content": {
60678
+ "application/json": {
60679
+ "schema": {
60680
+ "type": "object",
60681
+ "properties": {
60682
+ "improvement": {
60683
+ "type": "object",
60684
+ "properties": {
60685
+ "id": {
60686
+ "type": "string"
60687
+ },
60688
+ "text": {
60689
+ "type": "string"
60690
+ },
60691
+ "email": {
60692
+ "type": [
60693
+ "string",
60694
+ "null"
60695
+ ]
60696
+ },
60697
+ "status": {
60698
+ "type": "string",
60699
+ "enum": [
60700
+ "pending_approval",
60701
+ "sending",
60702
+ "sent",
60703
+ "failed",
60704
+ "discarded"
60705
+ ]
60706
+ },
60707
+ "source": {
60708
+ "type": "string",
60709
+ "enum": [
60710
+ "mcp",
60711
+ "api",
60712
+ "ui"
60713
+ ]
60714
+ },
60715
+ "requestedByAgentId": {
60716
+ "type": [
60717
+ "string",
60718
+ "null"
60719
+ ]
60720
+ },
60721
+ "approvedBy": {
60722
+ "type": [
60723
+ "string",
60724
+ "null"
60725
+ ]
60726
+ },
60727
+ "approvedAt": {
60728
+ "type": [
60729
+ "string",
60730
+ "null"
60731
+ ]
60732
+ },
60733
+ "sentAt": {
60734
+ "type": [
60735
+ "string",
60736
+ "null"
60737
+ ]
60738
+ },
60739
+ "proxyStatus": {
60740
+ "type": [
60741
+ "number",
60742
+ "null"
60743
+ ]
60744
+ },
60745
+ "proxyId": {
60746
+ "type": [
60747
+ "string",
60748
+ "null"
60749
+ ]
60750
+ },
60751
+ "proxyError": {
60752
+ "type": [
60753
+ "string",
60754
+ "null"
60755
+ ]
60756
+ },
60757
+ "createdAt": {
60758
+ "type": "string"
60759
+ },
60760
+ "updatedAt": {
60761
+ "type": "string"
60762
+ },
60763
+ "leakHints": {
60764
+ "type": "array",
60765
+ "items": {
60766
+ "type": "string"
60767
+ },
60768
+ "description": "Substrings that look install-specific (agent, repo, host, org or user email). Pending and failed rows only. They warn; they never block."
60769
+ }
60770
+ },
60771
+ "required": [
60772
+ "id",
60773
+ "text",
60774
+ "email",
60775
+ "status",
60776
+ "source",
60777
+ "requestedByAgentId",
60778
+ "approvedBy",
60779
+ "approvedAt",
60780
+ "sentAt",
60781
+ "proxyStatus",
60782
+ "proxyId",
60783
+ "proxyError",
60784
+ "createdAt",
60785
+ "updatedAt"
60786
+ ]
60787
+ }
60788
+ },
60789
+ "required": [
60790
+ "improvement"
60791
+ ]
60792
+ }
60793
+ }
60794
+ }
60795
+ },
60796
+ "403": {
60797
+ "description": "Caller is an agent that did not request this draft",
60798
+ "content": {
60799
+ "application/json": {
60800
+ "schema": {
60801
+ "$ref": "#/components/schemas/ErrorResponse"
60802
+ }
60803
+ }
60804
+ }
60805
+ },
60806
+ "404": {
60807
+ "description": "Not found",
60808
+ "content": {
60809
+ "application/json": {
60810
+ "schema": {
60811
+ "$ref": "#/components/schemas/ErrorResponse"
60812
+ }
60813
+ }
60814
+ }
60815
+ },
60816
+ "409": {
60817
+ "description": "Already sent or discarded, or improvements are turned off",
60818
+ "content": {
60819
+ "application/json": {
60820
+ "schema": {
60821
+ "$ref": "#/components/schemas/ErrorResponse"
60822
+ }
60823
+ }
60824
+ }
60825
+ }
60826
+ }
60827
+ }
60828
+ },
59977
60829
  "/api/fleet-benchmark": {
59978
60830
  "get": {
59979
60831
  "summary": "Compare this swarm with similar swarms",
@@ -60264,7 +61116,7 @@
60264
61116
  "put": {
60265
61117
  "operationId": "users_setRbacRoles",
60266
61118
  "summary": "Set a user's RBAC roles",
60267
- "description": "Replaces the user's roles. The set holds exactly one of admin, requester, viewer plus any extra roles. Demoting a user below admin removes the ability to answer approval requests, even when the user is listed as an approver. Fails with 409 when it would leave no active admin.",
61119
+ "description": "Replaces the user's roles. The set holds exactly one of admin, requester, viewer plus any extra roles. Demoting a user below admin removes the ability to answer approval requests, even when the user is listed as an approver. Fails with 409 when it would leave no active admin. Adding a role that grants session.read.all (the built-in auditor role) requires the operator key: every new user is a grant-all admin, so a user token could grant it to itself. Adding such a role revokes the user's MCP tokens and spends its unused connector and invite codes.",
60268
61120
  "tags": [
60269
61121
  "Users"
60270
61122
  ],
@@ -60329,7 +61181,7 @@
60329
61181
  }
60330
61182
  },
60331
61183
  "403": {
60332
- "description": "Not allowed to change roles",
61184
+ "description": "Not allowed to change roles, or adding an operator-only role with a user token",
60333
61185
  "content": {
60334
61186
  "application/json": {
60335
61187
  "schema": {
@@ -61207,6 +62059,16 @@
61207
62059
  }
61208
62060
  }
61209
62061
  },
62062
+ "403": {
62063
+ "description": "Target holds an operator-granted role (auditor) and the caller is not the operator key",
62064
+ "content": {
62065
+ "application/json": {
62066
+ "schema": {
62067
+ "$ref": "#/components/schemas/ErrorResponse"
62068
+ }
62069
+ }
62070
+ }
62071
+ },
61210
62072
  "404": {
61211
62073
  "description": "Target user not found",
61212
62074
  "content": {
@@ -61662,16 +62524,273 @@
61662
62524
  }
61663
62525
  }
61664
62526
  },
61665
- "400": {
61666
- "description": "Validation error or empty body",
61667
- "content": {
61668
- "application/json": {
61669
- "schema": {
61670
- "$ref": "#/components/schemas/ErrorResponse"
61671
- }
61672
- }
61673
- }
61674
- },
62527
+ "400": {
62528
+ "description": "Validation error or empty body",
62529
+ "content": {
62530
+ "application/json": {
62531
+ "schema": {
62532
+ "$ref": "#/components/schemas/ErrorResponse"
62533
+ }
62534
+ }
62535
+ }
62536
+ },
62537
+ "401": {
62538
+ "description": "Unauthorized",
62539
+ "content": {
62540
+ "application/json": {
62541
+ "schema": {
62542
+ "$ref": "#/components/schemas/ErrorResponse"
62543
+ }
62544
+ }
62545
+ }
62546
+ },
62547
+ "403": {
62548
+ "description": "Target holds an operator-granted role (auditor) and the caller is not the operator key",
62549
+ "content": {
62550
+ "application/json": {
62551
+ "schema": {
62552
+ "$ref": "#/components/schemas/ErrorResponse"
62553
+ }
62554
+ }
62555
+ }
62556
+ },
62557
+ "404": {
62558
+ "description": "User not found",
62559
+ "content": {
62560
+ "application/json": {
62561
+ "schema": {
62562
+ "$ref": "#/components/schemas/ErrorResponse"
62563
+ }
62564
+ }
62565
+ }
62566
+ }
62567
+ }
62568
+ }
62569
+ },
62570
+ "/api/users/{id}/mcp-tokens": {
62571
+ "post": {
62572
+ "summary": "Mint a one-time plaintext MCP token for a user",
62573
+ "description": "Returns the plaintext token exactly once. Subsequent reads only expose token summaries.",
62574
+ "tags": [
62575
+ "Users"
62576
+ ],
62577
+ "security": [
62578
+ {
62579
+ "bearerAuth": []
62580
+ }
62581
+ ],
62582
+ "parameters": [
62583
+ {
62584
+ "schema": {
62585
+ "type": "string"
62586
+ },
62587
+ "required": true,
62588
+ "name": "id",
62589
+ "in": "path"
62590
+ }
62591
+ ],
62592
+ "requestBody": {
62593
+ "content": {
62594
+ "application/json": {
62595
+ "schema": {
62596
+ "type": "object",
62597
+ "properties": {
62598
+ "label": {
62599
+ "type": [
62600
+ "string",
62601
+ "null"
62602
+ ]
62603
+ }
62604
+ }
62605
+ }
62606
+ }
62607
+ }
62608
+ },
62609
+ "responses": {
62610
+ "200": {
62611
+ "description": "Minted token plaintext, token summary and composed user",
62612
+ "content": {
62613
+ "application/json": {
62614
+ "schema": {
62615
+ "type": "object",
62616
+ "properties": {
62617
+ "plaintext": {
62618
+ "type": "string"
62619
+ },
62620
+ "token": {
62621
+ "type": "object",
62622
+ "properties": {
62623
+ "id": {
62624
+ "type": "string"
62625
+ },
62626
+ "userId": {
62627
+ "type": "string"
62628
+ },
62629
+ "label": {
62630
+ "type": [
62631
+ "string",
62632
+ "null"
62633
+ ]
62634
+ },
62635
+ "tokenPreview": {
62636
+ "type": "string"
62637
+ },
62638
+ "createdAt": {
62639
+ "type": "string"
62640
+ },
62641
+ "lastUsedAt": {
62642
+ "type": [
62643
+ "string",
62644
+ "null"
62645
+ ]
62646
+ },
62647
+ "revokedAt": {
62648
+ "type": [
62649
+ "string",
62650
+ "null"
62651
+ ]
62652
+ }
62653
+ },
62654
+ "required": [
62655
+ "id",
62656
+ "userId",
62657
+ "label",
62658
+ "tokenPreview",
62659
+ "createdAt",
62660
+ "lastUsedAt",
62661
+ "revokedAt"
62662
+ ]
62663
+ },
62664
+ "user": {
62665
+ "anyOf": [
62666
+ {
62667
+ "allOf": [
62668
+ {
62669
+ "$ref": "#/components/schemas/User"
62670
+ },
62671
+ {
62672
+ "type": "object",
62673
+ "properties": {
62674
+ "identities": {
62675
+ "type": "array",
62676
+ "items": {
62677
+ "type": "object",
62678
+ "properties": {
62679
+ "kind": {
62680
+ "type": "string"
62681
+ },
62682
+ "externalId": {
62683
+ "type": "string"
62684
+ }
62685
+ },
62686
+ "required": [
62687
+ "kind",
62688
+ "externalId"
62689
+ ]
62690
+ }
62691
+ },
62692
+ "tokens": {
62693
+ "type": "array",
62694
+ "items": {
62695
+ "type": "object",
62696
+ "properties": {
62697
+ "id": {
62698
+ "type": "string"
62699
+ },
62700
+ "userId": {
62701
+ "type": "string"
62702
+ },
62703
+ "label": {
62704
+ "type": [
62705
+ "string",
62706
+ "null"
62707
+ ]
62708
+ },
62709
+ "tokenPreview": {
62710
+ "type": "string"
62711
+ },
62712
+ "createdAt": {
62713
+ "type": "string"
62714
+ },
62715
+ "lastUsedAt": {
62716
+ "type": [
62717
+ "string",
62718
+ "null"
62719
+ ]
62720
+ },
62721
+ "revokedAt": {
62722
+ "type": [
62723
+ "string",
62724
+ "null"
62725
+ ]
62726
+ }
62727
+ },
62728
+ "required": [
62729
+ "id",
62730
+ "userId",
62731
+ "label",
62732
+ "tokenPreview",
62733
+ "createdAt",
62734
+ "lastUsedAt",
62735
+ "revokedAt"
62736
+ ]
62737
+ }
62738
+ },
62739
+ "recentEvents": {
62740
+ "type": "array",
62741
+ "items": {
62742
+ "type": "object",
62743
+ "properties": {
62744
+ "id": {
62745
+ "type": "string"
62746
+ },
62747
+ "userId": {
62748
+ "type": "string"
62749
+ },
62750
+ "eventType": {
62751
+ "type": "string"
62752
+ },
62753
+ "actor": {
62754
+ "type": "string"
62755
+ },
62756
+ "before": {},
62757
+ "after": {},
62758
+ "createdAt": {
62759
+ "type": "string"
62760
+ }
62761
+ },
62762
+ "required": [
62763
+ "id",
62764
+ "userId",
62765
+ "eventType",
62766
+ "actor",
62767
+ "createdAt"
62768
+ ]
62769
+ }
62770
+ }
62771
+ },
62772
+ "required": [
62773
+ "identities",
62774
+ "tokens",
62775
+ "recentEvents"
62776
+ ]
62777
+ }
62778
+ ]
62779
+ },
62780
+ {
62781
+ "type": "null"
62782
+ }
62783
+ ]
62784
+ }
62785
+ },
62786
+ "required": [
62787
+ "plaintext",
62788
+ "user"
62789
+ ]
62790
+ }
62791
+ }
62792
+ }
62793
+ },
61675
62794
  "401": {
61676
62795
  "description": "Unauthorized",
61677
62796
  "content": {
@@ -61682,245 +62801,8 @@
61682
62801
  }
61683
62802
  }
61684
62803
  },
61685
- "404": {
61686
- "description": "User not found",
61687
- "content": {
61688
- "application/json": {
61689
- "schema": {
61690
- "$ref": "#/components/schemas/ErrorResponse"
61691
- }
61692
- }
61693
- }
61694
- }
61695
- }
61696
- }
61697
- },
61698
- "/api/users/{id}/mcp-tokens": {
61699
- "post": {
61700
- "summary": "Mint a one-time plaintext MCP token for a user",
61701
- "description": "Returns the plaintext token exactly once. Subsequent reads only expose token summaries.",
61702
- "tags": [
61703
- "Users"
61704
- ],
61705
- "security": [
61706
- {
61707
- "bearerAuth": []
61708
- }
61709
- ],
61710
- "parameters": [
61711
- {
61712
- "schema": {
61713
- "type": "string"
61714
- },
61715
- "required": true,
61716
- "name": "id",
61717
- "in": "path"
61718
- }
61719
- ],
61720
- "requestBody": {
61721
- "content": {
61722
- "application/json": {
61723
- "schema": {
61724
- "type": "object",
61725
- "properties": {
61726
- "label": {
61727
- "type": [
61728
- "string",
61729
- "null"
61730
- ]
61731
- }
61732
- }
61733
- }
61734
- }
61735
- }
61736
- },
61737
- "responses": {
61738
- "200": {
61739
- "description": "Minted token plaintext, token summary and composed user",
61740
- "content": {
61741
- "application/json": {
61742
- "schema": {
61743
- "type": "object",
61744
- "properties": {
61745
- "plaintext": {
61746
- "type": "string"
61747
- },
61748
- "token": {
61749
- "type": "object",
61750
- "properties": {
61751
- "id": {
61752
- "type": "string"
61753
- },
61754
- "userId": {
61755
- "type": "string"
61756
- },
61757
- "label": {
61758
- "type": [
61759
- "string",
61760
- "null"
61761
- ]
61762
- },
61763
- "tokenPreview": {
61764
- "type": "string"
61765
- },
61766
- "createdAt": {
61767
- "type": "string"
61768
- },
61769
- "lastUsedAt": {
61770
- "type": [
61771
- "string",
61772
- "null"
61773
- ]
61774
- },
61775
- "revokedAt": {
61776
- "type": [
61777
- "string",
61778
- "null"
61779
- ]
61780
- }
61781
- },
61782
- "required": [
61783
- "id",
61784
- "userId",
61785
- "label",
61786
- "tokenPreview",
61787
- "createdAt",
61788
- "lastUsedAt",
61789
- "revokedAt"
61790
- ]
61791
- },
61792
- "user": {
61793
- "anyOf": [
61794
- {
61795
- "allOf": [
61796
- {
61797
- "$ref": "#/components/schemas/User"
61798
- },
61799
- {
61800
- "type": "object",
61801
- "properties": {
61802
- "identities": {
61803
- "type": "array",
61804
- "items": {
61805
- "type": "object",
61806
- "properties": {
61807
- "kind": {
61808
- "type": "string"
61809
- },
61810
- "externalId": {
61811
- "type": "string"
61812
- }
61813
- },
61814
- "required": [
61815
- "kind",
61816
- "externalId"
61817
- ]
61818
- }
61819
- },
61820
- "tokens": {
61821
- "type": "array",
61822
- "items": {
61823
- "type": "object",
61824
- "properties": {
61825
- "id": {
61826
- "type": "string"
61827
- },
61828
- "userId": {
61829
- "type": "string"
61830
- },
61831
- "label": {
61832
- "type": [
61833
- "string",
61834
- "null"
61835
- ]
61836
- },
61837
- "tokenPreview": {
61838
- "type": "string"
61839
- },
61840
- "createdAt": {
61841
- "type": "string"
61842
- },
61843
- "lastUsedAt": {
61844
- "type": [
61845
- "string",
61846
- "null"
61847
- ]
61848
- },
61849
- "revokedAt": {
61850
- "type": [
61851
- "string",
61852
- "null"
61853
- ]
61854
- }
61855
- },
61856
- "required": [
61857
- "id",
61858
- "userId",
61859
- "label",
61860
- "tokenPreview",
61861
- "createdAt",
61862
- "lastUsedAt",
61863
- "revokedAt"
61864
- ]
61865
- }
61866
- },
61867
- "recentEvents": {
61868
- "type": "array",
61869
- "items": {
61870
- "type": "object",
61871
- "properties": {
61872
- "id": {
61873
- "type": "string"
61874
- },
61875
- "userId": {
61876
- "type": "string"
61877
- },
61878
- "eventType": {
61879
- "type": "string"
61880
- },
61881
- "actor": {
61882
- "type": "string"
61883
- },
61884
- "before": {},
61885
- "after": {},
61886
- "createdAt": {
61887
- "type": "string"
61888
- }
61889
- },
61890
- "required": [
61891
- "id",
61892
- "userId",
61893
- "eventType",
61894
- "actor",
61895
- "createdAt"
61896
- ]
61897
- }
61898
- }
61899
- },
61900
- "required": [
61901
- "identities",
61902
- "tokens",
61903
- "recentEvents"
61904
- ]
61905
- }
61906
- ]
61907
- },
61908
- {
61909
- "type": "null"
61910
- }
61911
- ]
61912
- }
61913
- },
61914
- "required": [
61915
- "plaintext",
61916
- "user"
61917
- ]
61918
- }
61919
- }
61920
- }
61921
- },
61922
- "401": {
61923
- "description": "Unauthorized",
62804
+ "403": {
62805
+ "description": "Target holds an operator-granted role (auditor) and the caller is not the operator key",
61924
62806
  "content": {
61925
62807
  "application/json": {
61926
62808
  "schema": {
@@ -62215,6 +63097,16 @@
62215
63097
  }
62216
63098
  }
62217
63099
  },
63100
+ "403": {
63101
+ "description": "Target holds an operator-granted role (auditor) and the caller is not the operator key",
63102
+ "content": {
63103
+ "application/json": {
63104
+ "schema": {
63105
+ "$ref": "#/components/schemas/ErrorResponse"
63106
+ }
63107
+ }
63108
+ }
63109
+ },
62218
63110
  "404": {
62219
63111
  "description": "User not found",
62220
63112
  "content": {
@@ -62899,6 +63791,16 @@
62899
63791
  }
62900
63792
  }
62901
63793
  },
63794
+ "403": {
63795
+ "description": "Target holds an operator-granted role (auditor) and the caller is not the operator key",
63796
+ "content": {
63797
+ "application/json": {
63798
+ "schema": {
63799
+ "$ref": "#/components/schemas/ErrorResponse"
63800
+ }
63801
+ }
63802
+ }
63803
+ },
62902
63804
  "404": {
62903
63805
  "description": "Target or source user not found",
62904
63806
  "content": {
@@ -63130,6 +64032,16 @@
63130
64032
  }
63131
64033
  }
63132
64034
  },
64035
+ "403": {
64036
+ "description": "Target holds an operator-granted role (auditor) and the caller is not the operator key",
64037
+ "content": {
64038
+ "application/json": {
64039
+ "schema": {
64040
+ "$ref": "#/components/schemas/ErrorResponse"
64041
+ }
64042
+ }
64043
+ }
64044
+ },
63133
64045
  "404": {
63134
64046
  "description": "User not found",
63135
64047
  "content": {