feat(gateway): service-accounts management endpoints (Stage 1 PR4)

Owner/admin self-service CRUD for service accounts: POST create,
GET list, PATCH status; workspace-scoped with 404 existence hiding
for cross-workspace targets. Gated by require_workspace_admin.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1445043649
2026-06-28 19:11:13 +08:00
parent e92fe0d7fb
commit d16e294185
3 changed files with 203 additions and 0 deletions
+4
View File
@@ -22,6 +22,7 @@ from app.gateway.routers import (
memory,
models,
runs,
service_accounts,
skills,
suggestions,
thread_runs,
@@ -411,6 +412,9 @@ This gateway provides custom endpoints for models, MCP configuration, skills, an
# Auth API is mounted at /api/v1/auth
app.include_router(auth.router)
# Service Accounts API is mounted at /api/v1/service-accounts
app.include_router(service_accounts.router)
# Feedback API is mounted at /api/threads/{thread_id}/runs/{run_id}/feedback
app.include_router(feedback.router)