From f632665c72961f07d1eab15b12a68ae55f1482f5 Mon Sep 17 00:00:00 2001 From: 49lf Date: Fri, 22 Mar 2024 13:51:22 -0400 Subject: [PATCH] Add cmd_id to ModelingCmdBatchReq --- kittycad/Cargo.toml | 2 +- kittycad/src/hidden.rs | 5 +---- kittycad/src/types.rs | 12 ++---------- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/kittycad/Cargo.toml b/kittycad/Cargo.toml index 68c2e671..ba59ba9a 100644 --- a/kittycad/Cargo.toml +++ b/kittycad/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "kittycad" description = "A fully generated & opinionated API client for the KittyCAD API." -version = "0.2.60" +version = "0.3.0" documentation = "https://docs.rs/kittycad" readme = "README.md" repository = "https://github.com/KittyCAD/kittycad.rs/tree/main/kittycad" diff --git a/kittycad/src/hidden.rs b/kittycad/src/hidden.rs index 1ae0698c..d0c23b69 100644 --- a/kittycad/src/hidden.rs +++ b/kittycad/src/hidden.rs @@ -56,10 +56,7 @@ impl Hidden { format!("{}/{}", self.client.base_url, "auth/email/callback"), ); req = req.bearer_auth(&self.client.token); - let mut query_params = vec![ - ("email", email.to_string()), - ("token", token.to_string()), - ]; + let mut query_params = vec![("email", email.to_string()), ("token", token.to_string())]; if let Some(p) = callback_url { query_params.push(("callback_url", p)); } diff --git a/kittycad/src/types.rs b/kittycad/src/types.rs index e11b40fc..b34fd0d1 100644 --- a/kittycad/src/types.rs +++ b/kittycad/src/types.rs @@ -895,8 +895,6 @@ pub enum AiPromptType { TextToCad, } - - #[doc = "An angle, with a specific unit."] #[derive( serde :: Serialize, serde :: Deserialize, PartialEq, Debug, Clone, schemars :: JsonSchema, @@ -4760,8 +4758,6 @@ pub enum Type { ModelingAppEvent, } - - #[doc = "An event related to modeling app files"] #[derive( serde :: Serialize, serde :: Deserialize, PartialEq, Debug, Clone, schemars :: JsonSchema, @@ -8061,8 +8057,6 @@ pub enum ModelingAppEventType { SuccessfulCompileBeforeClose, } - - #[doc = "The subscription tiers we offer for the Modeling App to individuals."] #[derive( serde :: Serialize, @@ -9145,8 +9139,6 @@ pub enum Oauth2GrantType { UrnIetfParamsOauthGrantTypeDeviceCode, } - - #[doc = "A successful response from a modeling command. This can be one of several types of \ responses, depending on the command."] #[derive( @@ -10653,8 +10645,6 @@ pub enum PaymentMethodType { Card, } - - #[doc = "Defines a perspective view."] #[derive( serde :: Serialize, serde :: Deserialize, PartialEq, Debug, Clone, schemars :: JsonSchema, @@ -14994,6 +14984,8 @@ pub enum WebSocketRequest { #[doc = "A sequence of modeling requests. If any request fails, following requests will \ not be tried."] requests: Vec, + #[doc = "ID of command being submitted."] + cmd_id: uuid::Uuid, }, #[doc = "The client-to-server Ping to ensure the WebSocket stays alive."] #[serde(rename = "ping")]