Expand description
Gotify inbound-integration wire types.
A forge session subscribes to a Gotify server via the
mcp__forge__gotify__* tool family; matching notifications deliver
as a user-turn into the durable subscriber. These are pure data
shapes - the stream, REST lookups and match-and-route logic live in
forge-connectors::gotify, which reaches workspace state through
its host port, and the subscription store in
forge-workspace::store::gotify.
Re-exportsΒ§
use serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;π
StructsΒ§
- Gotify
Config - Connection to a Gotify server, parsed from the
[gotify]block of forge.toml. One server per v1. Unknown keys are rejected so a mistypedclient_tokenfails the load instead of leaving the connector tokenless. - Gotify
Message - A notification decoded from the Gotify serverβs WebSocket stream.
- Gotify
Subscription - An active subscription: which project (and optional team-worker
role) receives notifications matching the
applications+min_priorityfilter. Durable ones persist to redb; ephemeral ad-hoc-worker ones stay in memory only. - Gotify
Subscription πRepr - Deserialization shape, tolerant of the v0.20.0 record that stored a
single
application: Option<String>and noapplicationskey. A non-null legacyapplicationfolds forward intoapplications; a null or absent one leaves the empty match-any set. Serialization always emits the currentapplicationsshape (this is deser-only).