Commit 777ef9a
Unify bot tables into single bots + bot_triggers schema
Replace 8 provider-specific tables (discord_bots, telegram_bots,
whatsapp_accounts, slack_bots and their trigger tables) with 2 unified
tables using provider discriminator and JSON metadata columns, matching
the existing integrations table pattern.
- Add bots table with provider, encrypted_token, metadata, encrypted_metadata
- Add bot_triggers table with provider, metadata JSON for trigger config
- Unified API route at /:orgId/bots with ?provider= filter
- Unified trigger endpoint at /:workflowId/bot-trigger
- Unified bot-service.ts frontend service with backward-compatible aliases
- Webhook handlers updated to parse metadata JSON for provider-specific fields
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c5db664 commit 777ef9a
51 files changed
Lines changed: 1835 additions & 3685 deletions
File tree
- apps
- api/src
- db
- migrations
- schema
- routes
- stores
- app/src
- components/workflow
- fields
- widgets/input
- pages
- services
- packages/types/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments