#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PingRequest {}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PingResponse {}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SuccessResponseData {
#[prost(string, optional, tag = "1")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
#[prost(map = "string, string", tag = "2")]
pub metadata: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StringMap {
#[prost(map = "string, string", tag = "1")]
pub values: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NestedStringMap {
#[prost(map = "string, message", tag = "1")]
pub data: ::std::collections::HashMap<::prost::alloc::string::String, StringMap>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StringArray {
#[prost(string, repeated, tag = "1")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OrderDirection {
#[prost(oneof = "order_direction::Order", tags = "1, 2")]
pub order: ::core::option::Option<order_direction::Order>,
}
pub mod order_direction {
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Order {
#[prost(bool, tag = "1")]
Asc(bool),
#[prost(bool, tag = "2")]
Desc(bool),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdName {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Any {
#[prost(string, tag = "1")]
pub type_url: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Empty {}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppError {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub message: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub detailed_error: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub request_id: ::prost::alloc::string::String,
#[prost(int32, tag = "5")]
pub status_code: i32,
#[prost(string, tag = "6")]
pub r#where: ::prost::alloc::string::String,
#[prost(bool, tag = "7")]
pub skip_translation: bool,
#[prost(message, optional, tag = "8")]
pub errors: ::core::option::Option<StringMap>,
#[prost(message, optional, tag = "9")]
pub errors_nested: ::core::option::Option<NestedStringMap>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Struct {
#[prost(map = "string, message", tag = "1")]
pub fields: ::std::collections::HashMap<::prost::alloc::string::String, Value>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Value {
#[prost(oneof = "value::Kind", tags = "1, 2, 3, 4, 5, 6")]
pub kind: ::core::option::Option<value::Kind>,
}
pub mod value {
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Kind {
#[prost(enumeration = "super::NullValue", tag = "1")]
NullValue(i32),
#[prost(double, tag = "2")]
NumberValue(f64),
#[prost(string, tag = "3")]
StringValue(::prost::alloc::string::String),
#[prost(bool, tag = "4")]
BoolValue(bool),
#[prost(message, tag = "5")]
StructValue(super::Struct),
#[prost(message, tag = "6")]
ListValue(super::ListValue),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListValue {
#[prost(message, repeated, tag = "1")]
pub values: ::prost::alloc::vec::Vec<Value>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum NullValue {
NullValue = 0,
}
impl NullValue {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::NullValue => "NULL_VALUE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NULL_VALUE" => Some(Self::NullValue),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Attachment {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub filename: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub file_type: ::prost::alloc::string::String,
#[prost(int64, tag = "4")]
pub file_size: i64,
#[prost(string, tag = "5")]
pub file_extension: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub base64: ::prost::alloc::string::String,
#[prost(int32, tag = "7")]
pub exif_orientation: i32,
#[prost(message, optional, tag = "8")]
pub crop: ::core::option::Option<Crop>,
#[prost(message, optional, tag = "9")]
pub metadata: ::core::option::Option<Struct>,
#[prost(bytes = "vec", tag = "10")]
pub data: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "11")]
pub mime: ::prost::alloc::string::String,
#[prost(string, optional, tag = "12")]
pub checksum: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Attachments {
#[prost(message, repeated, tag = "1")]
pub attachments: ::prost::alloc::vec::Vec<Attachment>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Crop {
#[prost(float, tag = "1")]
pub x: f32,
#[prost(float, tag = "2")]
pub y: f32,
#[prost(float, tag = "3")]
pub width: f32,
#[prost(float, tag = "4")]
pub height: f32,
#[prost(float, tag = "5")]
pub aspect_ratio: f32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachmentError {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(enumeration = "AttachmentErrorType", tag = "2")]
pub r#type: i32,
#[prost(string, tag = "3")]
pub message: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub error: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AttachmentErrorType {
Unspecified = 0,
InvalidBase64 = 1,
InvalidFileType = 2,
BigFile = 3,
DecodeImg = 4,
BigDimensionsImg = 5,
UnsupportedFileType = 6,
}
impl AttachmentErrorType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "UNSPECIFIED",
Self::InvalidBase64 => "INVALID_BASE64",
Self::InvalidFileType => "INVALID_FILE_TYPE",
Self::BigFile => "BIG_FILE",
Self::DecodeImg => "DECODE_IMG",
Self::BigDimensionsImg => "BIG_DIMENSIONS_IMG",
Self::UnsupportedFileType => "UNSUPPORTED_FILE_TYPE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"INVALID_BASE64" => Some(Self::InvalidBase64),
"INVALID_FILE_TYPE" => Some(Self::InvalidFileType),
"BIG_FILE" => Some(Self::BigFile),
"DECODE_IMG" => Some(Self::DecodeImg),
"BIG_DIMENSIONS_IMG" => Some(Self::BigDimensionsImg),
"UNSUPPORTED_FILE_TYPE" => Some(Self::UnsupportedFileType),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Timestamp {
#[prost(int64, tag = "1")]
pub seconds: i64,
#[prost(int32, tag = "2")]
pub nanos: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidationField {
#[prost(oneof = "validation_field::Rule", tags = "1, 2, 3")]
pub rule: ::core::option::Option<validation_field::Rule>,
}
pub mod validation_field {
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Rule {
#[prost(message, tag = "1")]
Numeric(super::ValidationFieldNumeric),
#[prost(message, tag = "2")]
Str(super::ValidationFieldString),
#[prost(message, tag = "3")]
Regex(super::ValidationFieldRegex),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidationFieldNumeric {
#[prost(message, repeated, tag = "1")]
pub rules: ::prost::alloc::vec::Vec<NumericRule>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NumericRule {
#[prost(enumeration = "NumericRuleType", tag = "1")]
pub r#type: i32,
#[prost(double, tag = "2")]
pub value: f64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidationFieldString {
#[prost(message, repeated, tag = "1")]
pub rules: ::prost::alloc::vec::Vec<StringRule>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StringRule {
#[prost(enumeration = "StringRuleType", tag = "1")]
pub r#type: i32,
#[prost(double, tag = "2")]
pub value: f64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidationFieldRegex {
#[prost(string, tag = "1")]
pub pattern: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub case_sensitive: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum NumericRuleType {
Min = 0,
Max = 1,
Gt = 2,
Lt = 3,
}
impl NumericRuleType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Min => "NUMERIC_RULE_TYPE_MIN",
Self::Max => "NUMERIC_RULE_TYPE_MAX",
Self::Gt => "NUMERIC_RULE_TYPE_GT",
Self::Lt => "NUMERIC_RULE_TYPE_LT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NUMERIC_RULE_TYPE_MIN" => Some(Self::Min),
"NUMERIC_RULE_TYPE_MAX" => Some(Self::Max),
"NUMERIC_RULE_TYPE_GT" => Some(Self::Gt),
"NUMERIC_RULE_TYPE_LT" => Some(Self::Lt),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StringRuleType {
Min = 0,
Max = 1,
}
impl StringRuleType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Min => "STRING_RULE_TYPE_MIN",
Self::Max => "STRING_RULE_TYPE_MAX",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STRING_RULE_TYPE_MIN" => Some(Self::Min),
"STRING_RULE_TYPE_MAX" => Some(Self::Max),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DoubleValue {
#[prost(double, tag = "1")]
pub value: f64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FloatValue {
#[prost(float, tag = "1")]
pub value: f32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Int64Value {
#[prost(int64, tag = "1")]
pub value: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UInt64Value {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Int32Value {
#[prost(int32, tag = "1")]
pub value: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UInt32Value {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BoolValue {
#[prost(bool, tag = "1")]
pub value: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StringValue {
#[prost(string, tag = "1")]
pub value: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BytesValue {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}