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 PaginationSort {
203 #[prost(string, tag = "1")]
205 pub name: ::prost::alloc::string::String,
206 #[prost(enumeration = "SortDirection", optional, tag = "2")]
207 pub direction: ::core::option::Option<i32>,
208}
209#[derive(serde::Serialize, serde::Deserialize)]
210#[derive(Clone, PartialEq, ::prost::Message)]
211pub struct PaginationRequest {
212 #[prost(string, optional, tag = "1")]
216 pub last_id: ::core::option::Option<::prost::alloc::string::String>,
217 #[prost(uint32, optional, tag = "2")]
219 pub page: ::core::option::Option<u32>,
220 #[prost(uint32, optional, tag = "3")]
222 pub page_size: ::core::option::Option<u32>,
223 #[prost(string, optional, tag = "4")]
225 pub page_token: ::core::option::Option<::prost::alloc::string::String>,
226 #[prost(string, optional, tag = "5")]
230 pub after: ::core::option::Option<::prost::alloc::string::String>,
231 #[prost(string, optional, tag = "6")]
233 pub after_including: ::core::option::Option<::prost::alloc::string::String>,
234 #[prost(string, optional, tag = "7")]
236 pub before: ::core::option::Option<::prost::alloc::string::String>,
237 #[prost(string, optional, tag = "8")]
239 pub before_including: ::core::option::Option<::prost::alloc::string::String>,
240 #[prost(message, repeated, tag = "9")]
244 pub sort_by: ::prost::alloc::vec::Vec<PaginationSort>,
245 #[prost(bool, optional, tag = "10")]
249 pub include_total_count: ::core::option::Option<bool>,
250 #[prost(bool, optional, tag = "11")]
252 pub include_deleted: ::core::option::Option<bool>,
253 #[prost(uint64, optional, tag = "12")]
257 pub created_after: ::core::option::Option<u64>,
258 #[prost(uint64, optional, tag = "13")]
260 pub created_before: ::core::option::Option<u64>,
261 #[prost(uint64, optional, tag = "14")]
263 pub updated_after: ::core::option::Option<u64>,
264 #[prost(uint64, optional, tag = "15")]
266 pub updated_before: ::core::option::Option<u64>,
267}
268#[derive(serde::Serialize, serde::Deserialize)]
269#[derive(Clone, PartialEq, ::prost::Message)]
270pub struct PaginationResponse {
271 #[prost(string, optional, tag = "1")]
272 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
273 #[prost(string, optional, tag = "2")]
274 pub previous_page_token: ::core::option::Option<::prost::alloc::string::String>,
275 #[prost(bool, optional, tag = "3")]
276 pub has_next: ::core::option::Option<bool>,
277 #[prost(bool, optional, tag = "4")]
278 pub has_previous: ::core::option::Option<bool>,
279}
280#[derive(serde::Serialize, serde::Deserialize)]
281#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
282#[repr(i32)]
283pub enum SortDirection {
284 Unspecified = 0,
285 Asc = 1,
286 Desc = 2,
287}
288impl SortDirection {
289 pub fn as_str_name(&self) -> &'static str {
294 match self {
295 Self::Unspecified => "SORT_DIRECTION_UNSPECIFIED",
296 Self::Asc => "SORT_DIRECTION_ASC",
297 Self::Desc => "SORT_DIRECTION_DESC",
298 }
299 }
300 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
302 match value {
303 "SORT_DIRECTION_UNSPECIFIED" => Some(Self::Unspecified),
304 "SORT_DIRECTION_ASC" => Some(Self::Asc),
305 "SORT_DIRECTION_DESC" => Some(Self::Desc),
306 _ => None,
307 }
308 }
309}
310#[derive(serde::Serialize, serde::Deserialize)]
311#[derive(Clone, PartialEq, ::prost::Message)]
312pub struct Attachment {
313 #[prost(string, tag = "1")]
314 pub id: ::prost::alloc::string::String,
315 #[prost(string, tag = "2")]
316 pub filename: ::prost::alloc::string::String,
317 #[prost(string, tag = "3")]
318 pub file_type: ::prost::alloc::string::String,
319 #[prost(int64, tag = "4")]
320 pub file_size: i64,
321 #[prost(string, tag = "5")]
322 pub file_extension: ::prost::alloc::string::String,
323 #[prost(string, tag = "6")]
324 pub base64: ::prost::alloc::string::String,
325 #[prost(int32, tag = "7")]
326 pub exif_orientation: i32,
327 #[prost(message, optional, tag = "8")]
328 pub crop: ::core::option::Option<Crop>,
329 #[prost(message, optional, tag = "9")]
331 pub metadata: ::core::option::Option<Struct>,
332 #[prost(bytes = "vec", tag = "10")]
334 pub data: ::prost::alloc::vec::Vec<u8>,
335 #[prost(string, tag = "11")]
337 pub mime: ::prost::alloc::string::String,
338 #[prost(string, optional, tag = "12")]
339 pub checksum: ::core::option::Option<::prost::alloc::string::String>,
340 #[prost(string, optional, tag = "13")]
341 pub url: ::core::option::Option<::prost::alloc::string::String>,
342 #[prost(uint64, optional, tag = "14")]
343 pub duration_seconds: ::core::option::Option<u64>,
344 #[prost(string, optional, tag = "15")]
345 pub error: ::core::option::Option<::prost::alloc::string::String>,
346}
347#[derive(serde::Serialize, serde::Deserialize)]
348#[derive(Clone, PartialEq, ::prost::Message)]
349pub struct Attachments {
350 #[prost(message, repeated, tag = "1")]
351 pub attachments: ::prost::alloc::vec::Vec<Attachment>,
352}
353#[derive(serde::Serialize, serde::Deserialize)]
354#[derive(Clone, Copy, PartialEq, ::prost::Message)]
355pub struct Crop {
356 #[prost(float, tag = "1")]
357 pub x: f32,
358 #[prost(float, tag = "2")]
359 pub y: f32,
360 #[prost(float, tag = "3")]
361 pub width: f32,
362 #[prost(float, tag = "4")]
363 pub height: f32,
364 #[prost(float, tag = "5")]
365 pub aspect_ratio: f32,
366}
367#[derive(serde::Serialize, serde::Deserialize)]
457#[derive(Clone, Copy, PartialEq, ::prost::Message)]
458pub struct Timestamp {
459 #[prost(int64, tag = "1")]
463 pub seconds: i64,
464 #[prost(int32, tag = "2")]
468 pub nanos: i32,
469}
470#[derive(serde::Serialize, serde::Deserialize)]
472#[derive(Clone, PartialEq, ::prost::Message)]
473pub struct ValidationField {
474 #[prost(oneof = "validation_field::Rule", tags = "1, 2, 3")]
475 pub rule: ::core::option::Option<validation_field::Rule>,
476}
477pub mod validation_field {
479 #[derive(serde::Serialize, serde::Deserialize)]
480 #[derive(Clone, PartialEq, ::prost::Oneof)]
481 pub enum Rule {
482 #[prost(message, tag = "1")]
483 Numeric(super::ValidationFieldNumeric),
484 #[prost(message, tag = "2")]
485 Str(super::ValidationFieldString),
486 #[prost(message, tag = "3")]
487 Regex(super::ValidationFieldRegex),
488 }
489}
490#[derive(serde::Serialize, serde::Deserialize)]
492#[derive(Clone, PartialEq, ::prost::Message)]
493pub struct ValidationFieldNumeric {
494 #[prost(message, repeated, tag = "1")]
495 pub rules: ::prost::alloc::vec::Vec<NumericRule>,
496}
497#[derive(serde::Serialize, serde::Deserialize)]
498#[derive(Clone, Copy, PartialEq, ::prost::Message)]
499pub struct NumericRule {
500 #[prost(enumeration = "NumericRuleType", tag = "1")]
501 pub r#type: i32,
502 #[prost(double, tag = "2")]
504 pub value: f64,
505}
506#[derive(serde::Serialize, serde::Deserialize)]
508#[derive(Clone, PartialEq, ::prost::Message)]
509pub struct ValidationFieldString {
510 #[prost(message, repeated, tag = "1")]
511 pub rules: ::prost::alloc::vec::Vec<StringRule>,
512}
513#[derive(serde::Serialize, serde::Deserialize)]
514#[derive(Clone, Copy, PartialEq, ::prost::Message)]
515pub struct StringRule {
516 #[prost(enumeration = "StringRuleType", tag = "1")]
517 pub r#type: i32,
518 #[prost(double, tag = "2")]
520 pub value: f64,
521}
522#[derive(serde::Serialize, serde::Deserialize)]
524#[derive(Clone, PartialEq, ::prost::Message)]
525pub struct ValidationFieldRegex {
526 #[prost(string, tag = "1")]
527 pub pattern: ::prost::alloc::string::String,
528 #[prost(bool, tag = "2")]
529 pub case_sensitive: bool,
530}
531#[derive(serde::Serialize, serde::Deserialize)]
532#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
533#[repr(i32)]
534pub enum NumericRuleType {
535 Min = 0,
536 Max = 1,
537 Gt = 2,
539 Lt = 3,
541}
542impl NumericRuleType {
543 pub fn as_str_name(&self) -> &'static str {
548 match self {
549 Self::Min => "NUMERIC_RULE_TYPE_MIN",
550 Self::Max => "NUMERIC_RULE_TYPE_MAX",
551 Self::Gt => "NUMERIC_RULE_TYPE_GT",
552 Self::Lt => "NUMERIC_RULE_TYPE_LT",
553 }
554 }
555 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
557 match value {
558 "NUMERIC_RULE_TYPE_MIN" => Some(Self::Min),
559 "NUMERIC_RULE_TYPE_MAX" => Some(Self::Max),
560 "NUMERIC_RULE_TYPE_GT" => Some(Self::Gt),
561 "NUMERIC_RULE_TYPE_LT" => Some(Self::Lt),
562 _ => None,
563 }
564 }
565}
566#[derive(serde::Serialize, serde::Deserialize)]
567#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
568#[repr(i32)]
569pub enum StringRuleType {
570 Min = 0,
571 Max = 1,
572}
573impl StringRuleType {
574 pub fn as_str_name(&self) -> &'static str {
579 match self {
580 Self::Min => "STRING_RULE_TYPE_MIN",
581 Self::Max => "STRING_RULE_TYPE_MAX",
582 }
583 }
584 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
586 match value {
587 "STRING_RULE_TYPE_MIN" => Some(Self::Min),
588 "STRING_RULE_TYPE_MAX" => Some(Self::Max),
589 _ => None,
590 }
591 }
592}
593#[derive(serde::Serialize, serde::Deserialize)]
600#[derive(Clone, Copy, PartialEq, ::prost::Message)]
601pub struct DoubleValue {
602 #[prost(double, tag = "1")]
604 pub value: f64,
605}
606#[derive(serde::Serialize, serde::Deserialize)]
613#[derive(Clone, Copy, PartialEq, ::prost::Message)]
614pub struct FloatValue {
615 #[prost(float, tag = "1")]
617 pub value: f32,
618}
619#[derive(serde::Serialize, serde::Deserialize)]
626#[derive(Clone, Copy, PartialEq, ::prost::Message)]
627pub struct Int64Value {
628 #[prost(int64, tag = "1")]
630 pub value: i64,
631}
632#[derive(serde::Serialize, serde::Deserialize)]
639#[derive(Clone, Copy, PartialEq, ::prost::Message)]
640pub struct UInt64Value {
641 #[prost(uint64, tag = "1")]
643 pub value: u64,
644}
645#[derive(serde::Serialize, serde::Deserialize)]
652#[derive(Clone, Copy, PartialEq, ::prost::Message)]
653pub struct Int32Value {
654 #[prost(int32, tag = "1")]
656 pub value: i32,
657}
658#[derive(serde::Serialize, serde::Deserialize)]
665#[derive(Clone, Copy, PartialEq, ::prost::Message)]
666pub struct UInt32Value {
667 #[prost(uint32, tag = "1")]
669 pub value: u32,
670}
671#[derive(serde::Serialize, serde::Deserialize)]
678#[derive(Clone, Copy, PartialEq, ::prost::Message)]
679pub struct BoolValue {
680 #[prost(bool, tag = "1")]
682 pub value: bool,
683}
684#[derive(serde::Serialize, serde::Deserialize)]
691#[derive(Clone, PartialEq, ::prost::Message)]
692pub struct StringValue {
693 #[prost(string, tag = "1")]
695 pub value: ::prost::alloc::string::String,
696}
697#[derive(serde::Serialize, serde::Deserialize)]
704#[derive(Clone, PartialEq, ::prost::Message)]
705pub struct BytesValue {
706 #[prost(bytes = "vec", tag = "1")]
708 pub value: ::prost::alloc::vec::Vec<u8>,
709}