// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterventionScope {
    #[prost(string, repeated, tag = "1")]
    pub target_resources: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "2")]
    pub target_actions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(double, tag = "3")]
    pub max_budget: f64,
    #[prost(string, tag = "4")]
    pub jurisdiction: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterventionOption {
    #[prost(string, tag = "1")]
    pub option_id: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub label: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub r#type: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterventionObject {
    #[prost(string, tag = "1")]
    pub intervention_id: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub execution_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub principal_id: ::prost::alloc::string::String,
    #[prost(enumeration = "InterventionReason", tag = "4")]
    pub reason: i32,
    #[prost(enumeration = "InterventionState", tag = "5")]
    pub state: i32,
    #[prost(string, tag = "6")]
    pub description: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "7")]
    pub effect_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, tag = "8")]
    pub policy_epoch: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "9")]
    pub scope: ::core::option::Option<InterventionScope>,
    #[prost(message, repeated, tag = "10")]
    pub options: ::prost::alloc::vec::Vec<InterventionOption>,
    #[prost(message, optional, tag = "11")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "12")]
    pub expires_at: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(string, tag = "13")]
    pub content_hash: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterventionReceipt {
    #[prost(string, tag = "1")]
    pub receipt_id: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub intervention_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub decider_id: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub decider_type: ::prost::alloc::string::String,
    #[prost(enumeration = "InterventionDecision", tag = "5")]
    pub decision: i32,
    #[prost(string, tag = "6")]
    pub selected_option: ::prost::alloc::string::String,
    #[prost(string, tag = "7")]
    pub rationale: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "8")]
    pub conditions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, tag = "9")]
    pub policy_epoch: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "10")]
    pub issued_at: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(string, tag = "11")]
    pub signature: ::prost::alloc::string::String,
    #[prost(string, tag = "12")]
    pub signer_public_key: ::prost::alloc::string::String,
    #[prost(string, tag = "13")]
    pub content_hash: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum InterventionReason {
    Unspecified = 0,
    PolicyDeny = 1,
    ApprovalNeeded = 2,
    EvidenceGap = 3,
    RiskThreshold = 4,
    ManualTrigger = 5,
    BudgetExceeded = 6,
}
impl InterventionReason {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "INTERVENTION_REASON_UNSPECIFIED",
            Self::PolicyDeny => "INTERVENTION_REASON_POLICY_DENY",
            Self::ApprovalNeeded => "INTERVENTION_REASON_APPROVAL_NEEDED",
            Self::EvidenceGap => "INTERVENTION_REASON_EVIDENCE_GAP",
            Self::RiskThreshold => "INTERVENTION_REASON_RISK_THRESHOLD",
            Self::ManualTrigger => "INTERVENTION_REASON_MANUAL_TRIGGER",
            Self::BudgetExceeded => "INTERVENTION_REASON_BUDGET_EXCEEDED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "INTERVENTION_REASON_UNSPECIFIED" => Some(Self::Unspecified),
            "INTERVENTION_REASON_POLICY_DENY" => Some(Self::PolicyDeny),
            "INTERVENTION_REASON_APPROVAL_NEEDED" => Some(Self::ApprovalNeeded),
            "INTERVENTION_REASON_EVIDENCE_GAP" => Some(Self::EvidenceGap),
            "INTERVENTION_REASON_RISK_THRESHOLD" => Some(Self::RiskThreshold),
            "INTERVENTION_REASON_MANUAL_TRIGGER" => Some(Self::ManualTrigger),
            "INTERVENTION_REASON_BUDGET_EXCEEDED" => Some(Self::BudgetExceeded),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum InterventionState {
    Unspecified = 0,
    Pending = 1,
    Active = 2,
    Resolved = 3,
    Expired = 4,
    Canceled = 5,
}
impl InterventionState {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "INTERVENTION_STATE_UNSPECIFIED",
            Self::Pending => "INTERVENTION_STATE_PENDING",
            Self::Active => "INTERVENTION_STATE_ACTIVE",
            Self::Resolved => "INTERVENTION_STATE_RESOLVED",
            Self::Expired => "INTERVENTION_STATE_EXPIRED",
            Self::Canceled => "INTERVENTION_STATE_CANCELED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "INTERVENTION_STATE_UNSPECIFIED" => Some(Self::Unspecified),
            "INTERVENTION_STATE_PENDING" => Some(Self::Pending),
            "INTERVENTION_STATE_ACTIVE" => Some(Self::Active),
            "INTERVENTION_STATE_RESOLVED" => Some(Self::Resolved),
            "INTERVENTION_STATE_EXPIRED" => Some(Self::Expired),
            "INTERVENTION_STATE_CANCELED" => Some(Self::Canceled),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum InterventionDecision {
    Unspecified = 0,
    Approve = 1,
    Deny = 2,
    Modify = 3,
    Escalate = 4,
    Cancel = 5,
}
impl InterventionDecision {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "INTERVENTION_DECISION_UNSPECIFIED",
            Self::Approve => "INTERVENTION_DECISION_APPROVE",
            Self::Deny => "INTERVENTION_DECISION_DENY",
            Self::Modify => "INTERVENTION_DECISION_MODIFY",
            Self::Escalate => "INTERVENTION_DECISION_ESCALATE",
            Self::Cancel => "INTERVENTION_DECISION_CANCEL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "INTERVENTION_DECISION_UNSPECIFIED" => Some(Self::Unspecified),
            "INTERVENTION_DECISION_APPROVE" => Some(Self::Approve),
            "INTERVENTION_DECISION_DENY" => Some(Self::Deny),
            "INTERVENTION_DECISION_MODIFY" => Some(Self::Modify),
            "INTERVENTION_DECISION_ESCALATE" => Some(Self::Escalate),
            "INTERVENTION_DECISION_CANCEL" => Some(Self::Cancel),
            _ => None,
        }
    }
}
