Expand description
This module defines the HTTP API endpoints for the web user interface.
Structs§
- AddFriend
Request - Request structure for adding a new friend.
- Conversation
Response - Response structure for a conversation summary.
- Friend
Response - Response structure for a friend.
- GetMessages
Query - Query parameters for fetching messages.
- Identity
Response - Response structure for the user’s identity.
- Message
Response - Response structure for a message.
- Send
Message Request - Request structure for sending a new message.
- System
Status - Response structure for system status.
Enums§
- Message
Query 🔒Mode - Defines the mode for querying messages.
Functions§
- add_
friend - Adds a new friend to the user’s friend list.
- decrypt_
message_ 🔒content - Helper function to decrypt message content for web API responses.
- default_
limit 🔒 - Default limit for message queries.
- get_me
- Retrieves the user’s identity information.
- get_
messages - Retrieves messages for a specific conversation.
- get_
online_ peers - Retrieves a list of currently online peers.
- get_
system_ status - Retrieves the current system status.
- list_
conversations - Lists all conversations, including the last message and online status of friends.
- list_
friends - Lists all friends of the user.
- mark_
message_ read - Marks a specific message as read.
- send_
message - Sends a message to a specific peer.