Nytt CLI-verktøy som sender varsler til brukere via to kanaler: - Email: Slår opp epost fra auth_identities, kaller synops-mail - WebSocket: Oppretter notification-node i PG med node_access for mottaker, PG NOTIFY-trigger leverer via portvokteren til brukerens WS-tilkobling Støtter --channel email|ws|both (default: ws) og --payload-json for jobbkø-dispatch. Validerer at mottaker er person/agent. JSON-output til stdout.
19 lines
580 B
TOML
19 lines
580 B
TOML
[package]
|
|
name = "synops-notify"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "synops-notify"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
synops-common = { path = "../synops-common" }
|
|
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "uuid", "chrono", "json"] }
|
|
uuid = { version = "1", features = ["v7", "serde"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tracing = "0.1"
|