// @generated
// This file is @generated by prost-build.
// ============================================================================
// MESSAGES
// ============================================================================

#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpsertDelegatedAgentRequest {
    #[prost(string, tag="1")]
    pub agent_address: ::prost::alloc::string::String,
    #[prost(string, optional, tag="2")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag="3")]
    pub expires_at: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="4")]
    pub allowed_actions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="5")]
    pub allowed_trading_pair_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="6")]
    pub allowed_margin_account_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="7")]
    pub allowed_order_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="8")]
    pub allowed_time_in_force: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, optional, tag="9")]
    pub max_leverage: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag="10")]
    pub max_order_notional: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(int32, optional, tag="11")]
    pub max_open_orders: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DelegatedAgent {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub owner_user_id: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub agent_address: ::prost::alloc::string::String,
    #[prost(string, optional, tag="4")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, tag="5")]
    pub is_active: bool,
    #[prost(string, optional, tag="6")]
    pub expires_at: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag="7")]
    pub revoked_at: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="8")]
    pub allowed_actions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="9")]
    pub allowed_trading_pair_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="10")]
    pub allowed_margin_account_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="11")]
    pub allowed_order_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="12")]
    pub allowed_time_in_force: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, optional, tag="13")]
    pub max_leverage: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag="14")]
    pub max_order_notional: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(int32, optional, tag="15")]
    pub max_open_orders: ::core::option::Option<i32>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListDelegatedAgentsRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDelegatedAgentsResponse {
    #[prost(message, repeated, tag="1")]
    pub agents: ::prost::alloc::vec::Vec<DelegatedAgent>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListDelegatedAgentOwnersRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DelegatedAgentOwner {
    #[prost(string, tag="1")]
    pub owner_user_id: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub delegation_id: ::prost::alloc::string::String,
    #[prost(string, optional, tag="3")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, tag="4")]
    pub is_active: bool,
    #[prost(string, optional, tag="5")]
    pub expires_at: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDelegatedAgentOwnersResponse {
    #[prost(message, repeated, tag="1")]
    pub owners: ::prost::alloc::vec::Vec<DelegatedAgentOwner>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RevokeDelegatedAgentRequest {
    #[prost(string, tag="1")]
    pub delegated_agent_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RevokeDelegatedAgentResponse {
    #[prost(string, tag="1")]
    pub status: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateDelegatedSessionRequest {
    #[prost(string, tag="1")]
    pub owner_user_id: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub session_public_key: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateDelegatedSessionResponse {
    #[prost(int64, tag="1")]
    pub expires_at: i64,
    #[prost(string, tag="2")]
    pub delegation_id: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub owner_user_id: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub agent_address: ::prost::alloc::string::String,
}
include!("monaco.api.delegated_agents.tonic.rs");
// @@protoc_insertion_point(module)