pub(crate) mod ingest;
pub(crate) mod layer;
pub(crate) mod options;
#[cfg(doc)]
use crate::tracing::Options;
use crate::api::TimelineId;
use ingest::ConnectError;
use std::fmt::Debug;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum InitError {
#[error("Authentication required, set init option or env var MODALITY_AUTH_TOKEN")]
AuthRequired,
#[error(transparent)]
AuthFailed(ConnectError),
#[error(transparent)]
UnexpectedFailure(#[from] anyhow::Error),
}
pub fn timeline_id() -> TimelineId {
ingest::current_timeline()
}