Commit 231edae
committed
feat: add Twilio action with sendMessage function
Introduce a new twilio-action that integrates with the Twilio Messages API
for Hercules automations. Version 1 provides the core capability of sending
messages (SMS, MMS, and channel messages such as WhatsApp).
- sendMessage runtime function (To, Body, optional From and MediaUrl)
- TWILIO_MESSAGE response data type modeling the Twilio message resource
- Action configs: account_sid, auth_token, from_number, base_url
- Follows the existing action conventions (hercules decorators + axios REST
client, zod-backed schemas), mirroring the gls-action layout
- Register twilio-action in the .gitlab-ci.yml node-actions matrix
Refs #33
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hrvb3LRhmxcrASCuSXc7Jn1 parent c64c074 commit 231edae
13 files changed
Lines changed: 4053 additions & 0 deletions
File tree
- actions/twilio-action
- src
- data_types
- functions
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Whitespace-only changes.
0 commit comments