feat(communication): add smtp2go connector#320
Open
andrei-hasna wants to merge 1 commit into
Open
Conversation
Add a first-class SMTP2GO v3 API connector rebuilt from the public docs (https://developers.smtp2go.com/). Every endpoint is a POST returning a { request_id, data } envelope; auth via X-Smtp2go-Api-Key with api_key body fallback. Covers email send/mime/search, activity search, delivery stats, suppressions, sender domains, single senders, and SMTP users, with a Commander CLI, multi-profile config, retry/backoff transport, and a fetch-mock client test. Registers the connector under the Communication category. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a first-class SMTP2GO connector as
@hasna/connect-smtp2gounderconnectors/smtp2go, rebuilt from the public SMTP2GO v3 API docs (https://developers.smtp2go.com/) — no platform-alumia code was copied.Details
src/api/client.ts): SMTP2GO v3 is POST-only with a{ request_id, data }envelope. Auth viaX-Smtp2go-Api-Keyheader withapi_keybody fallback; retry/backoff for 429/5xx; timeout; envelope unwrapping; typedSmtp2goApiError.src/api/index.ts):emailsend/mime/search,activitysearch, deliverystats(summary, bounces, cycle, history, spam, unsubscribes),suppressions, senderdomains, singlesenders, andsmtp-usermanagement. Only documented endpoints are exposed.src/cli/index.ts): Commander entrypoints with multi-profile config (~/.hasna/connectors/connect-smtp2go), pretty/json/table output.smtp2goentry to the Communication category..env.example; no secrets, internal references, or browser-use/scraper dependency (commander+chalkonly).Validation
bun run typecheck✓bun test(connector) — 6 pass ✓bun run build✓bun test src/lib/registry.test.ts(root) — 28 pass ✓🤖 Generated with Claude Code