Commit 70aa23e
committed
feat(mailtrap): add Mailtrap email, contacts, and email logs integration
Add Mailtrap alongside the existing email integrations (agentmail, mailgun,
resend, sendgrid, smtp, gmail).
Tools (apps/sim/tools/mailtrap/, 12):
- send_email — transactional, bulk, or sandbox stream; text/HTML/template
body, cc/bcc/reply-to, category, custom variables, custom headers
- create_contact / get_contact / update_contact / delete_contact
- list_contact_lists / create_contact_list / get_contact_list /
update_contact_list / delete_contact_list
- list_email_logs / get_email_log — curated filter set with fixed operators
(subject match contain/equal/empty; status/category/stream accept a
comma-separated any-of list); negation, event, open/click count, and
IP/domain filters are intentionally not exposed yet
All tools call the Mailtrap API directly over the shared tool transport,
token-scoped Bearer auth. Shared response mappers and output schemas live
in types.ts / utils.ts. A mailtrap-errors extractor normalizes the
sending API ({success,errors[]}) and account API ({error}/{errors})
error envelopes.
Block, icon, and catalog:
- MailtrapBlock + MailtrapBlockMeta (blocks/blocks/mailtrap.ts), registered
in blocks/registry-maps.ts
- theme-aware MailtrapIcon (components/icons.tsx)
- regenerated tools/generated/{tool-ids,tool-metadata,tool-outputs}.ts
- generated docs page (apps/docs) + synced icon maps, meta.json, and
packages/deployment-config integrations.json
Tests: apps/sim/tools/mailtrap/mailtrap.test.ts covering address
parsing, stream routing, filter query building, response normalization,
the error extractor, and a transformResponse cohort invariant.1 parent 477dcb2 commit 70aa23e
30 files changed
Lines changed: 3321 additions & 4 deletions
File tree
- apps
- docs
- components
- ui
- content/docs/integrations
- sim
- blocks
- blocks
- components
- lib/integrations
- tools
- generated
- mailtrap
- packages/deployment-config/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6553 | 6553 | | |
6554 | 6554 | | |
6555 | 6555 | | |
| 6556 | + | |
| 6557 | + | |
| 6558 | + | |
| 6559 | + | |
| 6560 | + | |
| 6561 | + | |
| 6562 | + | |
| 6563 | + | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
| 6567 | + | |
| 6568 | + | |
| 6569 | + | |
| 6570 | + | |
| 6571 | + | |
| 6572 | + | |
| 6573 | + | |
| 6574 | + | |
6556 | 6575 | | |
6557 | 6576 | | |
6558 | 6577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
0 commit comments