Mayo commited on
Commit
0ae35fa
·
unverified ·
1 Parent(s): bd7b448

chore(fix): add missing client

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +2 -2
  2. tests/integration-tests/client/src/models/add_image_layer_response.rs +24 -0
  3. tests/integration-tests/client/src/models/app_config.rs +35 -0
  4. tests/integration-tests/client/src/models/app_event.rs +49 -0
  5. tests/integration-tests/client/src/models/app_event_one_of.rs +44 -0
  6. tests/integration-tests/client/src/models/app_event_one_of_1.rs +44 -0
  7. tests/integration-tests/client/src/models/app_event_one_of_10.rs +36 -0
  8. tests/integration-tests/client/src/models/app_event_one_of_11.rs +36 -0
  9. tests/integration-tests/client/src/models/app_event_one_of_12.rs +48 -0
  10. tests/integration-tests/client/src/models/app_event_one_of_13.rs +44 -0
  11. tests/integration-tests/client/src/models/app_event_one_of_2.rs +44 -0
  12. tests/integration-tests/client/src/models/app_event_one_of_3.rs +40 -0
  13. tests/integration-tests/client/src/models/app_event_one_of_4.rs +71 -0
  14. tests/integration-tests/client/src/models/app_event_one_of_5.rs +47 -0
  15. tests/integration-tests/client/src/models/app_event_one_of_6.rs +59 -0
  16. tests/integration-tests/client/src/models/app_event_one_of_7.rs +53 -0
  17. tests/integration-tests/client/src/models/app_event_one_of_8.rs +36 -0
  18. tests/integration-tests/client/src/models/app_event_one_of_9.rs +41 -0
  19. tests/integration-tests/client/src/models/apply_result.rs +24 -0
  20. tests/integration-tests/client/src/models/config_patch.rs +50 -0
  21. tests/integration-tests/client/src/models/create_pages_response.rs +24 -0
  22. tests/integration-tests/client/src/models/create_project_request.rs +24 -0
  23. tests/integration-tests/client/src/models/data_config.rs +24 -0
  24. tests/integration-tests/client/src/models/download_progress.rs +48 -0
  25. tests/integration-tests/client/src/models/download_status.rs +39 -0
  26. tests/integration-tests/client/src/models/download_status_one_of.rs +36 -0
  27. tests/integration-tests/client/src/models/download_status_one_of_1.rs +36 -0
  28. tests/integration-tests/client/src/models/download_status_one_of_2.rs +36 -0
  29. tests/integration-tests/client/src/models/download_status_one_of_3.rs +38 -0
  30. tests/integration-tests/client/src/models/engine_catalog.rs +52 -0
  31. tests/integration-tests/client/src/models/engine_catalog_entry.rs +28 -0
  32. tests/integration-tests/client/src/models/error_event.rs +26 -0
  33. tests/integration-tests/client/src/models/export_format.rs +42 -0
  34. tests/integration-tests/client/src/models/export_project_request.rs +35 -0
  35. tests/integration-tests/client/src/models/export_project_response.rs +30 -0
  36. tests/integration-tests/client/src/models/font_face_info.rs +48 -0
  37. tests/integration-tests/client/src/models/font_prediction.rs +60 -0
  38. tests/integration-tests/client/src/models/font_source.rs +36 -0
  39. tests/integration-tests/client/src/models/google_font_catalog.rs +24 -0
  40. tests/integration-tests/client/src/models/google_font_entry.rs +40 -0
  41. tests/integration-tests/client/src/models/google_font_variant.rs +32 -0
  42. tests/integration-tests/client/src/models/history_result.rs +30 -0
  43. tests/integration-tests/client/src/models/http_config.rs +32 -0
  44. tests/integration-tests/client/src/models/http_config_patch.rs +47 -0
  45. tests/integration-tests/client/src/models/image_data.rs +53 -0
  46. tests/integration-tests/client/src/models/image_data_patch.rs +64 -0
  47. tests/integration-tests/client/src/models/image_role.rs +42 -0
  48. tests/integration-tests/client/src/models/import_pages_response.rs +24 -0
  49. tests/integration-tests/client/src/models/job_finished_event.rs +37 -0
  50. tests/integration-tests/client/src/models/job_status.rs +45 -0
.gitignore CHANGED
@@ -30,10 +30,10 @@ target/
30
  /data
31
 
32
  # model results
33
- runs/
34
 
35
  # model checkpoints
36
- models/
37
  .env
38
 
39
  # Python
 
30
  /data
31
 
32
  # model results
33
+ /runs
34
 
35
  # model checkpoints
36
+ /models
37
  .env
38
 
39
  # Python
tests/integration-tests/client/src/models/add_image_layer_response.rs ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AddImageLayerResponse {
16
+ #[serde(rename = "node")]
17
+ pub node: uuid::Uuid,
18
+ }
19
+
20
+ impl AddImageLayerResponse {
21
+ pub fn new(node: uuid::Uuid) -> AddImageLayerResponse {
22
+ AddImageLayerResponse { node }
23
+ }
24
+ }
tests/integration-tests/client/src/models/app_config.rs ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppConfig {
16
+ #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
17
+ pub data: Option<Box<models::DataConfig>>,
18
+ #[serde(rename = "http", skip_serializing_if = "Option::is_none")]
19
+ pub http: Option<Box<models::HttpConfig>>,
20
+ #[serde(rename = "pipeline", skip_serializing_if = "Option::is_none")]
21
+ pub pipeline: Option<Box<models::PipelineConfig>>,
22
+ #[serde(rename = "providers", skip_serializing_if = "Option::is_none")]
23
+ pub providers: Option<Vec<models::ProviderConfig>>,
24
+ }
25
+
26
+ impl AppConfig {
27
+ pub fn new() -> AppConfig {
28
+ AppConfig {
29
+ data: None,
30
+ http: None,
31
+ pipeline: None,
32
+ providers: None,
33
+ }
34
+ }
35
+ }
tests/integration-tests/client/src/models/app_event.rs ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15
+ #[serde(untagged)]
16
+ pub enum AppEvent {
17
+ AppEventOneOf(Box<models::AppEventOneOf>),
18
+ AppEventOneOf1(Box<models::AppEventOneOf1>),
19
+ AppEventOneOf2(Box<models::AppEventOneOf2>),
20
+ AppEventOneOf3(Box<models::AppEventOneOf3>),
21
+ AppEventOneOf4(Box<models::AppEventOneOf4>),
22
+ AppEventOneOf5(Box<models::AppEventOneOf5>),
23
+ AppEventOneOf6(Box<models::AppEventOneOf6>),
24
+ AppEventOneOf7(Box<models::AppEventOneOf7>),
25
+ AppEventOneOf8(Box<models::AppEventOneOf8>),
26
+ AppEventOneOf9(Box<models::AppEventOneOf9>),
27
+ AppEventOneOf10(Box<models::AppEventOneOf10>),
28
+ AppEventOneOf11(Box<models::AppEventOneOf11>),
29
+ AppEventOneOf12(Box<models::AppEventOneOf12>),
30
+ AppEventOneOf13(Box<models::AppEventOneOf13>),
31
+ }
32
+
33
+ impl Default for AppEvent {
34
+ fn default() -> Self {
35
+ Self::AppEventOneOf(Default::default())
36
+ }
37
+ }
38
+ ///
39
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
40
+ pub enum Event {
41
+ #[serde(rename = "error")]
42
+ Error,
43
+ }
44
+
45
+ impl Default for Event {
46
+ fn default() -> Event {
47
+ Self::Error
48
+ }
49
+ }
tests/integration-tests/client/src/models/app_event_one_of.rs ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf {
16
+ #[serde(rename = "epoch")]
17
+ pub epoch: u64,
18
+ #[serde(rename = "event")]
19
+ pub event: Event,
20
+ #[serde(rename = "op")]
21
+ pub op: Box<models::Op>,
22
+ }
23
+
24
+ impl AppEventOneOf {
25
+ pub fn new(epoch: u64, event: Event, op: models::Op) -> AppEventOneOf {
26
+ AppEventOneOf {
27
+ epoch,
28
+ event,
29
+ op: Box::new(op),
30
+ }
31
+ }
32
+ }
33
+ ///
34
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35
+ pub enum Event {
36
+ #[serde(rename = "opApplied")]
37
+ OpApplied,
38
+ }
39
+
40
+ impl Default for Event {
41
+ fn default() -> Event {
42
+ Self::OpApplied
43
+ }
44
+ }
tests/integration-tests/client/src/models/app_event_one_of_1.rs ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf1 {
16
+ #[serde(rename = "epoch")]
17
+ pub epoch: u64,
18
+ #[serde(rename = "event")]
19
+ pub event: Event,
20
+ #[serde(rename = "op")]
21
+ pub op: Box<models::Op>,
22
+ }
23
+
24
+ impl AppEventOneOf1 {
25
+ pub fn new(epoch: u64, event: Event, op: models::Op) -> AppEventOneOf1 {
26
+ AppEventOneOf1 {
27
+ epoch,
28
+ event,
29
+ op: Box::new(op),
30
+ }
31
+ }
32
+ }
33
+ ///
34
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35
+ pub enum Event {
36
+ #[serde(rename = "opUndone")]
37
+ OpUndone,
38
+ }
39
+
40
+ impl Default for Event {
41
+ fn default() -> Event {
42
+ Self::OpUndone
43
+ }
44
+ }
tests/integration-tests/client/src/models/app_event_one_of_10.rs ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf10 {
16
+ #[serde(rename = "event")]
17
+ pub event: Event,
18
+ }
19
+
20
+ impl AppEventOneOf10 {
21
+ pub fn new(event: Event) -> AppEventOneOf10 {
22
+ AppEventOneOf10 { event }
23
+ }
24
+ }
25
+ ///
26
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
27
+ pub enum Event {
28
+ #[serde(rename = "llmUnloaded")]
29
+ LlmUnloaded,
30
+ }
31
+
32
+ impl Default for Event {
33
+ fn default() -> Event {
34
+ Self::LlmUnloaded
35
+ }
36
+ }
tests/integration-tests/client/src/models/app_event_one_of_11.rs ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf11 {
16
+ #[serde(rename = "event")]
17
+ pub event: Event,
18
+ }
19
+
20
+ impl AppEventOneOf11 {
21
+ pub fn new(event: Event) -> AppEventOneOf11 {
22
+ AppEventOneOf11 { event }
23
+ }
24
+ }
25
+ ///
26
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
27
+ pub enum Event {
28
+ #[serde(rename = "configChanged")]
29
+ ConfigChanged,
30
+ }
31
+
32
+ impl Default for Event {
33
+ fn default() -> Event {
34
+ Self::ConfigChanged
35
+ }
36
+ }
tests/integration-tests/client/src/models/app_event_one_of_12.rs ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf12 {
16
+ #[serde(rename = "downloads")]
17
+ pub downloads: Vec<models::DownloadProgress>,
18
+ #[serde(rename = "jobs")]
19
+ pub jobs: Vec<models::JobSummary>,
20
+ #[serde(rename = "event")]
21
+ pub event: Event,
22
+ }
23
+
24
+ impl AppEventOneOf12 {
25
+ pub fn new(
26
+ downloads: Vec<models::DownloadProgress>,
27
+ jobs: Vec<models::JobSummary>,
28
+ event: Event,
29
+ ) -> AppEventOneOf12 {
30
+ AppEventOneOf12 {
31
+ downloads,
32
+ jobs,
33
+ event,
34
+ }
35
+ }
36
+ }
37
+ ///
38
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
39
+ pub enum Event {
40
+ #[serde(rename = "snapshot")]
41
+ Snapshot,
42
+ }
43
+
44
+ impl Default for Event {
45
+ fn default() -> Event {
46
+ Self::Snapshot
47
+ }
48
+ }
tests/integration-tests/client/src/models/app_event_one_of_13.rs ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf13 {
16
+ #[serde(rename = "message")]
17
+ pub message: String,
18
+ #[serde(rename = "scope")]
19
+ pub scope: String,
20
+ #[serde(rename = "event")]
21
+ pub event: Event,
22
+ }
23
+
24
+ impl AppEventOneOf13 {
25
+ pub fn new(message: String, scope: String, event: Event) -> AppEventOneOf13 {
26
+ AppEventOneOf13 {
27
+ message,
28
+ scope,
29
+ event,
30
+ }
31
+ }
32
+ }
33
+ ///
34
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35
+ pub enum Event {
36
+ #[serde(rename = "error")]
37
+ Error,
38
+ }
39
+
40
+ impl Default for Event {
41
+ fn default() -> Event {
42
+ Self::Error
43
+ }
44
+ }
tests/integration-tests/client/src/models/app_event_one_of_2.rs ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf2 {
16
+ #[serde(rename = "epoch")]
17
+ pub epoch: u64,
18
+ #[serde(rename = "event")]
19
+ pub event: Event,
20
+ #[serde(rename = "op")]
21
+ pub op: Box<models::Op>,
22
+ }
23
+
24
+ impl AppEventOneOf2 {
25
+ pub fn new(epoch: u64, event: Event, op: models::Op) -> AppEventOneOf2 {
26
+ AppEventOneOf2 {
27
+ epoch,
28
+ event,
29
+ op: Box::new(op),
30
+ }
31
+ }
32
+ }
33
+ ///
34
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35
+ pub enum Event {
36
+ #[serde(rename = "opRedone")]
37
+ OpRedone,
38
+ }
39
+
40
+ impl Default for Event {
41
+ fn default() -> Event {
42
+ Self::OpRedone
43
+ }
44
+ }
tests/integration-tests/client/src/models/app_event_one_of_3.rs ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf3 {
16
+ #[serde(rename = "event")]
17
+ pub event: Event,
18
+ #[serde(rename = "id")]
19
+ pub id: String,
20
+ #[serde(rename = "kind")]
21
+ pub kind: String,
22
+ }
23
+
24
+ impl AppEventOneOf3 {
25
+ pub fn new(event: Event, id: String, kind: String) -> AppEventOneOf3 {
26
+ AppEventOneOf3 { event, id, kind }
27
+ }
28
+ }
29
+ ///
30
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31
+ pub enum Event {
32
+ #[serde(rename = "jobStarted")]
33
+ JobStarted,
34
+ }
35
+
36
+ impl Default for Event {
37
+ fn default() -> Event {
38
+ Self::JobStarted
39
+ }
40
+ }
tests/integration-tests/client/src/models/app_event_one_of_4.rs ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf4 {
16
+ #[serde(rename = "currentPage")]
17
+ pub current_page: i32,
18
+ #[serde(rename = "currentStepIndex")]
19
+ pub current_step_index: i32,
20
+ #[serde(rename = "jobId")]
21
+ pub job_id: String,
22
+ #[serde(rename = "overallPercent")]
23
+ pub overall_percent: i32,
24
+ #[serde(rename = "status")]
25
+ pub status: Box<models::PipelineStatus>,
26
+ #[serde(rename = "step", skip_serializing_if = "Option::is_none")]
27
+ pub step: Option<models::PipelineStep>,
28
+ #[serde(rename = "totalPages")]
29
+ pub total_pages: i32,
30
+ #[serde(rename = "totalSteps")]
31
+ pub total_steps: i32,
32
+ #[serde(rename = "event")]
33
+ pub event: Event,
34
+ }
35
+
36
+ impl AppEventOneOf4 {
37
+ pub fn new(
38
+ current_page: i32,
39
+ current_step_index: i32,
40
+ job_id: String,
41
+ overall_percent: i32,
42
+ status: models::PipelineStatus,
43
+ total_pages: i32,
44
+ total_steps: i32,
45
+ event: Event,
46
+ ) -> AppEventOneOf4 {
47
+ AppEventOneOf4 {
48
+ current_page,
49
+ current_step_index,
50
+ job_id,
51
+ overall_percent,
52
+ status: Box::new(status),
53
+ step: None,
54
+ total_pages,
55
+ total_steps,
56
+ event,
57
+ }
58
+ }
59
+ }
60
+ ///
61
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
62
+ pub enum Event {
63
+ #[serde(rename = "jobProgress")]
64
+ JobProgress,
65
+ }
66
+
67
+ impl Default for Event {
68
+ fn default() -> Event {
69
+ Self::JobProgress
70
+ }
71
+ }
tests/integration-tests/client/src/models/app_event_one_of_5.rs ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf5 {
16
+ #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
17
+ pub error: Option<String>,
18
+ #[serde(rename = "id")]
19
+ pub id: String,
20
+ #[serde(rename = "status")]
21
+ pub status: models::JobStatus,
22
+ #[serde(rename = "event")]
23
+ pub event: Event,
24
+ }
25
+
26
+ impl AppEventOneOf5 {
27
+ pub fn new(id: String, status: models::JobStatus, event: Event) -> AppEventOneOf5 {
28
+ AppEventOneOf5 {
29
+ error: None,
30
+ id,
31
+ status,
32
+ event,
33
+ }
34
+ }
35
+ }
36
+ ///
37
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38
+ pub enum Event {
39
+ #[serde(rename = "jobFinished")]
40
+ JobFinished,
41
+ }
42
+
43
+ impl Default for Event {
44
+ fn default() -> Event {
45
+ Self::JobFinished
46
+ }
47
+ }
tests/integration-tests/client/src/models/app_event_one_of_6.rs ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf6 {
16
+ #[serde(rename = "downloaded")]
17
+ pub downloaded: i64,
18
+ #[serde(rename = "filename")]
19
+ pub filename: String,
20
+ #[serde(rename = "id")]
21
+ pub id: String,
22
+ #[serde(rename = "status")]
23
+ pub status: Box<models::DownloadStatus>,
24
+ #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
25
+ pub total: Option<i64>,
26
+ #[serde(rename = "event")]
27
+ pub event: Event,
28
+ }
29
+
30
+ impl AppEventOneOf6 {
31
+ pub fn new(
32
+ downloaded: i64,
33
+ filename: String,
34
+ id: String,
35
+ status: models::DownloadStatus,
36
+ event: Event,
37
+ ) -> AppEventOneOf6 {
38
+ AppEventOneOf6 {
39
+ downloaded,
40
+ filename,
41
+ id,
42
+ status: Box::new(status),
43
+ total: None,
44
+ event,
45
+ }
46
+ }
47
+ }
48
+ ///
49
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
50
+ pub enum Event {
51
+ #[serde(rename = "downloadProgress")]
52
+ DownloadProgress,
53
+ }
54
+
55
+ impl Default for Event {
56
+ fn default() -> Event {
57
+ Self::DownloadProgress
58
+ }
59
+ }
tests/integration-tests/client/src/models/app_event_one_of_7.rs ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf7 {
16
+ /// Stable identifier — the `.khrproj` directory basename (without the extension). Clients address projects by this.
17
+ #[serde(rename = "id")]
18
+ pub id: String,
19
+ #[serde(rename = "name")]
20
+ pub name: String,
21
+ /// Absolute filesystem path. Informational; clients never need to pass it back in — they use `id`.
22
+ #[serde(rename = "path")]
23
+ pub path: String,
24
+ /// Last modification time of the project directory on disk (ms since UNIX epoch). Used for \"recent projects\" ordering.
25
+ #[serde(rename = "updatedAtMs", skip_serializing_if = "Option::is_none")]
26
+ pub updated_at_ms: Option<i64>,
27
+ #[serde(rename = "event")]
28
+ pub event: Event,
29
+ }
30
+
31
+ impl AppEventOneOf7 {
32
+ pub fn new(id: String, name: String, path: String, event: Event) -> AppEventOneOf7 {
33
+ AppEventOneOf7 {
34
+ id,
35
+ name,
36
+ path,
37
+ updated_at_ms: None,
38
+ event,
39
+ }
40
+ }
41
+ }
42
+ ///
43
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
44
+ pub enum Event {
45
+ #[serde(rename = "projectOpened")]
46
+ ProjectOpened,
47
+ }
48
+
49
+ impl Default for Event {
50
+ fn default() -> Event {
51
+ Self::ProjectOpened
52
+ }
53
+ }
tests/integration-tests/client/src/models/app_event_one_of_8.rs ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf8 {
16
+ #[serde(rename = "event")]
17
+ pub event: Event,
18
+ }
19
+
20
+ impl AppEventOneOf8 {
21
+ pub fn new(event: Event) -> AppEventOneOf8 {
22
+ AppEventOneOf8 { event }
23
+ }
24
+ }
25
+ ///
26
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
27
+ pub enum Event {
28
+ #[serde(rename = "projectClosed")]
29
+ ProjectClosed,
30
+ }
31
+
32
+ impl Default for Event {
33
+ fn default() -> Event {
34
+ Self::ProjectClosed
35
+ }
36
+ }
tests/integration-tests/client/src/models/app_event_one_of_9.rs ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct AppEventOneOf9 {
16
+ #[serde(rename = "event")]
17
+ pub event: Event,
18
+ #[serde(rename = "target")]
19
+ pub target: Box<models::LlmTarget>,
20
+ }
21
+
22
+ impl AppEventOneOf9 {
23
+ pub fn new(event: Event, target: models::LlmTarget) -> AppEventOneOf9 {
24
+ AppEventOneOf9 {
25
+ event,
26
+ target: Box::new(target),
27
+ }
28
+ }
29
+ }
30
+ ///
31
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32
+ pub enum Event {
33
+ #[serde(rename = "llmLoaded")]
34
+ LlmLoaded,
35
+ }
36
+
37
+ impl Default for Event {
38
+ fn default() -> Event {
39
+ Self::LlmLoaded
40
+ }
41
+ }
tests/integration-tests/client/src/models/apply_result.rs ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct ApplyResult {
16
+ #[serde(rename = "epoch")]
17
+ pub epoch: i64,
18
+ }
19
+
20
+ impl ApplyResult {
21
+ pub fn new(epoch: i64) -> ApplyResult {
22
+ ApplyResult { epoch }
23
+ }
24
+ }
tests/integration-tests/client/src/models/config_patch.rs ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ /// ConfigPatch : Sparse patch for `koharu_app::AppConfig`. Missing fields mean \"leave as-is\". The `providers` field, if present, replaces the whole provider list — we do not merge by id because ordering is meaningful.
15
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16
+ pub struct ConfigPatch {
17
+ #[serde(
18
+ rename = "http",
19
+ default,
20
+ with = "::serde_with::rust::double_option",
21
+ skip_serializing_if = "Option::is_none"
22
+ )]
23
+ pub http: Option<Option<Box<models::HttpConfigPatch>>>,
24
+ #[serde(
25
+ rename = "pipeline",
26
+ default,
27
+ with = "::serde_with::rust::double_option",
28
+ skip_serializing_if = "Option::is_none"
29
+ )]
30
+ pub pipeline: Option<Option<Box<models::PipelineConfigPatch>>>,
31
+ /// If present, replaces the entire list. Api_key values of `\"[REDACTED]\"` are interpreted as \"leave the existing secret alone\".
32
+ #[serde(
33
+ rename = "providers",
34
+ default,
35
+ with = "::serde_with::rust::double_option",
36
+ skip_serializing_if = "Option::is_none"
37
+ )]
38
+ pub providers: Option<Option<Vec<models::ProviderPatch>>>,
39
+ }
40
+
41
+ impl ConfigPatch {
42
+ /// Sparse patch for `koharu_app::AppConfig`. Missing fields mean \"leave as-is\". The `providers` field, if present, replaces the whole provider list — we do not merge by id because ordering is meaningful.
43
+ pub fn new() -> ConfigPatch {
44
+ ConfigPatch {
45
+ http: None,
46
+ pipeline: None,
47
+ providers: None,
48
+ }
49
+ }
50
+ }
tests/integration-tests/client/src/models/create_pages_response.rs ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct CreatePagesResponse {
16
+ #[serde(rename = "pages")]
17
+ pub pages: Vec<uuid::Uuid>,
18
+ }
19
+
20
+ impl CreatePagesResponse {
21
+ pub fn new(pages: Vec<uuid::Uuid>) -> CreatePagesResponse {
22
+ CreatePagesResponse { pages }
23
+ }
24
+ }
tests/integration-tests/client/src/models/create_project_request.rs ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct CreateProjectRequest {
16
+ #[serde(rename = "name")]
17
+ pub name: String,
18
+ }
19
+
20
+ impl CreateProjectRequest {
21
+ pub fn new(name: String) -> CreateProjectRequest {
22
+ CreateProjectRequest { name }
23
+ }
24
+ }
tests/integration-tests/client/src/models/data_config.rs ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct DataConfig {
16
+ #[serde(rename = "path")]
17
+ pub path: String,
18
+ }
19
+
20
+ impl DataConfig {
21
+ pub fn new(path: String) -> DataConfig {
22
+ DataConfig { path }
23
+ }
24
+ }
tests/integration-tests/client/src/models/download_progress.rs ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct DownloadProgress {
16
+ #[serde(rename = "downloaded")]
17
+ pub downloaded: u64,
18
+ #[serde(rename = "filename")]
19
+ pub filename: String,
20
+ #[serde(rename = "id")]
21
+ pub id: String,
22
+ #[serde(rename = "status")]
23
+ pub status: Box<models::DownloadStatus>,
24
+ #[serde(
25
+ rename = "total",
26
+ default,
27
+ with = "::serde_with::rust::double_option",
28
+ skip_serializing_if = "Option::is_none"
29
+ )]
30
+ pub total: Option<Option<u64>>,
31
+ }
32
+
33
+ impl DownloadProgress {
34
+ pub fn new(
35
+ downloaded: u64,
36
+ filename: String,
37
+ id: String,
38
+ status: models::DownloadStatus,
39
+ ) -> DownloadProgress {
40
+ DownloadProgress {
41
+ downloaded,
42
+ filename,
43
+ id,
44
+ status: Box::new(status),
45
+ total: None,
46
+ }
47
+ }
48
+ }
tests/integration-tests/client/src/models/download_status.rs ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15
+ #[serde(untagged)]
16
+ pub enum DownloadStatus {
17
+ DownloadStatusOneOf(Box<models::DownloadStatusOneOf>),
18
+ DownloadStatusOneOf1(Box<models::DownloadStatusOneOf1>),
19
+ DownloadStatusOneOf2(Box<models::DownloadStatusOneOf2>),
20
+ DownloadStatusOneOf3(Box<models::DownloadStatusOneOf3>),
21
+ }
22
+
23
+ impl Default for DownloadStatus {
24
+ fn default() -> Self {
25
+ Self::DownloadStatusOneOf(Default::default())
26
+ }
27
+ }
28
+ ///
29
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30
+ pub enum Status {
31
+ #[serde(rename = "failed")]
32
+ Failed,
33
+ }
34
+
35
+ impl Default for Status {
36
+ fn default() -> Status {
37
+ Self::Failed
38
+ }
39
+ }
tests/integration-tests/client/src/models/download_status_one_of.rs ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct DownloadStatusOneOf {
16
+ #[serde(rename = "status")]
17
+ pub status: Status,
18
+ }
19
+
20
+ impl DownloadStatusOneOf {
21
+ pub fn new(status: Status) -> DownloadStatusOneOf {
22
+ DownloadStatusOneOf { status }
23
+ }
24
+ }
25
+ ///
26
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
27
+ pub enum Status {
28
+ #[serde(rename = "started")]
29
+ Started,
30
+ }
31
+
32
+ impl Default for Status {
33
+ fn default() -> Status {
34
+ Self::Started
35
+ }
36
+ }
tests/integration-tests/client/src/models/download_status_one_of_1.rs ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct DownloadStatusOneOf1 {
16
+ #[serde(rename = "status")]
17
+ pub status: Status,
18
+ }
19
+
20
+ impl DownloadStatusOneOf1 {
21
+ pub fn new(status: Status) -> DownloadStatusOneOf1 {
22
+ DownloadStatusOneOf1 { status }
23
+ }
24
+ }
25
+ ///
26
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
27
+ pub enum Status {
28
+ #[serde(rename = "downloading")]
29
+ Downloading,
30
+ }
31
+
32
+ impl Default for Status {
33
+ fn default() -> Status {
34
+ Self::Downloading
35
+ }
36
+ }
tests/integration-tests/client/src/models/download_status_one_of_2.rs ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct DownloadStatusOneOf2 {
16
+ #[serde(rename = "status")]
17
+ pub status: Status,
18
+ }
19
+
20
+ impl DownloadStatusOneOf2 {
21
+ pub fn new(status: Status) -> DownloadStatusOneOf2 {
22
+ DownloadStatusOneOf2 { status }
23
+ }
24
+ }
25
+ ///
26
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
27
+ pub enum Status {
28
+ #[serde(rename = "completed")]
29
+ Completed,
30
+ }
31
+
32
+ impl Default for Status {
33
+ fn default() -> Status {
34
+ Self::Completed
35
+ }
36
+ }
tests/integration-tests/client/src/models/download_status_one_of_3.rs ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct DownloadStatusOneOf3 {
16
+ #[serde(rename = "reason")]
17
+ pub reason: String,
18
+ #[serde(rename = "status")]
19
+ pub status: Status,
20
+ }
21
+
22
+ impl DownloadStatusOneOf3 {
23
+ pub fn new(reason: String, status: Status) -> DownloadStatusOneOf3 {
24
+ DownloadStatusOneOf3 { reason, status }
25
+ }
26
+ }
27
+ ///
28
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29
+ pub enum Status {
30
+ #[serde(rename = "failed")]
31
+ Failed,
32
+ }
33
+
34
+ impl Default for Status {
35
+ fn default() -> Status {
36
+ Self::Failed
37
+ }
38
+ }
tests/integration-tests/client/src/models/engine_catalog.rs ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct EngineCatalog {
16
+ #[serde(rename = "detectors")]
17
+ pub detectors: Vec<models::EngineCatalogEntry>,
18
+ #[serde(rename = "fontDetectors")]
19
+ pub font_detectors: Vec<models::EngineCatalogEntry>,
20
+ #[serde(rename = "inpainters")]
21
+ pub inpainters: Vec<models::EngineCatalogEntry>,
22
+ #[serde(rename = "ocr")]
23
+ pub ocr: Vec<models::EngineCatalogEntry>,
24
+ #[serde(rename = "renderers")]
25
+ pub renderers: Vec<models::EngineCatalogEntry>,
26
+ #[serde(rename = "segmenters")]
27
+ pub segmenters: Vec<models::EngineCatalogEntry>,
28
+ #[serde(rename = "translators")]
29
+ pub translators: Vec<models::EngineCatalogEntry>,
30
+ }
31
+
32
+ impl EngineCatalog {
33
+ pub fn new(
34
+ detectors: Vec<models::EngineCatalogEntry>,
35
+ font_detectors: Vec<models::EngineCatalogEntry>,
36
+ inpainters: Vec<models::EngineCatalogEntry>,
37
+ ocr: Vec<models::EngineCatalogEntry>,
38
+ renderers: Vec<models::EngineCatalogEntry>,
39
+ segmenters: Vec<models::EngineCatalogEntry>,
40
+ translators: Vec<models::EngineCatalogEntry>,
41
+ ) -> EngineCatalog {
42
+ EngineCatalog {
43
+ detectors,
44
+ font_detectors,
45
+ inpainters,
46
+ ocr,
47
+ renderers,
48
+ segmenters,
49
+ translators,
50
+ }
51
+ }
52
+ }
tests/integration-tests/client/src/models/engine_catalog_entry.rs ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct EngineCatalogEntry {
16
+ #[serde(rename = "id")]
17
+ pub id: String,
18
+ #[serde(rename = "name")]
19
+ pub name: String,
20
+ #[serde(rename = "produces")]
21
+ pub produces: Vec<String>,
22
+ }
23
+
24
+ impl EngineCatalogEntry {
25
+ pub fn new(id: String, name: String, produces: Vec<String>) -> EngineCatalogEntry {
26
+ EngineCatalogEntry { id, name, produces }
27
+ }
28
+ }
tests/integration-tests/client/src/models/error_event.rs ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct ErrorEvent {
16
+ #[serde(rename = "message")]
17
+ pub message: String,
18
+ #[serde(rename = "scope")]
19
+ pub scope: String,
20
+ }
21
+
22
+ impl ErrorEvent {
23
+ pub fn new(message: String, scope: String) -> ErrorEvent {
24
+ ErrorEvent { message, scope }
25
+ }
26
+ }
tests/integration-tests/client/src/models/export_format.rs ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ ///
15
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16
+ pub enum ExportFormat {
17
+ #[serde(rename = "khr")]
18
+ Khr,
19
+ #[serde(rename = "psd")]
20
+ Psd,
21
+ #[serde(rename = "rendered")]
22
+ Rendered,
23
+ #[serde(rename = "inpainted")]
24
+ Inpainted,
25
+ }
26
+
27
+ impl std::fmt::Display for ExportFormat {
28
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29
+ match self {
30
+ Self::Khr => write!(f, "khr"),
31
+ Self::Psd => write!(f, "psd"),
32
+ Self::Rendered => write!(f, "rendered"),
33
+ Self::Inpainted => write!(f, "inpainted"),
34
+ }
35
+ }
36
+ }
37
+
38
+ impl Default for ExportFormat {
39
+ fn default() -> ExportFormat {
40
+ Self::Khr
41
+ }
42
+ }
tests/integration-tests/client/src/models/export_project_request.rs ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct ExportProjectRequest {
16
+ #[serde(rename = "format")]
17
+ pub format: models::ExportFormat,
18
+ /// Optional subset of pages; defaults to every page.
19
+ #[serde(
20
+ rename = "pages",
21
+ default,
22
+ with = "::serde_with::rust::double_option",
23
+ skip_serializing_if = "Option::is_none"
24
+ )]
25
+ pub pages: Option<Option<Vec<uuid::Uuid>>>,
26
+ }
27
+
28
+ impl ExportProjectRequest {
29
+ pub fn new(format: models::ExportFormat) -> ExportProjectRequest {
30
+ ExportProjectRequest {
31
+ format,
32
+ pages: None,
33
+ }
34
+ }
35
+ }
tests/integration-tests/client/src/models/export_project_response.rs ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct ExportProjectResponse {
16
+ #[serde(rename = "count")]
17
+ pub count: u32,
18
+ #[serde(rename = "path")]
19
+ pub path: String,
20
+ }
21
+
22
+ impl ExportProjectResponse {
23
+ pub fn new(count: u32, path: String) -> ExportProjectResponse {
24
+ ExportProjectResponse {
25
+ count,
26
+ path,
27
+ }
28
+ }
29
+ }
30
+
tests/integration-tests/client/src/models/font_face_info.rs ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct FontFaceInfo {
16
+ #[serde(rename = "cached")]
17
+ pub cached: bool,
18
+ #[serde(
19
+ rename = "category",
20
+ default,
21
+ with = "::serde_with::rust::double_option",
22
+ skip_serializing_if = "Option::is_none"
23
+ )]
24
+ pub category: Option<Option<String>>,
25
+ #[serde(rename = "familyName")]
26
+ pub family_name: String,
27
+ #[serde(rename = "postScriptName")]
28
+ pub post_script_name: String,
29
+ #[serde(rename = "source")]
30
+ pub source: models::FontSource,
31
+ }
32
+
33
+ impl FontFaceInfo {
34
+ pub fn new(
35
+ cached: bool,
36
+ family_name: String,
37
+ post_script_name: String,
38
+ source: models::FontSource,
39
+ ) -> FontFaceInfo {
40
+ FontFaceInfo {
41
+ cached,
42
+ category: None,
43
+ family_name,
44
+ post_script_name,
45
+ source,
46
+ }
47
+ }
48
+ }
tests/integration-tests/client/src/models/font_prediction.rs ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct FontPrediction {
16
+ #[serde(rename = "angleDeg")]
17
+ pub angle_deg: f32,
18
+ #[serde(rename = "direction")]
19
+ pub direction: models::TextDirection,
20
+ #[serde(rename = "fontSizePx")]
21
+ pub font_size_px: f32,
22
+ #[serde(rename = "lineHeight")]
23
+ pub line_height: f32,
24
+ #[serde(rename = "namedFonts")]
25
+ pub named_fonts: Vec<models::NamedFontPrediction>,
26
+ #[serde(rename = "strokeColor")]
27
+ pub stroke_color: Vec<u32>,
28
+ #[serde(rename = "strokeWidthPx")]
29
+ pub stroke_width_px: f32,
30
+ #[serde(rename = "textColor")]
31
+ pub text_color: Vec<u32>,
32
+ #[serde(rename = "topFonts")]
33
+ pub top_fonts: Vec<models::TopFont>,
34
+ }
35
+
36
+ impl FontPrediction {
37
+ pub fn new(
38
+ angle_deg: f32,
39
+ direction: models::TextDirection,
40
+ font_size_px: f32,
41
+ line_height: f32,
42
+ named_fonts: Vec<models::NamedFontPrediction>,
43
+ stroke_color: Vec<u32>,
44
+ stroke_width_px: f32,
45
+ text_color: Vec<u32>,
46
+ top_fonts: Vec<models::TopFont>,
47
+ ) -> FontPrediction {
48
+ FontPrediction {
49
+ angle_deg,
50
+ direction,
51
+ font_size_px,
52
+ line_height,
53
+ named_fonts,
54
+ stroke_color,
55
+ stroke_width_px,
56
+ text_color,
57
+ top_fonts,
58
+ }
59
+ }
60
+ }
tests/integration-tests/client/src/models/font_source.rs ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ ///
15
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16
+ pub enum FontSource {
17
+ #[serde(rename = "system")]
18
+ System,
19
+ #[serde(rename = "google")]
20
+ Google,
21
+ }
22
+
23
+ impl std::fmt::Display for FontSource {
24
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25
+ match self {
26
+ Self::System => write!(f, "system"),
27
+ Self::Google => write!(f, "google"),
28
+ }
29
+ }
30
+ }
31
+
32
+ impl Default for FontSource {
33
+ fn default() -> FontSource {
34
+ Self::System
35
+ }
36
+ }
tests/integration-tests/client/src/models/google_font_catalog.rs ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct GoogleFontCatalog {
16
+ #[serde(rename = "fonts")]
17
+ pub fonts: Vec<models::GoogleFontEntry>,
18
+ }
19
+
20
+ impl GoogleFontCatalog {
21
+ pub fn new(fonts: Vec<models::GoogleFontEntry>) -> GoogleFontCatalog {
22
+ GoogleFontCatalog { fonts }
23
+ }
24
+ }
tests/integration-tests/client/src/models/google_font_entry.rs ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct GoogleFontEntry {
16
+ #[serde(rename = "category")]
17
+ pub category: String,
18
+ #[serde(rename = "family")]
19
+ pub family: String,
20
+ #[serde(rename = "subsets")]
21
+ pub subsets: Vec<String>,
22
+ #[serde(rename = "variants")]
23
+ pub variants: Vec<models::GoogleFontVariant>,
24
+ }
25
+
26
+ impl GoogleFontEntry {
27
+ pub fn new(
28
+ category: String,
29
+ family: String,
30
+ subsets: Vec<String>,
31
+ variants: Vec<models::GoogleFontVariant>,
32
+ ) -> GoogleFontEntry {
33
+ GoogleFontEntry {
34
+ category,
35
+ family,
36
+ subsets,
37
+ variants,
38
+ }
39
+ }
40
+ }
tests/integration-tests/client/src/models/google_font_variant.rs ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct GoogleFontVariant {
16
+ #[serde(rename = "filename")]
17
+ pub filename: String,
18
+ #[serde(rename = "style")]
19
+ pub style: String,
20
+ #[serde(rename = "weight")]
21
+ pub weight: u32,
22
+ }
23
+
24
+ impl GoogleFontVariant {
25
+ pub fn new(filename: String, style: String, weight: u32) -> GoogleFontVariant {
26
+ GoogleFontVariant {
27
+ filename,
28
+ style,
29
+ weight,
30
+ }
31
+ }
32
+ }
tests/integration-tests/client/src/models/history_result.rs ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct HistoryResult {
16
+ /// New epoch. `None` only for a no-op undo/redo at the stack boundary.
17
+ #[serde(
18
+ rename = "epoch",
19
+ default,
20
+ with = "::serde_with::rust::double_option",
21
+ skip_serializing_if = "Option::is_none"
22
+ )]
23
+ pub epoch: Option<Option<u64>>,
24
+ }
25
+
26
+ impl HistoryResult {
27
+ pub fn new() -> HistoryResult {
28
+ HistoryResult { epoch: None }
29
+ }
30
+ }
tests/integration-tests/client/src/models/http_config.rs ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct HttpConfig {
16
+ #[serde(rename = "connect_timeout", skip_serializing_if = "Option::is_none")]
17
+ pub connect_timeout: Option<u64>,
18
+ #[serde(rename = "max_retries", skip_serializing_if = "Option::is_none")]
19
+ pub max_retries: Option<u32>,
20
+ #[serde(rename = "read_timeout", skip_serializing_if = "Option::is_none")]
21
+ pub read_timeout: Option<u64>,
22
+ }
23
+
24
+ impl HttpConfig {
25
+ pub fn new() -> HttpConfig {
26
+ HttpConfig {
27
+ connect_timeout: None,
28
+ max_retries: None,
29
+ read_timeout: None,
30
+ }
31
+ }
32
+ }
tests/integration-tests/client/src/models/http_config_patch.rs ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct HttpConfigPatch {
16
+ #[serde(
17
+ rename = "connectTimeout",
18
+ default,
19
+ with = "::serde_with::rust::double_option",
20
+ skip_serializing_if = "Option::is_none"
21
+ )]
22
+ pub connect_timeout: Option<Option<u64>>,
23
+ #[serde(
24
+ rename = "maxRetries",
25
+ default,
26
+ with = "::serde_with::rust::double_option",
27
+ skip_serializing_if = "Option::is_none"
28
+ )]
29
+ pub max_retries: Option<Option<u32>>,
30
+ #[serde(
31
+ rename = "readTimeout",
32
+ default,
33
+ with = "::serde_with::rust::double_option",
34
+ skip_serializing_if = "Option::is_none"
35
+ )]
36
+ pub read_timeout: Option<Option<u64>>,
37
+ }
38
+
39
+ impl HttpConfigPatch {
40
+ pub fn new() -> HttpConfigPatch {
41
+ HttpConfigPatch {
42
+ connect_timeout: None,
43
+ max_retries: None,
44
+ read_timeout: None,
45
+ }
46
+ }
47
+ }
tests/integration-tests/client/src/models/image_data.rs ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct ImageData {
16
+ /// Hex-encoded blake3 hash of an immutable blob.
17
+ #[serde(rename = "blob")]
18
+ pub blob: String,
19
+ #[serde(
20
+ rename = "name",
21
+ default,
22
+ with = "::serde_with::rust::double_option",
23
+ skip_serializing_if = "Option::is_none"
24
+ )]
25
+ pub name: Option<Option<String>>,
26
+ #[serde(rename = "naturalHeight")]
27
+ pub natural_height: u32,
28
+ #[serde(rename = "naturalWidth")]
29
+ pub natural_width: u32,
30
+ #[serde(rename = "opacity", skip_serializing_if = "Option::is_none")]
31
+ pub opacity: Option<f32>,
32
+ /// Role tags differentiate source / inpainted / rendered / user-imported images. Role is immutable on an existing node — switching roles = delete + add.
33
+ #[serde(rename = "role")]
34
+ pub role: models::ImageRole,
35
+ }
36
+
37
+ impl ImageData {
38
+ pub fn new(
39
+ blob: String,
40
+ natural_height: u32,
41
+ natural_width: u32,
42
+ role: models::ImageRole,
43
+ ) -> ImageData {
44
+ ImageData {
45
+ blob,
46
+ name: None,
47
+ natural_height,
48
+ natural_width,
49
+ opacity: None,
50
+ role,
51
+ }
52
+ }
53
+ }
tests/integration-tests/client/src/models/image_data_patch.rs ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct ImageDataPatch {
16
+ /// Hex-encoded blake3 hash of an immutable blob.
17
+ #[serde(
18
+ rename = "blob",
19
+ default,
20
+ with = "::serde_with::rust::double_option",
21
+ skip_serializing_if = "Option::is_none"
22
+ )]
23
+ pub blob: Option<Option<String>>,
24
+ #[serde(
25
+ rename = "name",
26
+ default,
27
+ with = "::serde_with::rust::double_option",
28
+ skip_serializing_if = "Option::is_none"
29
+ )]
30
+ pub name: Option<Option<String>>,
31
+ #[serde(
32
+ rename = "naturalHeight",
33
+ default,
34
+ with = "::serde_with::rust::double_option",
35
+ skip_serializing_if = "Option::is_none"
36
+ )]
37
+ pub natural_height: Option<Option<u32>>,
38
+ #[serde(
39
+ rename = "naturalWidth",
40
+ default,
41
+ with = "::serde_with::rust::double_option",
42
+ skip_serializing_if = "Option::is_none"
43
+ )]
44
+ pub natural_width: Option<Option<u32>>,
45
+ #[serde(
46
+ rename = "opacity",
47
+ default,
48
+ with = "::serde_with::rust::double_option",
49
+ skip_serializing_if = "Option::is_none"
50
+ )]
51
+ pub opacity: Option<Option<f32>>,
52
+ }
53
+
54
+ impl ImageDataPatch {
55
+ pub fn new() -> ImageDataPatch {
56
+ ImageDataPatch {
57
+ blob: None,
58
+ name: None,
59
+ natural_height: None,
60
+ natural_width: None,
61
+ opacity: None,
62
+ }
63
+ }
64
+ }
tests/integration-tests/client/src/models/image_role.rs ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ ///
15
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16
+ pub enum ImageRole {
17
+ #[serde(rename = "source")]
18
+ Source,
19
+ #[serde(rename = "inpainted")]
20
+ Inpainted,
21
+ #[serde(rename = "rendered")]
22
+ Rendered,
23
+ #[serde(rename = "custom")]
24
+ Custom,
25
+ }
26
+
27
+ impl std::fmt::Display for ImageRole {
28
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29
+ match self {
30
+ Self::Source => write!(f, "source"),
31
+ Self::Inpainted => write!(f, "inpainted"),
32
+ Self::Rendered => write!(f, "rendered"),
33
+ Self::Custom => write!(f, "custom"),
34
+ }
35
+ }
36
+ }
37
+
38
+ impl Default for ImageRole {
39
+ fn default() -> ImageRole {
40
+ Self::Source
41
+ }
42
+ }
tests/integration-tests/client/src/models/import_pages_response.rs ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct ImportPagesResponse {
16
+ #[serde(rename = "pages")]
17
+ pub pages: Vec<uuid::Uuid>,
18
+ }
19
+
20
+ impl ImportPagesResponse {
21
+ pub fn new(pages: Vec<uuid::Uuid>) -> ImportPagesResponse {
22
+ ImportPagesResponse { pages }
23
+ }
24
+ }
tests/integration-tests/client/src/models/job_finished_event.rs ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15
+ pub struct JobFinishedEvent {
16
+ #[serde(
17
+ rename = "error",
18
+ default,
19
+ with = "::serde_with::rust::double_option",
20
+ skip_serializing_if = "Option::is_none"
21
+ )]
22
+ pub error: Option<Option<String>>,
23
+ #[serde(rename = "id")]
24
+ pub id: String,
25
+ #[serde(rename = "status")]
26
+ pub status: models::JobStatus,
27
+ }
28
+
29
+ impl JobFinishedEvent {
30
+ pub fn new(id: String, status: models::JobStatus) -> JobFinishedEvent {
31
+ JobFinishedEvent {
32
+ error: None,
33
+ id,
34
+ status,
35
+ }
36
+ }
37
+ }
tests/integration-tests/client/src/models/job_status.rs ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ *
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document:
7
+ *
8
+ * Generated by: https://openapi-generator.tech
9
+ */
10
+
11
+ use crate::models;
12
+ use serde::{Deserialize, Serialize};
13
+
14
+ ///
15
+ #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16
+ pub enum JobStatus {
17
+ #[serde(rename = "running")]
18
+ Running,
19
+ #[serde(rename = "completed")]
20
+ Completed,
21
+ #[serde(rename = "completed_with_errors")]
22
+ CompletedWithErrors,
23
+ #[serde(rename = "cancelled")]
24
+ Cancelled,
25
+ #[serde(rename = "failed")]
26
+ Failed,
27
+ }
28
+
29
+ impl std::fmt::Display for JobStatus {
30
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31
+ match self {
32
+ Self::Running => write!(f, "running"),
33
+ Self::Completed => write!(f, "completed"),
34
+ Self::CompletedWithErrors => write!(f, "completed_with_errors"),
35
+ Self::Cancelled => write!(f, "cancelled"),
36
+ Self::Failed => write!(f, "failed"),
37
+ }
38
+ }
39
+ }
40
+
41
+ impl Default for JobStatus {
42
+ fn default() -> JobStatus {
43
+ Self::Running
44
+ }
45
+ }