unofficial-opencode-sdk 0.1.1

Unofficial Rust client SDK for the OpenCode server HTTP and SSE APIs
Documentation
//! Unofficial Rust SDK for the OpenCode server.
//!
//! This crate is not affiliated with or endorsed by the OpenCode project.
//!
//! The root client tracks OpenCode's legacy/current HTTP surface. Preview
//! OpenCode V2 APIs are isolated under [`v2`].

mod client;
pub mod current;
mod error;
pub mod generated;
mod models;
mod sse;
pub mod v2;

pub use client::{Client, ClientBuilder, EventsApi, SessionApi};
pub use error::{ApiError, Error};
pub use models::{
    CreateSessionRequest, MessageWithParts, ModelRef, PromptPart, PromptRequest, Session,
    SessionTime,
};
pub use sse::{
    EventData, EventStream, KnownEvent, KnownEventKind, OpenCodeEvent, SseDecoder, SseFrame,
};