diff --git a/Cargo.toml b/Cargo.toml index c84f322..bd49f19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vrchatapi" -version = "1.6.9" +version = "1.6.10" authors = ["OpenAPI Generator team and contributors"] license = "MIT" edition = "2018" diff --git a/docs/CurrentUser.md b/docs/CurrentUser.md index b5780ac..4f4c347 100644 --- a/docs/CurrentUser.md +++ b/docs/CurrentUser.md @@ -47,6 +47,7 @@ Name | Type | Description | Notes **steam_id** | **String** | | **tags** | **Vec** | | **two_factor_auth_enabled** | **bool** | | +**two_factor_auth_enabled_date** | **String** | | **unsubscribe** | **bool** | | **user_icon** | **String** | | **username** | **String** | | diff --git a/src/models/current_user.rs b/src/models/current_user.rs index 34b61fa..8844b33 100644 --- a/src/models/current_user.rs +++ b/src/models/current_user.rs @@ -103,6 +103,8 @@ pub struct CurrentUser { pub tags: Vec, #[serde(rename = "twoFactorAuthEnabled")] pub two_factor_auth_enabled: bool, + #[serde(rename = "twoFactorAuthEnabledDate")] + pub two_factor_auth_enabled_date: String, #[serde(rename = "unsubscribe")] pub unsubscribe: bool, #[serde(rename = "userIcon")] @@ -112,7 +114,7 @@ pub struct CurrentUser { } impl CurrentUser { - pub fn new(accepted_tos_version: i32, allow_avatar_copying: bool, bio: String, bio_links: Vec, current_avatar: String, current_avatar_asset_url: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, email_verified: bool, friend_group_names: Vec, friend_key: String, friends: Vec, has_birthday: bool, has_email: bool, has_logged_in_from_client: bool, has_pending_email: bool, home_location: String, id: String, is_friend: bool, last_login: String, last_platform: String, obfuscated_email: String, obfuscated_pending_email: String, oculus_id: String, past_display_names: Vec, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, status_first_time: bool, status_history: Vec, steam_details: serde_json::Value, steam_id: String, tags: Vec, two_factor_auth_enabled: bool, unsubscribe: bool, user_icon: String, username: String) -> CurrentUser { + pub fn new(accepted_tos_version: i32, allow_avatar_copying: bool, bio: String, bio_links: Vec, current_avatar: String, current_avatar_asset_url: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, email_verified: bool, friend_group_names: Vec, friend_key: String, friends: Vec, has_birthday: bool, has_email: bool, has_logged_in_from_client: bool, has_pending_email: bool, home_location: String, id: String, is_friend: bool, last_login: String, last_platform: String, obfuscated_email: String, obfuscated_pending_email: String, oculus_id: String, past_display_names: Vec, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, status_first_time: bool, status_history: Vec, steam_details: serde_json::Value, steam_id: String, tags: Vec, two_factor_auth_enabled: bool, two_factor_auth_enabled_date: String, unsubscribe: bool, user_icon: String, username: String) -> CurrentUser { CurrentUser { accepted_tos_version, account_deletion_date: None, @@ -157,6 +159,7 @@ impl CurrentUser { steam_id, tags, two_factor_auth_enabled, + two_factor_auth_enabled_date, unsubscribe, user_icon, username, diff --git a/src/models/region.rs b/src/models/region.rs index 9bcf7ba..9481f71 100644 --- a/src/models/region.rs +++ b/src/models/region.rs @@ -15,6 +15,8 @@ pub enum Region { Us, #[serde(rename = "use")] _Use, + #[serde(rename = "usw")] + Usw, #[serde(rename = "eu")] Eu, #[serde(rename = "jp")] @@ -29,6 +31,7 @@ impl ToString for Region { match self { Self::Us => String::from("us"), Self::_Use => String::from("use"), + Self::Usw => String::from("usw"), Self::Eu => String::from("eu"), Self::Jp => String::from("jp"), Self::Unknown => String::from("unknown"),