noie-nds-api 3.0.3

NDS Protocol Buffers types for Rust (generated from nds-api/spec).
Documentation
// @generated
// This file is @generated by prost-build.
// ============================================================================
// \[Index\] NDS-PROTO-AUDIT-010 NdsRationale
// ============================================================================

/// \[Semantic\] Lightweight structured rationale (safe to embed).
/// \[Behavior\] Not a full chain-of-thought; keep it auditable and compact.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NdsRationale {
    /// Who/what produced this rationale (e.g. "rule_engine_v1", "human_admin").
    #[prost(string, tag="1")]
    pub source: ::prost::alloc::string::String,
    /// Confidence score in \[0,1\] encoded as Decimal string (exact, language-neutral).
    #[prost(message, optional, tag="2")]
    pub confidence: ::core::option::Option<super::common::Decimal>,
    /// Short structured steps.
    #[prost(string, repeated, tag="3")]
    pub thought_path: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Evidence references (within the same resolvable event space).
    #[prost(message, repeated, tag="4")]
    pub evidence_event_ids: ::prost::alloc::vec::Vec<super::event::EventId>,
    /// Cross-system evidence references (URI-based).
    #[prost(message, repeated, tag="8")]
    pub evidence_refs: ::prost::alloc::vec::Vec<NdsRationaleRef>,
    /// Optional risk indicator (protocol does not define semantics/range).
    #[prost(message, optional, tag="5")]
    pub risk_score: ::core::option::Option<super::common::Decimal>,
    /// Extension slot.
    #[prost(map="string, string", tag="6")]
    pub metadata: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
}
// ============================================================================
// \[Index\] NDS-PROTO-AUDIT-020 NdsRationaleRef
// ============================================================================

/// \[Semantic\] External rationale/evidence reference for heavy payloads.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct NdsRationaleRef {
    /// URI (e.g. "<https://.../report.json",> "ipfs://...", "file://...").
    #[prost(string, tag="1")]
    pub uri: ::prost::alloc::string::String,
    /// Optional content hash (e.g. sha256 hex) for integrity.
    #[prost(string, optional, tag="2")]
    pub hash: ::core::option::Option<::prost::alloc::string::String>,
    /// Optional mime type (e.g. "application/json").
    #[prost(string, optional, tag="3")]
    pub mime_type: ::core::option::Option<::prost::alloc::string::String>,
}
// @@protoc_insertion_point(module)