agentlink-core 0.1.0

AgentLink SDK Core - Platform agnostic core library
Documentation
//! AgentLink SDK Core
//!
//! Platform-agnostic core library for AgentLink IM.
//! This crate provides the shared logic used by all platform-specific SDKs.
//!
//! # Architecture
//!
//! ```text
//! Application
//!//! Platform SDK (native/wasm)
//!//! Core (this crate)
//!//! Platform Adapters (HTTP/MQTT traits)
//! ```

pub mod error;
pub mod http;
pub mod mqtt;
pub mod protocols;
pub mod services;

pub use error::{SdkError, SdkResult};
pub use http::{HttpClient, HttpClientExt, HttpRequest, HttpResponse, HttpMethod};
pub use mqtt::{MqttClient, MqttConfig, MqttEvent, MqttMessage, MqttQoS, MqttConnectionState};

// Re-export commonly used types
pub use protocols::{
    auth::{AuthResponse, LoginRequest, LoginResponse, SendCodeRequest, SendCodeResponse},
    conversation::{Conversation, CreateConversationRequest, CreateConversationResponse},
    friend::{FriendRequest, FriendRequestsResponse, Friendship, FriendsListResponse},
    message::{Message, SendMessageRequest},
    user::{User, UserLoginMethod},
    events::ServerEvent,
};

/// SDK version
pub const VERSION: &str = env!("CARGO_PKG_VERSION");