zitadel 4.1.2

An implementation of ZITADEL API access and authentication in Rust.
Documentation
// @generated
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetConditions {
    /// Condition-types under which conditions the execution should happen, only one possible.
    #[prost(oneof="set_conditions::ConditionType", tags="1, 2, 3, 4")]
    pub condition_type: ::core::option::Option<set_conditions::ConditionType>,
}
/// Nested message and enum types in `SetConditions`.
pub mod set_conditions {
    /// Condition-types under which conditions the execution should happen, only one possible.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ConditionType {
        /// Condition-type to execute if a request on the defined API point happens.
        #[prost(message, tag="1")]
        Request(super::SetRequestExecution),
        /// Condition-type to execute on response if a request on the defined API point happens.
        #[prost(message, tag="2")]
        Response(super::SetResponseExecution),
        /// Condition-type to execute if function is used, replaces actions v1.
        #[prost(string, tag="3")]
        Function(::prost::alloc::string::String),
        /// Condition-type to execute if an event is created in the system.
        #[prost(message, tag="4")]
        Event(super::SetEventExecution),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetRequestExecution {
    /// Condition for the request execution, only one possible.
    #[prost(oneof="set_request_execution::Condition", tags="1, 2, 3")]
    pub condition: ::core::option::Option<set_request_execution::Condition>,
}
/// Nested message and enum types in `SetRequestExecution`.
pub mod set_request_execution {
    /// Condition for the request execution, only one possible.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Condition {
        /// GRPC-method as condition.
        #[prost(string, tag="1")]
        Method(::prost::alloc::string::String),
        /// GRPC-service as condition.
        #[prost(string, tag="2")]
        Service(::prost::alloc::string::String),
        /// All calls to any available service and endpoint as condition.
        #[prost(bool, tag="3")]
        All(bool),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetResponseExecution {
    /// Condition for the response execution, only one possible.
    #[prost(oneof="set_response_execution::Condition", tags="1, 2, 3")]
    pub condition: ::core::option::Option<set_response_execution::Condition>,
}
/// Nested message and enum types in `SetResponseExecution`.
pub mod set_response_execution {
    /// Condition for the response execution, only one possible.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Condition {
        /// GRPC-method as condition.
        #[prost(string, tag="1")]
        Method(::prost::alloc::string::String),
        /// GRPC-service as condition.
        #[prost(string, tag="2")]
        Service(::prost::alloc::string::String),
        /// All calls to any available service and endpoint as condition.
        #[prost(bool, tag="3")]
        All(bool),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetEventExecution {
    /// Condition for the event execution, only one possible.
    #[prost(oneof="set_event_execution::Condition", tags="1, 2, 3")]
    pub condition: ::core::option::Option<set_event_execution::Condition>,
}
/// Nested message and enum types in `SetEventExecution`.
pub mod set_event_execution {
    /// Condition for the event execution, only one possible.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Condition {
        /// Event name as condition.
        #[prost(string, tag="1")]
        Event(::prost::alloc::string::String),
        /// Event group as condition, all events under this group.
        #[prost(string, tag="2")]
        Group(::prost::alloc::string::String),
        /// all events as condition.
        #[prost(bool, tag="3")]
        All(bool),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetRestWebhook {
    #[prost(string, tag="1")]
    pub url: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetRestRequestResponse {
    #[prost(string, tag="1")]
    pub url: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateTargetRequest {
    /// Unique name of the target.
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    /// Timeout defines the duration until ZITADEL cancels the execution.
    #[prost(message, optional, tag="4")]
    pub timeout: ::core::option::Option<::pbjson_types::Duration>,
    /// Defines the target type and how the response of the target is treated.
    #[prost(oneof="create_target_request::TargetType", tags="2, 3")]
    pub target_type: ::core::option::Option<create_target_request::TargetType>,
    #[prost(oneof="create_target_request::ExecutionType", tags="5, 6")]
    pub execution_type: ::core::option::Option<create_target_request::ExecutionType>,
}
/// Nested message and enum types in `CreateTargetRequest`.
pub mod create_target_request {
    /// Defines the target type and how the response of the target is treated.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum TargetType {
        #[prost(message, tag="2")]
        RestWebhook(super::SetRestWebhook),
        #[prost(message, tag="3")]
        RestRequestResponse(super::SetRestRequestResponse),
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ExecutionType {
        /// Set the execution to run asynchronously.
        #[prost(bool, tag="5")]
        IsAsync(bool),
        /// Define if any error stops the whole execution. By default the process continues as normal.
        #[prost(bool, tag="6")]
        InterruptOnError(bool),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateTargetResponse {
    /// ID is the read-only unique identifier of the target.
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    /// Details provide some base information (such as the last change date) of the target.
    #[prost(message, optional, tag="2")]
    pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateTargetRequest {
    /// unique identifier of the target.
    #[prost(string, tag="1")]
    pub target_id: ::prost::alloc::string::String,
    /// Optionally change the unique name of the target.
    #[prost(string, optional, tag="2")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    /// Optionally change the timeout, which defines the duration until ZITADEL cancels the execution.
    #[prost(message, optional, tag="5")]
    pub timeout: ::core::option::Option<::pbjson_types::Duration>,
    /// Optionally change the target type and how the response of the target is treated,
    /// or its target URL.
    #[prost(oneof="update_target_request::TargetType", tags="3, 4")]
    pub target_type: ::core::option::Option<update_target_request::TargetType>,
    #[prost(oneof="update_target_request::ExecutionType", tags="6, 7")]
    pub execution_type: ::core::option::Option<update_target_request::ExecutionType>,
}
/// Nested message and enum types in `UpdateTargetRequest`.
pub mod update_target_request {
    /// Optionally change the target type and how the response of the target is treated,
    /// or its target URL.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum TargetType {
        #[prost(message, tag="3")]
        RestWebhook(super::SetRestWebhook),
        #[prost(message, tag="4")]
        RestRequestResponse(super::SetRestRequestResponse),
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ExecutionType {
        /// Set the execution to run asynchronously.
        #[prost(bool, tag="6")]
        IsAsync(bool),
        /// Define if any error stops the whole execution. By default the process continues as normal.
        #[prost(bool, tag="7")]
        InterruptOnError(bool),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateTargetResponse {
    /// Details provide some base information (such as the last change date) of the target.
    #[prost(message, optional, tag="1")]
    pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetRequest {
    /// unique identifier of the target.
    #[prost(string, tag="1")]
    pub target_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetResponse {
    /// Details provide some base information (such as the last change date) of the target.
    #[prost(message, optional, tag="1")]
    pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetExecutionRequest {
    /// Defines the condition type and content of the condition for execution.
    #[prost(message, optional, tag="1")]
    pub condition: ::core::option::Option<SetConditions>,
    /// Defines the execution targets which are defined as a different resource, which are called in the defined conditions.
    #[prost(string, repeated, tag="2")]
    pub targets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Defines other executions as included with the same condition-types.
    #[prost(string, repeated, tag="3")]
    pub includes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetExecutionResponse {
    /// Details provide some base information (such as the last change date) of the execution.
    #[prost(message, optional, tag="2")]
    pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteExecutionRequest {
    /// Unique identifier of the execution.
    #[prost(message, optional, tag="1")]
    pub condition: ::core::option::Option<SetConditions>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteExecutionResponse {
    /// Details provide some base information (such as the last change date) of the execution.
    #[prost(message, optional, tag="1")]
    pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionFunctionsRequest {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionFunctionsResponse {
    /// All available methods
    #[prost(string, repeated, tag="1")]
    pub functions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionMethodsRequest {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionMethodsResponse {
    /// All available methods
    #[prost(string, repeated, tag="1")]
    pub methods: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionServicesRequest {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionServicesResponse {
    /// All available methods
    #[prost(string, repeated, tag="1")]
    pub services: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
include!("zitadel.execution.v3alpha.tonic.rs");
// @@protoc_insertion_point(module)