# leash-integration-slite
> Typed Slite integration for Leash (Rust) — auto-generated by `leash-codegen`.
## Installation
```toml
[dependencies]
leash-integration-slite = "0.1"
```
## Usage
```rust
use leash_sdk::LeashIntegrations;
use leash_integration_slite::SliteClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let leash = LeashIntegrations::new("your-api-key");
let client = SliteClient::new(leash);
let result = client.search_notes().await?;
println!("{:?}", result);
Ok(())
}
```
## Available Methods
- `search_notes()` — Searches notes in Slite based on a query and returns the top search results.
- `ask_slite()` — Asks a question to Slite and returns an answer with sources.
- `get_note()` — Retrieves a specific note from Slite by its ID.
- `get_note_children()` — Retrieves all child notes of a specific note from Slite.
- `create_note()` — Creates a new note in Slite with the specified title and optional content.
- `update_note()` — Updates an existing note in Slite. Can update the title and/or content.
## License
Apache-2.0