API Reference noizu_comms v#0.1.0

Copy Markdown View Source

Modules

Channel-agnostic outbound messaging (Discord, Slack, Telegram, WhatsApp).

Shared adapter helpers: HTTP-status -> Error kind mapping and int coercion. Error values never carry tokens, auth headers, or secret-bearing URLs.

Discord adapter over noizu_discord (optional dep).

Slack adapter over noizu_slack (optional dep).

Telegram adapter over noizu_telegram (optional dep).

WhatsApp adapter over noizu_whatsapp (optional dep).

Behaviour implemented by every channel adapter.

Targets file: named aliases and webhook env-var indirection.

Structured error returned by every failing call as {:error, %Noizu.Comms.Error{}}.

CommonMark subset parsed once, rendered per channel dialect.

Channel-agnostic outbound message (contract shape).

Write policy: alias allow-list, raw-target gate, per-target rate limit.

Confirmation of one delivered message.

Alias resolution -> target parse -> adapter dispatch -> policy check -> deliver.

A parsed outbound target.

In-memory test adapter for test://<name> targets.

Mix Tasks

Sends a message to an alias or raw target URI from the CLI.