@desplega.ai/agent-swarm 2.7.7 → 2.7.9
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.
- package/dist/acp-adapter-dn4gdsgr.js +16 -0
- package/dist/{actions-3tt153af.js → actions-g563mbn2.js} +19 -19
- package/dist/{amp-adapter-njpts0yr.js → amp-adapter-q61w05eb.js} +3 -3
- package/dist/{anthropic-messages-xey2skwx.js → anthropic-messages-jkva0zps.js} +68 -78
- package/dist/{app-nky4378f.js → app-a66ssc4k.js} +3 -3
- package/dist/{assistant-jnb669pa.js → assistant-p477rjwj.js} +22 -22
- package/dist/{azure-openai-responses-26t7j9ra.js → azure-openai-responses-wgtqkbr3.js} +5 -10
- package/dist/boot-args-schema-h4qj462e.js +89 -0
- package/dist/{boot-reembed-9mgvaztt.js → boot-reembed-n1ehfbsw.js} +1 -1
- package/dist/{boot-reembed-qs2djdej.js → boot-reembed-qw4mc0pt.js} +1 -1
- package/dist/{boot-scrub-sweep-yjpdj7s1.js → boot-scrub-sweep-9w9jp4sm.js} +4 -4
- package/dist/{boot-seeds-5cm6ambd.js → boot-seeds-qdaf3sdy.js} +5 -4
- package/dist/{boxd-nv507va8.js → boxd-qbkxy6ap.js} +1 -1
- package/dist/{claude-adapter-fn287zmm.js → claude-adapter-348p5hx9.js} +8 -8
- package/dist/{claude-managed-adapter-dvs2xw5n.js → claude-managed-adapter-h74d06yz.js} +4 -4
- package/dist/{claude-managed-setup-wtdz2mj2.js → claude-managed-setup-7787fxtp.js} +5 -5
- package/dist/{claude-sdk-session-x91kqyhm.js → claude-sdk-session-hbszbt8a.js} +7901 -7718
- package/dist/{cli-cb2a8pna.js → cli-09kmfkmq.js} +4 -6
- package/dist/{cli-m0da8j35.js → cli-0whpms1z.js} +15 -10
- package/dist/{cli-5zx699j9.js → cli-12xyjhws.js} +29 -12
- package/dist/{cli-snpj5zbj.js → cli-1z4qggfe.js} +9 -36
- package/dist/{cli-e0kmphd6.js → cli-21159vea.js} +35 -12
- package/dist/{cli-s0qnd4wv.js → cli-28fq781p.js} +1 -1
- package/dist/{cli-qh4d4tvk.js → cli-2a8py3sx.js} +6 -6
- package/dist/{cli-adeegh7d.js → cli-2ccpqyyf.js} +412 -116
- package/dist/{cli-1p89xny0.js → cli-2r0jcc3k.js} +1 -1
- package/dist/{cli-rvtm68yy.js → cli-2xv18ywz.js} +2 -2
- package/dist/{cli-5xaqj21p.js → cli-3kd08rej.js} +1 -1
- package/dist/{cli-1c6tzt8g.js → cli-3tqcamp6.js} +13 -13
- package/dist/{cli-ae7mrdf9.js → cli-3vjhs18n.js} +4 -6
- package/dist/{cli-vfym7wmz.js → cli-3xcwp3z8.js} +10 -12
- package/dist/{cli-az48n0nr.js → cli-4caa1x7d.js} +67 -64
- package/dist/{cli-5jnhv72d.js → cli-4t0fmf3z.js} +30 -7
- package/dist/{cli-5b456bpf.js → cli-530hkwdy.js} +7 -9
- package/dist/{cli-pz4rk021.js → cli-54vrpgm0.js} +1 -1
- package/dist/{cli-ddaanqkd.js → cli-587857ys.js} +7 -7
- package/dist/{cli-r9jqcehk.js → cli-5mpy301f.js} +38 -2
- package/dist/{cli-cppkf404.js → cli-605nn699.js} +80 -43
- package/dist/{cli-6pfd54vx.js → cli-650zv9q9.js} +10 -10
- package/dist/cli-6pzk82fd.js +778 -0
- package/dist/{cli-gz6q4eve.js → cli-715t1gx6.js} +9 -9
- package/dist/{cli-08bmz9z9.js → cli-9aezs55w.js} +10 -12
- package/dist/{cli-tgrv9cjx.js → cli-9r5gtwjr.js} +3 -3
- package/dist/{cli-pc6n7fre.js → cli-a0657jmf.js} +2 -2
- package/dist/{cli-pjctyea3.js → cli-agyaeef4.js} +3 -3
- package/dist/cli-b932gexn.js +5266 -0
- package/dist/{cli-e46hg0xw.js → cli-bc779n4v.js} +3 -3
- package/dist/{cli-jtjtabxe.js → cli-btc9cb4c.js} +78 -5
- package/dist/{cli-caj33vcq.js → cli-btf6fw39.js} +5 -5
- package/dist/{cli-q3tkegby.js → cli-cseh6f8w.js} +5 -5
- package/dist/{cli-n6bv12jn.js → cli-cvs2r2vq.js} +23 -14
- package/dist/{cli-tfyyvzx6.js → cli-cyn9v8zr.js} +17 -2
- package/dist/{cli-a22h291q.js → cli-d6521kb5.js} +1 -1
- package/dist/{cli-1b7btd38.js → cli-d84byzn8.js} +869 -5
- package/dist/{cli-wx3rhnm0.js → cli-eddnyg3t.js} +1 -1
- package/dist/{cli-nmzhp1b5.js → cli-ejkvvqbe.js} +55 -46
- package/dist/{cli-ftyxyspd.js → cli-eqtfgfr6.js} +1 -1
- package/dist/{cli-mthwvjre.js → cli-f2zenhja.js} +1 -1
- package/dist/{cli-ws19768n.js → cli-fayav105.js} +624 -227
- package/dist/{cli-ferkkrg9.js → cli-fjggej24.js} +2 -2
- package/dist/{cli-g7s47cc5.js → cli-fsgttth8.js} +123 -102
- package/dist/{cli-8305gbq0.js → cli-gce09r66.js} +5 -5
- package/dist/{cli-mkk9rnzz.js → cli-gxy8y1dt.js} +51 -4
- package/dist/{cli-fyt2g4wd.js → cli-hae9j8sv.js} +288 -76
- package/dist/{cli-agfm16v9.js → cli-hg42n3hx.js} +12 -12
- package/dist/{cli-qghe0h66.js → cli-hwprv9e4.js} +8 -10
- package/dist/{cli-yndmfxb3.js → cli-hxpyc9sn.js} +3 -3
- package/dist/{cli-72v799xn.js → cli-jfx48xrj.js} +10 -12
- package/dist/{cli-dhar9qay.js → cli-jrp1dt73.js} +2 -2
- package/dist/{cli-98rw5dt5.js → cli-jrzkw01m.js} +2 -2
- package/dist/{cli-ayayvfg4.js → cli-k70e3x9e.js} +24 -20
- package/dist/{cli-583frbyr.js → cli-kchjb7qy.js} +1 -1
- package/dist/{cli-cm5yqn35.js → cli-kf3pxxdg.js} +1 -0
- package/dist/{cli-fmjd0t1y.js → cli-m0cy2vyf.js} +2 -2
- package/dist/{cli-4zsenjhy.js → cli-m5akxq8q.js} +16 -3
- package/dist/{cli-73jzwksr.js → cli-m88rpzkh.js} +6 -3
- package/dist/{cli-95jzxcp3.js → cli-mnrkgg60.js} +4 -4
- package/dist/{cli-p82cnnjq.js → cli-ms5m5r1y.js} +1 -1
- package/dist/{cli-fy6x31ps.js → cli-n5yexkdg.js} +1 -0
- package/dist/{cli-wk5yrfwd.js → cli-neyag5p6.js} +191 -85
- package/dist/cli-p0m0p34z.js +9321 -0
- package/dist/{cli-yyj3j5m4.js → cli-p17970qv.js} +8 -10
- package/dist/{cli-6vcp76qk.js → cli-p74md7t8.js} +42 -23
- package/dist/{cli-rjcbm574.js → cli-pr0eze3x.js} +2 -2
- package/dist/{cli-35rsp8ye.js → cli-qkdmz8c8.js} +1 -1
- package/dist/{cli-rtt8g4v9.js → cli-qmd3mse0.js} +2 -2
- package/dist/{cli-je518txm.js → cli-qzt90yze.js} +20 -20
- package/dist/cli-rkc97c6a.js +39 -0
- package/dist/{cli-75gkpjvw.js → cli-rvhdmjvt.js} +8 -12
- package/dist/{cli-6g0hb4cp.js → cli-rwymrnaz.js} +18608 -9089
- package/dist/{cli-3fg0bdcv.js → cli-serm8zrx.js} +6 -6
- package/dist/{cli-g08zdaec.js → cli-sgs5k6yd.js} +1 -1
- package/dist/{cli-afkqkrtw.js → cli-sya22y84.js} +21 -9
- package/dist/{cli-318r69gq.js → cli-t73cas91.js} +440 -9
- package/dist/{cli-e5bzrn01.js → cli-tqq0hspb.js} +2 -2
- package/dist/{cli-pq73h5mz.js → cli-v3cf1ts9.js} +3 -3
- package/dist/{cli-bfv7vdg6.js → cli-varqt4d1.js} +28 -16
- package/dist/{cli-k899ehvh.js → cli-vxh6acp7.js} +6 -6
- package/dist/{cli-g83s9ewh.js → cli-xfjrc279.js} +1 -1
- package/dist/{cli-k1nje3v3.js → cli-xk879m3k.js} +129 -115
- package/dist/{cli-7cx2m6t2.js → cli-y5rbvxhc.js} +2 -2
- package/dist/{cli-8sckt74b.js → cli-y8nbefpb.js} +41 -19
- package/dist/{cli-81p9jd57.js → cli-yab6sh8p.js} +9 -3
- package/dist/{cli-srye3vdt.js → cli-ybjdc978.js} +1 -1
- package/dist/{cli-k5671be5.js → cli-zcfpsfzf.js} +5 -5
- package/dist/{cli-vf078p3e.js → cli-zfqg6fzn.js} +1 -1
- package/dist/{cli-k8196sh2.js → cli-zgv8gxgs.js} +9 -8
- package/dist/cli.js +34 -52
- package/dist/{cloudflare-workers-ai-system-one-ef2a980q.js → cloudflare-workers-ai-system-one-9y1zx3pt.js} +2 -2
- package/dist/{codex-adapter-cf2yxe9m.js → codex-adapter-ysq6bzha.js} +7 -7
- package/dist/{codex-hook-a0c6g6t6.js → codex-hook-fac6175r.js} +1 -1
- package/dist/{codex-login-y0pmff1c.js → codex-login-bcda78ge.js} +2 -2
- package/dist/{codex-session-runner-6vfzdgbd.js → codex-session-runner-qakzfx93.js} +8 -8
- package/dist/{commands-t3mfy7vn.js → commands-rs7hkv9r.js} +3 -3
- package/dist/{controller-q7xrbaz0.js → controller-r5x9bg6e.js} +4 -4
- package/dist/{controllers-connect-c6nm70kg.js → controllers-connect-498hrxvk.js} +24 -24
- package/dist/{cursor-adapter-ftd81ga8.js → cursor-adapter-d46qszer.js} +2 -2
- package/dist/{db-vemtpmcc.js → db-pm96nhdb.js} +6 -2
- package/dist/{db-dk572x25.js → db-s13dqhr6.js} +3 -3
- package/dist/{devin-adapter-r9phbnc9.js → devin-adapter-z46ep5ph.js} +1 -1
- package/dist/{dispatcher-kh7ecxh9.js → dispatcher-j3h81t7m.js} +18 -18
- package/dist/{docker-c1a3gqmf.js → docker-866qpzt9.js} +2 -2
- package/dist/{dsh-adapter-v8628r89.js → dsh-adapter-rw0d5rc4.js} +2 -2
- package/dist/{e2b-fr12yccx.js → e2b-jkwfhbcv.js} +2 -2
- package/dist/{e2b-x6ywzak3.js → e2b-s16txnpx.js} +2 -3
- package/dist/{easter-egg-3d-nenw4x63.js → easter-egg-3d-qtgfxgze.js} +1 -1
- package/dist/{embedding-space-0jepb239.js → embedding-space-xh8p4q4x.js} +6 -6
- package/dist/{embeddings-xxt49yxg.js → embeddings-wp745m91.js} +1 -1
- package/dist/{event-bus-g0ka3pbw.js → event-bus-e66gh7cc.js} +1 -1
- package/dist/{execute-1mhw6e4x.js → execute-2fzb9z74.js} +1 -1
- package/dist/{external-channel-55v12e60.js → external-channel-ys21h3sy.js} +2 -2
- package/dist/fx-adapter-vz0b9z3g.js +19 -0
- package/dist/{google-generative-ai-v94hr7h0.js → google-generative-ai-ytpgncx9.js} +7 -12
- package/dist/{google-vertex-g7vr6cf8.js → google-vertex-tqhze5j7.js} +7 -12
- package/dist/grok-adapter-spea7zkj.js +19 -0
- package/dist/handlers-crckt5dq.js +32 -0
- package/dist/{heartbeat-k42svnr0.js → heartbeat-8phn1kdq.js} +21 -21
- package/dist/{hook-6nphweh0.js → hook-amcj4s10.js} +16 -11
- package/dist/{hook-114m7hap.js → hook-bc6n49qn.js} +5 -5
- package/dist/{http-r8cc4wz7.js → http-7374brv5.js} +854 -332
- package/dist/index-4x08sjtk.js +30 -0
- package/dist/{index-6cxzwfen.js → index-5a9jtqde.js} +26 -26
- package/dist/index-8ybffts4.js +37 -0
- package/dist/{index-nh3wyqdt.js → index-c9y31ytf.js} +16 -16
- package/dist/{index-h39zbx67.js → index-hsad2t3r.js} +31 -31
- package/dist/index-nfy4kkg5.js +33 -0
- package/dist/{index-e3s8wmxy.js → index-p4hjwbvw.js} +1 -1
- package/dist/{index-k7fj52d3.js → index-q5cmtbz5.js} +6 -6
- package/dist/{index-fpk4bcd9.js → index-w4m9z29z.js} +1 -1
- package/dist/{keepalive-x060nt9p.js → keepalive-wy29kbrg.js} +4 -4
- package/dist/lead-zdqxsvjn.js +71 -0
- package/dist/{llama-cpp-classify-s5c47rwh.js → llama-cpp-classify-nfgswa1m.js} +2 -2
- package/dist/{maintenance-2xxfexhf.js → maintenance-h2ds9w6c.js} +1 -1
- package/dist/{mistral-conversations-3gjpdb4b.js → mistral-conversations-a45tx39a.js} +29 -51
- package/dist/{oauth-refresh-sweep-fckc4ar5.js → oauth-refresh-sweep-q7mtbyp3.js} +3 -3
- package/dist/{onboard-zc48j237.js → onboard-vw8r2fdw.js} +68 -16
- package/dist/{openai-codex-responses-8pbxq9h5.js → openai-codex-responses-k9gapdze.js} +7 -11
- package/dist/{openai-completions-rm00s912.js → openai-completions-xd579js7.js} +50 -58
- package/dist/{openai-decisions-8v957r2r.js → openai-decisions-q3hh60wr.js} +2 -2
- package/dist/{openai-responses-agxpf96k.js → openai-responses-4d5dx3c7.js} +5 -10
- package/dist/{opencode-adapter-r690h1cr.js → opencode-adapter-mtb0953j.js} +6 -6
- package/dist/{openrouter-images-3ecegv0d.js → openrouter-images-xr9gme9x.js} +4 -3
- package/dist/{otel-impl-r5xbh81q.js → otel-impl-j42czw3r.js} +2 -2
- package/dist/{pi-messages-pchtw4he.js → pi-messages-hjbv8v10.js} +28 -12
- package/dist/{pi-mono-adapter-c7v8sdec.js → pi-mono-adapter-zk8pg9jr.js} +30 -27
- package/dist/{pricing-refresh-3pmre11v.js → pricing-refresh-x7nhv23d.js} +3 -3
- package/dist/{rbac-roles-3vbshwsb.js → rbac-roles-9044425x.js} +16 -2
- package/dist/rbac-roles-bzvee6cf.js +37 -0
- package/dist/{render-v2-pxykkbab.js → render-v2-t7bn4skz.js} +3 -3
- package/dist/{resume-adda0bwy.js → resume-x94gemep.js} +7 -7
- package/dist/{runtime-fnbm7stk.js → runtime-breq6fmv.js} +1 -1
- package/dist/{session-access-2fvamrdc.js → session-access-q7dmqjvt.js} +7 -5
- package/dist/{session-source-backfill-08xvv0sm.js → session-source-backfill-440ysamr.js} +3 -3
- package/dist/{setup-1aqmvmh1.js → setup-07n4727s.js} +1 -1
- package/dist/{typesafe-system-one-0bmqcxfg.js → typesafe-system-one-f2en2knd.js} +2 -2
- package/dist/virtual-modules-z5h6mcyf.js +362 -0
- package/dist/{work-objects-9s0yrm5j.js → work-objects-pnq5y534.js} +21 -21
- package/dist/{worker-follow-up-3q78fqmr.js → worker-follow-up-7z1gfkr8.js} +18 -18
- package/dist/worker-y62rvvq3.js +71 -0
- package/dist/{x-vmmye1kb.js → x-2fyrt5pp.js} +2 -2
- package/openapi.json +1268 -276
- package/package.json +10 -10
- package/src/apps/catalog.generated.json +299 -82
- package/src/apps/page-validator.ts +115 -2
- package/src/be/connector-codes.ts +21 -6
- package/src/be/db/model-profiles.ts +1 -1
- package/src/be/db/session-tree.ts +9 -5
- package/src/be/db/session-visibility.ts +25 -9
- package/src/be/db/tasks/read.ts +33 -6
- package/src/be/db/tasks/write.ts +77 -7
- package/src/be/db-queries/tracker.ts +4 -2
- package/src/be/db.ts +53 -19
- package/src/be/improvements.ts +416 -0
- package/src/be/migrations/271_subscription_usage_model.sql +30 -0
- package/src/be/migrations/274_improvements.sql +27 -0
- package/src/be/migrations/275_task_dispatched_by.sql +8 -0
- package/src/be/model-validation.ts +19 -1
- package/src/be/rbac-roles.ts +144 -1
- package/src/be/runtime-pools/routing.ts +1 -1
- package/src/be/scripts/boot-args-schema.ts +95 -0
- package/src/be/scripts/extract-schema.ts +15 -10
- package/src/be/seed-scripts/catalog/boot-triage.inline.ts +1 -1
- package/src/be/seed-scripts/catalog/boot-triage.ts +1 -1
- package/src/be/seed-scripts/catalog/get-child-outputs.ts +1 -1
- package/src/be/seed-scripts/catalog/wait-for-task.ts +1 -1
- package/src/be/swarm-config-guard.ts +8 -0
- package/src/be/users.ts +64 -5
- package/src/cli.tsx +5 -25
- package/src/commands/claude-managed-setup.ts +1 -1
- package/src/commands/codex-login.ts +1 -1
- package/src/commands/e2b.ts +0 -1
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/onboard/compose-generator.ts +0 -1
- package/src/commands/onboard/dashboard-url.ts +31 -0
- package/src/commands/onboard/steps/generate.tsx +17 -1
- package/src/commands/onboard/steps/post-dashboard.tsx +9 -3
- package/src/commands/onboard.tsx +19 -6
- package/src/commands/runner.ts +143 -105
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/hooks/hook.ts +13 -5
- package/src/http/agents.ts +7 -1
- package/src/http/all-routes.ts +1 -0
- package/src/http/approval-requests.ts +32 -50
- package/src/http/auth.ts +5 -4
- package/src/http/codex-oauth-accounts.ts +31 -23
- package/src/http/codex-oauth-device.ts +3 -3
- package/src/http/codex-oauth-keep-warm.ts +1 -1
- package/src/http/improvements.ts +317 -0
- package/src/http/index.ts +10 -0
- package/src/http/mcp-oauth.ts +6 -0
- package/src/http/mcp-servers.ts +8 -0
- package/src/http/models-catalog.ts +1 -1
- package/src/http/operator-actor.ts +2 -1
- package/src/http/pages-public.ts +38 -1
- package/src/http/person-responder.ts +66 -0
- package/src/http/poll.ts +3 -4
- package/src/http/prompt-templates.ts +1 -1
- package/src/http/schedules.ts +4 -0
- package/src/http/script-runs.ts +6 -1
- package/src/http/session-access.ts +61 -6
- package/src/http/sessions.ts +67 -9
- package/src/http/tasks.ts +53 -9
- package/src/http/user-roles.ts +11 -2
- package/src/http/users.ts +224 -105
- package/src/http/utils.ts +2 -1
- package/src/http/workflows.ts +11 -7
- package/src/prompts/session-templates.ts +1 -0
- package/src/providers/acp-targets.ts +1 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +17 -3
- package/src/providers/codex-models.ts +4 -3
- package/src/providers/codex-oauth/auth-json.ts +14 -18
- package/src/providers/codex-oauth/device.ts +49 -15
- package/src/providers/codex-oauth/flow.ts +2 -1
- package/src/providers/codex-oauth/storage.ts +2 -2
- package/src/providers/pi-mono-adapter.ts +8 -0
- package/src/providers/pricing-sources.md +16 -1
- package/src/providers/swarm-events-shared.ts +15 -2
- package/src/rbac/legacy-policy.ts +3 -0
- package/src/rbac/permissions.ts +15 -0
- package/src/scheduler/deferred-task-waits.ts +9 -4
- package/src/scripts-runtime/extract-args-schema.ts +3 -1
- package/src/scripts-runtime/swarm-sdk.ts +1 -1
- package/src/scripts-runtime/types/swarm-extension.d.ts +31 -28
- package/src/server-user.ts +1 -1
- package/src/server.ts +2 -0
- package/src/slack/ack.ts +68 -26
- package/src/slack/blocks.ts +1 -0
- package/src/slack/reaction-shortcode.ts +8 -2
- package/src/slack/render-v2.ts +72 -20
- package/src/slack/task-output.ts +4 -1
- package/src/slack/thread-buffer.ts +2 -2
- package/src/tasks/task-skip.ts +28 -0
- package/src/tasks/terminal-result-guard.ts +3 -2
- package/src/telemetry.ts +28 -1
- package/src/tests/agentmail-inbox-mapping.test.ts +73 -0
- package/src/tests/api-drain-worker-e2e.test.ts +69 -2
- package/src/tests/approval-requests.test.ts +58 -0
- package/src/tests/apps-catalog-drift.test.ts +35 -0
- package/src/tests/apps-catalog-table.test.ts +203 -0
- package/src/tests/apps-element-assembly.test.ts +28 -0
- package/src/tests/apps-smart-links.test.ts +151 -0
- package/src/tests/apps-table-filters-migration.test.ts +96 -0
- package/src/tests/apps-table-selection-migration.test.ts +95 -0
- package/src/tests/chatgpt-subscription-session-bench.test.ts +2 -2
- package/src/tests/claude-managed-setup.test.ts +36 -0
- package/src/tests/claude-worker-parity.test.ts +2 -2
- package/src/tests/codex-adapter.test.ts +32 -2
- package/src/tests/codex-login.test.ts +2 -2
- package/src/tests/codex-oauth-accounts.test.ts +48 -12
- package/src/tests/codex-oauth-credential-info.test.ts +77 -1
- package/src/tests/codex-oauth-device.test.ts +61 -1
- package/src/tests/codex-oauth-keep-warm.test.ts +2 -2
- package/src/tests/codex-oauth.test.ts +25 -4
- package/src/tests/codex-pool.test.ts +2 -2
- package/src/tests/codex-swarm-events.test.ts +43 -1
- package/src/tests/context-window.test.ts +14 -0
- package/src/tests/db-queries-tracker.test.ts +2 -1
- package/src/tests/db-task-read-contract.test.ts +3 -0
- package/src/tests/db-task-write-contract.test.ts +3 -0
- package/src/tests/deferred-task-wake.test.ts +7 -2
- package/src/tests/deploy-one-box.test.ts +39 -1
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/e2e-coverage-contract.test.ts +235 -0
- package/src/tests/empty-output-schema.test.ts +160 -0
- package/src/tests/env-flag.test.ts +1 -0
- package/src/tests/explicit-model-validation.test.ts +14 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +0 -4
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +0 -3
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +0 -11
- package/src/tests/fixtures/onboard/full.compose.yml.txt +0 -11
- package/src/tests/fixtures/onboard/research.compose.yml.txt +0 -3
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +0 -1
- package/src/tests/fixtures/prs-app-definition.json.txt +784 -0
- package/src/tests/fixtures/prs-filters-migration.patch.json.txt +318 -0
- package/src/tests/fixtures/prs-selection-migration.patch.json.txt +373 -0
- package/src/tests/fixtures/runner-identity-refresh.ts +3 -0
- package/src/tests/fixtures/runner-legacy-resume-prompt.ts +3 -0
- package/src/tests/fixtures/runner-task-start-reads.ts +140 -0
- package/src/tests/hook-ping-me-order.test.ts +85 -0
- package/src/tests/http-api-integration.test.ts +2 -2
- package/src/tests/http-users.test.ts +63 -0
- package/src/tests/improvements-payload.test.ts +200 -0
- package/src/tests/improvements-route.test.ts +419 -0
- package/src/tests/install-sh-setup-url.test.ts +190 -0
- package/src/tests/mcp-input-caps.test.ts +4 -3
- package/src/tests/merge-gate-detect-changes.test.ts +22 -0
- package/src/tests/onboard-dashboard-output.test.ts +109 -0
- package/src/tests/onboard-dashboard-url.test.ts +83 -0
- package/src/tests/operator-granted-credentials.test.ts +561 -0
- package/src/tests/operator-granted-role-wire.test.ts +222 -0
- package/src/tests/pages-authed-mode.test.ts +13 -2
- package/src/tests/pi-mono-adapter.test.ts +39 -4
- package/src/tests/rbac-engine.test.ts +3 -0
- package/src/tests/runner-context-usage.test.ts +118 -0
- package/src/tests/runner-legacy-options.test.ts +55 -0
- package/src/tests/runner-slot-reconcile.test.ts +38 -0
- package/src/tests/runner-task-start-reads.test.ts +58 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-executor-quickjs.test.ts +2 -0
- package/src/tests/script-runs-http.test.ts +57 -0
- package/src/tests/scripts-boot-args-schema.test.ts +181 -0
- package/src/tests/scripts-runtime.test.ts +24 -0
- package/src/tests/sdk-store-progress-skipped.test.ts +155 -0
- package/src/tests/send-task-dispatched-by.test.ts +129 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +59 -0
- package/src/tests/session-dispatched-tasks.test.ts +115 -0
- package/src/tests/session-sharing.test.ts +402 -3
- package/src/tests/slack-file-tools-attachments.test.ts +95 -3
- package/src/tests/slack-reaction-config.test.ts +40 -0
- package/src/tests/slack-render-v2.test.ts +120 -0
- package/src/tests/slack-skip-reaction.test.ts +203 -0
- package/src/tests/store-progress-skipped.test.ts +159 -0
- package/src/tests/submit-improvement-tool.test.ts +82 -0
- package/src/tests/subscription-usage-migration.test.ts +57 -0
- package/src/tests/swarm-config-reserved-keys.test.ts +3 -0
- package/src/tests/telemetry-endpoint-override.test.ts +27 -0
- package/src/tests/tool-annotations.test.ts +1 -1
- package/src/tests/trigger-claiming.test.ts +2 -0
- package/src/tests/workflow-system-one-extraction.test.ts +29 -0
- package/src/tools/create-channel.ts +1 -1
- package/src/tools/defer-task.ts +1 -1
- package/src/tools/manage-user.ts +88 -58
- package/src/tools/register-agentmail-inbox.ts +5 -0
- package/src/tools/repos/update-repo.ts +1 -1
- package/src/tools/request-human-input.ts +1 -1
- package/src/tools/send-task.ts +4 -1
- package/src/tools/slack-read.ts +61 -33
- package/src/tools/store-progress.ts +39 -8
- package/src/tools/submit-improvement.ts +68 -0
- package/src/tools/tool-config.ts +3 -0
- package/src/tools/tracker/tracker-unlink.ts +2 -1
- package/src/tools/workflows/retry-workflow-run.ts +3 -0
- package/src/types.ts +16 -2
- package/src/utils/context-window.ts +6 -1
- package/src/utils/output-schema.ts +23 -0
- package/src/utils/request-auth-context.ts +6 -1
- package/src/workflows/executors/system-one-providers.ts +25 -6
- package/src/workflows/recovery.ts +8 -4
- package/src/workflows/resume.ts +19 -0
- package/templates/skills/apps/SKILL.md +22 -11
- package/templates/skills/apps/content.md +22 -11
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
- package/templates/skills/swarm-scripts/content.md +1 -1
- package/templates/skills/work-on-task/SKILL.md +1 -1
- package/templates/skills/work-on-task/content.md +1 -1
- package/dist/acp-adapter-7b4vk3h5.js +0 -16
- package/dist/cli-5c4hjzne.js +0 -873
- package/dist/cli-excnnjg2.js +0 -20222
- package/dist/cli-pc5znp64.js +0 -364
- package/dist/cli-vz22fyqv.js +0 -428
- package/dist/fx-adapter-bs8wqrk5.js +0 -19
- package/dist/grok-adapter-gpjqmkcq.js +0 -19
- package/dist/handlers-zxmp1ta4.js +0 -32
- package/dist/index-a8phxqnk.js +0 -37
- package/dist/index-k6h00t4c.js +0 -30
- package/dist/index-xrz7te8h.js +0 -33
- package/dist/lead-956sd2yc.js +0 -71
- package/dist/rbac-roles-910mmkgz.js +0 -26
- package/dist/virtual-modules-d2pjk9j1.js +0 -59
- package/dist/worker-y15hy08h.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.
|
|
5
|
+
"version": "2.7.9",
|
|
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": [
|
|
@@ -153,7 +153,8 @@
|
|
|
153
153
|
"completed",
|
|
154
154
|
"failed",
|
|
155
155
|
"cancelled",
|
|
156
|
-
"superseded"
|
|
156
|
+
"superseded",
|
|
157
|
+
"skipped"
|
|
157
158
|
]
|
|
158
159
|
},
|
|
159
160
|
"source": {
|
|
@@ -343,6 +344,9 @@
|
|
|
343
344
|
"parentTaskId": {
|
|
344
345
|
"type": "string"
|
|
345
346
|
},
|
|
347
|
+
"dispatchedByTaskId": {
|
|
348
|
+
"type": "string"
|
|
349
|
+
},
|
|
346
350
|
"claudeSessionId": {
|
|
347
351
|
"type": "string"
|
|
348
352
|
},
|
|
@@ -3719,6 +3723,7 @@
|
|
|
3719
3723
|
"url",
|
|
3720
3724
|
"name",
|
|
3721
3725
|
"clonePath",
|
|
3726
|
+
"hooks",
|
|
3722
3727
|
"createdAt",
|
|
3723
3728
|
"lastUpdatedAt"
|
|
3724
3729
|
]
|
|
@@ -3731,9 +3736,7 @@
|
|
|
3731
3736
|
"default": false
|
|
3732
3737
|
}
|
|
3733
3738
|
},
|
|
3734
|
-
"
|
|
3735
|
-
"enabled": false
|
|
3736
|
-
}
|
|
3739
|
+
"description": "Worker hook installation. Enabled by default: a repo created without `hooks` stores { enabled: true }. Disable with { enabled: false }. A repo with no stored hooks config reads as disabled."
|
|
3737
3740
|
},
|
|
3738
3741
|
"RepoGuidelines": {
|
|
3739
3742
|
"type": [
|
|
@@ -10185,7 +10188,8 @@
|
|
|
10185
10188
|
"completed",
|
|
10186
10189
|
"failed",
|
|
10187
10190
|
"cancelled",
|
|
10188
|
-
"superseded"
|
|
10191
|
+
"superseded",
|
|
10192
|
+
"skipped"
|
|
10189
10193
|
]
|
|
10190
10194
|
}
|
|
10191
10195
|
},
|
|
@@ -12123,7 +12127,7 @@
|
|
|
12123
12127
|
}
|
|
12124
12128
|
},
|
|
12125
12129
|
"404": {
|
|
12126
|
-
"description": "Agent not found",
|
|
12130
|
+
"description": "Agent not found, or changedByAgentId names no agent",
|
|
12127
12131
|
"content": {
|
|
12128
12132
|
"application/json": {
|
|
12129
12133
|
"schema": {
|
|
@@ -13731,7 +13735,8 @@
|
|
|
13731
13735
|
"type": "string"
|
|
13732
13736
|
},
|
|
13733
13737
|
"required": {
|
|
13734
|
-
"type": "boolean"
|
|
13738
|
+
"type": "boolean",
|
|
13739
|
+
"default": true
|
|
13735
13740
|
},
|
|
13736
13741
|
"description": {
|
|
13737
13742
|
"type": "string"
|
|
@@ -28814,7 +28819,7 @@
|
|
|
28814
28819
|
"/api/models-catalog": {
|
|
28815
28820
|
"get": {
|
|
28816
28821
|
"summary": "Get the live model catalog for the picker-reachable providers",
|
|
28817
|
-
"description": "Slim projection of the models.dev payload (
|
|
28822
|
+
"description": "Slim projection of the models.dev payload (the vendored models.dev snapshot, or the live fetch once one succeeds) plus the OpenAI-compatible registry providers; see the `providers` field for the live list. Refreshed server-side at boot and every 12h by the pricing-refresh loop. `source` is 'snapshot' with `updatedAt: null` until the first successful fetch (or when models.dev is unreachable), in which case the vendored snapshot is served instead.",
|
|
28818
28823
|
"tags": [
|
|
28819
28824
|
"Pricing"
|
|
28820
28825
|
],
|
|
@@ -29949,6 +29954,16 @@
|
|
|
29949
29954
|
}
|
|
29950
29955
|
}
|
|
29951
29956
|
}
|
|
29957
|
+
},
|
|
29958
|
+
"502": {
|
|
29959
|
+
"description": "Metadata discovery failed: the protected-resource or authorization-server metadata could not be fetched or was refused by the egress guard",
|
|
29960
|
+
"content": {
|
|
29961
|
+
"application/json": {
|
|
29962
|
+
"schema": {
|
|
29963
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
29964
|
+
}
|
|
29965
|
+
}
|
|
29966
|
+
}
|
|
29952
29967
|
}
|
|
29953
29968
|
}
|
|
29954
29969
|
}
|
|
@@ -30426,6 +30441,7 @@
|
|
|
30426
30441
|
"/api/mcp-oauth/{mcpServerId}": {
|
|
30427
30442
|
"delete": {
|
|
30428
30443
|
"summary": "Revoke and delete the OAuth token for an MCP server",
|
|
30444
|
+
"description": "Idempotent: the connection row is kept with status revoked (its tokens are cleared) and the server returns to static auth, so a repeat call answers 200 and /status keeps returning the revoked token object.",
|
|
30429
30445
|
"tags": [
|
|
30430
30446
|
"MCP OAuth"
|
|
30431
30447
|
],
|
|
@@ -33981,7 +33997,7 @@
|
|
|
33981
33997
|
"/api/tasks": {
|
|
33982
33998
|
"get": {
|
|
33983
33999
|
"summary": "List tasks with filters",
|
|
33984
|
-
"description": "Returns tasks with the full `task` text replaced by a bounded `taskPreview` and completion/integration blobs dropped by default — list views only need the preview. Pass `fields=full` to restore the full `AgentTask`, or `fields=timeline` for the narrow shape the dashboard timeline draws. Every shape gives a user caller only tasks of sessions they can read. Fetch a single task in full via `GET /api/tasks/{id}`. `total` (the filtered row count, ignoring limit/offset) is computed only with `includeTotal=true`.",
|
|
34000
|
+
"description": "Returns tasks with the full `task` text replaced by a bounded `taskPreview` and completion/integration blobs dropped by default — list views only need the preview. Pass `fields=full` to restore the full `AgentTask`, or `fields=timeline` for the narrow shape the dashboard timeline draws. Every shape gives a user caller only tasks of sessions they can read, unless `scope=all` applies. Fetch a single task in full via `GET /api/tasks/{id}`. `total` (the filtered row count, ignoring limit/offset) is computed only with `includeTotal=true`.",
|
|
33985
34001
|
"tags": [
|
|
33986
34002
|
"Tasks"
|
|
33987
34003
|
],
|
|
@@ -34163,6 +34179,19 @@
|
|
|
34163
34179
|
"required": false,
|
|
34164
34180
|
"name": "includeTotal",
|
|
34165
34181
|
"in": "query"
|
|
34182
|
+
},
|
|
34183
|
+
{
|
|
34184
|
+
"schema": {
|
|
34185
|
+
"type": "string",
|
|
34186
|
+
"enum": [
|
|
34187
|
+
"all"
|
|
34188
|
+
],
|
|
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."
|
|
34190
|
+
},
|
|
34191
|
+
"required": false,
|
|
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.",
|
|
34193
|
+
"name": "scope",
|
|
34194
|
+
"in": "query"
|
|
34166
34195
|
}
|
|
34167
34196
|
],
|
|
34168
34197
|
"responses": {
|
|
@@ -34226,7 +34255,8 @@
|
|
|
34226
34255
|
"completed",
|
|
34227
34256
|
"failed",
|
|
34228
34257
|
"cancelled",
|
|
34229
|
-
"superseded"
|
|
34258
|
+
"superseded",
|
|
34259
|
+
"skipped"
|
|
34230
34260
|
]
|
|
34231
34261
|
},
|
|
34232
34262
|
"source": {
|
|
@@ -34426,7 +34456,8 @@
|
|
|
34426
34456
|
"completed",
|
|
34427
34457
|
"failed",
|
|
34428
34458
|
"cancelled",
|
|
34429
|
-
"superseded"
|
|
34459
|
+
"superseded",
|
|
34460
|
+
"skipped"
|
|
34430
34461
|
]
|
|
34431
34462
|
},
|
|
34432
34463
|
"createdAt": {
|
|
@@ -35797,7 +35828,8 @@
|
|
|
35797
35828
|
"completed",
|
|
35798
35829
|
"failed",
|
|
35799
35830
|
"cancelled",
|
|
35800
|
-
"superseded"
|
|
35831
|
+
"superseded",
|
|
35832
|
+
"skipped"
|
|
35801
35833
|
]
|
|
35802
35834
|
},
|
|
35803
35835
|
"source": {
|
|
@@ -36083,7 +36115,8 @@
|
|
|
36083
36115
|
},
|
|
36084
36116
|
"/api/tasks/{id}/finish": {
|
|
36085
36117
|
"post": {
|
|
36086
|
-
"summary": "Mark task as completed or
|
|
36118
|
+
"summary": "Mark task as completed, failed, or skipped (runner endpoint)",
|
|
36119
|
+
"description": "`skipped` ends a task that is not the caller's to handle. It needs a one-line reason in `failureReason` (or `output`), keeps `output` empty, posts nothing, and creates no follow-up.",
|
|
36087
36120
|
"tags": [
|
|
36088
36121
|
"Tasks"
|
|
36089
36122
|
],
|
|
@@ -36112,7 +36145,8 @@
|
|
|
36112
36145
|
"type": "string",
|
|
36113
36146
|
"enum": [
|
|
36114
36147
|
"completed",
|
|
36115
|
-
"failed"
|
|
36148
|
+
"failed",
|
|
36149
|
+
"skipped"
|
|
36116
36150
|
]
|
|
36117
36151
|
},
|
|
36118
36152
|
"output": {
|
|
@@ -36195,7 +36229,7 @@
|
|
|
36195
36229
|
}
|
|
36196
36230
|
},
|
|
36197
36231
|
"400": {
|
|
36198
|
-
"description": "Invalid status",
|
|
36232
|
+
"description": "Invalid status, or a skip without a reason",
|
|
36199
36233
|
"content": {
|
|
36200
36234
|
"application/json": {
|
|
36201
36235
|
"schema": {
|
|
@@ -36605,7 +36639,8 @@
|
|
|
36605
36639
|
"completed",
|
|
36606
36640
|
"failed",
|
|
36607
36641
|
"cancelled",
|
|
36608
|
-
"superseded"
|
|
36642
|
+
"superseded",
|
|
36643
|
+
"skipped"
|
|
36609
36644
|
]
|
|
36610
36645
|
}
|
|
36611
36646
|
},
|
|
@@ -49077,6 +49112,7 @@
|
|
|
49077
49112
|
"post": {
|
|
49078
49113
|
"operationId": "script_runs_internal_step_create",
|
|
49079
49114
|
"summary": "Write a script run journal step",
|
|
49115
|
+
"description": "Write-once per stepKey; a replay keeps the first journal entry and still answers 201.",
|
|
49080
49116
|
"tags": [
|
|
49081
49117
|
"Script Runs"
|
|
49082
49118
|
],
|
|
@@ -49543,7 +49579,8 @@
|
|
|
49543
49579
|
"completed",
|
|
49544
49580
|
"failed",
|
|
49545
49581
|
"cancelled",
|
|
49546
|
-
"superseded"
|
|
49582
|
+
"superseded",
|
|
49583
|
+
"skipped"
|
|
49547
49584
|
]
|
|
49548
49585
|
}
|
|
49549
49586
|
},
|
|
@@ -51382,12 +51419,13 @@
|
|
|
51382
51419
|
"enum": [
|
|
51383
51420
|
"mine",
|
|
51384
51421
|
"shared",
|
|
51385
|
-
"tree"
|
|
51422
|
+
"tree",
|
|
51423
|
+
"all"
|
|
51386
51424
|
],
|
|
51387
|
-
"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."
|
|
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."
|
|
51388
51426
|
},
|
|
51389
51427
|
"required": false,
|
|
51390
|
-
"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.",
|
|
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.",
|
|
51391
51429
|
"name": "scope",
|
|
51392
51430
|
"in": "query"
|
|
51393
51431
|
},
|
|
@@ -51487,7 +51525,8 @@
|
|
|
51487
51525
|
"completed",
|
|
51488
51526
|
"failed",
|
|
51489
51527
|
"cancelled",
|
|
51490
|
-
"superseded"
|
|
51528
|
+
"superseded",
|
|
51529
|
+
"skipped"
|
|
51491
51530
|
]
|
|
51492
51531
|
},
|
|
51493
51532
|
"source": {
|
|
@@ -51649,7 +51688,8 @@
|
|
|
51649
51688
|
"completed",
|
|
51650
51689
|
"failed",
|
|
51651
51690
|
"cancelled",
|
|
51652
|
-
"superseded"
|
|
51691
|
+
"superseded",
|
|
51692
|
+
"skipped"
|
|
51653
51693
|
]
|
|
51654
51694
|
},
|
|
51655
51695
|
"readState": {
|
|
@@ -52385,7 +52425,7 @@
|
|
|
52385
52425
|
],
|
|
52386
52426
|
"responses": {
|
|
52387
52427
|
"200": {
|
|
52388
|
-
"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.",
|
|
52389
52429
|
"content": {
|
|
52390
52430
|
"application/json": {
|
|
52391
52431
|
"schema": {
|
|
@@ -56955,6 +56995,16 @@
|
|
|
56955
56995
|
}
|
|
56956
56996
|
}
|
|
56957
56997
|
}
|
|
56998
|
+
},
|
|
56999
|
+
"409": {
|
|
57000
|
+
"description": "A server with this name already exists in the same scope and owner (mcp_server_name_taken)",
|
|
57001
|
+
"content": {
|
|
57002
|
+
"application/json": {
|
|
57003
|
+
"schema": {
|
|
57004
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
57005
|
+
}
|
|
57006
|
+
}
|
|
57007
|
+
}
|
|
56958
57008
|
}
|
|
56959
57009
|
}
|
|
56960
57010
|
}
|
|
@@ -59927,6 +59977,855 @@
|
|
|
59927
59977
|
}
|
|
59928
59978
|
}
|
|
59929
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
|
+
},
|
|
59930
60829
|
"/api/fleet-benchmark": {
|
|
59931
60830
|
"get": {
|
|
59932
60831
|
"summary": "Compare this swarm with similar swarms",
|
|
@@ -60217,7 +61116,7 @@
|
|
|
60217
61116
|
"put": {
|
|
60218
61117
|
"operationId": "users_setRbacRoles",
|
|
60219
61118
|
"summary": "Set a user's RBAC roles",
|
|
60220
|
-
"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.",
|
|
60221
61120
|
"tags": [
|
|
60222
61121
|
"Users"
|
|
60223
61122
|
],
|
|
@@ -60282,7 +61181,7 @@
|
|
|
60282
61181
|
}
|
|
60283
61182
|
},
|
|
60284
61183
|
"403": {
|
|
60285
|
-
"description": "Not allowed to change roles",
|
|
61184
|
+
"description": "Not allowed to change roles, or adding an operator-only role with a user token",
|
|
60286
61185
|
"content": {
|
|
60287
61186
|
"application/json": {
|
|
60288
61187
|
"schema": {
|
|
@@ -60374,6 +61273,9 @@
|
|
|
60374
61273
|
"verbs",
|
|
60375
61274
|
"roles"
|
|
60376
61275
|
]
|
|
61276
|
+
},
|
|
61277
|
+
"sessionReadAll": {
|
|
61278
|
+
"type": "boolean"
|
|
60377
61279
|
}
|
|
60378
61280
|
},
|
|
60379
61281
|
"required": [
|
|
@@ -60819,6 +61721,16 @@
|
|
|
60819
61721
|
}
|
|
60820
61722
|
}
|
|
60821
61723
|
}
|
|
61724
|
+
},
|
|
61725
|
+
"409": {
|
|
61726
|
+
"description": "A user with this email already exists (user_exists)",
|
|
61727
|
+
"content": {
|
|
61728
|
+
"application/json": {
|
|
61729
|
+
"schema": {
|
|
61730
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
61731
|
+
}
|
|
61732
|
+
}
|
|
61733
|
+
}
|
|
60822
61734
|
}
|
|
60823
61735
|
}
|
|
60824
61736
|
}
|
|
@@ -61147,6 +62059,16 @@
|
|
|
61147
62059
|
}
|
|
61148
62060
|
}
|
|
61149
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
|
+
},
|
|
61150
62072
|
"404": {
|
|
61151
62073
|
"description": "Target user not found",
|
|
61152
62074
|
"content": {
|
|
@@ -61602,16 +62524,273 @@
|
|
|
61602
62524
|
}
|
|
61603
62525
|
}
|
|
61604
62526
|
},
|
|
61605
|
-
"400": {
|
|
61606
|
-
"description": "Validation error or empty body",
|
|
61607
|
-
"content": {
|
|
61608
|
-
"application/json": {
|
|
61609
|
-
"schema": {
|
|
61610
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
61611
|
-
}
|
|
61612
|
-
}
|
|
61613
|
-
}
|
|
61614
|
-
},
|
|
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
|
+
},
|
|
61615
62794
|
"401": {
|
|
61616
62795
|
"description": "Unauthorized",
|
|
61617
62796
|
"content": {
|
|
@@ -61622,245 +62801,8 @@
|
|
|
61622
62801
|
}
|
|
61623
62802
|
}
|
|
61624
62803
|
},
|
|
61625
|
-
"
|
|
61626
|
-
"description": "
|
|
61627
|
-
"content": {
|
|
61628
|
-
"application/json": {
|
|
61629
|
-
"schema": {
|
|
61630
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
61631
|
-
}
|
|
61632
|
-
}
|
|
61633
|
-
}
|
|
61634
|
-
}
|
|
61635
|
-
}
|
|
61636
|
-
}
|
|
61637
|
-
},
|
|
61638
|
-
"/api/users/{id}/mcp-tokens": {
|
|
61639
|
-
"post": {
|
|
61640
|
-
"summary": "Mint a one-time plaintext MCP token for a user",
|
|
61641
|
-
"description": "Returns the plaintext token exactly once. Subsequent reads only expose token summaries.",
|
|
61642
|
-
"tags": [
|
|
61643
|
-
"Users"
|
|
61644
|
-
],
|
|
61645
|
-
"security": [
|
|
61646
|
-
{
|
|
61647
|
-
"bearerAuth": []
|
|
61648
|
-
}
|
|
61649
|
-
],
|
|
61650
|
-
"parameters": [
|
|
61651
|
-
{
|
|
61652
|
-
"schema": {
|
|
61653
|
-
"type": "string"
|
|
61654
|
-
},
|
|
61655
|
-
"required": true,
|
|
61656
|
-
"name": "id",
|
|
61657
|
-
"in": "path"
|
|
61658
|
-
}
|
|
61659
|
-
],
|
|
61660
|
-
"requestBody": {
|
|
61661
|
-
"content": {
|
|
61662
|
-
"application/json": {
|
|
61663
|
-
"schema": {
|
|
61664
|
-
"type": "object",
|
|
61665
|
-
"properties": {
|
|
61666
|
-
"label": {
|
|
61667
|
-
"type": [
|
|
61668
|
-
"string",
|
|
61669
|
-
"null"
|
|
61670
|
-
]
|
|
61671
|
-
}
|
|
61672
|
-
}
|
|
61673
|
-
}
|
|
61674
|
-
}
|
|
61675
|
-
}
|
|
61676
|
-
},
|
|
61677
|
-
"responses": {
|
|
61678
|
-
"200": {
|
|
61679
|
-
"description": "Minted token plaintext, token summary and composed user",
|
|
61680
|
-
"content": {
|
|
61681
|
-
"application/json": {
|
|
61682
|
-
"schema": {
|
|
61683
|
-
"type": "object",
|
|
61684
|
-
"properties": {
|
|
61685
|
-
"plaintext": {
|
|
61686
|
-
"type": "string"
|
|
61687
|
-
},
|
|
61688
|
-
"token": {
|
|
61689
|
-
"type": "object",
|
|
61690
|
-
"properties": {
|
|
61691
|
-
"id": {
|
|
61692
|
-
"type": "string"
|
|
61693
|
-
},
|
|
61694
|
-
"userId": {
|
|
61695
|
-
"type": "string"
|
|
61696
|
-
},
|
|
61697
|
-
"label": {
|
|
61698
|
-
"type": [
|
|
61699
|
-
"string",
|
|
61700
|
-
"null"
|
|
61701
|
-
]
|
|
61702
|
-
},
|
|
61703
|
-
"tokenPreview": {
|
|
61704
|
-
"type": "string"
|
|
61705
|
-
},
|
|
61706
|
-
"createdAt": {
|
|
61707
|
-
"type": "string"
|
|
61708
|
-
},
|
|
61709
|
-
"lastUsedAt": {
|
|
61710
|
-
"type": [
|
|
61711
|
-
"string",
|
|
61712
|
-
"null"
|
|
61713
|
-
]
|
|
61714
|
-
},
|
|
61715
|
-
"revokedAt": {
|
|
61716
|
-
"type": [
|
|
61717
|
-
"string",
|
|
61718
|
-
"null"
|
|
61719
|
-
]
|
|
61720
|
-
}
|
|
61721
|
-
},
|
|
61722
|
-
"required": [
|
|
61723
|
-
"id",
|
|
61724
|
-
"userId",
|
|
61725
|
-
"label",
|
|
61726
|
-
"tokenPreview",
|
|
61727
|
-
"createdAt",
|
|
61728
|
-
"lastUsedAt",
|
|
61729
|
-
"revokedAt"
|
|
61730
|
-
]
|
|
61731
|
-
},
|
|
61732
|
-
"user": {
|
|
61733
|
-
"anyOf": [
|
|
61734
|
-
{
|
|
61735
|
-
"allOf": [
|
|
61736
|
-
{
|
|
61737
|
-
"$ref": "#/components/schemas/User"
|
|
61738
|
-
},
|
|
61739
|
-
{
|
|
61740
|
-
"type": "object",
|
|
61741
|
-
"properties": {
|
|
61742
|
-
"identities": {
|
|
61743
|
-
"type": "array",
|
|
61744
|
-
"items": {
|
|
61745
|
-
"type": "object",
|
|
61746
|
-
"properties": {
|
|
61747
|
-
"kind": {
|
|
61748
|
-
"type": "string"
|
|
61749
|
-
},
|
|
61750
|
-
"externalId": {
|
|
61751
|
-
"type": "string"
|
|
61752
|
-
}
|
|
61753
|
-
},
|
|
61754
|
-
"required": [
|
|
61755
|
-
"kind",
|
|
61756
|
-
"externalId"
|
|
61757
|
-
]
|
|
61758
|
-
}
|
|
61759
|
-
},
|
|
61760
|
-
"tokens": {
|
|
61761
|
-
"type": "array",
|
|
61762
|
-
"items": {
|
|
61763
|
-
"type": "object",
|
|
61764
|
-
"properties": {
|
|
61765
|
-
"id": {
|
|
61766
|
-
"type": "string"
|
|
61767
|
-
},
|
|
61768
|
-
"userId": {
|
|
61769
|
-
"type": "string"
|
|
61770
|
-
},
|
|
61771
|
-
"label": {
|
|
61772
|
-
"type": [
|
|
61773
|
-
"string",
|
|
61774
|
-
"null"
|
|
61775
|
-
]
|
|
61776
|
-
},
|
|
61777
|
-
"tokenPreview": {
|
|
61778
|
-
"type": "string"
|
|
61779
|
-
},
|
|
61780
|
-
"createdAt": {
|
|
61781
|
-
"type": "string"
|
|
61782
|
-
},
|
|
61783
|
-
"lastUsedAt": {
|
|
61784
|
-
"type": [
|
|
61785
|
-
"string",
|
|
61786
|
-
"null"
|
|
61787
|
-
]
|
|
61788
|
-
},
|
|
61789
|
-
"revokedAt": {
|
|
61790
|
-
"type": [
|
|
61791
|
-
"string",
|
|
61792
|
-
"null"
|
|
61793
|
-
]
|
|
61794
|
-
}
|
|
61795
|
-
},
|
|
61796
|
-
"required": [
|
|
61797
|
-
"id",
|
|
61798
|
-
"userId",
|
|
61799
|
-
"label",
|
|
61800
|
-
"tokenPreview",
|
|
61801
|
-
"createdAt",
|
|
61802
|
-
"lastUsedAt",
|
|
61803
|
-
"revokedAt"
|
|
61804
|
-
]
|
|
61805
|
-
}
|
|
61806
|
-
},
|
|
61807
|
-
"recentEvents": {
|
|
61808
|
-
"type": "array",
|
|
61809
|
-
"items": {
|
|
61810
|
-
"type": "object",
|
|
61811
|
-
"properties": {
|
|
61812
|
-
"id": {
|
|
61813
|
-
"type": "string"
|
|
61814
|
-
},
|
|
61815
|
-
"userId": {
|
|
61816
|
-
"type": "string"
|
|
61817
|
-
},
|
|
61818
|
-
"eventType": {
|
|
61819
|
-
"type": "string"
|
|
61820
|
-
},
|
|
61821
|
-
"actor": {
|
|
61822
|
-
"type": "string"
|
|
61823
|
-
},
|
|
61824
|
-
"before": {},
|
|
61825
|
-
"after": {},
|
|
61826
|
-
"createdAt": {
|
|
61827
|
-
"type": "string"
|
|
61828
|
-
}
|
|
61829
|
-
},
|
|
61830
|
-
"required": [
|
|
61831
|
-
"id",
|
|
61832
|
-
"userId",
|
|
61833
|
-
"eventType",
|
|
61834
|
-
"actor",
|
|
61835
|
-
"createdAt"
|
|
61836
|
-
]
|
|
61837
|
-
}
|
|
61838
|
-
}
|
|
61839
|
-
},
|
|
61840
|
-
"required": [
|
|
61841
|
-
"identities",
|
|
61842
|
-
"tokens",
|
|
61843
|
-
"recentEvents"
|
|
61844
|
-
]
|
|
61845
|
-
}
|
|
61846
|
-
]
|
|
61847
|
-
},
|
|
61848
|
-
{
|
|
61849
|
-
"type": "null"
|
|
61850
|
-
}
|
|
61851
|
-
]
|
|
61852
|
-
}
|
|
61853
|
-
},
|
|
61854
|
-
"required": [
|
|
61855
|
-
"plaintext",
|
|
61856
|
-
"user"
|
|
61857
|
-
]
|
|
61858
|
-
}
|
|
61859
|
-
}
|
|
61860
|
-
}
|
|
61861
|
-
},
|
|
61862
|
-
"401": {
|
|
61863
|
-
"description": "Unauthorized",
|
|
62804
|
+
"403": {
|
|
62805
|
+
"description": "Target holds an operator-granted role (auditor) and the caller is not the operator key",
|
|
61864
62806
|
"content": {
|
|
61865
62807
|
"application/json": {
|
|
61866
62808
|
"schema": {
|
|
@@ -62155,6 +63097,16 @@
|
|
|
62155
63097
|
}
|
|
62156
63098
|
}
|
|
62157
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
|
+
},
|
|
62158
63110
|
"404": {
|
|
62159
63111
|
"description": "User not found",
|
|
62160
63112
|
"content": {
|
|
@@ -62839,6 +63791,16 @@
|
|
|
62839
63791
|
}
|
|
62840
63792
|
}
|
|
62841
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
|
+
},
|
|
62842
63804
|
"404": {
|
|
62843
63805
|
"description": "Target or source user not found",
|
|
62844
63806
|
"content": {
|
|
@@ -63051,7 +64013,7 @@
|
|
|
63051
64013
|
}
|
|
63052
64014
|
},
|
|
63053
64015
|
"400": {
|
|
63054
|
-
"description": "Validation error
|
|
64016
|
+
"description": "Validation error",
|
|
63055
64017
|
"content": {
|
|
63056
64018
|
"application/json": {
|
|
63057
64019
|
"schema": {
|
|
@@ -63070,6 +64032,16 @@
|
|
|
63070
64032
|
}
|
|
63071
64033
|
}
|
|
63072
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
|
+
},
|
|
63073
64045
|
"404": {
|
|
63074
64046
|
"description": "User not found",
|
|
63075
64047
|
"content": {
|
|
@@ -63079,6 +64051,16 @@
|
|
|
63079
64051
|
}
|
|
63080
64052
|
}
|
|
63081
64053
|
}
|
|
64054
|
+
},
|
|
64055
|
+
"409": {
|
|
64056
|
+
"description": "The (kind, externalId) identity is already linked (identity_taken)",
|
|
64057
|
+
"content": {
|
|
64058
|
+
"application/json": {
|
|
64059
|
+
"schema": {
|
|
64060
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
64061
|
+
}
|
|
64062
|
+
}
|
|
64063
|
+
}
|
|
63082
64064
|
}
|
|
63083
64065
|
}
|
|
63084
64066
|
}
|
|
@@ -65678,6 +66660,16 @@
|
|
|
65678
66660
|
}
|
|
65679
66661
|
}
|
|
65680
66662
|
}
|
|
66663
|
+
},
|
|
66664
|
+
"404": {
|
|
66665
|
+
"description": "Run not found",
|
|
66666
|
+
"content": {
|
|
66667
|
+
"application/json": {
|
|
66668
|
+
"schema": {
|
|
66669
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
66670
|
+
}
|
|
66671
|
+
}
|
|
66672
|
+
}
|
|
65681
66673
|
}
|
|
65682
66674
|
}
|
|
65683
66675
|
}
|