From 4a05e60dc9d1ce5228cb8dcf3132928a186a3dca Mon Sep 17 00:00:00 2001 From: Colton Hurst Date: Mon, 12 Aug 2024 17:13:01 -0400 Subject: [PATCH] SM-1275: Update AccessTokenLogin to LoginAccessToken for SM items --- crates/bitwarden-json/src/client.rs | 2 +- crates/bitwarden-json/src/command.rs | 2 +- crates/sdk-schemas/src/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bitwarden-json/src/client.rs b/crates/bitwarden-json/src/client.rs index 536693663..81956bf57 100644 --- a/crates/bitwarden-json/src/client.rs +++ b/crates/bitwarden-json/src/client.rs @@ -54,7 +54,7 @@ impl Client { #[cfg(feature = "internal")] Command::PasswordLogin(req) => client.auth().login_password(&req).await.into_string(), #[cfg(feature = "secrets")] - Command::AccessTokenLogin(req) => { + Command::LoginAccessToken(req) => { client.auth().login_access_token(&req).await.into_string() } #[cfg(feature = "internal")] diff --git a/crates/bitwarden-json/src/command.rs b/crates/bitwarden-json/src/command.rs index 62b4bc843..8c0f2a2ca 100644 --- a/crates/bitwarden-json/src/command.rs +++ b/crates/bitwarden-json/src/command.rs @@ -50,7 +50,7 @@ pub enum Command { /// This command is for initiating an authentication handshake with Bitwarden. /// /// Returns: [ApiKeyLoginResponse](bitwarden::auth::login::ApiKeyLoginResponse) - AccessTokenLogin(AccessTokenLoginRequest), + LoginAccessToken(AccessTokenLoginRequest), #[cfg(feature = "internal")] /// > Requires Authentication diff --git a/crates/sdk-schemas/src/main.rs b/crates/sdk-schemas/src/main.rs index bc064ec86..36478fbd7 100644 --- a/crates/sdk-schemas/src/main.rs +++ b/crates/sdk-schemas/src/main.rs @@ -99,7 +99,7 @@ struct SchemaTypes { // Output types for Client::run_command api_key_login: Response, password_login: Response, - access_token_login: Response, + login_access_token: Response, secret_identifiers: Response, secret: Response, secrets: Response,