Skip to main content

media_tools/
lib.rs

1//! Media discovery and recommendation domain for EME.
2//!
3//! This crate owns provider-independent media concepts, personal and family
4//! media profiles, preferences, viewing activity and recommendation context.
5//! Provider adapters, persistence and agent-tool integration are layered on top.
6//!
7//! EME identity and family membership remain owned by `agent-storage` and the
8//! host application. Every EME user can have a personal media profile without
9//! joining a family; family-managed profiles remain available for household use.
10mod config;
11mod models;
12mod providers;
13mod services;
14mod store;
15mod tools;
16
17pub use config::{MediaConfig, MediaConfigError, RecommendationWeights, StreamingService};
18pub use providers::{
19    TmdbClient, TmdbError, TmdbPage, TraktAuthorization, TraktError, TraktOAuthConfig,
20    TraktOAuthService, TraktSyncError, TraktSyncService, TraktSyncSummary, TraktTokenManager,
21    WatchmodeClient, WatchmodeError, WatchmodeSource, filter_subscription_offers,
22};
23pub use services::{MediaRecommendation, RecommendationError, RecommendationService};
24pub use store::{MediaExternalConnectionLink, MediaStore, MediaStoreError, PendingTraktLink};
25pub use tools::{MediaToolServices, register_media_tools};
26
27pub use models::{
28    ContentRestrictions, ExternalId, FamilyMediaPreferences, HistoryCompleteness, MediaItem,
29    MediaItemId, MediaKind, MediaProfile, MediaProfileId, MediaRating, MediaWatchEvent,
30    MediaWatchlistItem, OfferType, ProfilePreferences, ProviderSyncState, RecommendationContext,
31    RecommendationCriteria, StreamingOffer, WatchHistorySource, WatchedPolicy,
32};