Files
VoelinClient/crates/voelin-gateway-proto/Cargo.toml
T
Claude 749171605c Gateway protocol: pins, reactions, topics, events, streams, activity, admin
The new Voelin UI needs Discord-like features that TeamSpeak does not
have. They run on tsgw, so the protocol grows, additively within v1:

- capabilities in hello (server-wide) and auth_ok (per user, with admin)
- query_history with before/after id and time cursors, optional limit,
  topic filter; sync by revision for new and changed messages
- post (optionally into a topic), pins, reactions with per-user counts,
  topics, scheduled events with RSVP and reminders, the stream directory,
  the activity feed, runtime configuration and permission rules
- history entries carry topic, reactions, pinned flag and revision;
  old clients ignore the extra fields

Old clients never see a new message type: extension pushes need enable
or a subscribe request. New error codes and enums have an unknown
fallback so older clients keep parsing newer gateways.

The optional client feature adds a typed client (request/answer by
envelope id, typed pushes), shared by the app engine and the gateway's
integration tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-27 13:33:11 +00:00

33 lines
992 B
TOML

[package]
name = "voelin-gateway-proto"
version = "0.1.0"
description = "Wire protocol and identity-challenge authentication of the tsgw gateway."
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
publish.workspace = true
[features]
# A typed WebSocket client (`voelin_gateway_proto::client`).
client = ["dep:futures-util", "dep:tokio", "dep:tokio-tungstenite"]
[dependencies]
base64 = "0.22"
futures-util = { version = "0.3.34", features = ["sink"], optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha1 = { package = "sha-1", version = "0.10" }
sha2 = "0.10"
thiserror = "2"
tokio = { version = "1", features = ["macros", "rt", "sync"], optional = true }
tokio-tungstenite = { version = "0.30", optional = true }
voelin-model = { path = "../voelin-model" }
tsproto-types = { path = "../proto/tsproto-types" }
[lints]
workspace = true
[dev-dependencies]
tsproto = { path = "../proto/tsproto" }