// AUTO-GENERATED by mizan — do not edit

use serde_json::Value;

use mizan_rust::{MizanClient, MizanError};

use crate::types::{WhoamiOutput};

pub async fn call_whoami(client: &MizanClient) -> Result<WhoamiOutput, MizanError> {
    let args_value = Value::Object(Default::default());
    let raw = client.call("whoami", args_value).await?;
    serde_json::from_value(raw)
        .map_err(|e| MizanError::transport(format!("decode whoami result: {e}")))
}
