mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
- InsightCTA model now exposes `service` (SDK namespace) and `method` (function name) instead of a single `action` string. Drops the string-splitting burden on every consumer and lets the console reach the right SDK method directly. - Validator requires both `service` and `method` non-empty; same 16-entry max still enforced. - Endpoint normalization (Create + Update) splits the new shape into the persisted CTA descriptor. - Constants split: INSIGHT_CTA_SERVICE_* (databases / tablesDB / documentsDB / vectorsDB) and INSIGHT_CTA_METHOD_* (createIndex). - Insight model + InsightCTA model docs updated with the new field semantics and per-engine examples. - E2E factory `sampleCTA($id, $engine)` emits the correct service and engine-appropriate params keys (tableId/columns for tablesDB; collectionId/attributes everywhere else). Engine matrix asserts `service` and `method` independently. - Added e2e + unit coverage for the new failure modes (missing service, missing method, empty service, empty method). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>