2025-04-27 22:44:05 -07:00
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
|
pub enum Signal {
|
2025-04-28 18:39:52 -07:00
|
|
|
/// Emitted when the list of conversations is updated.
|
2025-04-27 22:44:05 -07:00
|
|
|
ConversationsUpdated,
|
2025-04-28 18:39:52 -07:00
|
|
|
|
|
|
|
|
/// Emitted when the list of messages for a conversation is updated.
|
|
|
|
|
/// Parameters:
|
|
|
|
|
/// - conversation_id: The ID of the conversation that was updated.
|
|
|
|
|
MessagesUpdated(String),
|
2025-06-06 20:02:09 -07:00
|
|
|
|
|
|
|
|
/// Emitted when an attachment has been downloaded.
|
|
|
|
|
/// Parameters:
|
|
|
|
|
/// - attachment_id: The ID of the attachment that was downloaded.
|
|
|
|
|
AttachmentDownloaded(String),
|
2025-06-12 17:58:03 -07:00
|
|
|
|
|
|
|
|
/// Emitted when an attachment has been uploaded.
|
|
|
|
|
/// Parameters:
|
|
|
|
|
/// - upload_guid: The GUID of the upload.
|
|
|
|
|
/// - attachment_guid: The GUID of the attachment on the server.
|
|
|
|
|
AttachmentUploaded(String, String),
|
2025-06-13 16:45:28 -07:00
|
|
|
|
|
|
|
|
/// Emitted when the update stream is reconnected after a timeout or configuration change.
|
|
|
|
|
UpdateStreamReconnected,
|
2025-04-27 22:44:05 -07:00
|
|
|
}
|