1#![doc = include_str!("../README.md")]
17#![cfg_attr(docsrs, feature(doc_cfg))]
18#![cfg_attr(target_family = "wasm", allow(clippy::arc_with_non_send_sync))]
19#![warn(missing_docs, missing_debug_implementations)]
20
21pub use matrix_sdk_common::*;
22use ruma::{OwnedDeviceId, OwnedUserId};
23use serde::{Deserialize, Serialize};
24
25pub use crate::error::{Error, Result};
26
27mod client;
28pub use client::RequestedRequiredStates;
29pub mod debug;
30pub mod deserialized_responses;
31mod error;
32pub mod event_cache;
33pub mod latest_event;
34pub mod media;
35pub mod notification_settings;
36pub mod read_receipts;
37mod response_processors;
38mod room;
39
40pub mod sliding_sync;
41
42#[cfg(feature = "unstable-msc4354")]
43pub mod sticky;
44
45pub mod store;
46pub mod sync;
47#[cfg(any(test, feature = "testing"))]
48mod test_utils;
49mod utils;
50
51pub use client::DmRoomDefinition;
52
53#[cfg(feature = "experimental-element-recent-emojis")]
54pub mod recent_emojis;
55
56#[cfg(feature = "uniffi")]
57uniffi::setup_scaffolding!();
58
59pub use client::{BaseClient, ThreadingSupport};
60#[cfg(any(test, feature = "testing"))]
61pub use http;
62#[cfg(feature = "e2e-encryption")]
63pub use matrix_sdk_crypto as crypto;
64pub use room::{
65 CallIntentConsensus, EncryptionState, PredecessorRoom, Room, RoomCreateWithCreatorEventContent,
66 RoomDisplayName, RoomHero, RoomHeroWithProfile, RoomInfo, RoomInfoNotableUpdate,
67 RoomInfoNotableUpdateReasons, RoomMember, RoomMembersUpdate, RoomMemberships, RoomRecencyStamp,
68 RoomState, RoomStateFilter, SuccessorRoom, apply_redaction,
69};
70pub use store::{
71 ComposerDraft, ComposerDraftType, DraftAttachment, DraftAttachmentContent, DraftThumbnail,
72 QueueWedgeError, StateChanges, StateStore, StateStoreDataKey, StateStoreDataValue, StoreError,
73 ThreadSubscriptionCatchupToken,
74};
75pub use utils::{MinimalRoomMemberEvent, MinimalStateEvent, RawStateEventWithKeys};
76
77#[cfg(test)]
78matrix_sdk_test_utils::init_tracing_for_tests!();
79
80#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
82pub struct SessionMeta {
83 pub user_id: OwnedUserId,
85 pub device_id: OwnedDeviceId,
87}