mod acting;
mod admission;
pub mod agent_answers;
pub mod authorship;
pub mod content;
mod decide;
pub mod describe;
pub mod earlier;
pub mod edits;
pub mod entry;
mod grant;
mod kind;
mod member;
mod member_access;
mod path;
mod person;
mod policy_edit;
mod readers;
pub mod reading;
pub mod roles;
pub mod share;
pub mod turn;
mod workspace;
pub use acting::{Invocation, admit_invocation, answer_at, asker_of, granted_to};
pub use admission::{Admission, Asker, Invoked, Reach, Refused, admit};
pub use content::{ContentLimit, ContentPolicy, KeptLimits, Raises};
pub use decide::{Authority, Basis, Cap, Decision, Effective, Party, Refuser, Verdict, decide};
pub use describe::{Ids, Labels, describe, describe_node, sentences};
pub use earlier::EarlierIds;
pub use entry::{
EntryError, EntryMail, EntryPolicy, ListingPolicy, VISITOR_ENTRY_ACTIONS, VISITOR_ENTRY_APP,
};
pub const SESSION_ANSWER_PREFIX: &str = "session-answer:";
#[must_use]
pub fn is_session_answer(grant: &Grant) -> bool {
grant.id.as_str().starts_with(SESSION_ANSWER_PREFIX)
}
pub fn session_answers<'g>(
grants: &'g [Grant],
session: &str,
) -> impl Iterator<Item = &'g Grant> + 'g {
let prefix = format!("{SESSION_ANSWER_PREFIX}{session}:");
grants
.iter()
.filter(move |grant| grant.id.as_str().starts_with(&prefix))
}
pub use grant::{Answer, Context, Grant, GrantId, Grantee, Lifetime, OFFERED_SPAN_MS, Role};
pub use kind::{ActionKind, KindSet};
pub use member::{
Acting, Actor, AgentSessionId, AutomationId, DIRECT_CONVERSATION_PREFIX, MemberId, ResourceId,
identity_color, key_agent_id, key_of_agent,
};
pub use member_access::MemberAccess;
pub use path::{Level, PathError, Segment, Specificity, TreePath};
pub use person::{PersonId, PersonIdError};
pub use policy_edit::{PolicyEdit, PresetMutationError, sort_presets, until_secs};
pub use readers::ReaderRule;
pub use roles::{Preset, PresetError, Rule};
pub use workspace::{Change, PersonGrants, Refusal, WorkspacePolicy};