brokkr_client/lib.rs
1/*
2 * Copyright (c) 2025-2026 Dylan Storey
3 * Licensed under the Elastic License 2.0.
4 * See LICENSE file in the project root for full license text.
5 */
6
7//! Auto-generated Rust client for the Brokkr broker API.
8//!
9//! Every type and method in this crate is generated at compile time by the
10//! `progenitor::generate_api!` macro from `spec/brokkr-v1.json`. That file
11//! is kept byte-identical to the workspace-canonical `openapi/brokkr-v1.json`
12//! by `angreal openapi export` and asserted by `angreal openapi check` —
13//! the in-crate copy exists so the spec ships with the published crate.
14//! Do not edit the generated surface; regenerate the spec via
15//! `angreal openapi export` after broker changes.
16//!
17//! This crate is intentionally a thin wire-level client. The ergonomic
18//! wrapper (auth, retries, pagination, typed errors) lives in a separate
19//! layer added by task BROKKR-T-0137 (C1).
20
21progenitor::generate_api!(spec = "spec/brokkr-v1.json", interface = Builder,);
22
23mod wrapper;
24pub use wrapper::{ApplyOutcome, BrokkrClient, BrokkrClientBuilder, BrokkrError};