diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2705d4c..9f212a6 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,5 +1,6 @@ .travis.yml Cargo.toml +docs/AccountDeletionLog.md docs/AddFavoriteRequest.md docs/AddGroupGalleryImageRequest.md docs/ApiConfig.md @@ -152,6 +153,7 @@ src/apis/system_api.rs src/apis/users_api.rs src/apis/worlds_api.rs src/lib.rs +src/models/account_deletion_log.rs src/models/add_favorite_request.rs src/models/add_group_gallery_image_request.rs src/models/api_config.rs diff --git a/Cargo.toml b/Cargo.toml index 216f97c..542e179 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vrchatapi" -version = "1.9.1" +version = "1.10.1" authors = ["me@ariesclark.com"] description = "VRChat API Client for Rust" license = "The MIT License (MIT)" diff --git a/docs/AccountDeletionLog.md b/docs/AccountDeletionLog.md new file mode 100644 index 0000000..335e146 --- /dev/null +++ b/docs/AccountDeletionLog.md @@ -0,0 +1,13 @@ +# AccountDeletionLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | Option<**String**> | Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. | [optional][default to Deletion requested] +**deletion_scheduled** | Option<**String**> | When the deletion is scheduled to happen, standard is 14 days after the request. | [optional] +**date_time** | Option<**String**> | Date and time of the deletion request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CurrentUser.md b/docs/CurrentUser.md index a7c33d7..96fd8e3 100644 --- a/docs/CurrentUser.md +++ b/docs/CurrentUser.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accepted_tos_version** | **i32** | | **account_deletion_date** | Option<[**String**](string.md)> | | [optional] -**active_friends** | Option<**Vec**> | | [optional] +**account_deletion_log** | Option<[**Vec**](AccountDeletionLog.md)> | | [optional] +**active_friends** | Option<**Vec**> | | [optional] **allow_avatar_copying** | **bool** | | **bio** | **String** | | -**bio_links** | **Vec** | | +**bio_links** | **Vec** | | **current_avatar** | **String** | | **current_avatar_asset_url** | **String** | | **current_avatar_image_url** | **String** | When profilePicOverride is not empty, use it instead. | diff --git a/generate.sh b/generate.sh index c60dd53..d65a076 100755 --- a/generate.sh +++ b/generate.sh @@ -9,7 +9,7 @@ rm src/apis src/models docs -rf --git-user-id=vrchatapi \ --git-repo-id=vrchatapi-rust \ -o . \ --i ../specification/dist/openapi.yaml \ +-i https://raw.githubusercontent.com/vrchatapi/specification/gh-pages/openapi.yaml \ --http-user-agent="vrchatapi-rust" #--global-property debugOperations=true diff --git a/src/models/account_deletion_log.rs b/src/models/account_deletion_log.rs new file mode 100644 index 0000000..711bdf1 --- /dev/null +++ b/src/models/account_deletion_log.rs @@ -0,0 +1,35 @@ +/* + * VRChat API Documentation + * + * + * Contact: me@ariesclark.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct AccountDeletionLog { + /// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. + #[serde(rename = "message", skip_serializing_if = "Option::is_none")] + pub message: Option, + /// When the deletion is scheduled to happen, standard is 14 days after the request. + #[serde(rename = "deletionScheduled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deletion_scheduled: Option>, + /// Date and time of the deletion request. + #[serde(rename = "dateTime", skip_serializing_if = "Option::is_none")] + pub date_time: Option, +} + +impl AccountDeletionLog { + pub fn new() -> AccountDeletionLog { + AccountDeletionLog { + message: None, + deletion_scheduled: None, + date_time: None, + } + } +} + + diff --git a/src/models/current_user.rs b/src/models/current_user.rs index 92f5cfd..e556606 100644 --- a/src/models/current_user.rs +++ b/src/models/current_user.rs @@ -15,12 +15,17 @@ pub struct CurrentUser { pub accepted_tos_version: i32, #[serde(rename = "accountDeletionDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub account_deletion_date: Option>, + /// + #[serde(rename = "accountDeletionLog", skip_serializing_if = "Option::is_none")] + pub account_deletion_log: Option>, + /// #[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")] pub active_friends: Option>, #[serde(rename = "allowAvatarCopying")] pub allow_avatar_copying: bool, #[serde(rename = "bio")] pub bio: String, + /// #[serde(rename = "bioLinks")] pub bio_links: Vec, #[serde(rename = "currentAvatar")] @@ -120,6 +125,7 @@ impl CurrentUser { CurrentUser { accepted_tos_version, account_deletion_date: None, + account_deletion_log: None, active_friends: None, allow_avatar_copying, bio, diff --git a/src/models/mod.rs b/src/models/mod.rs index a2f2e9c..daab75f 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,3 +1,5 @@ +pub mod account_deletion_log; +pub use self::account_deletion_log::AccountDeletionLog; pub mod add_favorite_request; pub use self::add_favorite_request::AddFavoriteRequest; pub mod add_group_gallery_image_request;