use serde::{Deserialize, Serialize};
pub const BOT_MESSAGE_NOTIFY_METHOD: &str = "nexo/notify/whatsapp_bot_message";
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct BotListParams {
pub agent_id: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct BotInfo {
pub jid: String,
pub persona_id: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct BotListResponse {
pub agent_id: String,
pub bots: Vec<BotInfo>,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct BotSendInput {
pub agent_id: String,
pub bot_jid: String,
pub text: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct BotSendResponse {
pub msg_id: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct BotMessageNotification {
pub agent_id: String,
pub bot_jid: String,
pub msg_id: String,
pub target_id: String,
pub edit: String,
pub text: String,
pub at_ms: u64,
}