super-voice-daemon/src/daemon/http/mod.rs
Line | Count | Source |
1 | | // SPDX-License-Identifier: GPL-3.0-only |
2 | | //! HTTP server for the daemon protocol. See `server.rs` for the listener |
3 | | //! and `v1/` for the versioned endpoint tree. |
4 | | |
5 | | #[cfg(test)] |
6 | | mod error_envelope_contract; |
7 | | mod internal; |
8 | | mod mcp; |
9 | | mod openapi; |
10 | | #[cfg(test)] |
11 | | mod openapi_contract; |
12 | | mod rejection; |
13 | | mod server; |
14 | | mod state; |
15 | | #[cfg(test)] |
16 | | mod url_surface_contract; |
17 | | mod v1; |
18 | | mod wire; |
19 | | |
20 | | pub use server::AUTO_APPROVE_ENV; |
21 | | pub use server::start_http_server; |
22 | | /// Re-exported so the daemon's shutdown path can drain queued session-store |
23 | | /// writes before `process::exit` (audit 2 Tier 1 #5). |
24 | | pub(crate) use super_engine_daemon::auth::tokens::flush_persisted_sessions; |
25 | | |
26 | | /// The generated `OpenAPI` document for the `/v1` surface. Built from the same |
27 | | /// route registrations the live router uses, so it needs no daemon and no |
28 | | /// secrets file — see `src/bin/gen_openapi.rs`. |
29 | | #[must_use] |
30 | 18 | pub fn openapi_document() -> utoipa::openapi::OpenApi { |
31 | 18 | v1::openapi() |
32 | 18 | } |