weirdnet_songnotes/lib.rs
1//! SongNotes collaboration on top of [`weirdnet_collab`]: the roles, permissions, links and
2//! consent requests of a SongNotes session.
3//!
4//! * [`roles::roles`] is the role table: Host, Editor, Engineer, Viewer and Listener, with the
5//! gates (the audio owner's consent for recording and routing, a local switch for talking).
6//! * [`perm`] lists the permission names.
7//! * [`link`] parses and writes `weirdnet-songnotes://join/<token>` and
8//! `weirdnet-songnotes://collab/<project>/<panel>`.
9//! * [`Session`] is the facade an app uses: start a session, share a link, join, ask "can I?",
10//! turn a "needs consent" answer into a request the audio owner can accept.
11//! * [`service`] is the `/songnotes/collab` protocol every SongNotes app speaks to a host: join,
12//! standing, the project view with people, presence and audit, and "I am in this app".
13//!
14//! * [`stage`] is the stage-app side of a collab-managed session: the strip, gates with locked
15//! states and Open in Collab links, and a host-signed certificate to enforce from while the
16//! host is not answering. [`local`] is the registry of apps on one machine and the local
17//! control channel that opens the collab app at a panel.
18//! * [`transport`] is the session clock and transport: the host is the clock master, followers
19//! learn their offset and the plan (start, tempo on bar boundaries), and may ask for changes.
20//! * [`talk`] is the talkback policy: voices, host mutes and the stream kind that keeps talkback
21//! out of music takes.
22//!
23//! Standalone host mode is a [`Session`] with one host, the Viewer role as the default and host
24//! approval on the link ([`Session::standalone`]).
25#![forbid(unsafe_code)]
26
27pub mod link;
28pub mod live;
29pub mod local;
30pub mod perm;
31pub mod roles;
32pub mod service;
33mod session;
34pub mod stage;
35pub mod talk;
36pub mod transport;
37
38pub use link::{AnyLink, DeepLink, JoinLink, LinkError, Panel};
39pub use roles::{EDITOR, ENGINEER, HOST, LISTENER, VIEWER, roles};
40pub use service::{Activity, Here, Person, ProjectView, Standing};
41pub use session::{ConsentRequest, Joined, Session, SessionError};
42pub use weirdnet_collab::{Approval, Ctx, Decision, Duration, Explained, GrantStreams, Permission, ProjectId, RoleId, Step};
43pub use weirdnet_contacts::UserId;
44pub use weirdnet_net::Keypair;