weirdnet-songnotes 0.9.0

SongNotes collaboration: the roles, permissions, links and consent requests for a SongNotes session, built on weirdnet-collab.
Documentation
//! The SongNotes permission catalog.

/// Join a session.
pub const SESSION_JOIN: &str = "session.join";
/// Make invites (a host any role; an editor viewer links only).
pub const SESSION_INVITE: &str = "session.invite";
/// Manage roles, rules, bans and the audit log.
pub const SESSION_MANAGE: &str = "session.manage";
/// See who is here.
pub const PRESENCE_READ: &str = "presence.read";
/// Change the project.
pub const PROJECT_EDIT: &str = "project.edit";
/// Load a project into the session.
pub const PROJECT_LOAD: &str = "project.load";
/// Save the project.
pub const PROJECT_SAVE: &str = "project.save";
/// Hear a recording.
pub const RECORDING_LISTEN: &str = "recording.listen";
/// Export a recording.
pub const RECORDING_EXPORT: &str = "recording.export";
/// Read the activity feed.
pub const FEED_READ: &str = "feed.read";
/// Write to the activity feed.
pub const FEED_WRITE: &str = "feed.write";
/// Publish an audio stream.
pub const STREAM_PUBLISH: &str = "stream.publish";
/// Listen to an audio stream.
pub const STREAM_SUBSCRIBE: &str = "stream.subscribe";
/// Record an audio stream (needs the owner's consent).
pub const STREAM_RECORD: &str = "stream.record";
/// Publish a route port.
pub const ROUTE_PUBLISH: &str = "route.publish";
/// Connect to a route port (needs the owner's consent).
pub const ROUTE_CONNECT: &str = "route.connect";
/// Manage routes.
pub const ROUTE_MANAGE: &str = "route.manage";
/// Talk on the talkback channel (needs the local mic switch).
pub const MIC_TALK: &str = "mic.talk";
/// Hear the talkback channel.
pub const MIC_LISTEN: &str = "mic.listen";
/// Record the talkback channel (needs the owner's consent).
pub const MIC_RECORD: &str = "mic.record";
/// Manage the talkback channel.
pub const MIC_MANAGE: &str = "mic.manage";
/// Read the chat.
pub const CHAT_READ: &str = "chat.read";
/// Write in the chat.
pub const CHAT_WRITE: &str = "chat.write";
/// Moderate the chat.
pub const CHAT_MANAGE: &str = "chat.manage";

/// Every permission, in catalog order.
pub const ALL: &[&str] = &[
    SESSION_JOIN,
    SESSION_INVITE,
    SESSION_MANAGE,
    PRESENCE_READ,
    PROJECT_EDIT,
    PROJECT_LOAD,
    PROJECT_SAVE,
    RECORDING_LISTEN,
    RECORDING_EXPORT,
    FEED_READ,
    FEED_WRITE,
    STREAM_PUBLISH,
    STREAM_SUBSCRIBE,
    STREAM_RECORD,
    ROUTE_PUBLISH,
    ROUTE_CONNECT,
    ROUTE_MANAGE,
    MIC_TALK,
    MIC_LISTEN,
    MIC_RECORD,
    MIC_MANAGE,
    CHAT_READ,
    CHAT_WRITE,
    CHAT_MANAGE,
];