release: sync test โ main
Merged
SW
6mo ago+1700+1700+0123456789012345678901234567890123456789-121-121-012345678901234567890123456789
Promotes test to main.
Included
- refactor(tasks): enhance PATCH /api/tasks with improved validation and access control (#486)
- feat(connectors): implement GET + POST /api/connectors/actions (#484)
๐ค Generated with Claude Code
Summary by cubic
Adds a new connectors actions API and strengthens task updates. GET/POST /api/connectors/actions expose and execute composable connector actions; PATCH /api/tasks now has strict validation and ownership checks.
-
New Features
- GET
/api/connectors/actions: lists executable actions merged from customer โ artist โ shared toolkits with slug, description, parameters (JSON Schema),connectorSlug, andisConnected. Auth viax-api-keyor Bearer; optionalaccount_idwith access check. - POST
/api/connectors/actions: executes an action byactionSlugwithparameters. Returns{ success, result, executedAt }. 404 for unknown slug; other errors surface as 500. CORSOPTIONSsupported. - Converts Zod input schemas to JSON Schema for responses, supporting both Zod v4 and v3 via
zodandzod-to-json-schema.
- GET
-
Refactors
- PATCH
/api/tasks: strict body (UUIDid, unknown keys rejected), resolves account via auth (optionalaccount_id), enforces task ownership, returns 403 on access denied, 404 on missing task, and the enriched task matching GET shape. - Extracted schemas to
updateTaskSchemas; removedvalidateUpdateTaskBody. - MCP
update_tasktool uses resolved account context and clearer errors. - Dependency: added
zod-to-json-schema.
- PATCH
Summary by CodeRabbit
-
New Features
- Added new API endpoints for managing connector actions: list available actions and execute specific actions.
- Enhanced task update endpoint with stricter validation, improved error handling, and ownership verification.
-
Documentation
- Updated PATCH
/api/tasksdocumentation with OpenAPI-aligned contract specifying authentication requirements, validation rules, and error responses.
- Updated PATCH