A parsed outbound target.
URI forms (contract):
| URI | channel | kind |
|---|---|---|
discord://channel/<snowflake> | :discord | :channel |
discord://webhook/<alias> | :discord | :webhook |
slack://channel/<id> | :slack | :channel |
slack://webhook/<alias> | :slack | :webhook |
telegram://chat/<id or @username> | :telegram | :chat |
whatsapp://<E.164> (+ ?template=&lang=) | :whatsapp | :phone |
test://<name> | :test | :sink |
<alias> (bare word) | resolved from config | :alias |
Alias targets carry :alias (the config name) and :allow_write; the
Router fills both after resolving the config entry.
Summary
Functions
Stable policy/telemetry key: alias:<name> or <channel>:<kind>:<id>.
Parses a target URI or bare alias.
True when the target was a raw URI (not resolved through a config alias).
Like key/1 but masks secret/PII-bearing ids (phone numbers, webhook ids)
for use in error messages and logs — errors never carry them (see Error).
Types
Functions
Stable policy/telemetry key: alias:<name> or <channel>:<kind>:<id>.
@spec parse(String.t()) :: {:ok, t()} | {:error, Noizu.Comms.Error.t()}
Parses a target URI or bare alias.
True when the target was a raw URI (not resolved through a config alias).
Like key/1 but masks secret/PII-bearing ids (phone numbers, webhook ids)
for use in error messages and logs — errors never carry them (see Error).