#![allow(clippy::result_large_err)]
#![deny(missing_docs)]
#[cfg(any(feature = "sqlite", feature = "postgres"))]
pub mod approval;
pub mod archive;
#[cfg(any(feature = "sqlite", feature = "postgres"))]
pub mod audit_log;
pub mod consent_gate;
#[cfg(any(feature = "sqlite", feature = "postgres"))]
mod durable_sql;
pub mod event;
#[cfg(any(feature = "sqlite", feature = "postgres"))]
pub mod governance_state;
pub mod history;
pub mod inmemory;
#[cfg(any(feature = "sqlite", feature = "postgres"))]
pub mod lease;
pub mod migration;
#[cfg(any(feature = "sqlite", feature = "postgres"))]
pub mod run_store;
#[cfg(any(feature = "sqlite", feature = "postgres"))]
pub mod schedule;
pub mod service;
pub mod session;
pub mod state;
pub mod state_utils;
pub mod subject;
#[cfg(any(feature = "sqlite", feature = "postgres"))]
pub mod subject_sql;
#[cfg(any(feature = "redis", feature = "mongodb", feature = "neo4j", feature = "firestore"))]
mod durable_common;
#[cfg(any(feature = "mongodb", feature = "neo4j", feature = "firestore"))]
mod durable_transitions;
#[cfg(any(feature = "redis", feature = "mongodb", feature = "neo4j", feature = "firestore"))]
mod subject_common;
#[cfg(feature = "encrypted-session")]
pub mod encrypted;
#[cfg(feature = "encrypted-session")]
pub mod encrypted_approval;
#[cfg(feature = "encrypted-session")]
pub mod encryption_key;
#[cfg(feature = "encrypted-session")]
pub mod envelope;
#[cfg(feature = "firestore")]
pub mod firestore;
#[cfg(feature = "firestore")]
pub mod firestore_audit_log;
#[cfg(feature = "firestore")]
pub mod firestore_runtime;
#[cfg(feature = "firestore")]
pub mod firestore_stores;
#[cfg(feature = "mongodb")]
pub mod mongodb;
#[cfg(feature = "mongodb")]
pub mod mongodb_audit_log;
#[cfg(feature = "mongodb")]
pub mod mongodb_runtime;
#[cfg(feature = "mongodb")]
pub mod mongodb_stores;
#[cfg(feature = "neo4j")]
pub mod neo4j;
#[cfg(feature = "neo4j")]
pub mod neo4j_audit_log;
#[cfg(feature = "neo4j")]
pub mod neo4j_runtime;
#[cfg(feature = "neo4j")]
pub mod neo4j_stores;
#[cfg(feature = "postgres")]
pub mod postgres;
#[cfg(feature = "postgres")]
pub mod postgres_action_ledger;
#[cfg(feature = "redis")]
pub mod redis;
#[cfg(feature = "redis")]
pub mod redis_audit_log;
#[cfg(feature = "redis")]
pub mod redis_runtime;
#[cfg(feature = "redis")]
pub mod redis_stores;
#[cfg(any(feature = "sqlite", feature = "postgres"))]
pub mod spend;
#[cfg(feature = "sqlite")]
pub mod sqlite;
#[cfg(feature = "sqlite")]
pub mod sqlite_action_ledger;
#[cfg(feature = "firestore")]
pub mod subject_firestore;
#[cfg(feature = "mongodb")]
pub mod subject_mongodb;
#[cfg(feature = "neo4j")]
pub mod subject_neo4j;
#[cfg(feature = "redis")]
pub mod subject_redis;
#[cfg(feature = "vertex-session")]
pub mod vertex;
pub use archive::{
ARCHIVE_AUTHOR, ARCHIVE_KEY, ArchiveMark, SESSION_BUNDLE_FORMAT, SessionBundle, ensure_writable,
};
pub use consent_gate::ConsentGatedSessionService;
pub use event::{Event, EventActions, Events};
pub use history::{
FORK_ORIGIN_KEY, ForkOrigin, ForkRequest, HistoryChange, HistoryEdit, HistoryOperation,
HistoryOutcome, HistoryRewrite, ImportSessionRequest, RewriteHistoryRequest, RewrittenHistory,
SessionHistory,
};
pub use inmemory::InMemorySessionService;
pub use service::{
AppendEventRequest, CreateRequest, DeleteRequest, GetRequest, ListRequest, SessionService,
};
pub use session::{KEY_PREFIX_APP, KEY_PREFIX_TEMP, KEY_PREFIX_USER, Session};
pub use state::{ReadonlyState, State};
pub use state_utils::{extract_state_deltas, merge_states};
pub use subject::SessionSubjectData;
#[cfg(feature = "firestore")]
pub use subject_firestore::{FirestoreConsentStore, FirestoreSubjectRegistry};
#[cfg(feature = "mongodb")]
pub use subject_mongodb::{MongoConsentStore, MongoSubjectRegistry};
#[cfg(feature = "neo4j")]
pub use subject_neo4j::{Neo4jConsentStore, Neo4jSubjectRegistry};
#[cfg(feature = "redis")]
pub use subject_redis::{RedisConsentStore, RedisSubjectRegistry};
#[cfg(feature = "postgres")]
pub use subject_sql::{PostgresConsentStore, PostgresSubjectRegistry};
#[cfg(feature = "sqlite")]
pub use subject_sql::{SqliteConsentStore, SqliteSubjectRegistry};
#[cfg(feature = "postgres")]
pub use approval::PostgresApprovalStore;
#[cfg(feature = "sqlite")]
pub use approval::SqliteApprovalStore;
#[cfg(feature = "postgres")]
pub use audit_log::PostgresAuditLogStore;
#[cfg(feature = "sqlite")]
pub use audit_log::SqliteAuditLogStore;
#[cfg(feature = "firestore")]
pub use firestore_audit_log::FirestoreAuditLogStore;
#[cfg(feature = "firestore")]
pub use firestore_runtime::{
FirestoreGovernanceStateStore, FirestoreLeaseStore, FirestoreRunStore, FirestoreScheduleStore,
};
#[cfg(feature = "firestore")]
pub use firestore_stores::{FirestoreActionLedger, FirestoreApprovalStore, FirestoreSpendLedger};
#[cfg(feature = "postgres")]
pub use governance_state::PostgresGovernanceStateStore;
#[cfg(feature = "sqlite")]
pub use governance_state::SqliteGovernanceStateStore;
#[cfg(feature = "postgres")]
pub use lease::PostgresLeaseStore;
#[cfg(feature = "sqlite")]
pub use lease::SqliteLeaseStore;
#[cfg(feature = "mongodb")]
pub use mongodb_audit_log::MongoAuditLogStore;
#[cfg(feature = "mongodb")]
pub use mongodb_runtime::{
MongoGovernanceStateStore, MongoLeaseStore, MongoRunStore, MongoScheduleStore,
};
#[cfg(feature = "mongodb")]
pub use mongodb_stores::{MongoActionLedger, MongoApprovalStore, MongoSpendLedger};
#[cfg(feature = "neo4j")]
pub use neo4j_audit_log::Neo4jAuditLogStore;
#[cfg(feature = "neo4j")]
pub use neo4j_runtime::{
Neo4jGovernanceStateStore, Neo4jLeaseStore, Neo4jRunStore, Neo4jScheduleStore,
};
#[cfg(feature = "neo4j")]
pub use neo4j_stores::{Neo4jActionLedger, Neo4jApprovalStore, Neo4jSpendLedger};
#[cfg(feature = "postgres")]
pub use postgres_action_ledger::PostgresActionLedger;
#[cfg(feature = "redis")]
pub use redis_audit_log::RedisAuditLogStore;
#[cfg(feature = "redis")]
pub use redis_runtime::{
RedisGovernanceStateStore, RedisLeaseStore, RedisRunStore, RedisScheduleStore,
};
#[cfg(feature = "redis")]
pub use redis_stores::{RedisActionLedger, RedisApprovalStore, RedisSpendLedger};
#[cfg(feature = "postgres")]
pub use run_store::PostgresRunStore;
#[cfg(feature = "sqlite")]
pub use run_store::SqliteRunStore;
#[cfg(feature = "postgres")]
pub use schedule::PostgresScheduleStore;
#[cfg(feature = "sqlite")]
pub use schedule::SqliteScheduleStore;
#[cfg(feature = "postgres")]
pub use spend::PostgresSpendLedger;
#[cfg(feature = "sqlite")]
pub use spend::SqliteSpendLedger;
#[cfg(feature = "sqlite")]
pub use sqlite::SqliteSessionService;
#[cfg(feature = "sqlite")]
pub use sqlite_action_ledger::SqliteActionLedger;
#[cfg(feature = "encrypted-session")]
pub use encrypted::EncryptedSession;
#[cfg(feature = "encrypted-session")]
pub use encrypted_approval::EncryptedApprovalStore;
#[cfg(feature = "encrypted-session")]
pub use encryption_key::EncryptionKey;
#[cfg(feature = "firestore")]
pub use firestore::{
FirestoreSessionConfig, FirestoreSessionService, app_state_path as firestore_app_state_path,
event_path as firestore_event_path, session_path as firestore_session_path,
user_state_path as firestore_user_state_path,
};
#[cfg(feature = "mongodb")]
pub use mongodb::MongoSessionService;
#[cfg(feature = "neo4j")]
pub use neo4j::Neo4jSessionService;
#[cfg(feature = "postgres")]
pub use postgres::PostgresSessionService;
#[cfg(feature = "redis")]
pub use redis::{
RedisSessionConfig, RedisSessionService, app_state_key, events_key, index_key, session_key,
updated_index_key, user_state_key,
};
#[cfg(feature = "vertex-session")]
pub use vertex::{VertexAiSessionConfig, VertexAiSessionService};