misardev 1.1.0

Async Rust client for the Misar.Dev API: create projects, write files, build and deploy, start from templates, run OpenAI-compatible chat completions, search code and read usage. Retries, typed plan-limit errors, SSE streaming.
Documentation
// 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 crate::transport::encode_path;
use reqwest::Method;
use serde_json::Value;

/// The `skills` resource — 2 operation(s).
///
/// Your Misar.AI skills library, read-only.
///
/// Reached through [`crate::MisarDev::skills`].
#[derive(Debug, Clone, Copy)]
pub struct SkillsResource<'a> {
    pub(crate) t: &'a Transport,
}

impl SkillsResource<'_> {
    /// `GET /skills/misarai/:slug`
    ///
    /// misardev:method skills.get
    pub async fn get(self, slug: &str) -> Result<Value, MisarDevError> {
        self.t.request(Method::GET, &format!("/skills/misarai/{}", encode_path(slug)), "", None).await
    }

    /// `GET /skills/misarai`
    ///
    /// misardev:method skills.list
    pub async fn list(self) -> Result<Value, MisarDevError> {
        self.t.request(Method::GET, "/skills/misarai", "", None).await
    }
}