1#[derive(serde::Serialize, serde::Deserialize)]
3#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4pub struct PingRequest {}
5#[derive(serde::Serialize, serde::Deserialize)]
6#[derive(Clone, Copy, PartialEq, ::prost::Message)]
7pub struct PingResponse {}
8#[derive(serde::Serialize, serde::Deserialize)]
9#[derive(Clone, PartialEq, ::prost::Message)]
10pub struct SuccessResponseData {
11 #[prost(string, optional, tag = "1")]
12 pub message: ::core::option::Option<::prost::alloc::string::String>,
13 #[prost(map = "string, string", tag = "2")]
14 pub metadata: ::std::collections::HashMap<
15 ::prost::alloc::string::String,
16 ::prost::alloc::string::String,
17 >,
18}
19#[derive(serde::Serialize, serde::Deserialize)]
20#[derive(Clone, PartialEq, ::prost::Message)]
21pub struct StringMap {
22 #[prost(map = "string, string", tag = "1")]
23 pub values: ::std::collections::HashMap<
24 ::prost::alloc::string::String,
25 ::prost::alloc::string::String,
26 >,
27}
28#[derive(serde::Serialize, serde::Deserialize)]
29#[derive(Clone, PartialEq, ::prost::Message)]
30pub struct NestedStringMap {
31 #[prost(map = "string, message", tag = "1")]
32 pub data: ::std::collections::HashMap<::prost::alloc::string::String, StringMap>,
33}
34#[derive(serde::Serialize, serde::Deserialize)]
35#[derive(Clone, PartialEq, ::prost::Message)]
36pub struct StringArray {
37 #[prost(string, repeated, tag = "1")]
38 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
39}
40#[derive(serde::Serialize, serde::Deserialize)]
41#[derive(Clone, Copy, PartialEq, ::prost::Message)]
42pub struct OrderDirection {
43 #[prost(oneof = "order_direction::Order", tags = "1, 2")]
44 pub order: ::core::option::Option<order_direction::Order>,
45}
46pub mod order_direction {
48 #[derive(serde::Serialize, serde::Deserialize)]
49 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
50 pub enum Order {
51 #[prost(bool, tag = "1")]
52 Asc(bool),
53 #[prost(bool, tag = "2")]
54 Desc(bool),
55 }
56}
57#[derive(serde::Serialize, serde::Deserialize)]
58#[derive(Clone, PartialEq, ::prost::Message)]
59pub struct IdName {
60 #[prost(string, tag = "1")]
61 pub id: ::prost::alloc::string::String,
62 #[prost(string, tag = "2")]
63 pub name: ::prost::alloc::string::String,
64}
65#[derive(serde::Serialize, serde::Deserialize)]
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct Any {
69 #[prost(string, tag = "1")]
71 pub type_url: ::prost::alloc::string::String,
72 #[prost(bytes = "vec", tag = "2")]
74 pub value: ::prost::alloc::vec::Vec<u8>,
75}
76#[derive(serde::Serialize, serde::Deserialize)]
77#[derive(Clone, Copy, PartialEq, ::prost::Message)]
78pub struct Empty {}
79#[derive(serde::Serialize, serde::Deserialize)]
80#[derive(Clone, PartialEq, ::prost::Message)]
81pub struct AppError {
82 #[prost(string, tag = "1")]
83 pub id: ::prost::alloc::string::String,
84 #[prost(string, tag = "2")]
86 pub message: ::prost::alloc::string::String,
87 #[prost(string, tag = "3")]
89 pub detailed_error: ::prost::alloc::string::String,
90 #[prost(string, tag = "4")]
92 pub request_id: ::prost::alloc::string::String,
93 #[prost(int32, tag = "5")]
95 pub status_code: i32,
96 #[prost(string, tag = "6")]
98 pub r#where: ::prost::alloc::string::String,
99 #[prost(bool, tag = "7")]
101 pub skip_translation: bool,
102 #[prost(message, optional, tag = "8")]
103 pub errors: ::core::option::Option<StringMap>,
104 #[prost(message, optional, tag = "9")]
105 pub errors_nested: ::core::option::Option<NestedStringMap>,
106}
107#[derive(serde::Serialize, serde::Deserialize)]
116#[derive(Clone, PartialEq, ::prost::Message)]
117pub struct Struct {
118 #[prost(map = "string, message", tag = "1")]
120 pub fields: ::std::collections::HashMap<::prost::alloc::string::String, Value>,
121}
122#[derive(serde::Serialize, serde::Deserialize)]
129#[derive(Clone, PartialEq, ::prost::Message)]
130pub struct Value {
131 #[prost(oneof = "value::Kind", tags = "1, 2, 3, 4, 5, 6")]
133 pub kind: ::core::option::Option<value::Kind>,
134}
135pub mod value {
137 #[derive(serde::Serialize, serde::Deserialize)]
139 #[derive(Clone, PartialEq, ::prost::Oneof)]
140 pub enum Kind {
141 #[prost(enumeration = "super::NullValue", tag = "1")]
143 NullValue(i32),
144 #[prost(double, tag = "2")]
146 NumberValue(f64),
147 #[prost(string, tag = "3")]
149 StringValue(::prost::alloc::string::String),
150 #[prost(bool, tag = "4")]
152 BoolValue(bool),
153 #[prost(message, tag = "5")]
155 StructValue(super::Struct),
156 #[prost(message, tag = "6")]
158 ListValue(super::ListValue),
159 }
160}
161#[derive(serde::Serialize, serde::Deserialize)]
165#[derive(Clone, PartialEq, ::prost::Message)]
166pub struct ListValue {
167 #[prost(message, repeated, tag = "1")]
169 pub values: ::prost::alloc::vec::Vec<Value>,
170}
171#[derive(serde::Serialize, serde::Deserialize)]
176#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
177#[repr(i32)]
178pub enum NullValue {
179 NullValue = 0,
181}
182impl NullValue {
183 pub fn as_str_name(&self) -> &'static str {
188 match self {
189 Self::NullValue => "NULL_VALUE",
190 }
191 }
192 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
194 match value {
195 "NULL_VALUE" => Some(Self::NullValue),
196 _ => None,
197 }
198 }
199}
200#[derive(serde::Serialize, serde::Deserialize)]
201#[derive(Clone, PartialEq, ::prost::Message)]
202pub struct Attachment {
203 #[prost(string, tag = "1")]
204 pub id: ::prost::alloc::string::String,
205 #[prost(string, tag = "2")]
206 pub filename: ::prost::alloc::string::String,
207 #[prost(string, tag = "3")]
208 pub file_type: ::prost::alloc::string::String,
209 #[prost(int64, tag = "4")]
210 pub file_size: i64,
211 #[prost(string, tag = "5")]
212 pub file_extension: ::prost::alloc::string::String,
213 #[prost(string, tag = "6")]
214 pub base64: ::prost::alloc::string::String,
215 #[prost(int32, tag = "7")]
216 pub exif_orientation: i32,
217 #[prost(message, optional, tag = "8")]
218 pub crop: ::core::option::Option<Crop>,
219 #[prost(message, optional, tag = "9")]
221 pub metadata: ::core::option::Option<Struct>,
222 #[prost(bytes = "vec", tag = "10")]
224 pub data: ::prost::alloc::vec::Vec<u8>,
225 #[prost(string, tag = "11")]
227 pub mime: ::prost::alloc::string::String,
228}
229#[derive(serde::Serialize, serde::Deserialize)]
230#[derive(Clone, Copy, PartialEq, ::prost::Message)]
231pub struct Crop {
232 #[prost(float, tag = "1")]
233 pub x: f32,
234 #[prost(float, tag = "2")]
235 pub y: f32,
236 #[prost(float, tag = "3")]
237 pub width: f32,
238 #[prost(float, tag = "4")]
239 pub height: f32,
240 #[prost(float, tag = "5")]
241 pub aspect_ratio: f32,
242}
243#[derive(serde::Serialize, serde::Deserialize)]
244#[derive(Clone, PartialEq, ::prost::Message)]
245pub struct AttachmentError {
246 #[prost(string, tag = "1")]
248 pub id: ::prost::alloc::string::String,
249 #[prost(enumeration = "AttachmentErrorType", tag = "2")]
250 pub r#type: i32,
251 #[prost(string, tag = "3")]
253 pub message: ::prost::alloc::string::String,
254 #[prost(string, tag = "4")]
256 pub error: ::prost::alloc::string::String,
257}
258#[derive(serde::Serialize, serde::Deserialize)]
259#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
260#[repr(i32)]
261pub enum AttachmentErrorType {
262 Unspecified = 0,
263 InvalidBase64 = 1,
264 InvalidFileType = 2,
265 BigFile = 3,
266 DecodeImg = 4,
267 BigDimensionsImg = 5,
268 UnsupportedFileType = 6,
269}
270impl AttachmentErrorType {
271 pub fn as_str_name(&self) -> &'static str {
276 match self {
277 Self::Unspecified => "UNSPECIFIED",
278 Self::InvalidBase64 => "INVALID_BASE64",
279 Self::InvalidFileType => "INVALID_FILE_TYPE",
280 Self::BigFile => "BIG_FILE",
281 Self::DecodeImg => "DECODE_IMG",
282 Self::BigDimensionsImg => "BIG_DIMENSIONS_IMG",
283 Self::UnsupportedFileType => "UNSUPPORTED_FILE_TYPE",
284 }
285 }
286 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
288 match value {
289 "UNSPECIFIED" => Some(Self::Unspecified),
290 "INVALID_BASE64" => Some(Self::InvalidBase64),
291 "INVALID_FILE_TYPE" => Some(Self::InvalidFileType),
292 "BIG_FILE" => Some(Self::BigFile),
293 "DECODE_IMG" => Some(Self::DecodeImg),
294 "BIG_DIMENSIONS_IMG" => Some(Self::BigDimensionsImg),
295 "UNSUPPORTED_FILE_TYPE" => Some(Self::UnsupportedFileType),
296 _ => None,
297 }
298 }
299}
300#[derive(serde::Serialize, serde::Deserialize)]
390#[derive(Clone, Copy, PartialEq, ::prost::Message)]
391pub struct Timestamp {
392 #[prost(int64, tag = "1")]
396 pub seconds: i64,
397 #[prost(int32, tag = "2")]
401 pub nanos: i32,
402}
403#[derive(serde::Serialize, serde::Deserialize)]
405#[derive(Clone, PartialEq, ::prost::Message)]
406pub struct ValidationField {
407 #[prost(oneof = "validation_field::Rule", tags = "1, 2, 3")]
408 pub rule: ::core::option::Option<validation_field::Rule>,
409}
410pub mod validation_field {
412 #[derive(serde::Serialize, serde::Deserialize)]
413 #[derive(Clone, PartialEq, ::prost::Oneof)]
414 pub enum Rule {
415 #[prost(message, tag = "1")]
416 Numeric(super::ValidationFieldNumeric),
417 #[prost(message, tag = "2")]
418 Str(super::ValidationFieldString),
419 #[prost(message, tag = "3")]
420 Regex(super::ValidationFieldRegex),
421 }
422}
423#[derive(serde::Serialize, serde::Deserialize)]
425#[derive(Clone, PartialEq, ::prost::Message)]
426pub struct ValidationFieldNumeric {
427 #[prost(message, repeated, tag = "1")]
428 pub rules: ::prost::alloc::vec::Vec<NumericRule>,
429}
430#[derive(serde::Serialize, serde::Deserialize)]
431#[derive(Clone, Copy, PartialEq, ::prost::Message)]
432pub struct NumericRule {
433 #[prost(enumeration = "NumericRuleType", tag = "1")]
434 pub r#type: i32,
435 #[prost(double, tag = "2")]
437 pub value: f64,
438}
439#[derive(serde::Serialize, serde::Deserialize)]
441#[derive(Clone, PartialEq, ::prost::Message)]
442pub struct ValidationFieldString {
443 #[prost(message, repeated, tag = "1")]
444 pub rules: ::prost::alloc::vec::Vec<StringRule>,
445}
446#[derive(serde::Serialize, serde::Deserialize)]
447#[derive(Clone, Copy, PartialEq, ::prost::Message)]
448pub struct StringRule {
449 #[prost(enumeration = "StringRuleType", tag = "1")]
450 pub r#type: i32,
451 #[prost(double, tag = "2")]
453 pub value: f64,
454}
455#[derive(serde::Serialize, serde::Deserialize)]
457#[derive(Clone, PartialEq, ::prost::Message)]
458pub struct ValidationFieldRegex {
459 #[prost(string, tag = "1")]
460 pub pattern: ::prost::alloc::string::String,
461 #[prost(bool, tag = "2")]
462 pub case_sensitive: bool,
463}
464#[derive(serde::Serialize, serde::Deserialize)]
465#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
466#[repr(i32)]
467pub enum NumericRuleType {
468 Min = 0,
469 Max = 1,
470 Gt = 2,
472 Lt = 3,
474}
475impl NumericRuleType {
476 pub fn as_str_name(&self) -> &'static str {
481 match self {
482 Self::Min => "NUMERIC_RULE_TYPE_MIN",
483 Self::Max => "NUMERIC_RULE_TYPE_MAX",
484 Self::Gt => "NUMERIC_RULE_TYPE_GT",
485 Self::Lt => "NUMERIC_RULE_TYPE_LT",
486 }
487 }
488 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
490 match value {
491 "NUMERIC_RULE_TYPE_MIN" => Some(Self::Min),
492 "NUMERIC_RULE_TYPE_MAX" => Some(Self::Max),
493 "NUMERIC_RULE_TYPE_GT" => Some(Self::Gt),
494 "NUMERIC_RULE_TYPE_LT" => Some(Self::Lt),
495 _ => None,
496 }
497 }
498}
499#[derive(serde::Serialize, serde::Deserialize)]
500#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
501#[repr(i32)]
502pub enum StringRuleType {
503 Min = 0,
504 Max = 1,
505}
506impl StringRuleType {
507 pub fn as_str_name(&self) -> &'static str {
512 match self {
513 Self::Min => "STRING_RULE_TYPE_MIN",
514 Self::Max => "STRING_RULE_TYPE_MAX",
515 }
516 }
517 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
519 match value {
520 "STRING_RULE_TYPE_MIN" => Some(Self::Min),
521 "STRING_RULE_TYPE_MAX" => Some(Self::Max),
522 _ => None,
523 }
524 }
525}