// GENERATED by scripts/generate-sdk-resources.mjs from sdks/manifest.json.
// Do not edit by hand — change the route, run `pnpm sdk:sync`, and regenerate.
use crate::error::MisarDevError;
use crate::transport::Transport;
use reqwest::Method;
use serde_json::Value;
/// The `audit` resource — 1 operation(s).
///
/// Your account's audit log.
///
/// Reached through [`crate::MisarDev::audit`].
#[derive(Debug, Clone, Copy)]
pub struct AuditResource<'a> {
pub(crate) t: &'a Transport,
}
impl AuditResource<'_> {
/// `GET /audit`
///
/// misardev:method audit.list
pub async fn list(self) -> Result<Value, MisarDevError> {
self.t.request(Method::GET, "/audit", "", None).await
}
}