Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmd_id to ModelingCmdBatchReq #310

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kittycad/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "kittycad"
description = "A fully generated & opinionated API client for the KittyCAD API."
version = "0.2.61"
version = "0.3.0"
documentation = "https://docs.rs/kittycad"
readme = "README.md"
repository = "https://github.com/KittyCAD/kittycad.rs/tree/main/kittycad"
Expand Down
5 changes: 1 addition & 4 deletions kittycad/src/hidden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
12 changes: 2 additions & 10 deletions kittycad/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -8092,8 +8088,6 @@ pub enum ModelingAppEventType {
SuccessfulCompileBeforeClose,
}



#[doc = "The subscription tiers we offer for the Modeling App to individuals."]
#[derive(
serde :: Serialize,
Expand Down Expand Up @@ -9204,8 +9198,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(
Expand Down Expand Up @@ -10718,8 +10710,6 @@ pub enum PaymentMethodType {
Card,
}



#[doc = "Defines a perspective view."]
#[derive(
serde :: Serialize, serde :: Deserialize, PartialEq, Debug, Clone, schemars :: JsonSchema,
Expand Down Expand Up @@ -15059,6 +15049,8 @@ pub enum WebSocketRequest {
#[doc = "A sequence of modeling requests. If any request fails, following requests will \
not be tried."]
requests: Vec<ModelingCmdReq>,
#[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")]
Expand Down
Loading