diff --git a/kittycad/Cargo.toml b/kittycad/Cargo.toml index 5f0060c..e98879e 100644 --- a/kittycad/Cargo.toml +++ b/kittycad/Cargo.toml @@ -14,7 +14,7 @@ async-trait = { version = "^0.1.53", optional = true } base64 = "0.22" bigdecimal = { version = "0.4", features = ["serde"] } bytes = { version = "1", features = ["serde"] } -clap = { version = "4.5.7", features = ["cargo", "derive", "env", "unicode"], optional = true } +clap = { version = "4.2.4", features = ["cargo", "derive", "env", "unicode"], optional = true } chrono = { version = "0.4", default-features = false, features = ["serde", "std"] } data-encoding = "^2.3.2" dirs = { version = "^5.0.1", optional = true } diff --git a/kittycad/src/types.rs b/kittycad/src/types.rs index c1df3bb..442871a 100644 --- a/kittycad/src/types.rs +++ b/kittycad/src/types.rs @@ -2912,6 +2912,37 @@ impl tabled::Tabled for ClientMetrics { } } +#[doc = "The response from the `ClosePath` command."] +#[derive( + serde :: Serialize, serde :: Deserialize, PartialEq, Debug, Clone, schemars :: JsonSchema, +)] +pub struct ClosePath { + #[doc = "The UUID of the lone face of the resulting solid2D."] + pub face_id: uuid::Uuid, +} + +impl std::fmt::Display for ClosePath { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> { + write!( + f, + "{}", + serde_json::to_string_pretty(self).map_err(|_| std::fmt::Error)? + ) + } +} + +#[cfg(feature = "tabled")] +impl tabled::Tabled for ClosePath { + const LENGTH: usize = 1; + fn fields(&self) -> Vec> { + vec![format!("{:?}", self.face_id).into()] + } + + fn headers() -> Vec> { + vec!["face_id".into()] + } +} + #[doc = "Cluster information."] #[derive( serde :: Serialize, serde :: Deserialize, PartialEq, Debug, Clone, schemars :: JsonSchema, @@ -9500,6 +9531,12 @@ pub enum OkModelingCmdResponse { #[doc = "The response from the `EntityGetAllChildUuids` command."] data: EntityGetAllChildUuids, }, + #[doc = "The response to the 'ClosePath' endpoint"] + #[serde(rename = "close_path")] + ClosePath { + #[doc = "The response from the `ClosePath` command."] + data: ClosePath, + }, #[doc = "The response to the 'CameraDragMove' endpoint"] #[serde(rename = "camera_drag_move")] CameraDragMove { diff --git a/openapitor/tests/types/kittycad.rs.gen b/openapitor/tests/types/kittycad.rs.gen index c2dd247..f2f2b52 100644 --- a/openapitor/tests/types/kittycad.rs.gen +++ b/openapitor/tests/types/kittycad.rs.gen @@ -2887,6 +2887,37 @@ impl tabled::Tabled for ClientMetrics { } } +#[doc = "The response from the `ClosePath` command."] +#[derive( + serde :: Serialize, serde :: Deserialize, PartialEq, Debug, Clone, schemars :: JsonSchema, +)] +pub struct ClosePath { + #[doc = "The UUID of the lone face of the resulting solid2D."] + pub face_id: uuid::Uuid, +} + +impl std::fmt::Display for ClosePath { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> { + write!( + f, + "{}", + serde_json::to_string_pretty(self).map_err(|_| std::fmt::Error)? + ) + } +} + +#[cfg(feature = "tabled")] +impl tabled::Tabled for ClosePath { + const LENGTH: usize = 1; + fn fields(&self) -> Vec> { + vec![format!("{:?}", self.face_id).into()] + } + + fn headers() -> Vec> { + vec!["face_id".into()] + } +} + #[doc = "Cluster information."] #[derive( serde :: Serialize, serde :: Deserialize, PartialEq, Debug, Clone, schemars :: JsonSchema, @@ -9315,6 +9346,12 @@ pub enum OkModelingCmdResponse { #[doc = "The response from the `EntityGetAllChildUuids` command."] data: EntityGetAllChildUuids, }, + #[doc = "The response to the 'ClosePath' endpoint"] + #[serde(rename = "close_path")] + ClosePath { + #[doc = "The response from the `ClosePath` command."] + data: ClosePath, + }, #[doc = "The response to the 'CameraDragMove' endpoint"] #[serde(rename = "camera_drag_move")] CameraDragMove { diff --git a/spec.json b/spec.json index e5d0f23..71d39cf 100644 --- a/spec.json +++ b/spec.json @@ -14609,6 +14609,20 @@ "rtc_total_freezes_duration_sec" ] }, + "ClosePath": { + "description": "The response from the `ClosePath` command.", + "type": "object", + "properties": { + "face_id": { + "description": "The UUID of the lone face of the resulting solid2D.", + "type": "string", + "format": "uuid" + } + }, + "required": [ + "face_id" + ] + }, "Cluster": { "description": "Cluster information.", "type": "object", @@ -21778,6 +21792,25 @@ "type" ] }, + { + "description": "The response to the 'ClosePath' endpoint", + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/ClosePath" + }, + "type": { + "type": "string", + "enum": [ + "close_path" + ] + } + }, + "required": [ + "data", + "type" + ] + }, { "description": "The response to the 'CameraDragMove' endpoint", "type": "object",