Skip to main content

bijux_cli/contracts/
query.rs

1#![forbid(unsafe_code)]
2//! Read-only contract schema inventory interfaces for maintainer tooling.
3
4/// Structured schema inventory queried from durable contracts.
5#[derive(Debug, Clone, PartialEq, Eq)]
6pub struct ContractsSchemaQuery {
7    /// Stable schema ids exposed by contract types.
8    pub schema_ids: Vec<String>,
9    /// Schema inventory version marker.
10    pub schema_version: String,
11}
12
13/// Query contracts/schema inventory without presentation formatting.
14#[must_use]
15pub fn contracts_schema_query() -> ContractsSchemaQuery {
16    ContractsSchemaQuery {
17        schema_ids: vec![
18            "output-envelope-v1".to_string(),
19            "error-envelope-v1".to_string(),
20            "plugin-manifest-v2".to_string(),
21        ],
22        schema_version: "v2".to_string(),
23    }
24}